You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
4.0 MiB

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Cherry={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}function i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var a,o,s=function(t){return t&&t.Math===Math&&t},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof e&&e)||s("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},h=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=h,d=Function.prototype,A=d.apply,g=d.call,p="object"==typeof Reflect&&Reflect.apply||(f?g.bind(A):function(){return g.apply(A,arguments)}),m=Function.prototype,b=m.call,v=f&&m.bind.bind(b,b),y=f?v:function(t){return function(){return b.apply(t,arguments)}},w=y,k=w({}.toString),C=w("".slice),x=function(t){return C(k(t),8,-1)},E="object"==typeof document&&document.all,T=void 0===E&&void 0!==E?function(t){return"function"==typeof t||t===E}:function(t){return"function"==typeof t},B=!u((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),_=Function.prototype.call,S=f?_.bind(_):function(){return _.apply(_,arguments)},L={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,M=I&&!L.call({1:2},1)?function(t){var e=I(this,t);return!!e&&e.enumerable}:L,O={f:M},D=Object,F=w("".split),N=u((function(){return!D("z").propertyIsEnumerable(0)}))?function(t){return"String"===x(t)?F(t,""):D(t)}:D,P=function(t){return null==t},R=TypeError,Q=N,U=function(t){if(P(t))throw new R("Can't call method on "+t);return t},$=T,H={},j=l,K=function(t){return $(t)?t:void 0},z=w({}.isPrototypeOf),G="undefined"!=typeof navigator&&String(navigator.userAgent)||"",X=j.process,V=j.Deno,W=X&&X.versions||V&&V.version,q=W&&W.v8;q&&(o=(a=q.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&G&&(!(a=G.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=G.match(/Chrome\/(\d+)/))&&(o=+a[1]);var Y=o,J=j.String,Z=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol("symbol detection");return!J(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),tt=Z,et=tt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,nt=function(t,e){return arguments.length<2?K(H[t])||K(j[t]):H[t]&&H[t][e]||j[t]&&j[t][e]},rt=z,it=et,at=Object,ot=it?function(t){return"symbol"==typeof t}:function(t){var e=nt("Symbol");return $(e)&&rt(e.prototype,at(t))},st=String,ct=function(t){try{return st(t)}catch(t){return"Object"}},lt=TypeError,ut=function(t){if($(t))return t;throw new lt(ct(t)+" is not a function")},ht=S,ft=function(t){return"object"==typeof t?null!==t:$(t)},dt=TypeError,At=Object.defineProperty,gt=!0,pt=function(t,e){try{At(j,t,{value:e,configurable:!0,writable:!0})}catch(n){j[t]=e}return e},mt=r((function(t){var e="__core-js_shared__",n=t.exports=j[e]||pt(e,{});(n.versions||(n.versions=[])).push({version:"3.37.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),bt=mt,vt=Object,yt=function(t){return vt(U(t))},wt=w({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return wt(yt(t),e)},Ct=0,xt=Math.random(),Et=w(1..toString),Tt=function(t,e){return bt[t]||(bt[t]=e||{})},Bt=kt,_t=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Et(++Ct+xt,36)},St=j.Symbol,Lt=Tt("wks"),It=it?St.for||St:St&&St.withoutSetter||_t,Mt=ot,Ot=function(t,e){var n=t[e];return P(n)?void 0:ut(n)},Dt=function(t,e){var n,r;if("string"===e&&$(n=t.toString)&&!ft(r=ht(n,t)))return r;if($(n=t.valueOf)&&!ft(r=ht(n,t)))return r;if("string"!==e&&$(n=t.toString)&&!ft(r=ht(n,t)))return r;throw new dt("Can't convert object to primitive value")},Ft=function(t){return Bt(Lt,t)||(Lt[t]=tt&&Bt(St,t)?St[t]:It("Symbol."+t)),Lt[t]},Nt=TypeError,Pt=Ft("toPrimitive"),Rt=function(t,e){if(!ft(t)||Mt(t))return t;var n,r=Ot(t,Pt);if(r){if(void 0===e&&(e="default"),n=ht(r,t,e),!ft(n)||Mt(n))return n;throw new Nt("Can't convert object to primitive value")}return void 0===e&&(e="number"),Dt(t,e)},Qt=j.document,Ut=ft(Qt)&&ft(Qt.createElement),$t=B,Ht=function(t){return Ut?Qt.createElement(t):{}},jt=!$t&&!u((function(){return 7!==Object.defineProperty(Ht("div"),"a",{get:function(){return 7}}).a})),Kt=O,zt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Gt=function(t){return Q(U(t))},Xt=function(t){var e=Rt(t,"string");return Mt(e)?e:e+""},Vt=jt,Wt=Object.getOwnPropertyDescriptor,qt={f:$t?Wt:function(t,e){if(t=Gt(t),e=Xt(e),Vt)try{return Wt(t,e)}catch(t){}if(Bt(t,e))return zt(!ht(Kt.f,t,e),t[e])}},Yt=/#|\.prototype\./,Jt=function(t,e){var n=te[Zt(t)];return n===ne||n!==ee&&($(e)?u(e):!!e)},Zt=Jt.normalize=function(t){return String(t).replace(Yt,".").toLowerCase()},te=Jt.data={},ee=Jt.NATIVE="N",ne=Jt.POLYFILL="P",re=Jt,ie=function(t){if("Function"===x(t))return w(t)},ae=ie(ie.bind),oe=$t&&u((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),se=String,ce=TypeError,le=oe,ue=function(t){if(ft(t))return t;throw new ce(se(t)+" is not an object")},he=TypeError,fe=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Ae="enumerable",ge="configurable",pe="writable",me={f:$t?le?function(t,e,n){if(ue(t),e=Xt(e),ue(n),"function"==typeof t&&"prototype"===e&&"value"in n&&pe in n&&!n[pe]){var r=de(t,e);r&&r[pe]&&(t[e]=n.value,n={configurable:ge in n?n[ge]:r[ge],enumerable:Ae in n?n[Ae]:r[Ae],writable:!1})}return fe(t,e,n)}:fe:function(t,e,n){if(ue(t),e=Xt(e),ue(n),Vt)try{return fe(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new he("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},be=$t?function(t,e,n){return me.f(t,e,zt(1,n))}:function(t,e,n){return t[e]=n,t},ve=p,ye=qt,we=re,ke=function(t,e){return ut(t),void 0===e?t:f?ae(t,e):function(){return t.apply(e,arguments)}},Ce=be,xe=ye.f,Ee=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return ve(t,this,arguments)};return e.prototype=t.prototype,e},Te=w([].slice),Be=Function,_e=w([].concat),Se=w([].join),Le={},Ie=f?Be.bind:function(t){var e=ut(this),n=e.prototype,r=Te(arguments,1),i=function(){var n=_e(r,Te(arguments));return this instanceof i?function(t,e,n){if(!Bt(Le,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";Le[e]=Be("C,a","return new C("+Se(r,",")+")")}return Le[e](t,n)}(e,n.length,n):e.apply(t,n)};return ft(n)&&(i.prototype=n),i},Me={};Me[Ft("toStringTag")]="z";var Oe="[object z]"===String(Me),De=Ft("toStringTag"),Fe=Object,Ne="Arguments"===x(function(){return arguments}()),Pe=Oe?x:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Fe(t),De))?n:Ne?x(e):"Object"===(r=x(e))&&$(e.callee)?"Arguments":r},Re=w(Function.toString);$(bt.inspectSource)||(bt.inspectSource=function(t){return Re(t)});var Qe=bt.inspectSource,Ue=Pe,$e=Qe,He=function(){},je=nt("Reflect","construct"),Ke=/^\s*(?:class|function)\b/,ze=w(Ke.exec),Ge=!Ke.test(He),Xe=function(t){if(!$(t))return!1;try{return je(He,[],t),!0}catch(t){return!1}},Ve=function(t){if(!$(t))return!1;switch(Ue(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ge||!!ze(Ke,$e(t))}catch(t){return!0}};Ve.sham=!0;var We,qe=!je||u((function(){var t;return Xe(Xe.call)||!Xe(Object)||!Xe((function(){t=!0}))||t}))?Ve:Xe,Ye=qe,Je=TypeError,Ze=Math.ceil,tn=Math.floor,en=Math.trunc||function(t){var e=+t;return(e>0?tn:Ze)(e)},nn=en,rn=function(t){var e=+t;return e!=e||0===e?0:nn(e)},an=Math.max,on=Math.min,sn=Math.min,cn=function(t){var e=rn(t);return e>0?sn(e,9007199254740991):0},ln=function(t,e){var n=rn(t);return n<0?an(n+e,0):on(n,e)},un=function(t){return cn(t.length)},hn=function(t){return function(e,n,r){var i=Gt(e),a=un(i);if(0===a)return!t&&-1;var o,s=ln(r,a);if(t&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},fn={includes:hn(!0),indexOf:hn(!1)},dn={},An=fn.indexOf,gn=w([].push),pn=function(t,e){var n,r=Gt(t),i=0,a=[];for(n in r)!Bt(dn,n)&&Bt(r,n)&&gn(a,n);for(;e.length>i;)Bt(r,n=e[i++])&&(~An(a,n)||gn(a,n));return a},mn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bn=Object.keys||function(t){return pn(t,mn)},vn=$t&&!le?Object.defineProperties:function(t,e){ue(t);for(var n,r=Gt(e),i=bn(e),a=i.length,o=0;a>o;)me.f(t,n=i[o++],r[n]);return t},yn={f:vn},wn=nt("document","documentElement"),kn=Tt("keys"),Cn=yn,xn=wn,En=function(t){return kn[t]||(kn[t]=_t(t))},Tn="prototype",Bn="script",_n=En("IE_PROTO"),Sn=function(){},Ln=function(t){return"<"+Bn+">"+t+"</"+Bn+">"},In=function(t){t.write(Ln("")),t.close();var e=t.parentWindow.Object;return t=null,e},Mn=function(){try{We=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Mn="undefined"!=typeof document?document.domain&&We?In(We):(e=Ht("iframe"),n="java"+Bn+":",e.style.display="none",xn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ln("document.F=Object")),t.close(),t.F):In(We);for(var r=mn.length;r--;)delete Mn[Tn][mn[r]];return Mn()};dn[_n]=!0;var On=Object.create||function(t,e){var n;return null!==t?(Sn[Tn]=ue(t),n=new Sn,Sn[Tn]=null,n[_n]=t):n=Mn(),void 0===e?n:Cn.f(n,e)},Dn=function(t,e){var n,r,i,a,o,s,c,l,u,h=t.target,f=t.global,d=t.stat,A=t.proto,g=f?j:d?j[h]:j[h]&&j[h].prototype,p=f?H:H[h]||Ce(H,h,{})[h],m=p.prototype;for(a in e)r=!(n=we(f?a:h+(d?".":"#")+a,t.forced))&&g&&Bt(g,a),s=p[a],r&&(c=t.dontCallGetSet?(u=xe(g,a))&&u.value:g[a]),o=r&&c?c:e[a],(n||A||typeof s!=typeof o)&&(l=t.bind&&r?ke(o,j):t.wrap&&r?Ee(o):A&&$(o)?ie(o):o,(t.sham||o&&o.sham||s&&s.sham)&&Ce(l,"sham",!0),Ce(p,a,l),A&&(Bt(H,i=h+"Prototype")||Ce(H,i,{}),Ce(H[i],a,o),t.real&&m&&(n||!m[a])&&Ce(m,a,o)))},Fn=Ie,Nn=function(t){if(Ye(t))return t;throw new Je(ct(t)+" is not a constructor")},Pn=On,Rn=nt("Reflect","construct"),Qn=Object.prototype,Un=[].push,$n=u((function(){function t(){}return!(Rn((function(){}),[],t)instanceof t)})),Hn=!u((function(){Rn((function(){}))})),jn=$n||Hn;Dn({target:"Reflect",stat:!0,forced:jn,sham:jn},{construct:function(t,e){Nn(t),ue(e);var n=arguments.length<3?t:Nn(arguments[2]);if(Hn&&!$n)return Rn(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return ve(Un,r,e),new(ve(Fn,t,r))}var i=n.prototype,a=Pn(ft(i)?i:Qn),o=ve(t,a,e);return ft(o)?o:a}});var Kn,zn,Gn,Xn=H.Reflect.construct,Vn=Xn,Wn=String,qn=mn.concat("length","prototype"),Yn={f:Object.getOwnPropertyNames||function(t){return pn(t,qn)}},Jn=Yn.f,Zn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tr={f:function(t){return Zn&&"Window"===x(t)?function(t){try{return Jn(t)}catch(t){return Te(Zn)}}(t):Jn(Gt(t))}},er={f:Object.getOwnPropertySymbols},nr={f:Ft},rr=me.f,ir=function(t,e,n,r){return r&&r.enumerable?t[e]=n:Ce(t,e,n),t},ar=Oe?{}.toString:function(){return"[object "+Ue(this)+"]"},or=me.f,sr=Ft("toStringTag"),cr=j.WeakMap,lr=$(cr)&&/native code/.test(String(cr)),ur="Object already initialized",hr=j.TypeError,fr=j.WeakMap;if(lr||bt.state){var dr=bt.state||(bt.state=new fr);dr.get=dr.get,dr.has=dr.has,dr.set=dr.set,Kn=function(t,e){if(dr.has(t))throw new hr(ur);return e.facade=t,dr.set(t,e),e},zn=function(t){return dr.get(t)||{}},Gn=function(t){return dr.has(t)}}else{var Ar=En("state");dn[Ar]=!0,Kn=function(t,e){if(Bt(t,Ar))throw new hr(ur);return e.facade=t,Ce(t,Ar,e),e},zn=function(t){return Bt(t,Ar)?t[Ar]:{}},Gn=function(t){return Bt(t,Ar)}}var gr={set:Kn,get:zn,has:Gn,enforce:function(t){return Gn(t)?zn(t):Kn(t,{})},getterFor:function(t){return function(e){var n;if(!ft(e)||(n=zn(e)).type!==t)throw new hr("Incompatible receiver, "+t+" required");return n}}},pr=Array.isArray||function(t){return"Array"===x(t)},mr=Ft("species"),br=Array,vr=function(t){var e;return pr(t)&&(e=t.constructor,(Ye(e)&&(e===br||pr(e.prototype))||ft(e)&&null===(e=e[mr]))&&(e=void 0)),void 0===e?br:e},yr=function(t,e){return new(vr(t))(0===e?0:e)},wr=w([].push),kr=function(t){var e=1===t,n=2===t,r=3===t,i=4===t,a=6===t,o=7===t,s=5===t||a;return function(c,l,u,h){for(var f,d,A=yt(c),g=Q(A),p=un(g),m=ke(l,u),b=0,v=h||yr,y=e?v(c,p):n||o?v(c,0):void 0;p>b;b++)if((s||b in g)&&(d=m(f=g[b],b,A),t))if(e)y[b]=d;else if(d)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:wr(y,f)}else switch(t){case 4:return!1;case 7:wr(y,f)}return a?-1:r||i?i:y}},Cr={forEach:kr(0),map:kr(1),filter:kr(2),some:kr(3),every:kr(4),find:kr(5),findIndex:kr(6),filterReject:kr(7)},xr=function(t){if("Symbol"===Ue(t))throw new TypeError("Cannot convert a Symbol value to a string");return Wn(t)},Er=tr,Tr=er,Br=function(t,e,n){return me.f(t,e,n)},_r=function(t){var e=H.Symbol||(H.Symbol={});Bt(e,t)||rr(e,t,{value:nr.f(t)})},Sr=function(){var t=nt("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=Ft("toPrimitive");e&&!e[r]&&ir(e,r,(function(t){return ht(n,this)}),{arity:1})},Lr=function(t,e,n,r){var i=n?t:t&&t.prototype;i&&(Bt(i,sr)||or(i,sr,{configurable:!0,value:e}),r&&!Oe&&Ce(i,"toString",ar))},Ir=gr,Mr=Cr,Or=Mr.forEach,Dr=En("hidden"),Fr="Symbol",Nr="prototype",Pr=Ir.set,Rr=Ir.getterFor(Fr),Qr=Object[Nr],Ur=j.Symbol,$r=Ur&&Ur[Nr],Hr=j.RangeError,jr=j.TypeError,Kr=j.QObject,zr=ye.f,Gr=me.f,Xr=Er.f,Vr=Kt.f,Wr=w([].push),qr=Tt("symbols"),Yr=Tt("op-symbols"),Jr=Tt("wks"),Zr=!Kr||!Kr[Nr]||!Kr[Nr].findChild,ti=function(t,e,n){var r=zr(Qr,e);r&&delete Qr[e],Gr(t,e,n),r&&t!==Qr&&Gr(Qr,e,r)},ei=$t&&u((function(){return 7!==Pn(Gr({},"a",{get:function(){return Gr(this,"a",{value:7}).a}})).a}))?ti:Gr,ni=function(t,e){var n=qr[t]=Pn($r);return Pr(n,{type:Fr,tag:t,description:e}),$t||(n.description=e),n},ri=function(t,e,n){t===Qr&&ri(Yr,e,n),ue(t);var r=Xt(e);return ue(n),Bt(qr,r)?(n.enumerable?(Bt(t,Dr)&&t[Dr][r]&&(t[Dr][r]=!1),n=Pn(n,{enumerable:zt(0,!1)})):(Bt(t,Dr)||Gr(t,Dr,zt(1,Pn(null))),t[Dr][r]=!0),ei(t,r,n)):Gr(t,r,n)},ii=function(t,e){ue(t);var n=Gt(e),r=bn(n).concat(ci(n));return Or(r,(function(e){$t&&!ht(ai,n,e)||ri(t,e,n[e])})),t},ai=function(t){var e=Xt(t),n=ht(Vr,this,e);return!(this===Qr&&Bt(qr,e)&&!Bt(Yr,e))&&(!(n||!Bt(this,e)||!Bt(qr,e)||Bt(this,Dr)&&this[Dr][e])||n)},oi=function(t,e){var n=Gt(t),r=Xt(e);if(n!==Qr||!Bt(qr,r)||Bt(Yr,r)){var i=zr(n,r);return!i||!Bt(qr,r)||Bt(n,Dr)&&n[Dr][r]||(i.enumerable=!0),i}},si=function(t){var e=Xr(Gt(t)),n=[];return Or(e,(function(t){Bt(qr,t)||Bt(dn,t)||Wr(n,t)})),n},ci=function(t){var e=t===Qr,n=Xr(e?Yr:Gt(t)),r=[];return Or(n,(function(t){!Bt(qr,t)||e&&!Bt(Qr,t)||Wr(r,qr[t])})),r};tt||(Ur=function(){if(rt($r,this))throw new jr("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?xr(arguments[0]):void 0,e=_t(t),n=function(t){var r=void 0===this?j:this;r===Qr&&ht(n,Yr,t),Bt(r,Dr)&&Bt(r[Dr],e)&&(r[Dr][e]=!1);var i=zt(1,t);try{ei(r,e,i)}catch(t){if(!(t instanceof Hr))throw t;ti(r,e,i)}};return $t&&Zr&&ei(Qr,e,{configurable:!0,set:n}),ni(e,t)},$r=Ur[Nr],ir($r,"toString",(function(){return Rr(this).tag})),ir(Ur,"withoutSetter",(function(t){return ni(_t(t),t)})),Kt.f=ai,me.f=ri,Cn.f=ii,ye.f=oi,Yn.f=Er.f=si,Tr.f=ci,nr.f=function(t){return ni(Ft(t),t)},$t&&Br($r,"description",{configurable:!0,get:function(){return Rr(this).description}})),Dn({global:!0,constructor:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:Ur}),Or(bn(Jr),(function(t){_r(t)})),Dn({target:Fr,stat:!0,forced:!tt},{useSetter:function(){Zr=!0},useSimple:function(){Zr=!1}}),Dn({target:"Object",stat:!0,forced:!tt,sham:!$t},{create:function(t,e){return void 0===e?Pn(t):ii(Pn(t),e)},defineProperty:ri,defineProperties:ii,getOwnPropertyDescriptor:oi}),Dn({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:si}),Sr(),Lr(Ur,Fr),dn[Dr]=!0;var li=tt&&!!Symbol.for&&!!Symbol.keyFor,ui=Tt("string-to-symbol-registry"),hi=Tt("symbol-to-string-registry");Dn({target:"Symbol",stat:!0,forced:!li},{for:function(t){var e=xr(t);if(Bt(ui,e))return ui[e];var n=nt("Symbol")(e);return ui[e]=n,hi[n]=e,n}});var fi=Tt("symbol-to-string-registry");Dn({target:"Symbol",stat:!0,forced:!li},{keyFor:function(t){if(!Mt(t))throw new TypeError(ct(t)+" is not a symbol");if(Bt(fi,t))return fi[t]}});var di=w([].push),Ai=function(t){if($(t))return t;if(pr(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?di(n,i):"number"!=typeof i&&"Number"!==x(i)&&"String"!==x(i)||di(n,xr(i))}var a=n.length,o=!0;return function(t,e){if(o)return o=!1,e;if(pr(this))return e;for(var r=0;r<a;r++)if(n[r]===t)return e}}},gi=String,pi=nt("JSON","stringify"),mi=w(/./.exec),bi=w("".charAt),vi=w("".charCodeAt),yi=w("".replace),wi=w(1..toString),ki=/[\uD800-\uDFFF]/g,Ci=/^[\uD800-\uDBFF]$/,xi=/^[\uDC00-\uDFFF]$/,Ei=!tt||u((function(){var t=nt("Symbol")("stringify detection");return"[null]"!==pi([t])||"{}"!==pi({a:t})||"{}"!==pi(Object(t))})),Ti=u((function(){return'"\\udf06\\ud834"'!==pi("\udf06\ud834")||'"\\udead"'!==pi("\udead")})),Bi=function(t,e){var n=Te(arguments),r=Ai(e);if($(r)||void 0!==t&&!Mt(t))return n[1]=function(t,e){if($(r)&&(e=ht(r,this,gi(t),e)),!Mt(e))return e},ve(pi,null,n)},_i=function(t,e,n){var r=bi(n,e-1),i=bi(n,e+1);return mi(Ci,t)&&!mi(xi,i)||mi(xi,t)&&!mi(Ci,r)?"\\u"+wi(vi(t,0),16):t};pi&&Dn({target:"JSON",stat:!0,arity:3,forced:Ei||Ti},{stringify:function(t,e,n){var r=Te(arguments),i=ve(Ei?Bi:pi,null,r);return Ti&&"string"==typeof i?yi(i,ki,_i):i}});var Si=!tt||u((function(){Tr.f(1)}));Dn({target:"Object",stat:!0,forced:Si},{getOwnPropertySymbols:function(t){var e=Tr.f;return e?e(yt(t)):[]}});var Li=H.Object.getOwnPropertySymbols,Ii=Li,Mi=Ft("species"),Oi=function(t){return Y>=51||!u((function(){var e=[];return(e.constructor={})[Mi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Di=Mr.filter,Fi=Oi("filter");Dn({target:"Array",proto:!0,forced:!Fi},{filter:function(t){return Di(this,t,arguments.length>1?arguments[1]:void 0)}});var Ni=function(t,e){var n=H[t+"Prototype"],r=n&&n[e];if(r)return r;var i=j[t],a=i&&i.prototype;return a&&a[e]},Pi=Ni("Array","filter"),Ri=Array.prototype,Qi=function(t){var e=t.filter;return t===Ri||rt(Ri,t)&&e===Ri.filter?Pi:e},Ui=ye.f,$i=!$t||u((function(){Ui(1)}));Dn({target:"Object",stat:!0,forced:$i,sham:!$t},{getOwnPropertyDescriptor:function(t,e){return Ui(Gt(t),e)}});var Hi=r((function(t){var e=H.Object,n=t.exports=function(t,n){return e.getOwnPropertyDescriptor(t,n)};e.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),ji=Hi,Ki=ji,zi=w([].concat),Gi=nt("Reflect","ownKeys")||function(t){var e=Yn.f(ue(t)),n=Tr.f;return n?zi(e,n(t)):e},Xi=Gi,Vi=function(t,e,n){$t?me.f(t,e,zt(0,n)):t[e]=n};Dn({target:"Object",stat:!0,sham:!$t},{getOwnPropertyDescriptors:function(t){for(var e,n,r=Gt(t),i=ye.f,a=Xi(r),o={},s=0;a.length>s;)void 0!==(n=i(r,e=a[s++]))&&Vi(o,e,n);return o}});var Wi=H.Object.getOwnPropertyDescriptors,qi=Cn.f;Dn({target:"Object",stat:!0,forced:Object.defineProperties!==qi,sham:!$t},{defineProperties:qi});var Yi=r((function(t){var e=H.Object,n=t.exports=function(t,n){return e.defineProperties(t,n)};e.defineProperties.sham&&(n.sham=!0)})),Ji=Yi,Zi=Ji,ta=me.f;Dn({target:"Object",stat:!0,forced:Object.defineProperty!==ta,sham:!$t},{defineProperty:ta});var ea=r((function(t){var e=H.Object,n=t.exports=function(t,n,r){return e.defineProperty(t,n,r)};e.defineProperty.sham&&(n.sham=!0)})),na=ea;function ra(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var ia=ea,aa=ia,oa=TypeError,sa=function(t){if(t>9007199254740991)throw oa("Maximum allowed index exceeded");return t},ca=Ft("isConcatSpreadable"),la=Y>=51||!u((function(){var t=[];return t[ca]=!1,t.concat()[0]!==t})),ua=function(t){if(!ft(t))return!1;var e=t[ca];return void 0!==e?!!e:pr(t)},ha=!la||!Oi("concat");Dn({target:"Array",proto:!0,arity:1,forced:ha},{concat:function(t){var e,n,r,i,a,o=yt(this),s=yr(o,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(ua(a=-1===e?o:arguments[e]))for(i=un(a),sa(c+i),n=0;n<i;n++,c++)n in a&&Vi(s,c,a[n]);else sa(c+1),Vi(s,c++,a);return s.length=c,s}}),_r("asyncIterator"),_r("hasInstance"),_r("isConcatSpreadable"),_r("iterator"),_r("match"),_r("matchAll"),_r("replace"),_r("search"),_r("species"),_r("split"),_r("toPrimitive"),Sr(),_r("toStringTag"),Lr(nt("Symbol"),"Symbol"),_r("unscopables"),Lr(j.JSON,"JSON",!0);var fa,da,Aa,ga=H.Symbol,pa=Function.prototype,ma=$t&&Object.getOwnPropertyDescriptor,ba=Bt(pa,"name"),va={EXISTS:ba,PROPER:ba&&"something"===function(){}.name,CONFIGURABLE:ba&&(!$t||$t&&ma(pa,"name").configurable)},ya=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),wa=En("IE_PROTO"),ka=Object,Ca=ka.prototype,xa=ya?ka.getPrototypeOf:function(t){var e=yt(t);if(Bt(e,wa))return e[wa];var n=e.constructor;return $(n)&&e instanceof n?n.prototype:e instanceof ka?Ca:null},Ea=xa,Ta=Ft("iterator"),Ba=!1;[].keys&&("next"in(Aa=[].keys())?(da=Ea(Ea(Aa)))!==Object.prototype&&(fa=da):Ba=!0);var _a=!ft(fa)||u((function(){var t={};return fa[Ta].call(t)!==t}));fa=_a?{}:Pn(fa),$(fa[Ta])||ir(fa,Ta,(function(){return this}));var Sa={IteratorPrototype:fa,BUGGY_SAFARI_ITERATORS:Ba},La={},Ia=Sa.IteratorPrototype,Ma=function(){return this},Oa=function(t){return ft(t)||null===t},Da=String,Fa=TypeError,Na=function(t,e,n){try{return w(ut(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},Pa=function(t){if(Oa(t))return t;throw new Fa("Can't set "+Da(t)+" as a prototype")},Ra=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Na(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return U(n),Pa(r),ft(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),Qa=va,Ua=function(t,e,n,r){var i=e+" Iterator";return t.prototype=Pn(Ia,{next:zt(+!r,n)}),Lr(t,i,!1,!0),La[i]=Ma,t},$a=Ra,Ha=Qa.PROPER,ja=Sa.BUGGY_SAFARI_ITERATORS,Ka=Ft("iterator"),za="keys",Ga="values",Xa="entries",Va=function(){return this},Wa=function(){},qa=function(t,e,n,r,i,a,o){Ua(n,e,r);var s,c,l,u=function(t){if(t===i&&g)return g;if(!ja&&t&&t in d)return d[t];switch(t){case za:case Ga:case Xa:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,d=t.prototype,A=d[Ka]||d["@@iterator"]||i&&d[i],g=!ja&&A||u(i),p="Array"===e&&d.entries||A;if(p&&(s=Ea(p.call(new t)))!==Object.prototype&&s.next&&(Lr(s,h,!0,!0),La[h]=Va),Ha&&i===Ga&&A&&A.name!==Ga&&(f=!0,g=function(){return ht(A,this)}),i)if(c={values:u(Ga),keys:a?g:u(za),entries:u(Xa)},o)for(l in c)(ja||f||!(l in d))&&ir(d,l,c[l]);else Dn({target:e,proto:!0,forced:ja||f},c);return o&&d[Ka]!==g&&ir(d,Ka,g,{name:i}),La[e]=g,c},Ya=function(t,e){return{value:t,done:e}},Ja=(me.f,"Array Iterator"),Za=Ir.set,to=Ir.getterFor(Ja);qa(Array,"Array",(function(t,e){Za(this,{type:Ja,target:Gt(t),index:0,kind:e})}),(function(){var t=to(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,Ya(void 0,!0);switch(t.kind){case"keys":return Ya(n,!1);case"values":return Ya(e[n],!1)}return Ya([n,e[n]],!1)}),"values");La.Arguments=La.Array;Wa(),Wa(),Wa();var eo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var no in eo)Lr(j[no],no),La[no]=La.Array;var ro=ga,io=me.f,ao=Ft("metadata"),oo=Function.prototype;void 0===oo[ao]&&io(oo,ao,{value:null}),_r("asyncDispose"),_r("dispose"),_r("metadata");var so=ro,co=so,lo=nt("Symbol"),uo=lo.keyFor,ho=w(lo.prototype.valueOf),fo=lo.isRegisteredSymbol||function(t){try{return void 0!==uo(ho(t))}catch(t){return!1}};Dn({target:"Symbol",stat:!0},{isRegisteredSymbol:fo});for(var Ao=nt("Symbol"),go=Ao.isWellKnownSymbol,po=nt("Object","getOwnPropertyNames"),mo=w(Ao.prototype.valueOf),bo=Tt("wks"),vo=0,yo=po(Ao),wo=yo.length;vo<wo;vo++)try{var ko=yo[vo];Mt(Ao[ko])&&Ft(ko)}catch(t){}var Co=function(t){if(go&&go(t))return!0;try{for(var e=mo(t),n=0,r=po(bo),i=r.length;n<i;n++)if(bo[r[n]]==e)return!0}catch(t){}return!1};Dn({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Co}),_r("customMatcher"),_r("observable"),Dn({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:fo}),Dn({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Co}),_r("matcher"),_r("metadataKey"),_r("patternMatch"),_r("replaceAll");var xo=co,Eo=xo,To=w("".charAt),Bo=w("".charCodeAt),_o=w("".slice),So=function(t){return function(e,n){var r,i,a=xr(U(e)),o=rn(n),s=a.length;return o<0||o>=s?t?"":void 0:(r=Bo(a,o))<55296||r>56319||o+1===s||(i=Bo(a,o+1))<56320||i>57343?t?To(a,o):r:t?_o(a,o,o+2):i-56320+(r-55296<<10)+65536}},Lo={codeAt:So(!1),charAt:So(!0)},Io=Lo.charAt,Mo="String Iterator",Oo=Ir.set,Do=Ir.getterFor(Mo);qa(String,"String",(function(t){Oo(this,{type:Mo,string:xr(t),index:0})}),(function(){var t,e=Do(this),n=e.string,r=e.index;return r>=n.length?Ya(void 0,!0):(t=Io(n,r),e.index+=t.length,Ya(t,!1))}));var Fo=nr.f("iterator"),No=Fo,Po=No;function Ro(t){return Ro="function"==typeof Eo&&"symbol"==typeof Po?function(t){return typeof t}:function(t){return t&&"function"==typeof Eo&&t.constructor===Eo&&t!==Eo.prototype?"symbol":typeof t},Ro(t)}var Qo=nr.f("toPrimitive");function Uo(t){var e=function(t,e){if("object"!=Ro(t)||!t)return t;var n=t[Qo];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ro(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ro(e)?e:e+""}function $o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),aa(t,Uo(r.key),r)}}function Ho(t,e,n){return e&&$o(t.prototype,e),n&&$o(t,n),aa(t,"prototype",{writable:!1}),t}function jo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ko(t,e){if(e&&("object"==Ro(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return jo(t)}Dn({target:"Object",stat:!0},{setPrototypeOf:$a});var zo=H.Object.setPrototypeOf,Go=zo;Dn({target:"Function",proto:!0,forced:Function.bind!==Fn},{bind:Fn});var Xo=Ni("Function","bind"),Vo=Function.prototype,Wo=function(t){var e=t.bind;return t===Vo||rt(Vo,t)&&e===Vo.bind?Xo:e},qo=Wo,Yo=u((function(){Ea(1)}));Dn({target:"Object",stat:!0,forced:Yo,sham:!ya},{getPrototypeOf:function(t){return Ea(yt(t))}});var Jo=H.Object.getPrototypeOf,Zo=Jo,ts=Zo;function es(t){var e;return es=Go?qo(e=ts).call(e):function(t){return t.__proto__||ts(t)},es(t)}Dn({target:"Object",stat:!0,sham:!$t},{create:Pn});var ns=H.Object,rs=function(t,e){return ns.create(t,e)},is=rs,as=is;function os(t,e){var n;return os=Go?qo(n=Go).call(n):function(t,e){return t.__proto__=e,t},os(t,e)}function ss(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=as(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),aa(t,"prototype",{writable:!1}),e&&os(t,e)}function cs(t,e,n){return(e=Uo(e))in t?aa(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ls=Ni("Array","concat"),us=Array.prototype,hs=function(t){var e=t.concat;return t===us||rt(us,t)&&e===us.concat?ls:e},fs=Wo,ds="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,As=TypeError,gs=ds,ps=function(t,e){if(t<e)throw new As("Not enough arguments");return t},ms=j.Function,bs=/MSIE .\./.test(G)||gs&&function(){var t=j.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),vs=function(t,e){var n=e?2:1;return bs?function(r,i){var a=ps(arguments.length,1)>n,o=$(r)?r:ms(r),s=a?Te(arguments,n):[],c=a?function(){ve(o,this,s)}:o;return e?t(c,i):t(c)}:t},ys=vs(j.setInterval,!0);Dn({global:!0,bind:!0,forced:j.setInterval!==ys},{setInterval:ys});var ws=vs(j.setTimeout,!0);Dn({global:!0,bind:!0,forced:j.setTimeout!==ws},{setTimeout:ws});var ks=H.setTimeout,Cs=Object.assign,xs=Object.defineProperty,Es=w([].concat),Ts=!Cs||u((function(){if($t&&1!==Cs({b:1},Cs(xs({},"a",{enumerable:!0,get:function(){xs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==Cs({},t)[n]||bn(Cs({},e)).join("")!==r}))?function(t,e){for(var n=yt(t),r=arguments.length,i=1,a=Tr.f,o=Kt.f;r>i;)for(var s,c=Q(arguments[i++]),l=a?Es(bn(c),a(c)):bn(c),u=l.length,h=0;u>h;)s=l[h++],$t&&!ht(o,c,s)||(n[s]=c[s]);return n}:Cs,Bs=Ts;Dn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bs},{assign:Bs});var _s=H.Object.assign,Ss=_s,Ls=u((function(){bn(1)}));Dn({target:"Object",stat:!0,forced:Ls},{keys:function(t){return bn(yt(t))}});var Is=H.Object.keys,Ms=function(t,e){var n=[][t];return!!n&&u((function(){n.call(null,e||function(){return 1},1)}))},Os=Mr.forEach,Ds=Ms("forEach")?[].forEach:function(t){return Os(this,t,arguments.length>1?arguments[1]:void 0)};Dn({target:"Array",proto:!0,forced:[].forEach!==Ds},{forEach:Ds});var Fs=Ni("Array","forEach"),Ns=Array.prototype,Ps={DOMTokenList:!0,NodeList:!0},Rs=function(t){var e=t.forEach;return t===Ns||rt(Ns,t)&&e===Ns.forEach||Bt(Ps,Ue(t))?Fs:e},Qs=Rs;var Us=function(){this.__data__=[],this.size=0};var $s=function(t,e){return t===e||t!=t&&e!=e};var Hs=function(t,e){for(var n=t.length;n--;)if($s(t[n][0],e))return n;return-1},js=Array.prototype.splice;var Ks=function(t){var e=this.__data__,n=Hs(e,t);return!(n<0)&&(n==e.length-1?e.pop():js.call(e,n,1),--this.size,!0)};var zs=function(t){var e=this.__data__,n=Hs(e,t);return n<0?void 0:e[n][1]};var Gs=function(t){return Hs(this.__data__,t)>-1};var Xs=function(t,e){var n=this.__data__,r=Hs(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Vs(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Vs.prototype.clear=Us,Vs.prototype.delete=Ks,Vs.prototype.get=zs,Vs.prototype.has=Gs,Vs.prototype.set=Xs;var Ws=Vs;var qs=function(){this.__data__=new Ws,this.size=0};var Ys=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var Js=function(t){return this.__data__.get(t)};var Zs=function(t){return this.__data__.has(t)},tc="object"==typeof e&&e&&e.Object===Object&&e,ec="object"==typeof self&&self&&self.Object===Object&&self,nc=tc||ec||Function("return this")(),rc=nc.Symbol,ic=Object.prototype,ac=ic.hasOwnProperty,oc=ic.toString,sc=rc?rc.toStringTag:void 0;var cc=function(t){var e=ac.call(t,sc),n=t[sc];try{t[sc]=void 0;var r=!0}catch(t){}var i=oc.call(t);return r&&(e?t[sc]=n:delete t[sc]),i},lc=Object.prototype.toString;var uc=function(t){return lc.call(t)},hc=rc?rc.toStringTag:void 0;var fc=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":hc&&hc in Object(t)?cc(t):uc(t)};var dc=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Ac=function(t){if(!dc(t))return!1;var e=fc(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},gc=nc["__core-js_shared__"],pc=function(){var t=/[^.]+$/.exec(gc&&gc.keys&&gc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var mc=function(t){return!!pc&&pc in t},bc=Function.prototype.toString;var vc=function(t){if(null!=t){try{return bc.call(t)}catch(t){}try{return t+""}catch(t){}}return""},yc=/^\[object .+?Constructor\]$/,wc=Function.prototype,kc=Object.prototype,Cc=wc.toString,xc=kc.hasOwnProperty,Ec=RegExp("^"+Cc.call(xc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Tc=function(t){return!(!dc(t)||mc(t))&&(Ac(t)?Ec:yc).test(vc(t))};var Bc=function(t,e){return null==t?void 0:t[e]};var _c=function(t,e){var n=Bc(t,e);return Tc(n)?n:void 0},Sc=_c(nc,"Map"),Lc=_c(Object,"create");var Ic=function(){this.__data__=Lc?Lc(null):{},this.size=0};var Mc=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Oc=Object.prototype.hasOwnProperty;var Dc=function(t){var e=this.__data__;if(Lc){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Oc.call(e,t)?e[t]:void 0},Fc=Object.prototype.hasOwnProperty;var Nc=function(t){var e=this.__data__;return Lc?void 0!==e[t]:Fc.call(e,t)};var Pc=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Lc&&void 0===e?"__lodash_hash_undefined__":e,this};function Rc(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Rc.prototype.clear=Ic,Rc.prototype.delete=Mc,Rc.prototype.get=Dc,Rc.prototype.has=Nc,Rc.prototype.set=Pc;var Qc=Rc;var Uc=function(){this.size=0,this.__data__={hash:new Qc,map:new(Sc||Ws),string:new Qc}};var $c=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Hc=function(t,e){var n=t.__data__;return $c(e)?n["string"==typeof e?"string":"hash"]:n.map};var jc=function(t){var e=Hc(this,t).delete(t);return this.size-=e?1:0,e};var Kc=function(t){return Hc(this,t).get(t)};var zc=function(t){return Hc(this,t).has(t)};var Gc=function(t,e){var n=Hc(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Xc(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Xc.prototype.clear=Uc,Xc.prototype.delete=jc,Xc.prototype.get=Kc,Xc.prototype.has=zc,Xc.prototype.set=Gc;var Vc=Xc;var Wc=function(t,e){var n=this.__data__;if(n instanceof Ws){var r=n.__data__;if(!Sc||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vc(r)}return n.set(t,e),this.size=n.size,this};function qc(t){var e=this.__data__=new Ws(t);this.size=e.size}qc.prototype.clear=qs,qc.prototype.delete=Ys,qc.prototype.get=Js,qc.prototype.has=Zs,qc.prototype.set=Wc;var Yc=qc,Jc=function(){try{var t=_c(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Zc=Jc;var tl=function(t,e,n){"__proto__"==e&&Zc?Zc(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var el=function(t,e,n){(void 0!==n&&!$s(t[e],n)||void 0===n&&!(e in t))&&tl(t,e,n)};var nl=function(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var c=o[t?s:++i];if(!1===n(a[c],c,a))break}return e}},rl=nl(),il=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?nc.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}})),al=nc.Uint8Array;var ol=function(t){var e=new t.constructor(t.byteLength);return new al(e).set(new al(t)),e};var sl=function(t,e){var n=e?ol(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var cl=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},ll=Object.create,ul=function(){function t(){}return function(e){if(!dc(e))return{};if(ll)return ll(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),hl=ul;var fl=function(t,e){return function(n){return t(e(n))}},dl=fl(Object.getPrototypeOf,Object),Al=Object.prototype;var gl=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Al)};var pl=function(t){return"function"!=typeof t.constructor||gl(t)?{}:hl(dl(t))};var ml=function(t){return null!=t&&"object"==typeof t};var bl=function(t){return ml(t)&&"[object Arguments]"==fc(t)},vl=Object.prototype,yl=vl.hasOwnProperty,wl=vl.propertyIsEnumerable,kl=bl(function(){return arguments}())?bl:function(t){return ml(t)&&yl.call(t,"callee")&&!wl.call(t,"callee")},Cl=kl,xl=Array.isArray;var El=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Tl=function(t){return null!=t&&El(t.length)&&!Ac(t)};var Bl=function(t){return ml(t)&&Tl(t)};var _l=function(){return!1},Sl=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?nc.Buffer:void 0,a=(i?i.isBuffer:void 0)||_l;t.exports=a})),Ll=Function.prototype,Il=Object.prototype,Ml=Ll.toString,Ol=Il.hasOwnProperty,Dl=Ml.call(Object);var Fl=function(t){if(!ml(t)||"[object Object]"!=fc(t))return!1;var e=dl(t);if(null===e)return!0;var n=Ol.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ml.call(n)==Dl},Nl={};Nl["[object Float32Array]"]=Nl["[object Float64Array]"]=Nl["[object Int8Array]"]=Nl["[object Int16Array]"]=Nl["[object Int32Array]"]=Nl["[object Uint8Array]"]=Nl["[object Uint8ClampedArray]"]=Nl["[object Uint16Array]"]=Nl["[object Uint32Array]"]=!0,Nl["[object Arguments]"]=Nl["[object Array]"]=Nl["[object ArrayBuffer]"]=Nl["[object Boolean]"]=Nl["[object DataView]"]=Nl["[object Date]"]=Nl["[object Error]"]=Nl["[object Function]"]=Nl["[object Map]"]=Nl["[object Number]"]=Nl["[object Object]"]=Nl["[object RegExp]"]=Nl["[object Set]"]=Nl["[object String]"]=Nl["[object WeakMap]"]=!1;var Pl=function(t){return ml(t)&&El(t.length)&&!!Nl[fc(t)]};var Rl=function(t){return function(e){return t(e)}},Ql=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&tc.process,a=function(){try{var t=r&&r.require&&r.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a})),Ul=Ql&&Ql.isTypedArray,$l=Ul?Rl(Ul):Pl;var Hl=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},jl=Object.prototype.hasOwnProperty;var Kl=function(t,e,n){var r=t[e];jl.call(t,e)&&$s(r,n)&&(void 0!==n||e in t)||tl(t,e,n)};var zl=function(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var s=e[a],c=r?r(n[s],t[s],s,n,t):void 0;void 0===c&&(c=t[s]),i?tl(n,s,c):Kl(n,s,c)}return n};var Gl=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},Xl=/^(?:0|[1-9]\d*)$/;var Vl=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Xl.test(t))&&t>-1&&t%1==0&&t<e},Wl=Object.prototype.hasOwnProperty;var ql=function(t,e){var n=xl(t),r=!n&&Cl(t),i=!n&&!r&&Sl(t),a=!n&&!r&&!i&&$l(t),o=n||r||i||a,s=o?Gl(t.length,String):[],c=s.length;for(var l in t)!e&&!Wl.call(t,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Vl(l,c))||s.push(l);return s};var Yl=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},Jl=Object.prototype.hasOwnProperty;var Zl=function(t){if(!dc(t))return Yl(t);var e=gl(t),n=[];for(var r in t)("constructor"!=r||!e&&Jl.call(t,r))&&n.push(r);return n};var tu=function(t){return Tl(t)?ql(t,!0):Zl(t)};var eu=function(t){return zl(t,tu(t))};var nu=function(t,e,n,r,i,a,o){var s=Hl(t,n),c=Hl(e,n),l=o.get(c);if(l)el(t,n,l);else{var u=a?a(s,c,n+"",t,e,o):void 0,h=void 0===u;if(h){var f=xl(c),d=!f&&Sl(c),A=!f&&!d&&$l(c);u=c,f||d||A?xl(s)?u=s:Bl(s)?u=cl(s):d?(h=!1,u=il(c,!0)):A?(h=!1,u=sl(c,!0)):u=[]:Fl(c)||Cl(c)?(u=s,Cl(s)?u=eu(s):dc(s)&&!Ac(s)||(u=pl(c))):h=!1}h&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),el(t,n,u)}};var ru=function t(e,n,r,i,a){e!==n&&rl(n,(function(o,s){if(a||(a=new Yc),dc(o))nu(e,n,s,r,t,i,a);else{var c=i?i(Hl(e,s),o,s+"",e,n,a):void 0;void 0===c&&(c=o),el(e,s,c)}}),tu)};var iu=function(t){return t};var au=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},ou=Math.max;var su=function(t,e,n){return e=ou(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=ou(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(o),au(t,this,s)}};var cu=function(t){return function(){return t}},lu=Zc?function(t,e){return Zc(t,"toString",{configurable:!0,enumerable:!1,value:cu(e),writable:!0})}:iu,uu=lu,hu=Date.now;var fu=function(t){var e=0,n=0;return function(){var r=hu(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},du=fu(uu);var Au=function(t,e){return du(su(t,e,iu),t+"")};var gu=function(t,e,n){if(!dc(n))return!1;var r=typeof e;return!!("number"==r?Tl(n)&&Vl(e,n.length):"string"==r&&e in n)&&$s(n[e],t)};var pu=function(t){return Au((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,o&&gu(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,a)}return e}))},mu=pu((function(t,e,n,r){ru(t,e,n,r)})),bu=mu,vu=Li,yu=fn.indexOf,wu=ie([].indexOf),ku=!!wu&&1/wu([1],1,-0)<0,Cu=ku||!Ms("indexOf");Dn({target:"Array",proto:!0,forced:Cu},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return ku?wu(this,t,e)||0:yu(this,t,e)}});var xu=Ni("Array","indexOf"),Eu=Array.prototype,Tu=function(t){var e=t.indexOf;return t===Eu||rt(Eu,t)&&e===Eu.indexOf?xu:e},Bu=Tu;function _u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(Bu(e).call(e,r)>=0)continue;n[r]=t[r]}return n}(t,e);if(vu){var a=vu(t);for(r=0;r<a.length;r++)n=a[r],Bu(e).call(e,n)>=0||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var Su=RangeError,Lu=function(t){var e=xr(U(this)),n="",r=rn(t);if(r<0||r===1/0)throw new Su("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n},Iu=w(Lu),Mu=w("".slice),Ou=Math.ceil,Du=function(t){return function(e,n,r){var i,a,o=xr(U(e)),s=cn(n),c=o.length,l=void 0===r?" ":xr(r);return s<=c||""===l?o:((a=Iu(l,Ou((i=s-c)/l.length))).length>i&&(a=Mu(a,0,i)),t?o+a:a+o)}},Fu={start:Du(!1),end:Du(!0)}.start,Nu=RangeError,Pu=isFinite,Ru=Math.abs,Qu=Date.prototype,Uu=Qu.toISOString,$u=w(Qu.getTime),Hu=w(Qu.getUTCDate),ju=w(Qu.getUTCFullYear),Ku=w(Qu.getUTCHours),zu=w(Qu.getUTCMilliseconds),Gu=w(Qu.getUTCMinutes),Xu=w(Qu.getUTCMonth),Vu=w(Qu.getUTCSeconds),Wu=u((function(){return"0385-07-25T07:06:39.999Z"!==Uu.call(new Date(-50000000000001))}))||!u((function(){Uu.call(new Date(NaN))}))?function(){if(!Pu($u(this)))throw new Nu("Invalid time value");var t=this,e=ju(t),n=zu(t),r=e<0?"-":e>9999?"+":"";return r+Fu(Ru(e),r?6:4,0)+"-"+Fu(Xu(t)+1,2,0)+"-"+Fu(Hu(t),2,0)+"T"+Fu(Ku(t),2,0)+":"+Fu(Gu(t),2,0)+":"+Fu(Vu(t),2,0)+"."+Fu(n,3,0)+"Z"}:Uu,qu=Wu,Yu=u((function(){return null!==new Date(NaN).toJSON()||1!==ht(Date.prototype.toJSON,{toISOString:function(){return 1}})}));Dn({target:"Date",proto:!0,forced:Yu},{toJSON:function(t){var e=yt(this),n=Rt(e,"number");return"number"!=typeof n||isFinite(n)?"toISOString"in e||"Date"!==x(e)?e.toISOString():ht(qu,e):null}}),H.JSON||(H.JSON={stringify:JSON.stringify});var Ju=function(t,e,n){return ve(H.JSON.stringify,null,arguments)},Zu=Ju,th=Mr.find,eh="find",nh=!0;eh in[]&&Array(1)[eh]((function(){nh=!1})),Dn({target:"Array",proto:!0,forced:nh},{find:function(t){return th(this,t,arguments.length>1?arguments[1]:void 0)}}),Wa();var rh=Ni("Array","find"),ih=Array.prototype,ah=function(t){var e=t.find;return t===ih||rt(ih,t)&&e===ih.find?rh:e},oh="\t\n\v\f\r                 \u2028\u2029\ufeff",sh=w("".replace),ch=RegExp("^["+oh+"]+"),lh=RegExp("(^|[^"+oh+"])["+oh+"]+$"),uh=function(t){return function(e){var n=xr(U(e));return 1&t&&(n=sh(n,ch,"")),2&t&&(n=sh(n,lh,"$1")),n}},hh={start:uh(1),end:uh(2),trim:uh(3)},fh=Qa.PROPER,dh=hh,Ah=dh.trim;Dn({target:"String",proto:!0,forced:function(t){return u((function(){return!!oh[t]()||"​…᠎"!=="​…᠎"[t]()||fh&&oh[t].name!==t}))}("trim")},{trim:function(){return Ah(this)}});var gh=Ni("String","trim"),ph=String.prototype,mh=function(t){var e=t.trim;return"string"==typeof t||t===ph||rt(ph,t)&&e===ph.trim?gh:e},bh=function(t,e,n){var r,i;ue(t);try{if(!(r=Ot(t,"return"))){if("throw"===e)throw n;return n}r=ht(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return ue(r),n},vh=Ft("iterator"),yh=Array.prototype,wh=Ft("iterator"),kh=function(t){if(!P(t))return Ot(t,wh)||Ot(t,"@@iterator")||La[Ue(t)]},Ch=TypeError,xh=function(t,e,n,r){try{return r?e(ue(n)[0],n[1]):e(n)}catch(e){bh(t,"throw",e)}},Eh=function(t){return void 0!==t&&(La.Array===t||yh[vh]===t)},Th=function(t,e){var n=arguments.length<2?kh(t):e;if(ut(n))return ue(ht(n,t));throw new Ch(ct(t)+" is not iterable")},Bh=Array,_h=Ft("iterator"),Sh=!1;try{var Lh=0,Ih={next:function(){return{done:!!Lh++}},return:function(){Sh=!0}};Ih[_h]=function(){return this},Array.from(Ih,(function(){throw 2}))}catch(t){}var Mh=function(t){var e=yt(t),n=Ye(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=void 0!==i;a&&(i=ke(i,r>2?arguments[2]:void 0));var o,s,c,l,u,h,f=kh(e),d=0;if(!f||this===Bh&&Eh(f))for(o=un(e),s=n?new this(o):Bh(o);o>d;d++)h=a?i(e[d],d):e[d],Vi(s,d,h);else for(s=n?new this:[],u=(l=Th(e,f)).next;!(c=ht(u,l)).done;d++)h=a?xh(l,i,[c.value,d],!0):c.value,Vi(s,d,h);return s.length=d,s},Oh=function(t,e){try{if(!e&&!Sh)return!1}catch(t){return!1}var n=!1;try{var r={};r[_h]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Dh=!Oh((function(t){Array.from(t)}));Dn({target:"Array",stat:!0,forced:Dh},{from:Mh});var Fh=H.Array.from,Nh=Fh,Ph=Ft("match"),Rh=function(t){var e;return ft(t)&&(void 0!==(e=t[Ph])?!!e:"RegExp"===x(t))},Qh=TypeError,Uh=Ft("match"),$h=function(t){if(Rh(t))throw new Qh("The method doesn't accept regular expressions");return t},Hh=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Uh]=!1,"/./"[t](e)}catch(t){}}return!1},jh=(ye.f,ie("".slice)),Kh=Math.min,zh=Hh("startsWith");Dn({target:"String",proto:!0,forced:!zh},{startsWith:function(t){var e=xr(U(this));$h(t);var n=cn(Kh(arguments.length>1?arguments[1]:void 0,e.length)),r=xr(t);return jh(e,n,n+r.length)===r}});var Gh=Ni("String","startsWith"),Xh=String.prototype,Vh=function(t){var e=t.startsWith;return"string"==typeof t||t===Xh||rt(Xh,t)&&e===Xh.startsWith?Gh:e},Wh=r((function(t,e){t.exports=function(){var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(t),l=c&&/Qt\/\d+\.\d+/.test(t),u=!a&&/Chrome\//.test(t),h=/Opera\//.test(t),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),A=/PhantomJS/.test(t),g=!a&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),p=/Android/.test(t),m=g||p||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),b=g||/Mac/.test(e),v=/\bCrOS\b/.test(t),y=/win/i.test(e),w=h&&t.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(h=!1,c=!0);var k=b&&(l||h&&(null==w||w<12.11)),C=n||o&&s>=9;function x(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var E,T=function(t,e){var n=t.className,r=x(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function B(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function _(t,e){return B(t).appendChild(e)}function S(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var a=0;a<e.length;++a)i.appendChild(e[a]);return i}function L(t,e,n,r){var i=S(t,e,n,r);return i.setAttribute("role","presentation"),i}function I(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function M(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function O(t,e){var n=t.className;x(e).test(n)||(t.className+=(n?" ":"")+e)}function D(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!x(n[r]).test(e)&&(e+=" "+n[r]);return e}E=document.createRange?function(t,e,n,r){var i=document.createRange();return i.setEnd(r||t,n),i.setStart(t,e),i}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(t){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var F=function(t){t.select()};function N(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function P(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function R(t,e,n,r,i){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var a=r||0,o=i||0;;){var s=t.indexOf("\t",a);if(s<0||s>=e)return o+(e-a);o+=s-a,o+=n-o%n,a=s+1}}g?F=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:o&&(F=function(t){try{t.select()}catch(t){}});var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};function U(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}Q.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Q.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var $=50,H={toString:function(){return"CodeMirror.Pass"}},j={scroll:!1},K={origin:"*mouse"},z={origin:"+move"};function G(t,e,n){for(var r=0,i=0;;){var a=t.indexOf("\t",r);-1==a&&(a=t.length);var o=a-r;if(a==t.length||i+o>=e)return r+Math.min(o,e-i);if(i+=a-r,r=a+1,(i+=n-i%n)>=e)return r}}var X=[""];function V(t){for(;X.length<=t;)X.push(W(X)+" ");return X[t]}function W(t){return t[t.length-1]}function q(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function Y(t,e,n){for(var r=0,i=n(e);r<t.length&&n(t[r])<=i;)r++;t.splice(r,0,e)}function J(){}function Z(t,e){var n;return Object.create?n=Object.create(t):(J.prototype=t,n=new J),e&&P(e,n),n}var tt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||tt.test(t))}function nt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&et(t))||e.test(t):et(t)}function rt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var it=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function at(t){return t.charCodeAt(0)>=768&&it.test(t)}function ot(t,e,n){for(;(n<0?e>0:e<t.length)&&at(t.charAt(e));)e+=n;return e}function st(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var i=(e+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==e)return t(a)?e:n;t(a)?n=a:e=a+r}}function ct(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,a=0;a<t.length;++a){var o=t[a];(o.from<n&&o.to>e||e==n&&o.to==e)&&(r(Math.max(o.from,e),Math.min(o.to,n),1==o.level?"rtl":"ltr",a),i=!0)}i||r(e,n,"ltr")}var lt=null;function ut(t,e,n){var r;lt=null;for(var i=0;i<t.length;++i){var a=t[i];if(a.from<e&&a.to>e)return i;a.to==e&&(a.from!=a.to&&"before"==n?r=i:lt=i),a.from==e&&(a.from!=a.to&&"before"!=n?r=i:lt=i)}return null!=r?r:lt}var ht=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var l="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!r.test(t))return!1;for(var u=t.length,h=[],f=0;f<u;++f)h.push(n(t.charCodeAt(f)));for(var d=0,A=l;d<u;++d){var g=h[d];"m"==g?h[d]=A:A=g}for(var p=0,m=l;p<u;++p){var b=h[p];"1"==b&&"r"==m?h[p]="n":a.test(b)&&(m=b,"r"==b&&(h[p]="R"))}for(var v=1,y=h[0];v<u-1;++v){var w=h[v];"+"==w&&"1"==y&&"1"==h[v+1]?h[v]="1":","!=w||y!=h[v+1]||"1"!=y&&"n"!=y||(h[v]=y),y=w}for(var k=0;k<u;++k){var C=h[k];if(","==C)h[k]="N";else if("%"==C){var x=void 0;for(x=k+1;x<u&&"%"==h[x];++x);for(var E=k&&"!"==h[k-1]||x<u&&"1"==h[x]?"1":"N",T=k;T<x;++T)h[T]=E;k=x-1}}for(var B=0,_=l;B<u;++B){var S=h[B];"L"==_&&"1"==S?h[B]="L":a.test(S)&&(_=S)}for(var L=0;L<u;++L)if(i.test(h[L])){var I=void 0;for(I=L+1;I<u&&i.test(h[I]);++I);for(var M="L"==(L?h[L-1]:l),O=M==("L"==(I<u?h[I]:l))?M?"L":"R":l,D=L;D<I;++D)h[D]=O;L=I-1}for(var F,N=[],P=0;P<u;)if(o.test(h[P])){var R=P;for(++P;P<u&&o.test(h[P]);++P);N.push(new c(0,R,P))}else{var Q=P,U=N.length,$="rtl"==e?1:0;for(++P;P<u&&"L"!=h[P];++P);for(var H=Q;H<P;)if(s.test(h[H])){Q<H&&(N.splice(U,0,new c(1,Q,H)),U+=$);var j=H;for(++H;H<P&&s.test(h[H]);++H);N.splice(U,0,new c(2,j,H)),U+=$,Q=H}else++H;Q<P&&N.splice(U,0,new c(1,Q,P))}return"ltr"==e&&(1==N[0].level&&(F=t.match(/^\s+/))&&(N[0].from=F[0].length,N.unshift(new c(0,0,F[0].length))),1==W(N).level&&(F=t.match(/\s+$/))&&(W(N).to-=F[0].length,N.push(new c(0,u-F[0].length,u)))),"rtl"==e?N.reverse():N}}();function ft(t,e){var n=t.order;return null==n&&(n=t.order=ht(t.text,e)),n}var dt=[],At=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||dt).concat(n)}};function gt(t,e){return t._handlers&&t._handlers[e]||dt}function pt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,i=r&&r[e];if(i){var a=U(i,n);a>-1&&(r[e]=i.slice(0,a).concat(i.slice(a+1)))}}}function mt(t,e){var n=gt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function bt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),mt(t,n||e.type,t,e),xt(e)||e.codemirrorIgnore}function vt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==U(n,e[r])&&n.push(e[r])}function yt(t,e){return gt(t,e).length>0}function wt(t){t.prototype.on=function(t,e){At(this,t,e)},t.prototype.off=function(t,e){pt(this,t,e)}}function kt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ct(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function xt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Et(t){kt(t),Ct(t)}function Tt(t){return t.target||t.srcElement}function Bt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),b&&t.ctrlKey&&1==e&&(e=3),e}var _t,St,Lt=function(){if(o&&s<9)return!1;var t=S("div");return"draggable"in t||"dragDrop"in t}();function It(t){if(null==_t){var e=S("span","​");_(t,S("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(_t=e.offsetWidth<=1&&e.offsetHeight>2&&!(o&&s<8))}var n=_t?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Mt(t){if(null!=St)return St;var e=_(t,document.createTextNode("AخA")),n=E(e,0,1).getBoundingClientRect(),r=E(e,1,2).getBoundingClientRect();return B(t),!(!n||n.left==n.right)&&(St=r.right-n.right<3)}var Ot,Dt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var a=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),o=a.indexOf("\r");-1!=o?(n.push(a.slice(0,o)),e+=o+1):(n.push(a),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Ft=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Nt="oncopy"in(Ot=S("div"))||(Ot.setAttribute("oncopy","return;"),"function"==typeof Ot.oncopy),Pt=null;function Rt(t){if(null!=Pt)return Pt;var e=_(t,S("span","x")),n=e.getBoundingClientRect(),r=E(e,0,1).getBoundingClientRect();return Pt=Math.abs(n.left-r.left)>1}var Qt={},Ut={};function $t(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Qt[t]=e}function Ht(t,e){Ut[t]=e}function jt(t){if("string"==typeof t&&Ut.hasOwnProperty(t))t=Ut[t];else if(t&&"string"==typeof t.name&&Ut.hasOwnProperty(t.name)){var e=Ut[t.name];"string"==typeof e&&(e={name:e}),(t=Z(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return jt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return jt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Kt(t,e){e=jt(e);var n=Qt[e.name];if(!n)return Kt(t,"text/plain");var r=n(t,e);if(zt.hasOwnProperty(e.name)){var i=zt[e.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r["_"+a]=r[a]),r[a]=i[a])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var o in e.modeProps)r[o]=e.modeProps[o];return r}var zt={};function Gt(t,e){P(e,zt.hasOwnProperty(t)?zt[t]:zt[t]={})}function Xt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Vt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Wt(t,e,n){return!t.startState||t.startState(e,n)}var qt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Yt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(e<a){n=i;break}e-=a}return n.lines[e]}function Jt(t,e,n){var r=[],i=e.line;return t.iter(e.line,n.line+1,(function(t){var a=t.text;i==n.line&&(a=a.slice(0,n.ch)),i==e.line&&(a=a.slice(e.ch)),r.push(a),++i})),r}function Zt(t,e,n){var r=[];return t.iter(e,n,(function(t){r.push(t.text)})),r}function te(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function ee(t){if(null==t.parent)return null;for(var e=t.parent,n=U(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var i=0;r.children[i]!=e;++i)n+=r.children[i].chunkSize();return n+e.first}function ne(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var i=t.children[r],a=i.height;if(e<a){t=i;continue t}e-=a,n+=i.chunkSize()}return n}while(!t.lines);for(var o=0;o<t.lines.length;++o){var s=t.lines[o].height;if(e<s)break;e-=s}return n+o}function re(t,e){return e>=t.first&&e<t.first+t.size}function ie(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function ae(t,e,n){if(void 0===n&&(n=null),!(this instanceof ae))return new ae(t,e,n);this.line=t,this.ch=e,this.sticky=n}function oe(t,e){return t.line-e.line||t.ch-e.ch}function se(t,e){return t.sticky==e.sticky&&0==oe(t,e)}function ce(t){return ae(t.line,t.ch)}function le(t,e){return oe(t,e)<0?e:t}function ue(t,e){return oe(t,e)<0?t:e}function he(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function fe(t,e){if(e.line<t.first)return ae(t.first,0);var n=t.first+t.size-1;return e.line>n?ae(n,Yt(t,n).text.length):de(e,Yt(t,e.line).text.length)}function de(t,e){var n=t.ch;return null==n||n>e?ae(t.line,e):n<0?ae(t.line,0):t}function Ae(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=fe(t,e[r]);return n}qt.prototype.eol=function(){return this.pos>=this.string.length},qt.prototype.sol=function(){return this.pos==this.lineStart},qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qt.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},qt.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},qt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},qt.prototype.skipToEnd=function(){this.pos=this.string.length},qt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},qt.prototype.backUp=function(t){this.pos-=t},qt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=R(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},qt.prototype.indentation=function(){return R(this.string,null,this.tabSize)-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},qt.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},qt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},qt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},qt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ge=function(t,e){this.state=t,this.lookAhead=e},pe=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function me(t,e,n,r){var i=[t.state.modeGen],a={};Te(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],c=1,l=0;n.state=!0,Te(t,e.text,s.mode,n,(function(t,e){for(var n=c;l<t;){var r=i[c];r>t&&i.splice(c,1,t,i[c+1],r),c+=2,l=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,c-n,t,"overlay "+e),c=n+2;else for(;n<c;n+=2){var a=i[n+1];i[n+1]=(a?a+" ":"")+"overlay "+e}}),a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},c=0;c<t.state.overlays.length;++c)s(c);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function be(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=ve(t,ee(e)),i=e.text.length>t.options.maxHighlightLength&&Xt(t.doc.mode,r.state),a=me(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=a.styles,a.classes?e.styleClasses=a.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function ve(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new pe(r,!0,e);var a=Be(t,e,n),o=a>r.first&&Yt(r,a-1).stateAfter,s=o?pe.fromSaved(r,o,a):new pe(r,Wt(r.mode),a);return r.iter(a,e,(function(n){ye(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ye(t,e,n,r){var i=t.doc.mode,a=new qt(e,t.options.tabSize,n);for(a.start=a.pos=r||0,""==e&&we(i,n.state);!a.eol();)ke(i,a,n.state),a.start=a.pos}function we(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Vt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function ke(t,e,n,r){for(var i=0;i<10;i++){r&&(r[0]=Vt(t,n).mode);var a=t.token(e,n);if(e.pos>e.start)return a}throw new Error("Mode "+t.name+" failed to advance stream.")}pe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},pe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},pe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pe.fromSaved=function(t,e,n){return e instanceof ge?new pe(t,Xt(t.mode,e.state),n,e.lookAhead):new pe(t,Xt(t.mode,e),n)},pe.prototype.save=function(t){var e=!1!==t?Xt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ge(e,this.maxLookAhead):e};var Ce=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function xe(t,e,n,r){var i,a,o=t.doc,s=o.mode,c=Yt(o,(e=fe(o,e)).line),l=ve(t,e.line,n),u=new qt(c.text,t.options.tabSize,l);for(r&&(a=[]);(r||u.pos<e.ch)&&!u.eol();)u.start=u.pos,i=ke(s,u,l.state),r&&a.push(new Ce(u,i,Xt(o.mode,l.state)));return r?a:new Ce(u,i,l.state)}function Ee(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[r])||(e[r]+=" "+n[2])}return t}function Te(t,e,n,r,i,a,o){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var c,l=0,u=null,h=new qt(e,t.options.tabSize,r),f=t.options.addModeClass&&[null];for(""==e&&Ee(we(n,r.state),a);!h.eol();){if(h.pos>t.options.maxHighlightLength?(s=!1,o&&ye(t,e,r,h.pos),h.pos=e.length,c=null):c=Ee(ke(n,h,r.state,f),a),f){var d=f[0].name;d&&(c="m-"+(c?d+" "+c:d))}if(!s||u!=c){for(;l<h.start;)i(l=Math.min(h.start,l+5e3),u);u=c}h.start=h.pos}for(;l<h.pos;){var A=Math.min(h.pos,l+5e3);i(A,u),l=A}}function Be(t,e,n){for(var r,i,a=t.doc,o=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>o;--s){if(s<=a.first)return a.first;var c=Yt(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof ge?l.lookAhead:0)<=a.modeFrontier))return s;var u=R(c.text,null,t.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function _e(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var i=Yt(t,r).stateAfter;if(i&&(!(i instanceof ge)||r+i.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}var Se=!1,Le=!1;function Ie(){Se=!0}function Me(){Le=!0}function Oe(t,e,n){this.marker=t,this.from=e,this.to=n}function De(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function Fe(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function Ne(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}function Pe(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var a=t[i],o=a.marker;if(null==a.from||(o.inclusiveLeft?a.from<=e:a.from<e)||a.from==e&&"bookmark"==o.type&&(!n||!a.marker.insertLeft)){var s=null==a.to||(o.inclusiveRight?a.to>=e:a.to>e);(r||(r=[])).push(new Oe(o,a.from,s?null:a.to))}}return r}function Re(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var a=t[i],o=a.marker;if(null==a.to||(o.inclusiveRight?a.to>=e:a.to>e)||a.from==e&&"bookmark"==o.type&&(!n||a.marker.insertLeft)){var s=null==a.from||(o.inclusiveLeft?a.from<=e:a.from<e);(r||(r=[])).push(new Oe(o,s?null:a.from-e,null==a.to?null:a.to-e))}}return r}function Qe(t,e){if(e.full)return null;var n=re(t,e.from.line)&&Yt(t,e.from.line).markedSpans,r=re(t,e.to.line)&&Yt(t,e.to.line).markedSpans;if(!n&&!r)return null;var i=e.from.ch,a=e.to.ch,o=0==oe(e.from,e.to),s=Pe(n,i,o),c=Re(r,a,o),l=1==e.text.length,u=W(e.text).length+(l?i:0);if(s)for(var h=0;h<s.length;++h){var f=s[h];if(null==f.to){var d=De(c,f.marker);d?l&&(f.to=null==d.to?null:d.to+u):f.to=i}}if(c)for(var A=0;A<c.length;++A){var g=c[A];null!=g.to&&(g.to+=u),null==g.from?De(s,g.marker)||(g.from=u,l&&(s||(s=[])).push(g)):(g.from+=u,l&&(s||(s=[])).push(g))}s&&(s=Ue(s)),c&&c!=s&&(c=Ue(c));var p=[s];if(!l){var m,b=e.text.length-2;if(b>0&&s)for(var v=0;v<s.length;++v)null==s[v].to&&(m||(m=[])).push(new Oe(s[v].marker,null,null));for(var y=0;y<b;++y)p.push(m);p.push(c)}return p}function Ue(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function $e(t,e,n){var r=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=U(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:e,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),c=0;c<i.length;++c){var l=i[c];if(!(oe(l.to,s.from)<0||oe(l.from,s.to)>0)){var u=[c,1],h=oe(l.from,s.from),f=oe(l.to,s.to);(h<0||!o.inclusiveLeft&&!h)&&u.push({from:l.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function He(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function je(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Ke(t){return t.inclusiveLeft?-1:0}function ze(t){return t.inclusiveRight?1:0}function Ge(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),i=e.find(),a=oe(r.from,i.from)||Ke(t)-Ke(e);if(a)return-a;var o=oe(r.to,i.to)||ze(t)-ze(e);return o||e.id-t.id}function Xe(t,e){var n,r=Le&&t.markedSpans;if(r)for(var i=void 0,a=0;a<r.length;++a)(i=r[a]).marker.collapsed&&null==(e?i.from:i.to)&&(!n||Ge(n,i.marker)<0)&&(n=i.marker);return n}function Ve(t){return Xe(t,!0)}function We(t){return Xe(t,!1)}function qe(t,e){var n,r=Le&&t.markedSpans;if(r)for(var i=0;i<r.length;++i){var a=r[i];a.marker.collapsed&&(null==a.from||a.from<e)&&(null==a.to||a.to>e)&&(!n||Ge(n,a.marker)<0)&&(n=a.marker)}return n}function Ye(t,e,n,r,i){var a=Yt(t,e),o=Le&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var c=o[s];if(c.marker.collapsed){var l=c.marker.find(0),u=oe(l.from,n)||Ke(c.marker)-Ke(i),h=oe(l.to,r)||ze(c.marker)-ze(i);if(!(u>=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?oe(l.to,n)>=0:oe(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?oe(l.from,r)<=0:oe(l.from,r)<0)))return!0}}}function Je(t){for(var e;e=Ve(t);)t=e.find(-1,!0).line;return t}function Ze(t){for(var e;e=We(t);)t=e.find(1,!0).line;return t}function tn(t){for(var e,n;e=We(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function en(t,e){var n=Yt(t,e),r=Je(n);return n==r?e:ee(r)}function nn(t,e){if(e>t.lastLine())return e;var n,r=Yt(t,e);if(!rn(t,r))return e;for(;n=We(r);)r=n.find(1,!0).line;return ee(r)+1}function rn(t,e){var n=Le&&e.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&an(t,e,r))return!0}}function an(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return an(t,r.line,De(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var i=void 0,a=0;a<e.markedSpans.length;++a)if((i=e.markedSpans[a]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&an(t,e,i))return!0}function on(t){for(var e=0,n=(t=Je(t)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==t)break;e+=i.height}for(var a=n.parent;a;a=(n=a).parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;e+=s.height}return e}function sn(t){if(0==t.height)return 0;for(var e,n=t.text.length,r=t;e=Ve(r);){var i=e.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=t;e=We(r);){var a=e.find(0,!0);n-=r.text.length-a.from.ch,n+=(r=a.to.line).text.length-a.to.ch}return n}function cn(t){var e=t.display,n=t.doc;e.maxLine=Yt(n,n.first),e.maxLineLength=sn(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=sn(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var ln=function(t,e,n){this.text=t,je(this,e),this.height=n?n(this):1};function un(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),He(t),je(t,n);var i=r?r(t):1;i!=t.height&&te(t,i)}function hn(t){t.parent=null,He(t)}ln.prototype.lineNo=function(){return ee(this)},wt(ln);var fn={},dn={};function An(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?dn:fn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function gn(t,e){var n=L("span",null,null,c?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var a=i?e.rest[i-1]:e.line,o=void 0;r.pos=0,r.addToken=mn,Mt(t.display.measure)&&(o=ft(a,t.doc.direction))&&(r.addToken=vn(r.addToken,o)),r.map=[],wn(a,r,be(t,a,e!=t.display.externalMeasured&&ee(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=D(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=D(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(It(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return mt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function pn(t){var e=S("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function mn(t,e,n,r,i,a,c){if(e){var l,u=t.splitSpaces?bn(e,t.trailingSpace):e,h=t.cm.state.specialChars,f=!1;if(h.test(e)){l=document.createDocumentFragment();for(var d=0;;){h.lastIndex=d;var A=h.exec(e),g=A?A.index-d:e.length-d;if(g){var p=document.createTextNode(u.slice(d,d+g));o&&s<9?l.appendChild(S("span",[p])):l.appendChild(p),t.map.push(t.pos,t.pos+g,p),t.col+=g,t.pos+=g}if(!A)break;d+=g+1;var m=void 0;if("\t"==A[0]){var b=t.cm.options.tabSize,v=b-t.col%b;(m=l.appendChild(S("span",V(v),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),t.col+=v}else"\r"==A[0]||"\n"==A[0]?((m=l.appendChild(S("span","\r"==A[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",A[0]),t.col+=1):((m=t.cm.options.specialCharPlaceholder(A[0])).setAttribute("cm-text",A[0]),o&&s<9?l.appendChild(S("span",[m])):l.appendChild(m),t.col+=1);t.map.push(t.pos,t.pos+1,m),t.pos++}}else t.col+=e.length,l=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,l),o&&s<9&&(f=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||i||f||a||c){var y=n||"";r&&(y+=r),i&&(y+=i);var w=S("span",[l],y,a);if(c)for(var k in c)c.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&w.setAttribute(k,c[k]);return t.content.appendChild(w)}t.content.appendChild(l)}}function bn(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;i<t.length;i++){var a=t.charAt(i);" "!=a||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(a=" "),r+=a,n=" "==a}return r}function vn(t,e){return function(n,r,i,a,o,s,c){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,u=l+r.length;;){for(var h=void 0,f=0;f<e.length&&!((h=e[f]).to>l&&h.from<=l);f++);if(h.to>=u)return t(n,r,i,a,o,s,c);t(n,r.slice(0,h.to-l),i,a,null,s,c),a=null,r=r.slice(h.to-l),l=h.to}}}function yn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function wn(t,e,n){var r=t.markedSpans,i=t.text,a=0;if(r)for(var o,s,c,l,u,h,f,d=i.length,A=0,g=1,p="",m=0;;){if(m==A){c=l=u=s="",f=null,h=null,m=1/0;for(var b=[],v=void 0,y=0;y<r.length;++y){var w=r[y],k=w.marker;if("bookmark"==k.type&&w.from==A&&k.widgetNode)b.push(k);else if(w.from<=A&&(null==w.to||w.to>A||k.collapsed&&w.to==A&&w.from==A)){if(null!=w.to&&w.to!=A&&m>w.to&&(m=w.to,l=""),k.className&&(c+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==A&&(u+=" "+k.startStyle),k.endStyle&&w.to==m&&(v||(v=[])).push(k.endStyle,w.to),k.title&&((f||(f={})).title=k.title),k.attributes)for(var C in k.attributes)(f||(f={}))[C]=k.attributes[C];k.collapsed&&(!h||Ge(h.marker,k)<0)&&(h=w)}else w.from>A&&m>w.from&&(m=w.from)}if(v)for(var x=0;x<v.length;x+=2)v[x+1]==m&&(l+=" "+v[x]);if(!h||h.from==A)for(var E=0;E<b.length;++E)yn(e,0,b[E]);if(h&&(h.from||0)==A){if(yn(e,(null==h.to?d+1:h.to)-A,h.marker,null==h.from),null==h.to)return;h.to==A&&(h=!1)}}if(A>=d)break;for(var T=Math.min(d,m);;){if(p){var B=A+p.length;if(!h){var _=B>T?p.slice(0,T-A):p;e.addToken(e,_,o?o+c:c,u,A+_.length==m?l:"",s,f)}if(B>=T){p=p.slice(T-A),A=T;break}A=B,u=""}p=i.slice(a,a=n[g++]),o=An(n[g++],e.cm.options)}}else for(var S=1;S<n.length;S+=2)e.addToken(e,i.slice(a,a=n[S]),An(n[S+1],e.cm.options))}function kn(t,e,n){this.line=e,this.rest=tn(e),this.size=this.rest?ee(W(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rn(t,e)}function Cn(t,e,n){for(var r,i=[],a=e;a<n;a=r){var o=new kn(t.doc,Yt(t.doc,a),a);r=a+o.size,i.push(o)}return i}var xn=null;function En(t){xn?xn.ops.push(t):t.ownsGroup=xn={ops:[t],delayedCallbacks:[]}}function Tn(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var i=t.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<e.length)}function Bn(t,e){var n=t.ownsGroup;if(n)try{Tn(n)}finally{xn=null,e(n)}}var _n=null;function Sn(t,e){var n=gt(t,e);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);xn?r=xn.delayedCallbacks:_n?r=_n:(r=_n=[],setTimeout(Ln,0));for(var a=function(t){r.push((function(){return n[t].apply(null,i)}))},o=0;o<n.length;++o)a(o)}}function Ln(){var t=_n;_n=null;for(var e=0;e<t.length;++e)t[e]()}function In(t,e,n,r){for(var i=0;i<e.changes.length;i++){var a=e.changes[i];"text"==a?Fn(t,e):"gutter"==a?Pn(t,e,n,r):"class"==a?Nn(t,e):"widget"==a&&Rn(t,e,r)}e.changes=null}function Mn(t){return t.node==t.text&&(t.node=S("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),o&&s<8&&(t.node.style.zIndex=2)),t.node}function On(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=Mn(e);e.background=r.insertBefore(S("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}function Dn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):gn(t,e)}function Fn(t,e){var n=e.text.className,r=Dn(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,Nn(t,e)):n&&(e.text.className=n)}function Nn(t,e){On(t,e),e.line.wrapClass?Mn(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function Pn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var i=Mn(e);e.gutterBackground=S("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),i.insertBefore(e.gutterBackground,e.text)}var a=e.line.gutterMarkers;if(t.options.lineNumbers||a){var o=Mn(e),s=e.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(s),o.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(S("div",ie(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),a)for(var c=0;c<t.display.gutterSpecs.length;++c){var l=t.display.gutterSpecs[c].className,u=a.hasOwnProperty(l)&&a[l];u&&s.appendChild(S("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function Rn(t,e,n){e.alignable&&(e.alignable=null);for(var r=x("CodeMirror-linewidget"),i=e.node.firstChild,a=void 0;i;i=a)a=i.nextSibling,r.test(i.className)&&e.node.removeChild(i);Un(t,e,n)}function Qn(t,e,n,r){var i=Dn(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),Nn(t,e),Pn(t,e,n,r),Un(t,e,r),e.node}function Un(t,e,n){if($n(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)$n(t,e.rest[r],e,n,!1)}function $n(t,e,n,r,i){if(e.widgets)for(var a=Mn(n),o=0,s=e.widgets;o<s.length;++o){var c=s[o],l=S("div",[c.node],"CodeMirror-linewidget"+(c.className?" "+c.className:""));c.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),Hn(c,l,n,r),t.display.input.setUneditable(l),i&&c.above?a.insertBefore(l,n.gutter||n.text):a.appendChild(l),Sn(c,"redraw")}}function Hn(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var i=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(i-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=i+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function jn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!I(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),_(e.display.measure,S("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function Kn(t,e){for(var n=Tt(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function zn(t){return t.lineSpace.offsetTop}function Gn(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Xn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=_(t.measure,S("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function Vn(t){return $-t.display.nativeBarWidth}function Wn(t){return t.display.scroller.clientWidth-Vn(t)-t.display.barWidth}function qn(t){return t.display.scroller.clientHeight-Vn(t)-t.display.barHeight}function Yn(t,e,n){var r=t.options.lineWrapping,i=r&&Wn(t);if(!e.measure.heights||r&&e.measure.width!=i){var a=e.measure.heights=[];if(r){e.measure.width=i;for(var o=e.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var c=o[s],l=o[s+1];Math.abs(c.bottom-l.bottom)>2&&a.push((c.bottom+l.top)/2-n.top)}}a.push(n.bottom-n.top)}}function Jn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var i=0;i<t.rest.length;i++)if(ee(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Zn(t,e){var n=ee(e=Je(e)),r=t.display.externalMeasured=new kn(t.doc,e,n);r.lineN=n;var i=r.built=gn(t,r);return r.text=i.pre,_(t.display.lineMeasure,i.pre),r}function tr(t,e,n,r){return rr(t,nr(t,e),n,r)}function er(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[Nr(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function nr(t,e){var n=ee(e),r=er(t,n);r&&!r.text?r=null:r&&r.changes&&(In(t,r,n,Ir(t)),t.curOp.forceUpdate=!0),r||(r=Zn(t,e));var i=Jn(r,e,n);return{line:e,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function rr(t,e,n,r,i){e.before&&(n=-1);var a,o=n+(r||"");return e.cache.hasOwnProperty(o)?a=e.cache[o]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(Yn(t,e.view,e.rect),e.hasHeights=!0),(a=cr(t,e,n,r)).bogus||(e.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var ir,ar={left:0,right:0,top:0,bottom:0};function or(t,e,n){for(var r,i,a,o,s,c,l=0;l<t.length;l+=3)if(s=t[l],c=t[l+1],e<s?(i=0,a=1,o="left"):e<c?a=1+(i=e-s):(l==t.length-3||e==c&&t[l+3]>e)&&(i=(a=c-s)-1,e>=c&&(o="right")),null!=i){if(r=t[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==i)for(;l&&t[l-2]==t[l-3]&&t[l-1].insertLeft;)r=t[2+(l-=3)],o="left";if("right"==n&&i==c-s)for(;l<t.length-3&&t[l+3]==t[l+4]&&!t[l+5].insertLeft;)r=t[(l+=3)+2],o="right";break}return{node:r,start:i,end:a,collapse:o,coverStart:s,coverEnd:c}}function sr(t,e){var n=ar;if("left"==e)for(var r=0;r<t.length&&(n=t[r]).left==n.right;r++);else for(var i=t.length-1;i>=0&&(n=t[i]).left==n.right;i--);return n}function cr(t,e,n,r){var i,a=or(e.map,n,r),c=a.node,l=a.start,u=a.end,h=a.collapse;if(3==c.nodeType){for(var f=0;f<4;f++){for(;l&&at(e.line.text.charAt(a.coverStart+l));)--l;for(;a.coverStart+u<a.coverEnd&&at(e.line.text.charAt(a.coverStart+u));)++u;if((i=o&&s<9&&0==l&&u==a.coverEnd-a.coverStart?c.parentNode.getBoundingClientRect():sr(E(c,l,u).getClientRects(),r)).left||i.right||0==l)break;u=l,l-=1,h="right"}o&&s<11&&(i=lr(t.display.measure,i))}else{var d;l>0&&(h=r="right"),i=t.options.lineWrapping&&(d=c.getClientRects()).length>1?d["right"==r?d.length-1:0]:c.getBoundingClientRect()}if(o&&s<9&&!l&&(!i||!i.left&&!i.right)){var A=c.parentNode.getClientRects()[0];i=A?{left:A.left,right:A.left+Lr(t.display),top:A.top,bottom:A.bottom}:ar}for(var g=i.top-e.rect.top,p=i.bottom-e.rect.top,m=(g+p)/2,b=e.view.measure.heights,v=0;v<b.length-1&&!(m<b[v]);v++);var y=v?b[v-1]:0,w=b[v],k={left:("right"==h?i.right:i.left)-e.rect.left,right:("left"==h?i.left:i.right)-e.rect.left,top:y,bottom:w};return i.left||i.right||(k.bogus=!0),t.options.singleCursorHeightPerLine||(k.rtop=g,k.rbottom=p),k}function lr(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Rt(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}function ur(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function hr(t){t.display.externalMeasure=null,B(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)ur(t.display.view[e])}function fr(t){hr(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function dr(){return u&&p?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ar(){return u&&p?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function gr(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=jn(t.widgets[n]));return e}function pr(t,e,n,r,i){if(!i){var a=gr(e);n.top+=a,n.bottom+=a}if("line"==r)return n;r||(r="local");var o=on(e);if("local"==r?o+=zn(t.display):o-=t.display.viewOffset,"page"==r||"window"==r){var s=t.display.lineSpace.getBoundingClientRect();o+=s.top+("window"==r?0:Ar());var c=s.left+("window"==r?0:dr());n.left+=c,n.right+=c}return n.top+=o,n.bottom+=o,n}function mr(t,e,n){if("div"==n)return e;var r=e.left,i=e.top;if("page"==n)r-=dr(),i-=Ar();else if("local"==n||!n){var a=t.display.sizer.getBoundingClientRect();r+=a.left,i+=a.top}var o=t.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:i-o.top}}function br(t,e,n,r,i){return r||(r=Yt(t.doc,e.line)),pr(t,r,tr(t,r,e.ch,i),n)}function vr(t,e,n,r,i,a){function o(e,o){var s=rr(t,i,e,o?"right":"left",a);return o?s.left=s.right:s.right=s.left,pr(t,r,s,n)}r=r||Yt(t.doc,e.line),i||(i=nr(t,r));var s=ft(r,t.doc.direction),c=e.ch,l=e.sticky;if(c>=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return o("before"==l?c-1:c,"before"==l);function u(t,e,n){return o(n?t-1:t,1==s[e].level!=n)}var h=ut(s,c,l),f=lt,d=u(c,h,"before"==l);return null!=f&&(d.other=u(c,f,"before"!=l)),d}function yr(t,e){var n=0;e=fe(t.doc,e),t.options.lineWrapping||(n=Lr(t.display)*e.ch);var r=Yt(t.doc,e.line),i=on(r)+zn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(t,e,n,r,i){var a=ae(t,e,n);return a.xRel=i,r&&(a.outside=r),a}function kr(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return wr(r.first,0,null,-1,-1);var i=ne(r,n),a=r.first+r.size-1;if(i>a)return wr(r.first+r.size-1,Yt(r,a).text.length,null,1,1);e<0&&(e=0);for(var o=Yt(r,i);;){var s=Tr(t,o,i,e,n),c=qe(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;o=Yt(r,i=l.line)}}function Cr(t,e,n,r){r-=gr(e);var i=e.text.length,a=st((function(e){return rr(t,n,e-1).bottom<=r}),i,0);return{begin:a,end:i=st((function(e){return rr(t,n,e).top>r}),a,i)}}function xr(t,e,n,r){return n||(n=nr(t,e)),Cr(t,e,n,pr(t,e,rr(t,n,r),"line").top)}function Er(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function Tr(t,e,n,r,i){i-=on(e);var a=nr(t,e),o=gr(e),s=0,c=e.text.length,l=!0,u=ft(e,t.doc.direction);if(u){var h=(t.options.lineWrapping?_r:Br)(t,e,n,a,u,r,i);s=(l=1!=h.level)?h.from:h.to-1,c=l?h.to:h.from-1}var f,d,A=null,g=null,p=st((function(e){var n=rr(t,a,e);return n.top+=o,n.bottom+=o,!!Er(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(A=e,g=n),!0)}),s,c),m=!1;if(g){var b=r-g.left<g.right-r,v=b==l;p=A+(v?0:1),d=v?"after":"before",f=b?g.left:g.right}else{l||p!=c&&p!=s||p++,d=0==p?"after":p==e.text.length?"before":rr(t,a,p-(l?1:0)).bottom+o<=i==l?"after":"before";var y=vr(t,ae(n,p,d),"line",e,a);f=y.left,m=i<y.top?-1:i>=y.bottom?1:0}return wr(n,p=ot(e.text,p,1),d,m,r-f)}function Br(t,e,n,r,i,a,o){var s=st((function(s){var c=i[s],l=1!=c.level;return Er(vr(t,ae(n,l?c.to:c.from,l?"before":"after"),"line",e,r),a,o,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,u=vr(t,ae(n,l?c.from:c.to,l?"after":"before"),"line",e,r);Er(u,a,o,!0)&&u.top>o&&(c=i[s-1])}return c}function _r(t,e,n,r,i,a,o){var s=Cr(t,e,r,o),c=s.begin,l=s.end;/\s/.test(e.text.charAt(l-1))&&l--;for(var u=null,h=null,f=0;f<i.length;f++){var d=i[f];if(!(d.from>=l||d.to<=c)){var A=rr(t,r,1!=d.level?Math.min(l,d.to)-1:Math.max(c,d.from)).right,g=A<a?a-A+1e9:A-a;(!u||h>g)&&(u=d,h=g)}}return u||(u=i[i.length-1]),u.from<c&&(u={from:c,to:u.to,level:u.level}),u.to>l&&(u={from:u.from,to:l,level:u.level}),u}function Sr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==ir){ir=S("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)ir.appendChild(document.createTextNode("x")),ir.appendChild(S("br"));ir.appendChild(document.createTextNode("x"))}_(t.measure,ir);var n=ir.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),B(t.measure),n||1}function Lr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=S("span","xxxxxxxxxx"),n=S("pre",[e],"CodeMirror-line-like");_(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function Ir(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,a=e.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=t.display.gutterSpecs[o].className;n[s]=a.offsetLeft+a.clientLeft+i,r[s]=a.clientWidth}return{fixedPos:Mr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function Mr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Or(t){var e=Sr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/Lr(t.display)-3);return function(i){if(rn(t.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o<i.widgets.length;o++)i.widgets[o].height&&(a+=i.widgets[o].height);return n?a+(Math.ceil(i.text.length/r)||1)*e:a+e}}function Dr(t){var e=t.doc,n=Or(t);e.iter((function(t){var e=n(t);e!=t.height&&te(t,e)}))}function Fr(t,e,n,r){var i=t.display;if(!n&&"true"==Tt(e).getAttribute("cm-not-content"))return null;var a,o,s=i.lineSpace.getBoundingClientRect();try{a=e.clientX-s.left,o=e.clientY-s.top}catch(t){return null}var c,l=kr(t,a,o);if(r&&l.xRel>0&&(c=Yt(t.doc,l.line).text).length==l.ch){var u=R(c,c.length,t.options.tabSize)-c.length;l=ae(l.line,Math.max(0,Math.round((a-Xn(t.display).left)/Lr(t.display))-u))}return l}function Nr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if((e-=n[r].size)<0)return r}function Pr(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var i=t.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>e)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Le&&en(t.doc,e)<i.viewTo&&Qr(t);else if(n<=i.viewFrom)Le&&nn(t.doc,n+r)>i.viewFrom?Qr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)Qr(t);else if(e<=i.viewFrom){var a=Ur(t,n,n+r,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=r):Qr(t)}else if(n>=i.viewTo){var o=Ur(t,e,e,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):Qr(t)}else{var s=Ur(t,e,e,-1),c=Ur(t,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(Cn(t,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):Qr(t)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:e<l.lineN+l.size&&(i.externalMeasured=null))}function Rr(t,e,n){t.curOp.viewChanged=!0;var r=t.display,i=t.display.externalMeasured;if(i&&e>=i.lineN&&e<i.lineN+i.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var a=r.view[Nr(t,e)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==U(o,n)&&o.push(n)}}}function Qr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Ur(t,e,n,r){var i,a=Nr(t,e),o=t.display.view;if(!Le||n==t.doc.first+t.doc.size)return{index:a,lineN:n};for(var s=t.display.viewFrom,c=0;c<a;c++)s+=o[c].size;if(s!=e){if(r>0){if(a==o.length-1)return null;i=s+o[a].size-e,a++}else i=s-e;e+=i,n+=i}for(;en(t.doc,n)!=n;){if(a==(r<0?0:o.length-1))return null;n+=r*o[a-(r<0?1:0)].size,a+=r}return{index:a,lineN:n}}function $r(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=Cn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=Cn(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(Nr(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(Cn(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Nr(t,n)))),r.viewTo=n}function Hr(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var i=e[r];i.hidden||i.node&&!i.changes||++n}return n}function jr(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Kr(t,e){void 0===e&&(e=!0);for(var n=t.doc,r={},i=r.cursors=document.createDocumentFragment(),a=r.selection=document.createDocumentFragment(),o=0;o<n.sel.ranges.length;o++)if(e||o!=n.sel.primIndex){var s=n.sel.ranges[o];if(!(s.from().line>=t.display.viewTo||s.to().line<t.display.viewFrom)){var c=s.empty();(c||t.options.showCursorWhenSelecting)&&zr(t,s.head,i),c||Xr(t,s,a)}}return r}function zr(t,e,n){var r=vr(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(S("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",r.other){var a=n.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Gr(t,e){return t.top-e.top||t.left-e.left}function Xr(t,e,n){var r=t.display,i=t.doc,a=document.createDocumentFragment(),o=Xn(t.display),s=o.left,c=Math.max(r.sizerWidth,Wn(t)-r.sizer.offsetLeft)-o.right,l="ltr"==i.direction;function u(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),a.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?c-t:n)+"px;\n height: "+(r-e)+"px"))}function h(e,n,r){var a,o,h=Yt(i,e),f=h.text.length;function d(n,r){return br(t,ae(e,n),"div",h,r)}function A(e,n,r){var i=xr(t,h,null,e),a="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(h.text.charAt(i.end-1))?2:1),a)[a]}var g=ft(h,i.direction);return ct(g,n||0,null==r?f:r,(function(t,e,i,h){var p="ltr"==i,m=d(t,p?"left":"right"),b=d(e-1,p?"right":"left"),v=null==n&&0==t,y=null==r&&e==f,w=0==h,k=!g||h==g.length-1;if(b.top-m.top<=3){var C=(l?y:v)&&k,x=(l?v:y)&&w?s:(p?m:b).left,E=C?c:(p?b:m).right;u(x,m.top,E-x,m.bottom)}else{var T,B,_,S;p?(T=l&&v&&w?s:m.left,B=l?c:A(t,i,"before"),_=l?s:A(e,i,"after"),S=l&&y&&k?c:b.right):(T=l?A(t,i,"before"):s,B=!l&&v&&w?c:m.right,_=!l&&y&&k?s:b.left,S=l?A(e,i,"after"):c),u(T,m.top,B-T,m.bottom),m.bottom<b.top&&u(s,m.bottom,null,b.top),u(_,b.top,S-_,b.bottom)}(!a||Gr(m,a)<0)&&(a=m),Gr(b,a)<0&&(a=b),(!o||Gr(m,o)<0)&&(o=m),Gr(b,o)<0&&(o=b)})),{start:a,end:o}}var f=e.from(),d=e.to();if(f.line==d.line)h(f.line,f.ch,d.ch);else{var A=Yt(i,f.line),g=Yt(i,d.line),p=Je(A)==Je(g),m=h(f.line,f.ch,p?A.text.length+1:null).end,b=h(d.line,p?0:null,d.ch).start;p&&(m.top<b.top-2?(u(m.right,m.top,null,m.bottom),u(s,b.top,b.left,b.bottom)):u(m.right,m.top,b.left-m.right,m.bottom)),m.bottom<b.top&&u(s,m.bottom,null,b.top)}n.appendChild(a)}function Vr(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||Jr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Wr(t){t.state.focused||(t.display.input.focus(),Yr(t))}function qr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Jr(t))}),100)}function Yr(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(mt(t,"focus",t,e),t.state.focused=!0,O(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),c&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Vr(t))}function Jr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(mt(t,"blur",t,e),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Zr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r<e.view.length;r++){var i=e.view[r],a=t.options.lineWrapping,c=void 0,l=0;if(!i.hidden){if(o&&s<8){var u=i.node.offsetTop+i.node.offsetHeight;c=u-n,n=u}else{var h=i.node.getBoundingClientRect();c=h.bottom-h.top,!a&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-h.left-1)}var f=i.line.height-c;if((f>.005||f<-.005)&&(te(i.line,c),ti(i.line),i.rest))for(var d=0;d<i.rest.length;d++)ti(i.rest[d]);if(l>t.display.sizerWidth){var A=Math.ceil(l/Lr(t.display));A>t.display.maxLineLength&&(t.display.maxLineLength=A,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function ti(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ei(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-zn(t));var i=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,a=ne(e,r),o=ne(e,i);if(n&&n.ensure){var s=n.ensure.from.line,c=n.ensure.to.line;s<a?(a=s,o=ne(e,on(Yt(e,s))+t.wrapper.clientHeight)):Math.min(c,e.lastLine())>=o&&(a=ne(e,on(Yt(e,c))-t.wrapper.clientHeight),o=c)}return{from:a,to:Math.max(o,a+1)}}function ni(t,e){if(!bt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!A){var a=S("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-zn(t.display))+"px;\n height: "+(e.bottom-e.top+Vn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(i),t.display.lineSpace.removeChild(a)}}}function ri(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?ae(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?ae(e.line,e.ch+1,"before"):e);for(var a=0;a<5;a++){var o=!1,s=vr(t,e),c=n&&n!=e?vr(t,n):s,l=ai(t,i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r}),u=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=l.scrollTop&&(fi(t,l.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(o=!0)),null!=l.scrollLeft&&(Ai(t,l.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(o=!0)),!o)break}return i}function ii(t,e){var n=ai(t,e);null!=n.scrollTop&&fi(t,n.scrollTop),null!=n.scrollLeft&&Ai(t,n.scrollLeft)}function ai(t,e){var n=t.display,r=Sr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,a=qn(t),o={};e.bottom-e.top>a&&(e.bottom=e.top+a);var s=t.doc.height+Gn(n),c=e.top<r,l=e.bottom>s-r;if(e.top<i)o.scrollTop=c?0:e.top;else if(e.bottom>i+a){var u=Math.min(e.top,(l?s:e.bottom)-a);u!=i&&(o.scrollTop=u)}var h=t.options.fixedGutter?0:n.gutters.offsetWidth,f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-h,d=Wn(t)-n.gutters.offsetWidth,A=e.right-e.left>d;return A&&(e.right=e.left+d),e.left<10?o.scrollLeft=0:e.left<f?o.scrollLeft=Math.max(0,e.left+h-(A?0:10)):e.right>d+f-3&&(o.scrollLeft=e.right+(A?0:10)-d),o}function oi(t,e){null!=e&&(ui(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function si(t){ui(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function ci(t,e,n){null==e&&null==n||ui(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function li(t,e){ui(t),t.curOp.scrollToPos=e}function ui(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,hi(t,yr(t,e.from),yr(t,e.to),e.margin))}function hi(t,e,n,r){var i=ai(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});ci(t,i.scrollLeft,i.scrollTop)}function fi(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||ji(t,{top:e}),di(t,e,!0),n&&ji(t),Fi(t,100))}function di(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Ai(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,Xi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function gi(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+Gn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Vn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var pi=function(t,e,n){this.cm=n;var r=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),At(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),At(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var a=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},pi.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var t=b&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Q,this.disableVert=new Q},pi.prototype.enableZeroWidthBar=function(t,e,n){function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}t.style.pointerEvents="auto",e.set(1e3,r)},pi.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var mi=function(){};function bi(t,e){e||(e=gi(t));var n=t.display.barWidth,r=t.display.barHeight;vi(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Zr(t),vi(t,gi(t)),n=t.display.barWidth,r=t.display.barHeight}function vi(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}mi.prototype.update=function(){return{bottom:0,right:0}},mi.prototype.setScrollLeft=function(){},mi.prototype.setScrollTop=function(){},mi.prototype.clear=function(){};var yi={native:pi,null:mi};function wi(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new yi[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),At(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?Ai(t,e):fi(t,e)}),t),t.display.scrollbars.addClass&&O(t.display.wrapper,t.display.scrollbars.addClass)}var ki=0;function Ci(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ki},En(t.curOp)}function xi(t){var e=t.curOp;e&&Bn(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;Ei(t)}))}function Ei(t){for(var e=t.ops,n=0;n<e.length;n++)Ti(e[n]);for(var r=0;r<e.length;r++)Bi(e[r]);for(var i=0;i<e.length;i++)_i(e[i]);for(var a=0;a<e.length;a++)Si(e[a]);for(var o=0;o<e.length;o++)Li(e[o])}function Ti(t){var e=t.cm,n=e.display;Ri(e),t.updateMaxLine&&cn(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Pi(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Bi(t){t.updatedDisplay=t.mustUpdate&&$i(t.cm,t.update)}function _i(t){var e=t.cm,n=e.display;t.updatedDisplay&&Zr(e),t.barMeasure=gi(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=tr(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Vn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Wn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Si(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Ai(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==M();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&bi(e,t.barMeasure),t.updatedDisplay&&Gi(e,t.barMeasure),t.selectionChanged&&Vr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Wr(t.cm)}function Li(t){var e=t.cm,n=e.display,r=e.doc;t.updatedDisplay&&Hi(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&di(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Ai(e,t.scrollLeft,!0,!0),t.scrollToPos&&ni(e,ri(e,fe(r,t.scrollToPos.from),fe(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,a=t.maybeUnhiddenMarkers;if(i)for(var o=0;o<i.length;++o)i[o].lines.length||mt(i[o],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&mt(a[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&mt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Ii(t,e){if(t.curOp)return e();Ci(t);try{return e()}finally{xi(t)}}function Mi(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Ci(t);try{return e.apply(t,arguments)}finally{xi(t)}}}function Oi(t){return function(){if(this.curOp)return t.apply(this,arguments);Ci(this);try{return t.apply(this,arguments)}finally{xi(this)}}}function Di(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Ci(e);try{return t.apply(this,arguments)}finally{xi(e)}}}function Fi(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,N(Ni,t))}function Ni(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=ve(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(a){if(r.line>=t.display.viewFrom){var o=a.styles,s=a.text.length>t.options.maxHighlightLength?Xt(e.mode,r.state):null,c=me(t,a,r,!0);s&&(r.state=s),a.styles=c.styles;var l=a.styleClasses,u=c.classes;u?a.styleClasses=u:l&&(a.styleClasses=null);for(var h=!o||o.length!=a.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!h&&f<o.length;++f)h=o[f]!=a.styles[f];h&&i.push(r.line),a.stateAfter=r.save(),r.nextLine()}else a.text.length<=t.options.maxHighlightLength&&ye(t,a.text,r),a.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Fi(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Ii(t,(function(){for(var e=0;e<i.length;e++)Rr(t,i[e],"text")}))}}var Pi=function(t,e,n){var r=t.display;this.viewport=e,this.visible=ei(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Wn(t),this.force=n,this.dims=Ir(t),this.events=[]};function Ri(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=Vn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=Vn(t)+"px",e.scrollbarsClipped=!0)}function Qi(t){if(t.hasFocus())return null;var e=M();if(!e||!I(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&I(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Ui(t){if(t&&t.activeElt&&t.activeElt!=M()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&I(document.body,t.anchorNode)&&I(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}function $i(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return Qr(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(t))return!1;Vi(t)&&(Qr(t),e.dims=Ir(t));var i=r.first+r.size,a=Math.max(e.visible.from-t.options.viewportMargin,r.first),o=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFrom<a&&a-n.viewFrom<20&&(a=Math.max(r.first,n.viewFrom)),n.viewTo>o&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),Le&&(a=en(t.doc,a),o=nn(t.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;$r(t,a,o),n.viewOffset=on(Yt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var c=Hr(t);if(!s&&0==c&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=Qi(t);return c>4&&(n.lineDiv.style.display="none"),Ki(t,n.updateLineNumbers,e.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ui(l),B(n.cursorDiv),B(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Fi(t,400)),n.updateLineNumbers=null,!0}function Hi(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Wn(t))r&&(e.visible=ei(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Gn(t.display)-qn(t),n.top)}),e.visible=ei(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!$i(t,e))break;Zr(t);var i=gi(t);jr(t),bi(t,i),Gi(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function ji(t,e){var n=new Pi(t,e);if($i(t,n)){Zr(t),Hi(t,n);var r=gi(t);jr(t),bi(t,r),Gi(t,r),n.finish()}}function Ki(t,e,n){var r=t.display,i=t.options.lineNumbers,a=r.lineDiv,o=a.firstChild;function s(e){var n=e.nextSibling;return c&&b&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var l=r.view,u=r.viewFrom,h=0;h<l.length;h++){var f=l[h];if(f.hidden);else if(f.node&&f.node.parentNode==a){for(;o!=f.node;)o=s(o);var d=i&&null!=e&&e<=u&&f.lineNumber;f.changes&&(U(f.changes,"gutter")>-1&&(d=!1),In(t,f,u,n)),d&&(B(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(ie(t.options,u)))),o=f.node.nextSibling}else{var A=Qn(t,f,u,n);a.insertBefore(A,o)}u+=f.size}for(;o;)o=s(o)}function zi(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function Gi(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Vn(t)+"px"}function Xi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=Mr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,a=r+"px",o=0;o<n.length;o++)if(!n[o].hidden){t.options.fixedGutter&&(n[o].gutter&&(n[o].gutter.style.left=a),n[o].gutterBackground&&(n[o].gutterBackground.style.left=a));var s=n[o].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=a}t.options.fixedGutter&&(e.gutters.style.left=r+i+"px")}}function Vi(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=ie(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(S("div",[S("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=i.firstChild.offsetWidth,o=i.offsetWidth-a;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(a,r.lineGutter.offsetWidth-o)+1,r.lineNumWidth=r.lineNumInnerWidth+o,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",zi(t.display),!0}return!1}function Wi(t,e){for(var n=[],r=!1,i=0;i<t.length;i++){var a=t[i],o=null;if("string"!=typeof a&&(o=a.style,a=a.className),"CodeMirror-linenumbers"==a){if(!e)continue;r=!0}n.push({className:a,style:o})}return e&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function qi(t){var e=t.gutters,n=t.gutterSpecs;B(e),t.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],a=i.className,o=i.style,s=e.appendChild(S("div",null,"CodeMirror-gutter "+a));o&&(s.style.cssText=o),"CodeMirror-linenumbers"==a&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",zi(t)}function Yi(t){qi(t.display),Pr(t),Xi(t)}function Ji(t,e,r,i){var a=this;this.input=r,a.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=L("div",null,"CodeMirror-code"),a.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=S("div",null,"CodeMirror-cursors"),a.measure=S("div",null,"CodeMirror-measure"),a.lineMeasure=S("div",null,"CodeMirror-measure"),a.lineSpace=L("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var l=L("div",[a.lineSpace],"CodeMirror-lines");a.mover=S("div",[l],null,"position: relative"),a.sizer=S("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=S("div",null,null,"position: absolute; height: "+$+"px; width: 1px;"),a.gutters=S("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=S("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=S("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),o&&s<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),c||n&&m||(a.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(a.wrapper):t(a.wrapper)),a.viewFrom=a.viewTo=e.first,a.reportedViewFrom=a.reportedViewTo=e.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=Wi(i.gutters,i.lineNumbers),qi(a),r.init(a)}Pi.prototype.signal=function(t,e){yt(t,e)&&this.events.push(arguments)},Pi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)mt.apply(null,this.events[t])};var Zi=0,ta=null;function ea(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function na(t){var e=ea(t);return e.x*=ta,e.y*=ta,e}function ra(t,e){var r=ea(e),i=r.x,a=r.y,o=t.display,s=o.scroller,l=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&l||a&&u){if(a&&b&&c)t:for(var f=e.target,d=o.view;f!=s;f=f.parentNode)for(var A=0;A<d.length;A++)if(d[A].node==f){t.display.currentWheelTarget=f;break t}if(i&&!n&&!h&&null!=ta)return a&&u&&fi(t,Math.max(0,s.scrollTop+a*ta)),Ai(t,Math.max(0,s.scrollLeft+i*ta)),(!a||a&&u)&&kt(e),void(o.wheelStartX=null);if(a&&null!=ta){var g=a*ta,p=t.doc.scrollTop,m=p+o.wrapper.clientHeight;g<0?p=Math.max(0,p+g-50):m=Math.min(t.doc.height,m+g+50),ji(t,{top:p,bottom:m})}Zi<20&&(null==o.wheelStartX?(o.wheelStartX=s.scrollLeft,o.wheelStartY=s.scrollTop,o.wheelDX=i,o.wheelDY=a,setTimeout((function(){if(null!=o.wheelStartX){var t=s.scrollLeft-o.wheelStartX,e=s.scrollTop-o.wheelStartY,n=e&&o.wheelDY&&e/o.wheelDY||t&&o.wheelDX&&t/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(ta=(ta*Zi+n)/(Zi+1),++Zi)}}),200)):(o.wheelDX+=i,o.wheelDY+=a))}}o?ta=-.53:n?ta=15:u?ta=-.7:f&&(ta=-1/3);var ia=function(t,e){this.ranges=t,this.primIndex=e};ia.prototype.primary=function(){return this.ranges[this.primIndex]},ia.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!se(n.anchor,r.anchor)||!se(n.head,r.head))return!1}return!0},ia.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new aa(ce(this.ranges[e].anchor),ce(this.ranges[e].head));return new ia(t,this.primIndex)},ia.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ia.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(oe(e,r.from())>=0&&oe(t,r.to())<=0)return n}return-1};var aa=function(t,e){this.anchor=t,this.head=e};function oa(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return oe(t.from(),e.from())})),n=U(e,i);for(var a=1;a<e.length;a++){var o=e[a],s=e[a-1],c=oe(s.to(),o.from());if(r&&!o.empty()?c>0:c>=0){var l=ue(s.from(),o.from()),u=le(s.to(),o.to()),h=s.empty()?o.from()==o.head:s.from()==s.head;a<=n&&--n,e.splice(--a,2,new aa(h?u:l,h?l:u))}}return new ia(e,n)}function sa(t,e){return new ia([new aa(t,e||t)],0)}function ca(t){return t.text?ae(t.from.line+t.text.length-1,W(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function la(t,e){if(oe(t,e.from)<0)return t;if(oe(t,e.to)<=0)return ca(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=ca(e).ch-e.to.ch),ae(n,r)}function ua(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var i=t.sel.ranges[r];n.push(new aa(la(i.anchor,e),la(i.head,e)))}return oa(t.cm,n,t.sel.primIndex)}function ha(t,e,n){return t.line==e.line?ae(n.line,t.ch-e.ch+n.ch):ae(n.line+(t.line-e.line),t.ch)}function fa(t,e,n){for(var r=[],i=ae(t.first,0),a=i,o=0;o<e.length;o++){var s=e[o],c=ha(s.from,i,a),l=ha(ca(s),i,a);if(i=s.to,a=l,"around"==n){var u=t.sel.ranges[o],h=oe(u.head,u.anchor)<0;r[o]=new aa(h?l:c,h?c:l)}else r[o]=new aa(c,c)}return new ia(r,t.sel.primIndex)}function da(t){t.doc.mode=Kt(t.options,t.doc.modeOption),Aa(t)}function Aa(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Fi(t,100),t.state.modeGen++,t.curOp&&Pr(t)}function ga(t,e){return 0==e.from.ch&&0==e.to.ch&&""==W(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function pa(t,e,n,r){function i(t){return n?n[t]:null}function a(t,n,i){un(t,n,i,r),Sn(t,"change",t,e)}function o(t,e){for(var n=[],a=t;a<e;++a)n.push(new ln(l[a],i(a),r));return n}var s=e.from,c=e.to,l=e.text,u=Yt(t,s.line),h=Yt(t,c.line),f=W(l),d=i(l.length-1),A=c.line-s.line;if(e.full)t.insert(0,o(0,l.length)),t.remove(l.length,t.size-l.length);else if(ga(t,e)){var g=o(0,l.length-1);a(h,h.text,d),A&&t.remove(s.line,A),g.length&&t.insert(s.line,g)}else if(u==h)if(1==l.length)a(u,u.text.slice(0,s.ch)+f+u.text.slice(c.ch),d);else{var p=o(1,l.length-1);p.push(new ln(f+u.text.slice(c.ch),d,r)),a(u,u.text.slice(0,s.ch)+l[0],i(0)),t.insert(s.line+1,p)}else if(1==l.length)a(u,u.text.slice(0,s.ch)+l[0]+h.text.slice(c.ch),i(0)),t.remove(s.line+1,A);else{a(u,u.text.slice(0,s.ch)+l[0],i(0)),a(h,f+h.text.slice(c.ch),d);var m=o(1,l.length-1);A>1&&t.remove(s.line+1,A-1),t.insert(s.line+1,m)}Sn(t,"change",t,e)}function ma(t,e,n){function r(t,i,a){if(t.linked)for(var o=0;o<t.linked.length;++o){var s=t.linked[o];if(s.doc!=i){var c=a&&s.sharedHist;n&&!c||(e(s.doc,c),r(s.doc,t,c))}}}r(t,null,!0)}function ba(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,Dr(t),da(t),va(t),t.options.lineWrapping||cn(t),t.options.mode=e.modeOption,Pr(t)}function va(t){("rtl"==t.doc.direction?O:T)(t.display.lineDiv,"CodeMirror-rtl")}function ya(t){Ii(t,(function(){va(t),Pr(t)}))}function wa(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function ka(t,e){var n={from:ce(e.from),to:ca(e),text:Jt(t,e.from,e.to)};return Sa(t,n,e.from.line,e.to.line+1),ma(t,(function(t){return Sa(t,n,e.from.line,e.to.line+1)}),!0),n}function Ca(t){for(;t.length&&W(t).ranges;)t.pop()}function xa(t,e){return e?(Ca(t.done),W(t.done)):t.done.length&&!W(t.done).ranges?W(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),W(t.done)):void 0}function Ea(t,e,n,r){var i=t.history;i.undone.length=0;var a,o,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(a=xa(i,i.lastOp==r)))o=W(a.changes),0==oe(e.from,e.to)&&0==oe(e.from,o.to)?o.to=ca(e):a.changes.push(ka(t,e));else{var c=W(i.done);for(c&&c.ranges||_a(t.sel,i.done),a={changes:[ka(t,e)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,o||mt(t,"historyAdded")}function Ta(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function Ba(t,e,n,r){var i=t.history,a=r&&r.origin;n==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||Ta(t,a,W(i.done),e))?i.done[i.done.length-1]=e:_a(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ca(i.undone)}function _a(t,e){var n=W(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Sa(t,e,n,r){var i=e["spans_"+t.id],a=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[a]=n.markedSpans),++a}))}function La(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function Ia(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],i=0;i<e.text.length;++i)r.push(La(n[i]));return r}function Ma(t,e){var n=Ia(t,e),r=Qe(t,e);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var a=n[i],o=r[i];if(a&&o)t:for(var s=0;s<o.length;++s){for(var c=o[s],l=0;l<a.length;++l)if(a[l].marker==c.marker)continue t;a.push(c)}else o&&(n[i]=o)}return n}function Oa(t,e,n){for(var r=[],i=0;i<t.length;++i){var a=t[i];if(a.ranges)r.push(n?ia.prototype.deepCopy.call(a):a);else{var o=a.changes,s=[];r.push({changes:s});for(var c=0;c<o.length;++c){var l=o[c],u=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),e)for(var h in l)(u=h.match(/^spans_(\d+)$/))&&U(e,Number(u[1]))>-1&&(W(s)[h]=l[h],delete l[h])}}}return r}function Da(t,e,n,r){if(r){var i=t.anchor;if(n){var a=oe(e,i)<0;a!=oe(n,i)<0?(i=e,e=n):a!=oe(e,n)<0&&(e=n)}return new aa(i,e)}return new aa(n||e,e)}function Fa(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),$a(t,new ia([Da(t.sel.primary(),e,n,i)],0),r)}function Na(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),a=0;a<t.sel.ranges.length;a++)r[a]=Da(t.sel.ranges[a],e[a],null,i);$a(t,oa(t.cm,r,t.sel.primIndex),n)}function Pa(t,e,n,r){var i=t.sel.ranges.slice(0);i[e]=n,$a(t,oa(t.cm,i,t.sel.primIndex),r)}function Ra(t,e,n,r){$a(t,sa(e,n),r)}function Qa(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new aa(fe(t,e[n].anchor),fe(t,e[n].head))},origin:n&&n.origin};return mt(t,"beforeSelectionChange",t,r),t.cm&&mt(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?oa(t.cm,r.ranges,r.ranges.length-1):e}function Ua(t,e,n){var r=t.history.done,i=W(r);i&&i.ranges?(r[r.length-1]=e,Ha(t,e,n)):$a(t,e,n)}function $a(t,e,n){Ha(t,e,n),Ba(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function Ha(t,e,n){(yt(t,"beforeSelectionChange")||t.cm&&yt(t.cm,"beforeSelectionChange"))&&(e=Qa(t,e,n));var r=n&&n.bias||(oe(e.primary().head,t.sel.primary().head)<0?-1:1);ja(t,za(t,e,r,!0)),n&&!1===n.scroll||!t.cm||si(t.cm)}function ja(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,vt(t.cm)),Sn(t,"cursorActivity",t))}function Ka(t){ja(t,za(t,t.sel,null,!1))}function za(t,e,n,r){for(var i,a=0;a<e.ranges.length;a++){var o=e.ranges[a],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[a],c=Xa(t,o.anchor,s&&s.anchor,n,r),l=Xa(t,o.head,s&&s.head,n,r);(i||c!=o.anchor||l!=o.head)&&(i||(i=e.ranges.slice(0,a)),i[a]=new aa(c,l))}return i?oa(t.cm,i,e.primIndex):e}function Ga(t,e,n,r,i){var a=Yt(t,e.line);if(a.markedSpans)for(var o=0;o<a.markedSpans.length;++o){var s=a.markedSpans[o],c=s.marker,l="selectLeft"in c?!c.selectLeft:c.inclusiveLeft,u="selectRight"in c?!c.selectRight:c.inclusiveRight;if((null==s.from||(l?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(u?s.to>=e.ch:s.to>e.ch))){if(i&&(mt(c,"beforeCursorEnter"),c.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!c.atomic)continue;if(n){var h=c.find(r<0?1:-1),f=void 0;if((r<0?u:l)&&(h=Va(t,h,-r,h&&h.line==e.line?a:null)),h&&h.line==e.line&&(f=oe(h,n))&&(r<0?f<0:f>0))return Ga(t,h,e,r,i)}var d=c.find(r<0?-1:1);return(r<0?l:u)&&(d=Va(t,d,r,d.line==e.line?a:null)),d?Ga(t,d,e,r,i):null}}return e}function Xa(t,e,n,r,i){var a=r||1,o=Ga(t,e,n,a,i)||!i&&Ga(t,e,n,a,!0)||Ga(t,e,n,-a,i)||!i&&Ga(t,e,n,-a,!0);return o||(t.cantEdit=!0,ae(t.first,0))}function Va(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?fe(t,ae(e.line-1)):null:n>0&&e.ch==(r||Yt(t,e.line)).text.length?e.line<t.first+t.size-1?ae(e.line+1,0):null:new ae(e.line,e.ch+n)}function Wa(t){t.setSelection(ae(t.firstLine(),0),ae(t.lastLine()),j)}function qa(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,i,a){e&&(r.from=fe(t,e)),n&&(r.to=fe(t,n)),i&&(r.text=i),void 0!==a&&(r.origin=a)}),mt(t,"beforeChange",t,r),t.cm&&mt(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Ya(t,e,n){if(t.cm){if(!t.cm.curOp)return Mi(t.cm,Ya)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(yt(t,"beforeChange")||t.cm&&yt(t.cm,"beforeChange"))||(e=qa(t,e,!0))){var r=Se&&!n&&$e(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)Ja(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else Ja(t,e)}}function Ja(t,e){if(1!=e.text.length||""!=e.text[0]||0!=oe(e.from,e.to)){var n=ua(t,e);Ea(t,e,n,t.cm?t.cm.curOp.id:NaN),eo(t,e,n,Qe(t,e));var r=[];ma(t,(function(t,n){n||-1!=U(r,t.history)||(oo(t.history,e),r.push(t.history)),eo(t,e,null,Qe(t,e))}))}}function Za(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,a=t.history,o=t.sel,s="undo"==e?a.done:a.undone,c="undo"==e?a.undone:a.done,l=0;l<s.length&&(i=s[l],n?!i.ranges||i.equals(t.sel):i.ranges);l++);if(l!=s.length){for(a.lastOrigin=a.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(_a(i,c),n&&!i.equals(t.sel))return void $a(t,i,{clearRedo:!1});o=i}var u=[];_a(o,c),c.push({changes:u,generation:a.generation}),a.generation=i.generation||++a.maxGeneration;for(var h=yt(t,"beforeChange")||t.cm&&yt(t.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=e,h&&!qa(t,r,!1))return s.length=0,{};u.push(ka(t,r));var a=n?ua(t,r):W(s);eo(t,r,a,Ma(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:ca(r)});var o=[];ma(t,(function(t,e){e||-1!=U(o,t.history)||(oo(t.history,r),o.push(t.history)),eo(t,r,null,Ma(t,r))}))},d=i.changes.length-1;d>=0;--d){var A=f(d);if(A)return A.v}}}}function to(t,e){if(0!=e&&(t.first+=e,t.sel=new ia(q(t.sel.ranges,(function(t){return new aa(ae(t.anchor.line+e,t.anchor.ch),ae(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){Pr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)Rr(t.cm,r,"gutter")}}function eo(t,e,n,r){if(t.cm&&!t.cm.curOp)return Mi(t.cm,eo)(t,e,n,r);if(e.to.line<t.first)to(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var i=e.text.length-1-(t.first-e.from.line);to(t,i),e={from:ae(t.first,0),to:ae(e.to.line+i,e.to.ch),text:[W(e.text)],origin:e.origin}}var a=t.lastLine();e.to.line>a&&(e={from:e.from,to:ae(a,Yt(t,a).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Jt(t,e.from,e.to),n||(n=ua(t,e)),t.cm?no(t.cm,e,r):pa(t,e,r),Ha(t,n,j),t.cantEdit&&Xa(t,ae(t.firstLine(),0))&&(t.cantEdit=!1)}}function no(t,e,n){var r=t.doc,i=t.display,a=e.from,o=e.to,s=!1,c=a.line;t.options.lineWrapping||(c=ee(Je(Yt(r,a.line))),r.iter(c,o.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&vt(t),pa(r,e,n,Or(t)),t.options.lineWrapping||(r.iter(c,a.line+e.text.length,(function(t){var e=sn(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),_e(r,a.line),Fi(t,400);var l=e.text.length-(o.line-a.line)-1;e.full?Pr(t):a.line!=o.line||1!=e.text.length||ga(t.doc,e)?Pr(t,a.line,o.line+1,l):Rr(t,a.line,"text");var u=yt(t,"changes"),h=yt(t,"change");if(h||u){var f={from:a,to:o,text:e.text,removed:e.removed,origin:e.origin};h&&Sn(t,"change",t,f),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(f)}t.display.selForContextMenu=null}function ro(t,e,n,r,i){var a;r||(r=n),oe(r,n)<0&&(n=(a=[r,n])[0],r=a[1]),"string"==typeof e&&(e=t.splitLines(e)),Ya(t,{from:n,to:r,text:e,origin:i})}function io(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function ao(t,e,n,r){for(var i=0;i<t.length;++i){var a=t[i],o=!0;if(a.ranges){a.copied||((a=t[i]=a.deepCopy()).copied=!0);for(var s=0;s<a.ranges.length;s++)io(a.ranges[s].anchor,e,n,r),io(a.ranges[s].head,e,n,r)}else{for(var c=0;c<a.changes.length;++c){var l=a.changes[c];if(n<l.from.line)l.from=ae(l.from.line+r,l.from.ch),l.to=ae(l.to.line+r,l.to.ch);else if(e<=l.to.line){o=!1;break}}o||(t.splice(0,i+1),i=0)}}}function oo(t,e){var n=e.from.line,r=e.to.line,i=e.text.length-(r-n)-1;ao(t.done,n,r,i),ao(t.undone,n,r,i)}function so(t,e,n,r){var i=e,a=e;return"number"==typeof e?a=Yt(t,he(t,e)):i=ee(e),null==i?null:(r(a,i)&&t.cm&&Rr(t.cm,i,n),a)}function co(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function lo(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var i=t[r];e+=i.chunkSize(),n+=i.height,i.parent=this}this.size=e,this.height=n,this.parent=null}aa.prototype.from=function(){return ue(this.anchor,this.head)},aa.prototype.to=function(){return le(this.anchor,this.head)},aa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},co.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var i=this.lines[n];this.height-=i.height,hn(i),Sn(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},lo.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(t<i){var a=Math.min(e,i-t),o=r.height;if(r.removeInner(t,a),this.height-=o-r.height,i==a&&(this.children.splice(n--,1),r.parent=null),0==(e-=a))break;t=0}else t-=i}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof co))){var s=[];this.collapse(s),this.children=[new co(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(t<=a){if(i.insertInner(t,e,n),i.lines&&i.lines.length>50){for(var o=i.lines.length%25+25,s=o;s<i.lines.length;){var c=new co(i.lines.slice(s,s+=25));i.height-=c.height,this.children.splice(++r,0,c),c.parent=this}i.lines=i.lines.slice(0,o),this.maybeSpill()}break}t-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new lo(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=U(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var r=new lo(t.children);r.parent=t,t.children=[r,e],t=r}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(t<a){var o=Math.min(e,a-t);if(i.iterN(t,o,n))return!0;if(0==(e-=o))break;t=0}else t-=a}}};var uo=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function ho(t,e,n){on(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&oi(t,n)}function fo(t,e,n,r){var i=new uo(t,n,r),a=t.cm;return a&&i.noHScroll&&(a.display.alignWidgets=!0),so(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=e,a&&!rn(t,e)){var r=on(e)<t.scrollTop;te(e,e.height+jn(i)),r&&oi(a,i.height),a.curOp.forceUpdate=!0}return!0})),a&&Sn(a,"lineWidgetAdded",a,i,"number"==typeof e?e:ee(e)),i}uo.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=ee(n);if(null!=r&&e){for(var i=0;i<e.length;++i)e[i]==this&&e.splice(i--,1);e.length||(n.widgets=null);var a=jn(this);te(n,Math.max(0,n.height-a)),t&&(Ii(t,(function(){ho(t,n,-a),Rr(t,r,"widget")})),Sn(t,"lineWidgetCleared",t,this,r))}},uo.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=jn(this)-e;i&&(rn(this.doc,r)||te(r,r.height+i),n&&Ii(n,(function(){n.curOp.forceUpdate=!0,ho(n,r,i),Sn(n,"lineWidgetChanged",n,t,ee(r))})))},wt(uo);var Ao=0,go=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++Ao};function po(t,e,n,r,i){if(r&&r.shared)return bo(t,e,n,r,i);if(t.cm&&!t.cm.curOp)return Mi(t.cm,po)(t,e,n,r,i);var a=new go(t,i),o=oe(e,n);if(r&&P(r,a,!1),o>0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=L("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Ye(t,e.line,e,n,a)||e.line!=n.line&&Ye(t,n.line,e,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Me()}a.addToHistory&&Ea(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,c=e.line,l=t.cm;if(t.iter(c,n.line+1,(function(t){l&&a.collapsed&&!l.options.lineWrapping&&Je(t)==l.display.maxLine&&(s=!0),a.collapsed&&c!=e.line&&te(t,0),Ne(t,new Oe(a,c==e.line?e.ch:null,c==n.line?n.ch:null)),++c})),a.collapsed&&t.iter(e.line,n.line+1,(function(e){rn(t,e)&&te(e,0)})),a.clearOnEnter&&At(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(Ie(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),a.collapsed&&(a.id=++Ao,a.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),a.collapsed)Pr(l,e.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var u=e.line;u<=n.line;u++)Rr(l,u,"text");a.atomic&&Ka(l.doc),Sn(l,"markerAdded",l,a)}return a}go.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Ci(t),yt(this,"clear")){var n=this.find();n&&Sn(this,"clear",n.from,n.to)}for(var r=null,i=null,a=0;a<this.lines.length;++a){var o=this.lines[a],s=De(o.markedSpans,this);t&&!this.collapsed?Rr(t,ee(o),"text"):t&&(null!=s.to&&(i=ee(o)),null!=s.from&&(r=ee(o))),o.markedSpans=Fe(o.markedSpans,s),null==s.from&&this.collapsed&&!rn(this.doc,o)&&t&&te(o,Sr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var l=Je(this.lines[c]),u=sn(l);u>t.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Pr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ka(t.doc)),t&&Sn(t,"markerCleared",t,this,r,i),e&&xi(t),this.parent&&this.parent.clear()}},go.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var a=this.lines[i],o=De(a.markedSpans,this);if(null!=o.from&&(n=ae(e?a:ee(a),o.from),-1==t))return n;if(null!=o.to&&(r=ae(e?a:ee(a),o.to),1==t))return r}return n&&{from:n,to:r}},go.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&Ii(r,(function(){var i=e.line,a=ee(e.line),o=er(r,a);if(o&&(ur(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!rn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var c=jn(n)-s;c&&te(i,i.height+c)}Sn(r,"markerChanged",r,t)}))},go.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=U(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},go.prototype.detachLine=function(t){if(this.lines.splice(U(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},wt(go);var mo=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function bo(t,e,n,r,i){(r=P(r)).shared=!1;var a=[po(t,e,n,r,i)],o=a[0],s=r.widgetNode;return ma(t,(function(t){s&&(r.widgetNode=s.cloneNode(!0)),a.push(po(t,fe(t,e),fe(t,n),r,i));for(var c=0;c<t.linked.length;++c)if(t.linked[c].isParent)return;o=W(a)})),new mo(a,o)}function vo(t){return t.findMarks(ae(t.first,0),t.clipPos(ae(t.lastLine())),(function(t){return t.parent}))}function yo(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.find(),a=t.clipPos(i.from),o=t.clipPos(i.to);if(oe(a,o)){var s=po(t,a,o,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function wo(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];ma(n.primary.doc,(function(t){return r.push(t)}));for(var i=0;i<n.markers.length;i++){var a=n.markers[i];-1==U(r,a.doc)&&(a.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)e(n)}mo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Sn(this,"clear")}},mo.prototype.find=function(t,e){return this.primary.find(t,e)},wt(mo);var ko=0,Co=function(t,e,n,r,i){if(!(this instanceof Co))return new Co(t,e,n,r,i);null==n&&(n=0),lo.call(this,[new co([new ln("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var a=ae(n,0);this.sel=sa(a),this.history=new wa(null),this.id=++ko,this.modeOption=e,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),pa(this,{from:a,to:a,text:t}),$a(this,sa(a),j)};Co.prototype=Z(lo.prototype,{constructor:Co,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Zt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:Di((function(t){var e=ae(this.first,0),n=this.first+this.size-1;Ya(this,{from:e,to:ae(n,Yt(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&ci(this.cm,0,0),$a(this,sa(e),j)})),replaceRange:function(t,e,n,r){ro(this,t,e=fe(this,e),n=n?fe(this,n):e,r)},getRange:function(t,e,n){var r=Jt(this,fe(this,t),fe(this,e));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(re(this,t))return Yt(this,t)},getLineNumber:function(t){return ee(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=Yt(this,t)),Je(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return fe(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Di((function(t,e,n){Ra(this,fe(this,"number"==typeof t?ae(t,e||0):t),null,n)})),setSelection:Di((function(t,e,n){Ra(this,fe(this,t),fe(this,e||t),n)})),extendSelection:Di((function(t,e,n){Fa(this,fe(this,t),e&&fe(this,e),n)})),extendSelections:Di((function(t,e){Na(this,Ae(this,t),e)})),extendSelectionsBy:Di((function(t,e){Na(this,Ae(this,q(this.sel.ranges,t)),e)})),setSelections:Di((function(t,e,n){if(t.length){for(var r=[],i=0;i<t.length;i++)r[i]=new aa(fe(this,t[i].anchor),fe(this,t[i].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),$a(this,oa(this.cm,r,e),n)}})),addSelection:Di((function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new aa(fe(this,t),fe(this,e||t))),$a(this,oa(this.cm,r,r.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var i=Jt(this,n[r].from(),n[r].to());e=e?e.concat(i):i}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Jt(this,n[r].from(),n[r].to());!1!==t&&(i=i.join(t||this.lineSeparator())),e[r]=i}return e},replaceSelection:function(t,e,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:Di((function(t,e,n){for(var r=[],i=this.sel,a=0;a<i.ranges.length;a++){var o=i.ranges[a];r[a]={from:o.from(),to:o.to(),text:this.splitLines(t[a]),origin:n}}for(var s=e&&"end"!=e&&fa(this,r,e),c=r.length-1;c>=0;c--)Ya(this,r[c]);s?Ua(this,s):this.cm&&si(this.cm)})),undo:Di((function(){Za(this,"undo")})),redo:Di((function(){Za(this,"redo")})),undoSelection:Di((function(){Za(this,"undo",!0)})),redoSelection:Di((function(){Za(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new wa(this.history.maxGeneration),ma(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Oa(this.history.done),undone:Oa(this.history.undone)}},setHistory:function(t){var e=this.history=new wa(this.history.maxGeneration);e.done=Oa(t.done.slice(0),null,!0),e.undone=Oa(t.undone.slice(0),null,!0)},setGutterMarker:Di((function(t,e,n){return so(this,t,"gutter",(function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&rt(r)&&(t.gutterMarkers=null),!0}))})),clearGutter:Di((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&so(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,rt(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!re(this,t))return null;if(e=t,!(t=Yt(this,t)))return null}else if(null==(e=ee(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Di((function(t,e,n){return so(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(x(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0}))})),removeLineClass:Di((function(t,e,n){return so(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",i=t[r];if(!i)return!1;if(null==n)t[r]=null;else{var a=i.match(x(n));if(!a)return!1;var o=a.index+a[0].length;t[r]=i.slice(0,a.index)+(a.index&&o!=i.length?" ":"")+i.slice(o)||null}return!0}))})),addLineWidget:Di((function(t,e,n){return fo(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return po(this,fe(this,t),fe(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return po(this,t=fe(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=Yt(this,(t=fe(this,t)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=fe(this,t),e=fe(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(a){var o=a.markedSpans;if(o)for(var s=0;s<o.length;s++){var c=o[s];null!=c.to&&i==t.line&&t.ch>=c.to||null==c.from&&i!=t.line||null!=c.from&&i==e.line&&c.from>=e.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)})),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var a=i.text.length+r;if(a>t)return e=t,!0;t-=a,++n})),fe(this,ae(n,e))},indexFromPos:function(t){var e=(t=fe(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new Co(Zt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new Co(Zt(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],yo(r,vo(this)),r},unlinkDoc:function(t){if(t instanceof Ps&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),wo(vo(this));break}if(t.history==this.history){var n=[t.id];ma(t,(function(t){return n.push(t.id)}),!0),t.history=new wa(null),t.history.done=Oa(this.history.done,n),t.history.undone=Oa(this.history.undone,n)}},iterLinkedDocs:function(t){ma(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Dt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Di((function(t){"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&ya(this.cm))}))}),Co.prototype.eachLine=Co.prototype.iter;var xo=0;function Eo(t){var e=this;if(_o(e),!bt(e,t)&&!Kn(e.display,t)){kt(t),o&&(xo=+new Date);var n=Fr(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,a=Array(i),s=0,c=function(){++s==i&&Mi(e,(function(){var t={from:n=fe(e.doc,n),to:n,text:e.doc.splitLines(a.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};Ya(e.doc,t),Ua(e.doc,sa(fe(e.doc,n),fe(e.doc,ca(t))))}))()},l=function(t,n){if(e.options.allowDropFileTypes&&-1==U(e.options.allowDropFileTypes,t.type))c();else{var r=new FileReader;r.onerror=function(){return c()},r.onload=function(){var t=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(a[n]=t),c()},r.readAsText(t)}},u=0;u<r.length;u++)l(r[u],u);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var h=t.dataTransfer.getData("Text");if(h){var f;if(e.state.draggingText&&!e.state.draggingText.copy&&(f=e.listSelections()),Ha(e.doc,sa(n,n)),f)for(var d=0;d<f.length;++d)ro(e.doc,"",f[d].anchor,f[d].head,"drag");e.replaceSelection(h,"around","paste"),e.display.input.focus()}}catch(t){}}}}function To(t,e){if(o&&(!t.state.draggingText||+new Date-xo<100))Et(e);else if(!bt(t,e)&&!Kn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!f)){var n=S("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}function Bo(t,e){var n=Fr(t,e);if(n){var r=document.createDocumentFragment();zr(t,n,r),t.display.dragCursor||(t.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),_(t.display.dragCursor,r)}}function _o(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function So(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var i=e[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var Lo=!1;function Io(){Lo||(Mo(),Lo=!0)}function Mo(){var t;At(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,So(Oo)}),100))})),At(window,"blur",(function(){return So(Jr)}))}function Oo(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Do={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fo=0;Fo<10;Fo++)Do[Fo+48]=Do[Fo+96]=String(Fo);for(var No=65;No<=90;No++)Do[No]=String.fromCharCode(No);for(var Po=1;Po<=12;Po++)Do[Po+111]=Do[Po+63235]="F"+Po;var Ro={};function Qo(t){var e,n,r,i,a=t.split(/-(?!$)/);t=a[a.length-1];for(var o=0;o<a.length-1;o++){var s=a[o];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function Uo(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var i=q(n.split(" "),Qo),a=0;a<i.length;a++){var o=void 0,s=void 0;a==i.length-1?(s=i.join(" "),o=r):(s=i.slice(0,a+1).join(" "),o="...");var c=e[s];if(c){if(c!=o)throw new Error("Inconsistent bindings for "+s)}else e[s]=o}delete t[n]}for(var l in e)t[l]=e[l];return t}function $o(t,e,n,r){var i=(e=zo(e)).call?e.call(t,r):e[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return $o(t,e.fallthrough,n,r);for(var a=0;a<e.fallthrough.length;a++){var o=$o(t,e.fallthrough[a],n,r);if(o)return o}}}function Ho(t){var e="string"==typeof t?t:Do[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function jo(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(k?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(k?e.ctrlKey:e.metaKey)&&"Mod"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function Ko(t,e){if(h&&34==t.keyCode&&t.char)return!1;var n=Do[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),jo(n,t,e))}function zo(t){return"string"==typeof t?Ro[t]:t}function Go(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var a=e(n[i]);r.length&&oe(a.from,W(r).to)<=0;){var o=r.pop();if(oe(o.from,a.from)<0){a.from=o.from;break}}r.push(a)}Ii(t,(function(){for(var e=r.length-1;e>=0;e--)ro(t.doc,"",r[e].from,r[e].to,"+delete");si(t)}))}function Xo(t,e,n){var r=ot(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Vo(t,e,n){var r=Xo(t,e.ch,n);return null==r?null:new ae(e.line,r,n<0?"after":"before")}function Wo(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var a=ft(n,e.doc.direction);if(a){var o,s=i<0?W(a):a[0],c=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var l=nr(e,n);o=i<0?n.text.length-1:0;var u=rr(e,l,o).top;o=st((function(t){return rr(e,l,t).top==u}),i<0==(1==s.level)?s.from:s.to-1,o),"before"==c&&(o=Xo(n,o,1))}else o=i<0?s.to:s.from;return new ae(r,o,c)}}return new ae(r,i<0?n.text.length:0,i<0?"before":"after")}function qo(t,e,n,r){var i=ft(e,t.doc.direction);if(!i)return Vo(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=ut(i,n.ch,n.sticky),o=i[a];if("ltr"==t.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from<n.ch))return Vo(e,n,r);var s,c=function(t,n){return Xo(e,t instanceof ae?t.ch:t,n)},l=function(n){return t.options.lineWrapping?(s=s||nr(t,e),xr(t,e,s,n)):{begin:0,end:e.text.length}},u=l("before"==n.sticky?c(n,-1):n.ch);if("rtl"==t.doc.direction||1==o.level){var h=1==o.level==r<0,f=c(n,h?1:-1);if(null!=f&&(h?f<=o.to&&f<=u.end:f>=o.from&&f>=u.begin)){var d=h?"before":"after";return new ae(n.line,f,d)}}var A=function(t,e,r){for(var a=function(t,e){return e?new ae(n.line,c(t,1),"before"):new ae(n.line,t,"after")};t>=0&&t<i.length;t+=e){var o=i[t],s=e>0==(1!=o.level),l=s?r.begin:c(r.end,-1);if(o.from<=l&&l<o.to)return a(l,s);if(l=s?o.from:c(o.to,-1),r.begin<=l&&l<r.end)return a(l,s)}},g=A(a+r,r,u);if(g)return g;var p=r>0?u.end:c(u.begin,-1);return null==p||r>0&&p==e.text.length||!(g=A(r>0?0:i.length-1,r,l(p)))?null:g}Ro.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ro.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ro.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ro.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ro.default=b?Ro.macDefault:Ro.pcDefault;var Yo={selectAll:Wa,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),j)},killLine:function(t){return Go(t,(function(e){if(e.empty()){var n=Yt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:ae(e.head.line+1,0)}:{from:e.head,to:ae(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return Go(t,(function(e){return{from:ae(e.from().line,0),to:fe(t.doc,ae(e.to().line+1,0))}}))},delLineLeft:function(t){return Go(t,(function(t){return{from:ae(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return Go(t,(function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return Go(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(ae(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(ae(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return Jo(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return ts(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return Zo(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),z)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),z)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?ts(t,e.head):r}),z)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,i=0;i<n.length;i++){var a=n[i].from(),o=R(t.getLine(a.line),a.ch,r);e.push(V(r-o%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Ii(t,(function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var i=e[r].head,a=Yt(t.doc,i.line).text;if(a)if(i.ch==a.length&&(i=new ae(i.line,i.ch-1)),i.ch>0)i=new ae(i.line,i.ch+1),t.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),ae(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var o=Yt(t.doc,i.line-1).text;o&&(i=new ae(i.line,1),t.replaceRange(a.charAt(0)+t.doc.lineSeparator()+o.charAt(o.length-1),ae(i.line-1,o.length-1),i,"+transpose"))}n.push(new aa(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Ii(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);si(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Jo(t,e){var n=Yt(t.doc,e),r=Je(n);return r!=n&&(e=ee(r)),Wo(!0,t,r,e,1)}function Zo(t,e){var n=Yt(t.doc,e),r=Ze(n);return r!=n&&(e=ee(r)),Wo(!0,t,n,e,-1)}function ts(t,e){var n=Jo(t,e.line),r=Yt(t.doc,n.line),i=ft(r,t.doc.direction);if(!i||0==i[0].level){var a=Math.max(n.ch,r.text.search(/\S/)),o=e.line==n.line&&e.ch<=a&&e.ch;return ae(n.line,o?0:a,n.sticky)}return n}function es(t,e,n){if("string"==typeof e&&!(e=Yo[e]))return!1;t.display.input.ensurePolled();var r=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=e(t)!=H}finally{t.display.shift=r,t.state.suppressEdits=!1}return i}function ns(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var i=$o(e,t.state.keyMaps[r],n,t);if(i)return i}return t.options.extraKeys&&$o(e,t.options.extraKeys,n,t)||$o(e,t.options.keyMap,n,t)}var rs=new Q;function is(t,e,n,r){var i=t.state.keySeq;if(i){if(Ho(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:rs.set(50,(function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())})),as(t,i+" "+e,n,r))return!0}return as(t,e,n,r)}function as(t,e,n,r){var i=ns(t,e,r);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&Sn(t,"keyHandled",t,e,n),"handled"!=i&&"multi"!=i||(kt(n),Vr(t)),!!i}function os(t,e){var n=Ko(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?is(t,"Shift-"+n,e,(function(e){return es(t,e,!0)}))||is(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return es(t,e)})):is(t,n,e,(function(e){return es(t,e)})))}function ss(t,e,n){return is(t,"'"+n+"'",e,(function(e){return es(t,e,!0)}))}var cs=null;function ls(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=M(),bt(e,t)))){o&&s<11&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.display.shift=16==r||t.shiftKey;var i=os(e,t);h&&(cs=i?r:null,i||88!=r||Nt||!(b?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||us(e)}}function us(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(T(e,"CodeMirror-crosshair"),pt(document,"keyup",n),pt(document,"mouseover",n))}O(e,"CodeMirror-crosshair"),At(document,"keyup",n),At(document,"mouseover",n)}function hs(t){16==t.keyCode&&(this.doc.sel.shift=!1),bt(this,t)}function fs(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||Kn(e.display,t)||bt(e,t)||t.ctrlKey&&!t.altKey||b&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(h&&n==cs)return cs=null,void kt(t);if(!h||t.which&&!(t.which<10)||!os(e,t)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(ss(e,t,i)||e.display.input.onKeyPress(t))}}}var ds,As,gs=400,ps=function(t,e,n){this.time=t,this.pos=e,this.button=n};function ms(t,e){var n=+new Date;return As&&As.compare(n,t,e)?(ds=As=null,"triple"):ds&&ds.compare(n,t,e)?(As=new ps(n,t,e),ds=null,"double"):(ds=new ps(n,t,e),As=null,"single")}function bs(t){var e=this,n=e.display;if(!(bt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,Kn(n,t))c||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Bs(e,t)){var r=Fr(e,t),i=Bt(t),a=r?ms(r,i):"single";window.focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),r&&vs(e,i,r,a,t)||(1==i?r?ws(e,r,a,t):Tt(t)==n.scroller&&kt(t):2==i?(r&&Fa(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?e.display.input.onContextMenu(t):qr(e)))}}function vs(t,e,n,r,i){var a="Click";return"double"==r?a="Double"+a:"triple"==r&&(a="Triple"+a),is(t,jo(a=(1==e?"Left":2==e?"Middle":"Right")+a,i),i,(function(e){if("string"==typeof e&&(e=Yo[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=H}finally{t.state.suppressEdits=!1}return r}))}function ys(t,e,n){var r=t.getOption("configureMouse"),i=r?r(t,e,n):{};if(null==i.unit){var a=v?n.shiftKey&&n.metaKey:n.altKey;i.unit=a?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function ws(t,e,n,r){o?setTimeout(N(Wr,t),0):t.curOp.focus=M();var i,a=ys(t,n,r),s=t.doc.sel;t.options.dragDrop&&Lt&&!t.isReadOnly()&&"single"==n&&(i=s.contains(e))>-1&&(oe((i=s.ranges[i]).from(),e)<0||e.xRel>0)&&(oe(i.to(),e)>0||e.xRel<0)?ks(t,r,e,a):xs(t,r,e,a)}function ks(t,e,n,r){var i=t.display,a=!1,l=Mi(t,(function(e){c&&(i.scroller.draggable=!1),t.state.draggingText=!1,pt(i.wrapper.ownerDocument,"mouseup",l),pt(i.wrapper.ownerDocument,"mousemove",u),pt(i.scroller,"dragstart",h),pt(i.scroller,"drop",l),a||(kt(e),r.addNew||Fa(t.doc,n,null,null,r.extend),c&&!f||o&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(t){a=a||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return a=!0};c&&(i.scroller.draggable=!0),t.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),At(i.wrapper.ownerDocument,"mouseup",l),At(i.wrapper.ownerDocument,"mousemove",u),At(i.scroller,"dragstart",h),At(i.scroller,"drop",l),qr(t),setTimeout((function(){return i.input.focus()}),20)}function Cs(t,e,n){if("char"==n)return new aa(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new aa(ae(e.line,0),fe(t.doc,ae(e.line+1,0)));var r=n(t,e);return new aa(r.from,r.to)}function xs(t,e,n,r){var i=t.display,a=t.doc;kt(e);var o,s,c=a.sel,l=c.ranges;if(r.addNew&&!r.extend?(s=a.sel.contains(n),o=s>-1?l[s]:new aa(n,n)):(o=a.sel.primary(),s=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(o=new aa(n,n)),n=Fr(t,e,!0,!0),s=-1;else{var u=Cs(t,n,r.unit);o=r.extend?Da(o,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=l.length,$a(a,oa(t,l.concat([o]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?($a(a,oa(t,l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):Pa(a,s,o,K):(s=0,$a(a,new ia([o],0),K),c=a.sel);var h=n;function f(e){if(0!=oe(h,e))if(h=e,"rectangle"==r.unit){for(var i=[],l=t.options.tabSize,u=R(Yt(a,n.line).text,n.ch,l),f=R(Yt(a,e.line).text,e.ch,l),d=Math.min(u,f),A=Math.max(u,f),g=Math.min(n.line,e.line),p=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=p;g++){var m=Yt(a,g).text,b=G(m,d,l);d==A?i.push(new aa(ae(g,b),ae(g,b))):m.length>b&&i.push(new aa(ae(g,b),ae(g,G(m,A,l))))}i.length||i.push(new aa(n,n)),$a(a,oa(t,c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var v,y=o,w=Cs(t,e,r.unit),k=y.anchor;oe(w.anchor,k)>0?(v=w.head,k=ue(y.from(),w.anchor)):(v=w.anchor,k=le(y.to(),w.head));var C=c.ranges.slice(0);C[s]=Es(t,new aa(fe(a,k),v)),$a(a,oa(t,C,s),K)}}var d=i.wrapper.getBoundingClientRect(),A=0;function g(e){var n=++A,o=Fr(t,e,!0,"rectangle"==r.unit);if(o)if(0!=oe(o,h)){t.curOp.focus=M(),f(o);var s=ei(i,a);(o.line>=s.to||o.line<s.from)&&setTimeout(Mi(t,(function(){A==n&&g(e)})),150)}else{var c=e.clientY<d.top?-20:e.clientY>d.bottom?20:0;c&&setTimeout(Mi(t,(function(){A==n&&(i.scroller.scrollTop+=c,g(e))})),50)}}function p(e){t.state.selectingText=!1,A=1/0,e&&(kt(e),i.input.focus()),pt(i.wrapper.ownerDocument,"mousemove",m),pt(i.wrapper.ownerDocument,"mouseup",b),a.history.lastSelOrigin=null}var m=Mi(t,(function(t){0!==t.buttons&&Bt(t)?g(t):p(t)})),b=Mi(t,p);t.state.selectingText=b,At(i.wrapper.ownerDocument,"mousemove",m),At(i.wrapper.ownerDocument,"mouseup",b)}function Es(t,e){var n=e.anchor,r=e.head,i=Yt(t.doc,n.line);if(0==oe(n,r)&&n.sticky==r.sticky)return e;var a=ft(i);if(!a)return e;var o=ut(a,n.ch,n.sticky),s=a[o];if(s.from!=n.ch&&s.to!=n.ch)return e;var c,l=o+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==a.length)return e;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=ut(a,r.ch,r.sticky),h=u-o||(r.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?h<0:h>0}var f=a[l+(c?-1:0)],d=c==(1==f.level),A=d?f.from:f.to,g=d?"after":"before";return n.ch==A&&n.sticky==g?e:new aa(new ae(n.line,A,g),r)}function Ts(t,e,n,r){var i,a;if(e.touches)i=e.touches[0].clientX,a=e.touches[0].clientY;else try{i=e.clientX,a=e.clientY}catch(t){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&kt(e);var o=t.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!yt(t,n))return xt(e);a-=s.top-o.viewOffset;for(var c=0;c<t.display.gutterSpecs.length;++c){var l=o.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i)return mt(t,n,t,ne(t.doc,a),t.display.gutterSpecs[c].className,e),xt(e)}}function Bs(t,e){return Ts(t,e,"gutterClick",!0)}function _s(t,e){Kn(t.display,e)||Ss(t,e)||bt(t,e,"contextmenu")||C||t.display.input.onContextMenu(e)}function Ss(t,e){return!!yt(t,"gutterContextMenu")&&Ts(t,e,"gutterContextMenu",!1)}function Ls(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(t)}ps.prototype.compare=function(t,e,n){return this.time+gs>t&&0==oe(e,this.pos)&&n==this.button};var Is={toString:function(){return"CodeMirror.Init"}},Ms={},Os={};function Ds(t){var e=t.optionHandlers;function n(n,r,i,a){t.defaults[n]=r,i&&(e[n]=a?function(t,e,n){n!=Is&&i(t,e,n)}:i)}t.defineOption=n,t.Init=Is,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,da(t)}),!0),n("indentUnit",2,da,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Aa(t),fr(t),Pr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var a=t.text.indexOf(e,i);if(-1==a)break;i=a+e.length,n.push(ae(r,a))}r++}));for(var i=n.length-1;i>=0;i--)ro(t.doc,e,n[i],ae(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Is&&t.refresh()})),n("specialCharPlaceholder",pn,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",m?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!y),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Ls(t),Yi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=zo(e),i=n!=Is&&zo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ns,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=Wi(e,t.options.lineNumbers),Yi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?Mr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return bi(t)}),!0),n("scrollbarStyle","native",(function(t){wi(t),bi(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=Wi(t.options.gutters,e),Yi(t)}),!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",(function(t){return t}),Yi,!0),n("showCursorWhenSelecting",!1,jr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Jr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Fs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,jr,!0),n("singleCursorHeightPerLine",!0,jr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Aa,!0),n("addModeClass",!1,Aa,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Aa,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}function Fs(t,e,n){if(!e!=!(n&&n!=Is)){var r=t.display.dragFunctions,i=e?At:pt;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function Ns(t){t.options.lineWrapping?(O(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),cn(t)),Dr(t),Pr(t),fr(t),setTimeout((function(){return bi(t)}),100)}function Ps(t,e){var n=this;if(!(this instanceof Ps))return new Ps(t,e);this.options=e=e?P(e):{},P(Ms,e,!1);var r=e.value;"string"==typeof r?r=new Co(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Ps.inputStyles[e.inputStyle](this),a=this.display=new Ji(t,r,i,e);for(var l in a.wrapper.CodeMirror=this,Ls(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Q,keySeq:null,specialChars:null},e.autofocus&&!m&&a.input.focus(),o&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Rs(this),Io(),Ci(this),this.curOp.forceUpdate=!0,ba(this,r),e.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Yr(n)}),20):Jr(this),Os)Os.hasOwnProperty(l)&&Os[l](this,e[l],Is);Vi(this),e.finishInit&&e.finishInit(this);for(var u=0;u<Qs.length;++u)Qs[u](this);xi(this),c&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(a.lineDiv).textRendering&&(a.lineDiv.style.textRendering="auto")}function Rs(t){var e=t.display;At(e.scroller,"mousedown",Mi(t,bs)),At(e.scroller,"dblclick",o&&s<11?Mi(t,(function(e){if(!bt(t,e)){var n=Fr(t,e);if(n&&!Bs(t,e)&&!Kn(t.display,e)){kt(e);var r=t.findWordAt(n);Fa(t.doc,r.anchor,r.head)}}})):function(e){return bt(t,e)||kt(e)}),At(e.scroller,"contextmenu",(function(e){return _s(t,e)})),At(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||_s(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function a(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function c(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}At(e.scroller,"touchstart",(function(i){if(!bt(t,i)&&!a(i)&&!Bs(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),At(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),At(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!Kn(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,o=t.coordsChar(e.activeTouch,"page");a=!r.prev||c(r,r.prev)?new aa(o,o):!r.prev.prev||c(r,r.prev.prev)?t.findWordAt(o):new aa(ae(o.line,0),fe(t.doc,ae(o.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),kt(n)}i()})),At(e.scroller,"touchcancel",i),At(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(fi(t,e.scroller.scrollTop),Ai(t,e.scroller.scrollLeft,!0),mt(t,"scroll",t))})),At(e.scroller,"mousewheel",(function(e){return ra(t,e)})),At(e.scroller,"DOMMouseScroll",(function(e){return ra(t,e)})),At(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){bt(t,e)||Et(e)},over:function(e){bt(t,e)||(Bo(t,e),Et(e))},start:function(e){return To(t,e)},drop:Mi(t,Eo),leave:function(e){bt(t,e)||_o(t)}};var l=e.input.getField();At(l,"keyup",(function(e){return hs.call(t,e)})),At(l,"keydown",Mi(t,ls)),At(l,"keypress",Mi(t,fs)),At(l,"focus",(function(e){return Yr(t,e)})),At(l,"blur",(function(e){return Jr(t,e)}))}Ps.defaults=Ms,Ps.optionHandlers=Os;var Qs=[];function Us(t,e,n,r){var i,a=t.doc;null==n&&(n="add"),"smart"==n&&(a.mode.indent?i=ve(t,e).state:n="prev");var o=t.options.tabSize,s=Yt(a,e),c=R(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var l,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=a.mode.indent(i,s.text.slice(u.length),s.text))==H||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=e>a.first?R(Yt(a,e-1).text,null,o):0:"add"==n?l=c+t.options.indentUnit:"subtract"==n?l=c-t.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var h="",f=0;if(t.options.indentWithTabs)for(var d=Math.floor(l/o);d;--d)f+=o,h+="\t";if(f<l&&(h+=V(l-f)),h!=u)return ro(a,h,ae(e,0),ae(e,u.length),"+input"),s.stateAfter=null,!0;for(var A=0;A<a.sel.ranges.length;A++){var g=a.sel.ranges[A];if(g.head.line==e&&g.head.ch<u.length){var p=ae(e,u.length);Pa(a,A,new aa(p,p));break}}}Ps.defineInitHook=function(t){return Qs.push(t)};var $s=null;function Hs(t){$s=t}function js(t,e,n,r,i){var a=t.doc;t.display.shift=!1,r||(r=a.sel);var o=+new Date-200,s="paste"==i||t.state.pasteIncoming>o,c=Dt(e),l=null;if(s&&r.ranges.length>1)if($s&&$s.text.join("\n")==e){if(r.ranges.length%$s.text.length==0){l=[];for(var u=0;u<$s.text.length;u++)l.push(a.splitLines($s.text[u]))}}else c.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(l=q(c,(function(t){return[t]})));for(var h=t.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],A=d.from(),g=d.to();d.empty()&&(n&&n>0?A=ae(A.line,A.ch-n):t.state.overwrite&&!s?g=ae(g.line,Math.min(Yt(a,g.line).text.length,g.ch+W(c).length)):s&&$s&&$s.lineWise&&$s.text.join("\n")==c.join("\n")&&(A=g=ae(A.line,0)));var p={from:A,to:g,text:l?l[f%l.length]:c,origin:i||(s?"paste":t.state.cutIncoming>o?"cut":"+input")};Ya(t.doc,p),Sn(t,"inputRead",t,p)}e&&!s&&zs(t,e),si(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ks(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Ii(e,(function(){return js(e,n,0,null,"paste")})),!0}function zs(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var a=t.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s<a.electricChars.length;s++)if(e.indexOf(a.electricChars.charAt(s))>-1){o=Us(t,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Yt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Us(t,i.head.line,"smart"));o&&Sn(t,"electricInput",t,i.head.line)}}}function Gs(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var i=t.doc.sel.ranges[r].head.line,a={anchor:ae(i,0),head:ae(i+1,0)};n.push(a),e.push(t.getRange(a.anchor,a.head))}return{text:e,ranges:n}}function Xs(t,e,n,r){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",r?"":"off"),t.setAttribute("spellcheck",!!e)}function Vs(){var t=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=S("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?t.style.width="1000px":t.setAttribute("wrap","off"),g&&(t.style.border="1px solid black"),Xs(t),e}function Ws(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&Mi(this,e[t])(this,n,i),mt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](zo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:Oi((function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");Y(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,Pr(this)})),removeOverlay:Oi((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void Pr(this)}})),indentLine:Oi((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),re(this.doc,t)&&Us(this,t,e,n)})),indentSelection:Oi((function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var i=e[r];if(i.empty())i.head.line>n&&(Us(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&si(this));else{var a=i.from(),o=i.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var c=s;c<n;++c)Us(this,c,t);var l=this.doc.sel.ranges;0==a.ch&&e.length==l.length&&l[r].from().ch>0&&Pa(this.doc,r,new aa(a,l[r].to()),j)}}})),getTokenAt:function(t,e){return xe(this,t,e)},getLineTokens:function(t,e){return xe(this,ae(t),e,!0)},getTokenTypeAt:function(t){t=fe(this.doc,t);var e,n=be(this,Yt(this.doc,t.line)),r=0,i=(n.length-1)/2,a=t.ch;if(0==a)e=n[2];else for(;;){var o=r+i>>1;if((o?n[2*o-1]:0)>=a)i=o;else{if(!(n[2*o+1]<a)){e=n[2*o+2];break}r=o+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var i=n[e],a=this.getModeAt(t);if("string"==typeof a[e])i[a[e]]&&r.push(i[a[e]]);else if(a[e])for(var o=0;o<a[e].length;o++){var s=i[a[e][o]];s&&r.push(s)}else a.helperType&&i[a.helperType]?r.push(i[a.helperType]):i[a.name]&&r.push(i[a.name]);for(var c=0;c<i._global.length;c++){var l=i._global[c];l.pred(a,this)&&-1==U(r,l.val)&&r.push(l.val)}return r},getStateAfter:function(t,e){var n=this.doc;return ve(this,(t=he(n,null==t?n.first+n.size-1:t))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return vr(this,null==t?n.head:"object"==typeof t?fe(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return br(this,fe(this.doc,t),e||"page")},coordsChar:function(t,e){return kr(this,(t=mr(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=mr(this,{top:t,left:0},e||"page").top,ne(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,i=!1;if("number"==typeof t){var a=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>a&&(t=a,i=!0),r=Yt(this.doc,t)}else r=t;return pr(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Sr(this.display)},defaultCharWidth:function(){return Lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var a=this.display,o=(t=vr(this,fe(this.doc,t))).bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),a.sizer.appendChild(e),"over"==r)o=t.top;else if("above"==r||"near"==r){var c=Math.max(a.wrapper.clientHeight,this.doc.height),l=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>c)&&t.top>e.offsetHeight?o=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=c&&(o=t.bottom),s+e.offsetWidth>l&&(s=l-e.offsetWidth)}e.style.top=o+"px",e.style.left=e.style.right="","right"==i?(s=a.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(a.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&ii(this,{left:s,top:o,right:s+e.offsetWidth,bottom:o+e.offsetHeight})},triggerOnKeyDown:Oi(ls),triggerOnKeyPress:Oi(fs),triggerOnKeyUp:hs,triggerOnMouseDown:Oi(bs),execCommand:function(t){if(Yo.hasOwnProperty(t))return Yo[t].call(null,this)},triggerElectric:Oi((function(t){zs(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var a=fe(this.doc,t),o=0;o<e&&!(a=qs(this.doc,a,i,n,r)).hitSide;++o);return a},moveH:Oi((function(t,e){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?qs(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()}),z)})),deleteH:Oi((function(t,e){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Go(this,(function(n){var i=qs(r,n.head,t,e,!1);return t<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(t,e,n,r){var i=1,a=r;e<0&&(i=-1,e=-e);for(var o=fe(this.doc,t),s=0;s<e;++s){var c=vr(this,o,"div");if(null==a?a=c.left:c.left=a,(o=Ys(this,c,i,n)).hitSide)break}return o},moveV:Oi((function(t,e){var n=this,r=this.doc,i=[],a=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(o){if(a)return t<0?o.from():o.to();var s=vr(n,o.head,"div");null!=o.goalColumn&&(s.left=o.goalColumn),i.push(s.left);var c=Ys(n,s,t,e);return"page"==e&&o==r.sel.primary()&&oi(n,br(n,c,"div").top-s.top),c}),z),i.length)for(var o=0;o<r.sel.ranges.length;o++)r.sel.ranges[o].goalColumn=i[o]})),findWordAt:function(t){var e=Yt(this.doc,t.line).text,n=t.ch,r=t.ch;if(e){var i=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=e.length||!n?++r:--n;for(var a=e.charAt(n),o=nt(a,i)?function(t){return nt(t,i)}:/\s/.test(a)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!nt(t)};n>0&&o(e.charAt(n-1));)--n;for(;r<e.length&&o(e.charAt(r));)++r}return new aa(ae(t.line,n),ae(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?O(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),mt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==M()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Oi((function(t,e){ci(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Vn(this)-this.display.barHeight,width:t.scrollWidth-Vn(this)-this.display.barWidth,clientHeight:qn(this),clientWidth:Wn(this)}},scrollIntoView:Oi((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:ae(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?li(this,t):hi(this,t.from,t.to,t.margin)})),setSize:Oi((function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&hr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){Rr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,mt(this,"refresh",this)})),operation:function(t){return Ii(this,t)},startOperation:function(){return Ci(this)},endOperation:function(){return xi(this)},refresh:Oi((function(){var t=this.display.cachedTextHeight;Pr(this),this.curOp.forceUpdate=!0,fr(this),ci(this,this.doc.scrollLeft,this.doc.scrollTop),zi(this.display),(null==t||Math.abs(t-Sr(this.display))>.5||this.options.lineWrapping)&&Dr(this),mt(this,"refresh",this)})),swapDoc:Oi((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),ba(this,t),fr(this),this.display.input.reset(),ci(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,Sn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,a){t.registerHelper(e,r,a),n[e]._global.push({pred:i,val:a})}}function qs(t,e,n,r,i){var a=e,o=n,s=Yt(t,e.line),c=i&&"rtl"==t.direction?-n:n;function l(){var n=e.line+c;return!(n<t.first||n>=t.first+t.size)&&(e=new ae(n,e.ch,e.sticky),s=Yt(t,n))}function u(a){var o;if("codepoint"==r){var u=s.text.charCodeAt(e.ch+(r>0?0:-1));o=isNaN(u)?null:new ae(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(u>=55296&&u<56320?2:1))),-n)}else o=i?qo(t.cm,s,e,n):Vo(s,e,n);if(null==o){if(a||!l())return!1;e=Wo(i,t.cm,s,e.line,c)}else e=o;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var h=null,f="group"==r,d=t.cm&&t.cm.getHelper(e,"wordChars"),A=!0;!(n<0)||u(!A);A=!1){var g=s.text.charAt(e.ch)||"\n",p=nt(g,d)?"w":f&&"\n"==g?"n":!f||/\s/.test(g)?null:"p";if(!f||A||p||(p="s"),h&&h!=p){n<0&&(n=1,u(),e.sticky="after");break}if(p&&(h=p),n>0&&!u(!A))break}var m=Xa(t,e,a,o,!0);return se(a,m)&&(m.hitSide=!0),m}function Ys(t,e,n,r){var i,a,o=t.doc,s=e.left;if("page"==r){var c=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*Sr(t.display),3);i=(n>0?e.bottom:e.top)+n*l}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(a=kr(t,s,i)).outside;){if(n<0?i<=0:i>=o.height){a.hitSide=!0;break}i+=5*n}return a}var Js=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zs(t,e){var n=er(t,e.line);if(!n||n.hidden)return null;var r=Yt(t.doc,e.line),i=Jn(n,r,e.line),a=ft(r,t.doc.direction),o="left";a&&(o=ut(a,e.ch)%2?"right":"left");var s=or(i.map,e.ch,o);return s.offset="right"==s.collapse?s.end:s.start,s}function tc(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function ec(t,e){return e&&(t.bad=!0),t}function nc(t,e,n,r,i){var a="",o=!1,s=t.doc.lineSeparator(),c=!1;function l(t){return function(e){return e.id==t}}function u(){o&&(a+=s,c&&(a+=s),o=c=!1)}function h(t){t&&(u(),a+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void h(n);var a,d=e.getAttribute("cm-marker");if(d){var A=t.findMarks(ae(r,0),ae(i+1,0),l(+d));return void(A.length&&(a=A[0].find(0))&&h(Jt(t.doc,a.from,a.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;g&&u();for(var p=0;p<e.childNodes.length;p++)f(e.childNodes[p]);/^(pre|p)$/i.test(e.nodeName)&&(c=!0),g&&(o=!0)}else 3==e.nodeType&&h(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;f(e),e!=n;)e=e.nextSibling,c=!1;return a}function rc(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return ec(t.clipPos(ae(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var a=t.display.view[i];if(a.node==r)return ic(a,e,n)}}function ic(t,e,n){var r=t.text.firstChild,i=!1;if(!e||!I(r,e))return ec(ae(ee(t.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[n],n=0,!e)){var a=t.rest?W(t.rest):t.line;return ec(ae(ee(a),a.text.length),i)}var o=3==e.nodeType?e:null,s=e;for(o||1!=e.childNodes.length||3!=e.firstChild.nodeType||(o=e.firstChild,n&&(n=o.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var c=t.measure,l=c.maps;function u(e,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var a=i<0?c.map:l[i],o=0;o<a.length;o+=3){var s=a[o+2];if(s==e||s==n){var u=ee(i<0?t.line:t.rest[i]),h=a[o]+r;return(r<0||s!=e)&&(h=a[o+(r?1:0)]),ae(u,h)}}}var h=u(o,s,n);if(h)return ec(h,i);for(var f=s.nextSibling,d=o?o.nodeValue.length-n:0;f;f=f.nextSibling){if(h=u(f,f.firstChild,0))return ec(ae(h.line,h.ch-d),i);d+=f.textContent.length}for(var A=s.previousSibling,g=n;A;A=A.previousSibling){if(h=u(A,A.firstChild,-1))return ec(ae(h.line,h.ch+g),i);g+=A.textContent.length}}Js.prototype.init=function(t){var e=this,n=this,r=n.cm,i=n.div=t.lineDiv;function a(t){for(var e=t.target;e;e=e.parentNode){if(e==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function o(t){if(a(t)&&!bt(r,t)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=Gs(r);Hs({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation((function(){r.setSelections(e.ranges,0,j),r.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var o=$s.text.join("\n");if(t.clipboardData.setData("Text",o),t.clipboardData.getData("Text")==o)return void t.preventDefault()}var s=Vs(),c=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),c.value=$s.text.join("\n");var l=document.activeElement;F(c),setTimeout((function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()}),50)}}Xs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),At(i,"paste",(function(t){!a(t)||bt(r,t)||Ks(t,r)||s<=11&&setTimeout(Mi(r,(function(){return e.updateFromDOM()})),20)})),At(i,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),At(i,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),At(i,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),At(i,"touchstart",(function(){return n.forceCompositionEnd()})),At(i,"input",(function(){e.composing||e.readFromDOMSoon()})),At(i,"copy",o),At(i,"cut",o)},Js.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Js.prototype.prepareSelection=function(){var t=Kr(this.cm,!1);return t.focus=document.activeElement==this.div,t},Js.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Js.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),a=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||a.line<e.display.viewFrom)t.removeAllRanges();else{var o=rc(e,t.anchorNode,t.anchorOffset),s=rc(e,t.focusNode,t.focusOffset);if(!o||o.bad||!s||s.bad||0!=oe(ue(o,s),i)||0!=oe(le(o,s),a)){var c=e.display.view,l=i.line>=e.display.viewFrom&&Zs(e,i)||{node:c[0].measure.map[2],offset:0},u=a.line<e.display.viewTo&&Zs(e,a);if(!u){var h=c[c.length-1].measure,f=h.maps?h.maps[h.maps.length-1]:h.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(l&&u){var d,A=t.rangeCount&&t.getRangeAt(0);try{d=E(l.node,l.offset,u.offset,u.node)}catch(t){}d&&(!n&&e.state.focused?(t.collapse(l.node,l.offset),d.collapsed||(t.removeAllRanges(),t.addRange(d))):(t.removeAllRanges(),t.addRange(d)),A&&null==t.anchorNode?t.addRange(A):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Js.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Js.prototype.showMultipleSelections=function(t){_(this.cm.display.cursorDiv,t.cursors),_(this.cm.display.selectionDiv,t.selection)},Js.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Js.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return I(this.div,e)},Js.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Js.prototype.blur=function(){this.div.blur()},Js.prototype.getField=function(){return this.div},Js.prototype.supportsTouch=function(){return!0},Js.prototype.receivedFocus=function(){var t=this;function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}this.selectionInEditor()?this.pollSelection():Ii(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,e)},Js.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Js.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(p&&u&&this.cm.display.gutterSpecs.length&&tc(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=rc(e,t.anchorNode,t.anchorOffset),r=rc(e,t.focusNode,t.focusOffset);n&&r&&Ii(e,(function(){$a(e.doc,sa(n,r),j),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)}))}}},Js.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,i=r.display,a=r.doc.sel.primary(),o=a.from(),s=a.to();if(0==o.ch&&o.line>r.firstLine()&&(o=ae(o.line-1,Yt(r.doc,o.line-1).length)),s.ch==Yt(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ae(s.line+1,0)),o.line<i.viewFrom||s.line>i.viewTo-1)return!1;o.line==i.viewFrom||0==(t=Nr(r,o.line))?(e=ee(i.view[0].line),n=i.view[0].node):(e=ee(i.view[t].line),n=i.view[t-1].node.nextSibling);var c,l,u=Nr(r,s.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=ee(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;for(var h=r.doc.splitLines(nc(r,n,l,e,c)),f=Jt(r.doc,ae(e,0),ae(c,Yt(r.doc,c).text.length));h.length>1&&f.length>1;)if(W(h)==W(f))h.pop(),f.pop(),c--;else{if(h[0]!=f[0])break;h.shift(),f.shift(),e++}for(var d=0,A=0,g=h[0],p=f[0],m=Math.min(g.length,p.length);d<m&&g.charCodeAt(d)==p.charCodeAt(d);)++d;for(var b=W(h),v=W(f),y=Math.min(b.length-(1==h.length?d:0),v.length-(1==f.length?d:0));A<y&&b.charCodeAt(b.length-A-1)==v.charCodeAt(v.length-A-1);)++A;if(1==h.length&&1==f.length&&e==o.line)for(;d&&d>o.ch&&b.charCodeAt(b.length-A-1)==v.charCodeAt(v.length-A-1);)d--,A++;h[h.length-1]=b.slice(0,b.length-A).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var w=ae(e,d),k=ae(c,f.length?W(f).length-A:0);return h.length>1||h[0]||oe(w,k)?(ro(r.doc,h,w,k,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Ii(this.cm,(function(){return Pr(t.cm)}))},Js.prototype.setUneditable=function(t){t.contentEditable="false"},Js.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Mi(this.cm,js)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Js.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;var ac=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};function oc(t,e){if((e=e?P(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=M();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(At(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var a=t.form;i=a.submit;try{var o=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=o}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(pt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Ps((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s}function sc(t){t.off=pt,t.on=At,t.wheelEventPixels=na,t.Doc=Co,t.splitLines=Dt,t.countColumn=R,t.findColumn=G,t.isWordChar=et,t.Pass=H,t.signal=mt,t.Line=ln,t.changeEnd=ca,t.scrollbarModel=yi,t.Pos=ae,t.cmpPos=oe,t.modes=Qt,t.mimeModes=Ut,t.resolveMode=jt,t.getMode=Kt,t.modeExtensions=zt,t.extendMode=Gt,t.copyState=Xt,t.startState=Wt,t.innerMode=Vt,t.commands=Yo,t.keyMap=Ro,t.keyName=Ko,t.isModifierKey=Ho,t.lookupKey=$o,t.normalizeKeyMap=Uo,t.StringStream=qt,t.SharedTextMarker=mo,t.TextMarker=go,t.LineWidget=uo,t.e_preventDefault=kt,t.e_stopPropagation=Ct,t.e_stop=Et,t.addClass=O,t.contains=I,t.rmClass=T,t.keyNames=Do}ac.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function a(t){if(!bt(r,t)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Gs(r);Hs({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,j):(n.prevInput="",i.value=e.text.join("\n"),F(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),g&&(i.style.width="0px"),At(i,"input",(function(){o&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),At(i,"paste",(function(t){bt(r,t)||Ks(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),At(i,"cut",a),At(i,"copy",a),At(t.scroller,"paste",(function(e){if(!Kn(t,e)&&!bt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var a=new Event("paste");a.clipboardData=e.clipboardData,i.dispatchEvent(a)}})),At(t.lineSpace,"selectstart",(function(e){Kn(t,e)||kt(e)})),At(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),At(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ac.prototype.createField=function(t){this.wrapper=Vs(),this.textarea=this.wrapper.firstChild},ac.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ac.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=Kr(t);if(t.options.moveInputWithCursor){var i=vr(t,n.sel.primary().head,"div"),a=e.wrapper.getBoundingClientRect(),o=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+o.top-a.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+o.left-a.left))}return r},ac.prototype.showSelection=function(t){var e=this.cm.display;_(e.cursorDiv,t.cursors),_(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ac.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&F(this.textarea),o&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null))}},ac.prototype.getField=function(){return this.textarea},ac.prototype.supportsTouch=function(){return!1},ac.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||M()!=this.textarea))try{this.textarea.focus()}catch(t){}},ac.prototype.blur=function(){this.textarea.blur()},ac.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ac.prototype.receivedFocus=function(){this.slowPoll()},ac.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},ac.prototype.fastPoll=function(){var t=!1,e=this;function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},ac.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Ft(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var a=i.charCodeAt(0);if(8203!=a||r||(r="​"),8666==a)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(r.length,i.length);c<l&&r.charCodeAt(c)==i.charCodeAt(c);)++c;return Ii(e,(function(){js(e,i.slice(c),r.length-c,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ac.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ac.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},ac.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var a=Fr(n,t),l=r.scroller.scrollTop;if(a&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Mi(n,$a)(n.doc,sa(a),j);var u,f=i.style.cssText,d=e.wrapper.style.cssText,A=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-A.top-5)+"px; left: "+(t.clientX-A.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(u=window.scrollY),r.input.focus(),c&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&s>=9&&p(),C){Et(t);var g=function(){pt(window,"mouseup",g),setTimeout(m,20)};At(window,"mouseup",g)}else setTimeout(m,50)}function p(){if(null!=i.selectionStart){var t=n.somethingSelected(),a="​"+(t?i.value:"");i.value="⇚",i.value=a,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=a.length,r.selForContextMenu=n.doc.sel}}function m(){if(e.contextMenuPending==m&&(e.contextMenuPending=!1,e.wrapper.style.cssText=d,i.style.cssText=f,o&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!o||o&&s<9)&&p();var t=0,a=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?Mi(n,Wa)(n):t++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}},ac.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},ac.prototype.setUneditable=function(){},ac.prototype.needsContentAttribute=!1,Ds(Ps),Ws(Ps);var cc="iter insert remove copy getEditor constructor".split(" ");for(var lc in Co.prototype)Co.prototype.hasOwnProperty(lc)&&U(cc,lc)<0&&(Ps.prototype[lc]=function(t){return function(){return t.apply(this.doc,arguments)}}(Co.prototype[lc]));return wt(Co),Ps.inputStyles={textarea:ac,contenteditable:Js},Ps.defineMode=function(t){Ps.defaults.mode||"null"==t||(Ps.defaults.mode=t),$t.apply(this,arguments)},Ps.defineMIME=Ht,Ps.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Ps.defineMIME("text/plain","null"),Ps.defineExtension=function(t,e){Ps.prototype[t]=e},Ps.defineDocExtension=function(t,e){Co.prototype[t]=e},Ps.fromTextArea=oc,sc(Ps),Ps.version="5.58.2",Ps}()}));r((function(t,e){var n,r,i;r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(n=Wh).defineMode("xml",(function(t,e){var a,o,s=t.indentUnit,c={},l=e.htmlMode?r:i;for(var u in l)c[u]=l[u];for(var u in e)c[u]=e[u];function h(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(A("atom","]]>")):null:t.match("--")?n(A("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(g(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=A("meta","?>"),"meta"):(a=t.eat("/")?"closeTag":"openTag",e.tokenize=f,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function f(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=h,a=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return a="equals",null;if("<"==n){e.tokenize=h,e.state=v,e.tagName=e.tagStart=null;var r=e.tokenize(t,e);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=d(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(t){var e=function(e,n){for(;!e.eol();)if(e.next()==t){n.tokenize=f;break}return"string"};return e.isInAttribute=!0,e}function A(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=h;break}n.next()}return t}}function g(t){return function(e,n){for(var r;null!=(r=e.next());){if("<"==r)return n.tokenize=g(t+1),n.tokenize(e,n);if(">"==r){if(1==t){n.tokenize=h;break}return n.tokenize=g(t-1),n.tokenize(e,n)}}return"meta"}}function p(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(c.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function m(t){t.context&&(t.context=t.context.prev)}function b(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!c.contextGrabbers.hasOwnProperty(n)||!c.contextGrabbers[n].hasOwnProperty(e))return;m(t)}}function v(t,e,n){return"openTag"==t?(n.tagStart=e.column(),y):"closeTag"==t?w:v}function y(t,e,n){return"word"==t?(n.tagName=e.current(),o="tag",x):c.allowMissingTagName&&"endTag"==t?(o="tag bracket",x(t,e,n)):(o="error",y)}function w(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&c.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===c.matchClosing?(o="tag",k):(o="tag error",C)}return c.allowMissingTagName&&"endTag"==t?(o="tag bracket",k(t,e,n)):(o="error",C)}function k(t,e,n){return"endTag"!=t?(o="error",k):(m(n),v)}function C(t,e,n){return o="error",k(t,e,n)}function x(t,e,n){if("word"==t)return o="attribute",E;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||c.autoSelfClosers.hasOwnProperty(r)?b(n,r):(b(n,r),n.context=new p(n,r,i==n.indented)),v}return o="error",x}function E(t,e,n){return"equals"==t?T:(c.allowMissing||(o="error"),x(t,e,n))}function T(t,e,n){return"string"==t?B:"word"==t&&c.allowUnquoted?(o="string",x):(o="error",x(t,e,n))}function B(t,e,n){return"string"==t?B:x(t,e,n)}return h.isInText=!0,{startState:function(t){var e={tokenize:h,state:v,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;a=null;var n=e.tokenize(t,e);return(n||a)&&"comment"!=n&&(o=null,e.state=e.state(a||n,t,e),o&&(n="error"==o?n+" error":o)),n},indent:function(t,e,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return n.Pass;if(t.tokenize!=f&&t.tokenize!=h)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==c.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/<!\[CDATA\[/.test(e))return 0;var a=e&&/^<(\/)?([\w_:\.-]*)/.exec(e);if(a&&a[1])for(;i;){if(i.tagName==a[2]){i=i.prev;break}if(!c.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(a)for(;i;){var o=c.contextGrabbers[i.tagName];if(!o||!o.hasOwnProperty(a[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(t){t.state==T&&(t.state=x)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)n.tagName&&e.push(n.tagName);return e.reverse()}}})),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})),r((function(t,e){!function(t){t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var e=0;e<t.modeInfo.length;e++){var n=t.modeInfo[e];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.mime==e)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==e)return r}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==e)return r}},t.findModeByFileName=function(e){for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.file&&r.file.test(e))return r}var i=e.lastIndexOf("."),a=i>-1&&e.substring(i+1,e.length);if(a)return t.findModeByExtension(a)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.name.toLowerCase()==e)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==e)return r}}}(Wh)})),r((function(t,e){var n;(n=Wh).defineMode("markdown",(function(t,e){var r=n.getMode(t,"text/html"),i="null"==r.name;function a(e){if(n.findModeByName){var r=n.findModeByName(e);r&&(e=r.mime||r.mimes[0])}var i=n.getMode(t,e);return"null"==i.name?null:i}void 0===e.highlightFormatting&&(e.highlightFormatting=!1),void 0===e.maxBlockquoteDepth&&(e.maxBlockquoteDepth=0),void 0===e.taskLists&&(e.taskLists=!1),void 0===e.strikethrough&&(e.strikethrough=!1),void 0===e.emoji&&(e.emoji=!1),void 0===e.fencedCodeBlockHighlighting&&(e.fencedCodeBlockHighlighting=!0),void 0===e.fencedCodeBlockDefaultMode&&(e.fencedCodeBlockDefaultMode="text/plain"),void 0===e.xml&&(e.xml=!0),void 0===e.tokenTypeOverrides&&(e.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in o)o.hasOwnProperty(s)&&e.tokenTypeOverrides[s]&&(o[s]=e.tokenTypeOverrides[s]);var c=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,h=e.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,f=/^ {0,3}(?:\={1,}|-{2,})\s*$/,d=/^[^#!\[\]*_\\<>` "'(~:]+/,A=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,p=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,m=" ";function b(t,e,n){return e.f=e.inline=n,n(t,e)}function v(t,e,n){return e.f=e.block=n,n(t,e)}function y(t){return!t||!/\S/.test(t.string)}function w(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==C){var e=i;if(!e){var a=n.innerMode(r,t.htmlState);e="xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText}e&&(t.f=B,t.block=k,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function k(t,r){var i=t.column()===r.indentation,s=y(r.prevLine.stream),d=r.indentedCode,p=r.prevLine.hr,m=!1!==r.list,v=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,m)){for(r.list=null;w<r.listStack[r.listStack.length-1];)r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=w-r.listStack[r.listStack.length-1])}var k=!(s||p||r.prevLine.header||m&&d||r.prevLine.fencedCodeEnd),C=(!1===r.list||p||s)&&r.indentation<=v&&t.match(c),T=null;if(r.indentationDiff>=4&&(d||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,o.code;if(t.eatSpace())return null;if(i&&r.indentation<=v&&(T=t.match(h))&&T[1].length<=6)return r.quote=0,r.header=T[1].length,r.thisLine.header=!0,e.highlightFormatting&&(r.formatting="header"),r.f=r.inline,E(r);if(r.indentation<=v&&t.eat(">"))return r.quote=i?1:r.quote+1,e.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),E(r);if(!C&&!r.setext&&i&&r.indentation<=v&&(T=t.match(l))){var B=T[1]?"ol":"ul";return r.indentation=w+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,e.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,e.highlightFormatting&&(r.formatting=["list","list-"+B]),E(r)}return i&&r.indentation<=v&&(T=t.match(A,!0))?(r.quote=0,r.fencedEndRE=new RegExp(T[1]+"+ *$"),r.localMode=e.fencedCodeBlockHighlighting&&a(T[2]||e.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=n.startState(r.localMode)),r.f=r.block=x,e.highlightFormatting&&(r.formatting="code-block"),r.code=-1,E(r)):r.setext||!(k&&m||r.quote||!1!==r.list||r.code||C||g.test(t.string))&&(T=t.lookAhead(1))&&(T=T.match(f))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),e.highlightFormatting&&(r.formatting="header")):(r.header="="==T[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,E(r)):C?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,o.hr):"["===t.peek()?b(t,r,M):b(t,r,r.inline)}function C(t,e){var a=r.token(t,e.htmlState);if(!i){var o=n.innerMode(r,e.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||e.md_inside&&t.current().indexOf(">")>-1)&&(e.f=B,e.block=k,e.htmlState=null)}return a}function x(t,n){var r,i=n.listStack[n.listStack.length-1]||0,a=n.indentation<i,s=i+3;return n.fencedEndRE&&n.indentation<=s&&(a||t.match(n.fencedEndRE))?(e.highlightFormatting&&(n.formatting="code-block"),a||(r=E(n)),n.localMode=n.localState=null,n.block=k,n.f=B,n.fencedEndRE=null,n.code=0,n.thisLine.fencedCodeEnd=!0,a?v(t,n,n.block):r):n.localMode?n.localMode.token(t,n.localState):(t.skipToEnd(),o.code)}function E(t){var n=[];if(t.formatting){n.push(o.formatting),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var r=0;r<t.formatting.length;r++)n.push(o.formatting+"-"+t.formatting[r]),"header"===t.formatting[r]&&n.push(o.formatting+"-"+t.formatting[r]+"-"+t.header),"quote"===t.formatting[r]&&(!e.maxBlockquoteDepth||e.maxBlockquoteDepth>=t.quote?n.push(o.formatting+"-"+t.formatting[r]+"-"+t.quote):n.push("error"))}if(t.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(t.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(t.linkHref?n.push(o.linkHref,"url"):(t.strong&&n.push(o.strong),t.em&&n.push(o.em),t.strikethrough&&n.push(o.strikethrough),t.emoji&&n.push(o.emoji),t.linkText&&n.push(o.linkText),t.code&&n.push(o.code),t.image&&n.push(o.image),t.imageAltText&&n.push(o.imageAltText,"link"),t.imageMarker&&n.push(o.imageMarker)),t.header&&n.push(o.header,o.header+"-"+t.header),t.quote&&(n.push(o.quote),!e.maxBlockquoteDepth||e.maxBlockquoteDepth>=t.quote?n.push(o.quote+"-"+t.quote):n.push(o.quote+"-"+e.maxBlockquoteDepth)),!1!==t.list){var i=(t.listStack.length-1)%3;i?1===i?n.push(o.list2):n.push(o.list3):n.push(o.list1)}return t.trailingSpaceNewLine?n.push("trailing-space-new-line"):t.trailingSpace&&n.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),n.length?n.join(" "):null}function T(t,e){if(t.match(d,!0))return E(e)}function B(t,i){var a=i.text(t,i);if(void 0!==a)return a;if(i.list)return i.list=null,E(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,e.highlightFormatting&&(i.formatting="task"),i.taskList=!1,E(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return e.highlightFormatting&&(i.formatting="header"),E(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var c=s;"("===s&&(c=")");var l="^\\s*(?:[^"+(c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(l),!0))return o.linkHref}if("`"===s){var h=i.formatting;e.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=i.code||i.quote&&1!=f){if(f==i.code){var d=E(i);return i.code=0,d}return i.formatting=h,E(i)}return i.code=f,E(i)}if(i.code)return E(i);if("\\"===s&&(t.next(),e.highlightFormatting)){var A=E(i),g=o.formatting+"-escape";return A?A+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,e.highlightFormatting&&(i.formatting="image"),E(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,e.highlightFormatting&&(i.formatting="image"),E(i);if("]"===s&&i.imageAltText){e.highlightFormatting&&(i.formatting="image");var A=E(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=S,A}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,e.highlightFormatting&&(i.formatting="link")),E(i);if("]"===s&&i.linkText){e.highlightFormatting&&(i.formatting="link");var A=E(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?S:B,A}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=_,e.highlightFormatting&&(i.formatting="link"),(A=E(i))?A+=" ":A="",A+o.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=_,e.highlightFormatting&&(i.formatting="link"),(A=E(i))?A+=" ":A="",A+o.linkEmail;if(e.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var m=t.string.indexOf(">",t.pos);if(-1!=m){var b=t.string.substring(t.start,m);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=n.startState(r),v(t,i,C)}if(e.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var y=1,w=1==t.pos?" ":t.string.charAt(t.pos-2);y<3&&t.eat(s);)y++;var k=t.peek()||" ",x=!/\s/.test(k)&&(!p.test(k)||/\s/.test(w)||p.test(w)),T=!/\s/.test(w)&&(!p.test(w)||/\s/.test(k)||p.test(k)),L=null,I=null;if(y%2&&(i.em||!x||"*"!==s&&T&&!p.test(w)?i.em!=s||!T||"*"!==s&&x&&!p.test(k)||(L=!1):L=!0),y>1&&(i.strong||!x||"*"!==s&&T&&!p.test(w)?i.strong!=s||!T||"*"!==s&&x&&!p.test(k)||(I=!1):I=!0),null!=I||null!=L)return e.highlightFormatting&&(i.formatting=null==L?"strong":null==I?"em":"strong em"),!0===L&&(i.em=s),!0===I&&(i.strong=s),d=E(i),!1===L&&(i.em=!1),!1===I&&(i.strong=!1),d}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return E(i);t.backUp(1)}if(e.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return e.highlightFormatting&&(i.formatting="strikethrough"),d=E(i),i.strikethrough=!1,d;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,e.highlightFormatting&&(i.formatting="strikethrough"),E(i)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return E(i);t.backUp(2)}if(e.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,e.highlightFormatting&&(i.formatting="emoji");var M=E(i);return i.emoji=!1,M}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),E(i)}function _(t,n){if(">"===t.next()){n.f=n.inline=B,e.highlightFormatting&&(n.formatting="link");var r=E(n);return r?r+=" ":r="",r+o.linkInline}return t.match(/^[^>]+/,!0),o.linkInline}function S(t,n){if(t.eatSpace())return null;var r=t.next();return"("===r||"["===r?(n.f=n.inline=I("("===r?")":"]"),e.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,E(n)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function I(t){return function(n,r){if(n.next()===t){r.f=r.inline=B,e.highlightFormatting&&(r.formatting="link-string");var i=E(r);return r.linkHref=!1,i}return n.match(L[t]),r.linkHref=!0,E(r)}}function M(t,n){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=O,t.next(),e.highlightFormatting&&(n.formatting="link"),n.linkText=!0,E(n)):b(t,n,B)}function O(t,n){if(t.match(/^\]:/,!0)){n.f=n.inline=D,e.highlightFormatting&&(n.formatting="link");var r=E(n);return n.linkText=!1,r}return t.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function D(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),e.f=e.inline=B,o.linkHref+" url")}var F={startState:function(){return{f:k,prevLine:{stream:null},thisLine:{stream:null},block:k,htmlState:null,indentation:0,inline:B,text:T,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&n.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?n.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return w(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=C)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g,m).length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==C?{state:t.htmlState,mode:r}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:F}},indent:function(t,e,i){return t.block==C&&r.indent?r.indent(t.htmlState,e,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,e,i):n.Pass},blankLine:w,getType:E,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return F}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),r((function(t,e){var n;(n=Wh).overlayMode=function(t,e,r){return{startState:function(){return{base:n.startState(t),overlay:n.startState(e),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:n.copyState(t,r.base),overlay:n.copyState(e,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(n,i){return(n!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<n.start)&&(i.streamSeen=n,i.basePos=i.overlayPos=n.start),n.start==i.basePos&&(i.baseCur=t.token(n,i.base),i.basePos=n.pos),n.start==i.overlayPos&&(n.pos=n.start,i.overlayCur=e.token(n,i.overlay),i.overlayPos=n.pos),n.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(n){var i,a;return t.blankLine&&(i=t.blankLine(n.base)),e.blankLine&&(a=e.blankLine(n.overlay)),null==a?i:r&&null!=i?i+" "+a:a}}}}));r((function(t,e){var n,r;r=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(n=Wh).defineMode("gfm",(function(t,e){var i=0;function a(t){return t.code=!1,null}var o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(t){return{code:t.code,codeBlock:t.codeBlock,ateSpace:t.ateSpace}},token:function(t,n){if(n.combineTokens=null,n.codeBlock)return t.match(/^```+/)?(n.codeBlock=!1,null):(t.skipToEnd(),null);if(t.sol()&&(n.code=!1),t.sol()&&t.match(/^```+/))return t.skipToEnd(),n.codeBlock=!0,null;if("`"===t.peek()){t.next();var a=t.pos;t.eatWhile("`");var o=1+t.pos-a;return n.code?o===i&&(n.code=!1):(i=o,n.code=!0),null}if(n.code)return t.next(),null;if(t.eatSpace())return n.ateSpace=!0,null;if((t.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==e.gitHubSpice)){if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return t.match(r)&&"]("!=t.string.slice(t.start-2,t.start)&&(0==t.start||/\W/.test(t.string.charAt(t.start-1)))?(n.combineTokens=!0,"link"):(t.next(),null)},blankLine:a},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var c in e)s[c]=e[c];return s.name="markdown",n.overlayMode(n.getMode(t,s),o)}),"markdown"),n.defineMIME("text/x-gfm","gfm")}));r((function(t,e){var n;(n=Wh).defineMode("yaml",(function(){var t=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(e,n){var r=e.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&e.indentation()>n.keyCol)return e.skipToEnd(),"string";if(n.literal&&(n.literal=!1),e.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,e.match(/---/))return"def";if(e.match(/\.\.\./))return"def";if(e.match(/\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return e.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,e.next(),"meta";if(n.pairStart){if(e.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(t))return"keyword"}return!n.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(n.pair=!0,n.keyCol=e.indentation(),"atom"):n.pair&&e.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),n.defineMIME("text/x-yaml","yaml"),n.defineMIME("text/yaml","yaml")}));r((function(t,e){var n,r,i,a;r=0,i=1,a=2,(n=Wh).defineMode("yaml-frontmatter",(function(t,e){var o=n.getMode(t,"yaml"),s=n.getMode(t,e&&e.base||"gfm");function c(t){return t.state==a?s:o}return{startState:function(){return{state:r,inner:n.startState(o)}},copyState:function(t){return{state:t.state,inner:n.copyState(c(t),t.inner)}},token:function(t,e){if(e.state==r)return t.match(/---/,!1)?(e.state=i,o.token(t,e.inner)):(e.state=a,e.inner=n.startState(s),s.token(t,e.inner));if(e.state==i){var c=t.sol()&&t.match(/(---|\.\.\.)/,!1),l=o.token(t,e.inner);return c&&(e.state=a,e.inner=n.startState(s)),l}return s.token(t,e.inner)},innerMode:function(t){return{mode:c(t),state:t.inner}},blankLine:function(t){var e=c(t);if(e.blankLine)return e.blankLine(t.inner)}}}))})),r((function(t,e){!function(t){var e=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(t,n){var r=n.line,i=0,a=0,o=e.exec(t.getLine(r)),s=o[1];do{var c=r+(i+=1),l=t.getLine(c),u=e.exec(l);if(u){var h=u[1],f=parseInt(o[3],10)+i-a,d=parseInt(u[3],10),A=d;if(s!==h||isNaN(d)){if(s.length>h.length)return;if(s.length<h.length&&1===i)return;a+=1}else f===d&&(A=d+1),f>d&&(A=f+1),t.replaceRange(l.replace(e,h+A+u[4]+u[5]),{line:c,ch:0},{line:c,ch:l.length})}}while(u)}t.commands.newlineAndIndentContinueMarkdownList=function(a){if(a.getOption("disableInput"))return t.Pass;for(var o=a.listSelections(),s=[],c=0;c<o.length;c++){var l=o[c].head,u=a.getStateAfter(l.line),h=t.innerMode(a.getMode(),u);if("markdown"!==h.mode.name)return void a.execCommand("newlineAndIndent");var f=!1!==(u=h.state).list,d=0!==u.quote,A=a.getLine(l.line),g=e.exec(A),p=/^\s*$/.test(A.slice(0,l.ch));if(!o[c].empty()||!f&&!d||!g||p)return void a.execCommand("newlineAndIndent");if(n.test(A)){var m=d&&/>\s*$/.test(A),b=!/>\s*$/.test(A);(m||b)&&a.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),s[c]="\n"}else{var v=g[1],y=g[5],w=!(r.test(g[2])||g[2].indexOf(">")>=0),k=w?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[c]="\n"+v+k+y,w&&i(a,l)}}a.replaceSelections(s)}}(Wh)}));r((function(t,e){!function(t){var e=t.Pos;function n(t,e){return t.line-e.line||t.ch-e.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function a(t,e,n,r){this.line=e,this.ch=n,this.cm=t,this.text=t.getLine(e),this.min=r?Math.max(r.from,t.firstLine()):t.firstLine(),this.max=r?Math.min(r.to-1,t.lastLine()):t.lastLine()}function o(t,n){var r=t.cm.getTokenTypeAt(e(t.line,n));return r&&/\btag\b/.test(r)}function s(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function c(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function l(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(s(t))continue;return}if(o(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e+1}}function u(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(o(t,e+1)){i.lastIndex=e,t.ch=e;var n=i.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function h(t){for(;;){i.lastIndex=t.ch;var e=i.exec(t.text);if(!e){if(s(t))continue;return}if(o(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function f(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(o(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e}}function d(t,n){for(var r=[];;){var i,a=h(t),o=t.line,s=t.ch-(a?a[0].length:0);if(!a||!(i=l(t)))return;if("selfClose"!=i)if(a[1]){for(var c=r.length-1;c>=0;--c)if(r[c]==a[2]){r.length=c;break}if(c<0&&(!n||n==a[2]))return{tag:a[2],from:e(o,s),to:e(t.line,t.ch)}}else r.push(a[2])}}function A(t,n){for(var r=[];;){var i=f(t);if(!i)return;if("selfClose"!=i){var a=t.line,o=t.ch,s=u(t);if(!s)return;if(s[1])r.push(s[2]);else{for(var c=r.length-1;c>=0;--c)if(r[c]==s[2]){r.length=c;break}if(c<0&&(!n||n==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(a,o)}}}else u(t)}}t.registerHelper("fold","xml",(function(t,r){for(var i=new a(t,r.line,0);;){var o=h(i);if(!o||i.line!=r.line)return;var s=l(i);if(!s)return;if(!o[1]&&"selfClose"!=s){var c=e(i.line,i.ch),u=d(i,o[2]);return u&&n(u.from,c)>0?{from:c,to:u.from}:null}}})),t.findMatchingTag=function(t,r,i){var o=new a(t,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=l(o),c=s&&e(o.line,o.ch),h=s&&u(o);if(s&&h&&!(n(o,r)>0)){var f={from:e(o.line,o.ch),to:c,tag:h[2]};return"selfClose"==s?{open:f,close:null,at:"open"}:h[1]?{open:A(o,h[2]),close:f,at:"close"}:{open:f,close:d(o=new a(t,c.line,c.ch,i),h[2]),at:"open"}}}},t.findEnclosingTag=function(t,e,n,r){for(var i=new a(t,e.line,e.ch,n);;){var o=A(i,r);if(!o)break;var s=d(new a(t,e.line,e.ch,n),o.tag);if(s)return{open:o,close:s}}},t.scanForClosingTag=function(t,e,n,r){return d(new a(t,e.line,e.ch,r?{from:0,to:r}:null),n)}}(Wh)}));r((function(t,e){!function(t){t.defineOption("autoCloseTags",!1,(function(e,n,i){if(i!=t.Init&&i&&e.removeKeyMap("autoCloseTags"),n){var o={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(o["'/'"]=function(t){return a(t)}),"object"==typeof n&&!1===n.whenOpening||(o["'>'"]=function(t){return r(t)}),e.addKeyMap(o)}}));var e=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return t.Pass;for(var i=r.listSelections(),a=[],c=r.getOption("autoCloseTags"),l=0;l<i.length;l++){if(!i[l].empty())return t.Pass;var u=i[l].head,h=r.getTokenAt(u),f=t.innerMode(r.getMode(),h.state),d=f.state,A=f.mode.xmlCurrentTag&&f.mode.xmlCurrentTag(d),g=A&&A.name;if(!g)return t.Pass;var p="html"==f.mode.configuration,m="object"==typeof c&&c.dontCloseTags||p&&e,b="object"==typeof c&&c.indentTags||p&&n;h.end>u.ch&&(g=g.slice(0,g.length-h.end+u.ch));var v=g.toLowerCase();if(!g||"string"==h.type&&(h.end!=u.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||1==h.string.length)||"tag"==h.type&&A.close||h.string.indexOf("/")==u.ch-h.start-1||m&&o(m,v)>-1||s(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(d)||[],g,u,!0))return t.Pass;var y="object"==typeof c&&c.emptyTags;if(y&&o(y,g)>-1)a[l]={text:"/>",newPos:t.Pos(u.line,u.ch+2)};else{var w=b&&o(b,v)>-1;a[l]={indent:w,text:">"+(w?"\n\n":"")+"</"+g+">",newPos:w?t.Pos(u.line+1,0):t.Pos(u.line,u.ch+1)}}}var k="object"==typeof c&&c.dontIndentOnAutoClose;for(l=i.length-1;l>=0;l--){var C=a[l];r.replaceRange(C.text,i[l].head,i[l].anchor,"+insert");var x=r.listSelections().slice(0);x[l]={head:C.newPos,anchor:C.newPos},r.setSelections(x),!k&&C.indent&&(r.indentLine(C.newPos.line,null,!0),r.indentLine(C.newPos.line+1,null,!0))}}function i(e,n){for(var r=e.listSelections(),i=[],a=n?"/":"</",o=e.getOption("autoCloseTags"),c="object"==typeof o&&o.dontIndentOnSlash,l=0;l<r.length;l++){if(!r[l].empty())return t.Pass;var u=r[l].head,h=e.getTokenAt(u),f=t.innerMode(e.getMode(),h.state),d=f.state;if(n&&("string"==h.type||"<"!=h.string.charAt(0)||h.start!=u.ch-1))return t.Pass;var A,g="xml"!=f.mode.name&&"htmlmixed"==e.getMode().name;if(g&&"javascript"==f.mode.name)A=a+"script";else if(g&&"css"==f.mode.name)A=a+"style";else{var p=f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(d);if(!p||p.length&&s(e,p,p[p.length-1],u))return t.Pass;A=a+p[p.length-1]}">"!=e.getLine(u.line).charAt(h.end)&&(A+=">"),i[l]=A}if(e.replaceSelections(i),r=e.listSelections(),!c)for(l=0;l<r.length;l++)(l==r.length-1||r[l].head.line<r[l+1].head.line)&&e.indentLine(r[l].head.line)}function a(e){return e.getOption("disableInput")?t.Pass:i(e,!0)}function o(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;++n)if(t[n]==e)return n;return-1}function s(e,n,r,i,a){if(!t.scanForClosingTag)return!1;var o=Math.min(e.lastLine()+1,i.line+500),s=t.scanForClosingTag(e,i,null,o);if(!s||s.tag!=r)return!1;for(var c=a?1:0,l=n.length-1;l>=0&&n[l]==r;l--)++c;for(i=s.to,l=1;l<c;l++){var u=t.scanForClosingTag(e,i,null,o);if(!u||u.tag!=r)return!1;i=u.to}return!0}t.commands.closeTag=function(t){return i(t)}}(Wh)})),r((function(t,e){!function(t){function e(t){t.state.tagHit&&t.state.tagHit.clear(),t.state.tagOther&&t.state.tagOther.clear(),t.state.tagHit=t.state.tagOther=null}function n(n){n.state.failedTagMatch=!1,n.operation((function(){if(e(n),!n.somethingSelected()){var r=n.getCursor(),i=n.getViewport();i.from=Math.min(i.from,r.line),i.to=Math.max(r.line+1,i.to);var a=t.findMatchingTag(n,r,i);if(a){if(n.state.matchBothTags){var o="open"==a.at?a.open:a.close;o&&(n.state.tagHit=n.markText(o.from,o.to,{className:"CodeMirror-matchingtag"}))}var s="close"==a.at?a.open:a.close;s?n.state.tagOther=n.markText(s.from,s.to,{className:"CodeMirror-matchingtag"}):n.state.failedTagMatch=!0}}}))}function r(t){t.state.failedTagMatch&&n(t)}t.defineOption("matchTags",!1,(function(i,a,o){o&&o!=t.Init&&(i.off("cursorActivity",n),i.off("viewportChange",r),e(i)),a&&(i.state.matchBothTags="object"==typeof a&&a.bothTags,i.on("cursorActivity",n),i.on("viewportChange",r),n(i))})),t.commands.toMatchingTag=function(e){var n=t.findMatchingTag(e,e.getCursor());if(n){var r="close"==n.at?n.open:n.close;r&&e.extendSelection(r.to,r.from)}}}(Wh)})),r((function(t,e){!function(t){function e(t){t.state.placeholder&&(t.state.placeholder.parentNode.removeChild(t.state.placeholder),t.state.placeholder=null)}function n(t){e(t);var n=t.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=t.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=t.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),t.display.lineSpace.insertBefore(n,t.display.lineSpace.firstChild)}function r(t){setTimeout((function(){var r=!1,i=t.getInputField();"TEXTAREA"==i.nodeName?r=!i.value:1==t.lineCount()&&(r=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),r?n(t):e(t)}),20)}function i(t){o(t)&&n(t)}function a(t){var r=t.getWrapperElement(),i=o(t);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(t):e(t)}function o(t){return 1===t.lineCount()&&""===t.getLine(0)}t.defineOption("placeholder","",(function(n,o,s){var c=s&&s!=t.Init;if(o&&!c)n.on("blur",i),n.on("change",a),n.on("swapDoc",a),t.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),a(n);else if(!o&&c){n.off("blur",i),n.off("change",a),n.off("swapDoc",a),t.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),e(n);var l=n.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}o&&!n.hasFocus()&&i(n)}))}(Wh)}));r((function(t,e){!function(t){var e,n,r=t.Pos;function i(t){var e=t.flags;return null!=e?e:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}function a(t,e){for(var n=i(t),r=n,a=0;a<e.length;a++)-1==r.indexOf(e.charAt(a))&&(r+=e.charAt(a));return n==r?t:new RegExp(t.source,r)}function o(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function s(t,e,n){e=a(e,"g");for(var i=n.line,o=n.ch,s=t.lastLine();i<=s;i++,o=0){e.lastIndex=o;var c=t.getLine(i),l=e.exec(c);if(l)return{from:r(i,l.index),to:r(i,l.index+l[0].length),match:l}}}function c(t,e,n){if(!o(e))return s(t,e,n);e=a(e,"gm");for(var i,c=1,l=n.line,u=t.lastLine();l<=u;){for(var h=0;h<c&&!(l>u);h++){var f=t.getLine(l++);i=null==i?f:i+"\n"+f}c*=2,e.lastIndex=n.ch;var d=e.exec(i);if(d){var A=i.slice(0,d.index).split("\n"),g=d[0].split("\n"),p=n.line+A.length-1,m=A[A.length-1].length;return{from:r(p,m),to:r(p+g.length-1,1==g.length?m+g[0].length:g[g.length-1].length),match:d}}}}function l(t,e,n){for(var r,i=0;i<=t.length;){e.lastIndex=i;var a=e.exec(t);if(!a)break;var o=a.index+a[0].length;if(o>t.length-n)break;(!r||o>r.index+r[0].length)&&(r=a),i=a.index+1}return r}function u(t,e,n){e=a(e,"g");for(var i=n.line,o=n.ch,s=t.firstLine();i>=s;i--,o=-1){var c=t.getLine(i),u=l(c,e,o<0?0:c.length-o);if(u)return{from:r(i,u.index),to:r(i,u.index+u[0].length),match:u}}}function h(t,e,n){if(!o(e))return u(t,e,n);e=a(e,"gm");for(var i,s=1,c=t.getLine(n.line).length-n.ch,h=n.line,f=t.firstLine();h>=f;){for(var d=0;d<s&&h>=f;d++){var A=t.getLine(h--);i=null==i?A:A+"\n"+i}s*=2;var g=l(i,e,c);if(g){var p=i.slice(0,g.index).split("\n"),m=g[0].split("\n"),b=h+p.length,v=p[p.length-1].length;return{from:r(b,v),to:r(b+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:g}}}}function f(t,e,n,r){if(t.length==e.length)return n;for(var i=0,a=n+Math.max(0,t.length-e.length);;){if(i==a)return i;var o=i+a>>1,s=r(t.slice(0,o)).length;if(s==n)return o;s>n?a=o:i=o+1}}function d(t,i,a,o){if(!i.length)return null;var s=o?e:n,c=s(i).split(/\r|\n\r?/);t:for(var l=a.line,u=a.ch,h=t.lastLine()+1-c.length;l<=h;l++,u=0){var d=t.getLine(l).slice(u),A=s(d);if(1==c.length){var g=A.indexOf(c[0]);if(-1==g)continue t;return a=f(d,A,g,s)+u,{from:r(l,f(d,A,g,s)+u),to:r(l,f(d,A,g+c[0].length,s)+u)}}var p=A.length-c[0].length;if(A.slice(p)==c[0]){for(var m=1;m<c.length-1;m++)if(s(t.getLine(l+m))!=c[m])continue t;var b=t.getLine(l+c.length-1),v=s(b),y=c[c.length-1];if(v.slice(0,y.length)==y)return{from:r(l,f(d,A,p,s)+u),to:r(l+c.length-1,f(b,v,y.length,s))}}}}function A(t,i,a,o){if(!i.length)return null;var s=o?e:n,c=s(i).split(/\r|\n\r?/);t:for(var l=a.line,u=a.ch,h=t.firstLine()-1+c.length;l>=h;l--,u=-1){var d=t.getLine(l);u>-1&&(d=d.slice(0,u));var A=s(d);if(1==c.length){var g=A.lastIndexOf(c[0]);if(-1==g)continue t;return{from:r(l,f(d,A,g,s)),to:r(l,f(d,A,g+c[0].length,s))}}var p=c[c.length-1];if(A.slice(0,p.length)==p){var m=1;for(a=l-c.length+1;m<c.length-1;m++)if(s(t.getLine(a+m))!=c[m])continue t;var b=t.getLine(l+1-c.length),v=s(b);if(v.slice(v.length-c[0].length)==c[0])return{from:r(l+1-c.length,f(b,v,b.length-c[0].length,s)),to:r(l,f(d,A,p.length,s))}}}}function g(t,e,n,i){var o;this.atOccurrence=!1,this.doc=t,n=n?t.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof i?o=i.caseFold:(o=i,i=null),"string"==typeof e?(null==o&&(o=!1),this.matches=function(n,r){return(n?A:d)(t,e,r,o)}):(e=a(e,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?u:s)(t,e,r)}:this.matches=function(n,r){return(n?h:c)(t,e,r)})}String.prototype.normalize?(e=function(t){return t.normalize("NFD").toLowerCase()},n=function(t){return t.normalize("NFD")}):(e=function(t){return t.toLowerCase()},n=function(t){return t}),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){for(var n=this.matches(e,this.doc.clipPos(e?this.pos.from:this.pos.to));n&&0==t.cmpPos(n.from,n.to);)e?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(e,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(e,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(e?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(e,n){if(this.atOccurrence){var i=t.splitLines(e);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",(function(t,e,n){return new g(this.doc,t,e,n)})),t.defineDocExtension("getSearchCursor",(function(t,e,n){return new g(this,t,e,n)})),t.defineExtension("selectMatches",(function(e,n){for(var r=[],i=this.getSearchCursor(e,this.getCursor("from"),n);i.findNext()&&!(t.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(Wh)})),r((function(t,e){!function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(t){return t&&t.bracketRegex||/[(){}[\]]/}function a(t,e,a){var s=t.getLineHandle(e.line),c=e.ch-1,l=a&&a.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var u=i(a),h=!l&&c>=0&&u.test(s.text.charAt(c))&&r[s.text.charAt(c)]||u.test(s.text.charAt(c+1))&&r[s.text.charAt(++c)];if(!h)return null;var f=">"==h.charAt(1)?1:-1;if(a&&a.strict&&f>0!=(c==e.ch))return null;var d=t.getTokenTypeAt(n(e.line,c+1)),A=o(t,n(e.line,c+(f>0?1:0)),f,d||null,a);return null==A?null:{from:n(e.line,c),to:A&&A.pos,match:A&&A.ch==h.charAt(0),forward:f>0}}function o(t,e,a,o,s){for(var c=s&&s.maxScanLineLength||1e4,l=s&&s.maxScanLines||1e3,u=[],h=i(s),f=a>0?Math.min(e.line+l,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-l),d=e.line;d!=f;d+=a){var A=t.getLine(d);if(A){var g=a>0?0:A.length-1,p=a>0?A.length:-1;if(!(A.length>c))for(d==e.line&&(g=e.ch-(a<0?1:0));g!=p;g+=a){var m=A.charAt(g);if(h.test(m)&&(void 0===o||t.getTokenTypeAt(n(d,g+1))==o)){var b=r[m];if(b&&">"==b.charAt(1)==a>0)u.push(m);else{if(!u.length)return{pos:n(d,g),ch:m};u.pop()}}}}}return d-a!=(a>0?t.lastLine():t.firstLine())&&null}function s(t,r,i){for(var o=t.state.matchBrackets.maxHighlightLineLength||1e3,s=[],c=t.listSelections(),l=0;l<c.length;l++){var u=c[l].empty()&&a(t,c[l].head,i);if(u&&t.getLine(u.from.line).length<=o){var h=u.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(t.markText(u.from,n(u.from.line,u.from.ch+1),{className:h})),u.to&&t.getLine(u.to.line).length<=o&&s.push(t.markText(u.to,n(u.to.line,u.to.ch+1),{className:h}))}}if(s.length){e&&t.state.focused&&t.focus();var f=function(){t.operation((function(){for(var t=0;t<s.length;t++)s[t].clear()}))};if(!r)return f;setTimeout(f,800)}}function c(t){t.operation((function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=s(t,!1,t.state.matchBrackets)}))}t.defineOption("matchBrackets",!1,(function(e,n,r){function i(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}r&&r!=t.Init&&(e.off("cursorActivity",c),e.off("focus",c),e.off("blur",i),i(e)),n&&(e.state.matchBrackets="object"==typeof n?n:{},e.on("cursorActivity",c),e.on("focus",c),e.on("blur",i))})),t.defineExtension("matchBrackets",(function(){s(this,!0)})),t.defineExtension("findMatchingBracket",(function(t,e,n){return(n||"boolean"==typeof e)&&(n?(n.strict=e,e=n):e=e?{strict:!0}:null),a(this,t,e)})),t.defineExtension("scanForBracket",(function(t,e,n,r){return o(this,t,e,n,r)}))}(Wh)}));r((function(t,e){!function(t){var e=t.commands,n=t.Pos;function r(e,r,i){if(i<0&&0==r.ch)return e.clipPos(n(r.line-1));var a=e.getLine(r.line);if(i>0&&r.ch>=a.length)return e.clipPos(n(r.line+1,0));for(var o,s="start",c=r.ch,l=c,u=i<0?0:a.length,h=0;l!=u;l+=i,h++){var f=a.charAt(i<0?l-1:l),d="_"!=f&&t.isWordChar(f)?"w":"o";if("w"==d&&f.toUpperCase()==f&&(d="W"),"start"==s)"o"!=d?(s="in",o=d):c=l+i;else if("in"==s&&o!=d){if("w"==o&&"W"==d&&i<0&&l--,"W"==o&&"w"==d&&i>0){if(l==c+1){o="w";continue}l--}break}}return n(r.line,l)}function i(t,e){t.extendSelectionsBy((function(n){return t.display.shift||t.doc.extend||n.empty()?r(t.doc,n.head,e):e<0?n.from():n.to()}))}function a(e,r){if(e.isReadOnly())return t.Pass;e.operation((function(){for(var t=e.listSelections().length,i=[],a=-1,o=0;o<t;o++){var s=e.listSelections()[o].head;if(!(s.line<=a)){var c=n(s.line+(r?0:1),0);e.replaceRange("\n",c,null,"+insertLine"),e.indentLine(c.line,null,!0),i.push({head:c,anchor:c}),a=s.line+1}}e.setSelections(i)})),e.execCommand("indentAuto")}function o(e,r){for(var i=r.ch,a=i,o=e.getLine(r.line);i&&t.isWordChar(o.charAt(i-1));)--i;for(;a<o.length&&t.isWordChar(o.charAt(a));)++a;return{from:n(r.line,i),to:n(r.line,a),word:o.slice(i,a)}}function s(t,e){for(var n=t.listSelections(),r=[],i=0;i<n.length;i++){var a=n[i],o=t.findPosV(a.anchor,e,"line",a.anchor.goalColumn),s=t.findPosV(a.head,e,"line",a.head.goalColumn);o.goalColumn=null!=a.anchor.goalColumn?a.anchor.goalColumn:t.cursorCoords(a.anchor,"div").left,s.goalColumn=null!=a.head.goalColumn?a.head.goalColumn:t.cursorCoords(a.head,"div").left;var c={anchor:o,head:s};r.push(a),r.push(c)}t.setSelections(r)}function c(e,n,r){for(var i=0;i<e.length;i++)if(0==t.cmpPos(e[i].from(),n)&&0==t.cmpPos(e[i].to(),r))return!0;return!1}e.goSubwordLeft=function(t){i(t,-1)},e.goSubwordRight=function(t){i(t,1)},e.scrollLineUp=function(t){var e=t.getScrollInfo();if(!t.somethingSelected()){var n=t.lineAtHeight(e.top+e.clientHeight,"local");t.getCursor().line>=n&&t.execCommand("goLineUp")}t.scrollTo(null,e.top-t.defaultTextHeight())},e.scrollLineDown=function(t){var e=t.getScrollInfo();if(!t.somethingSelected()){var n=t.lineAtHeight(e.top,"local")+1;t.getCursor().line<=n&&t.execCommand("goLineDown")}t.scrollTo(null,e.top+t.defaultTextHeight())},e.splitSelectionByLine=function(t){for(var e=t.listSelections(),r=[],i=0;i<e.length;i++)for(var a=e[i].from(),o=e[i].to(),s=a.line;s<=o.line;++s)o.line>a.line&&s==o.line&&0==o.ch||r.push({anchor:s==a.line?a:n(s,0),head:s==o.line?o:n(s)});t.setSelections(r,0)},e.singleSelectionTop=function(t){var e=t.listSelections()[0];t.setSelection(e.anchor,e.head,{scroll:!1})},e.selectLine=function(t){for(var e=t.listSelections(),r=[],i=0;i<e.length;i++){var a=e[i];r.push({anchor:n(a.from().line,0),head:n(a.to().line+1,0)})}t.setSelections(r)},e.insertLineAfter=function(t){return a(t,!1)},e.insertLineBefore=function(t){return a(t,!0)},e.selectNextOccurrence=function(e){var r=e.getCursor("from"),i=e.getCursor("to"),a=e.state.sublimeFindFullWord==e.doc.sel;if(0==t.cmpPos(r,i)){var s=o(e,r);if(!s.word)return;e.setSelection(s.from,s.to),a=!0}else{var l=e.getRange(r,i),u=a?new RegExp("\\b"+l+"\\b"):l,h=e.getSearchCursor(u,i),f=h.findNext();if(f||(f=(h=e.getSearchCursor(u,n(e.firstLine(),0))).findNext()),!f||c(e.listSelections(),h.from(),h.to()))return;e.addSelection(h.from(),h.to())}a&&(e.state.sublimeFindFullWord=e.doc.sel)},e.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");e.selectNextOccurrence(n),0!=t.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(t){return t.anchor!=r||t.head!=i})))},e.addCursorToPrevLine=function(t){s(t,-1)},e.addCursorToNextLine=function(t){s(t,1)};var l="(){}[]";function u(e){for(var r=e.listSelections(),i=[],a=0;a<r.length;a++){var o=r[a],s=o.head,c=e.scanForBracket(s,-1);if(!c)return!1;for(;;){var u=e.scanForBracket(s,1);if(!u)return!1;if(u.ch==l.charAt(l.indexOf(c.ch)+1)){var h=n(c.pos.line,c.pos.ch+1);if(0!=t.cmpPos(h,o.from())||0!=t.cmpPos(u.pos,o.to())){i.push({anchor:h,head:u.pos});break}if(!(c=e.scanForBracket(c.pos,-1)))return!1}s=n(u.pos.line,u.pos.ch+1)}}return e.setSelections(i),!0}function h(t){return t?/\bpunctuation\b/.test(t)?t:void 0:null}function f(e,r){if(e.isReadOnly())return t.Pass;for(var i,a=e.listSelections(),o=[],s=0;s<a.length;s++){var c=a[s];if(!c.empty()){for(var l=c.from().line,u=c.to().line;s<a.length-1&&a[s+1].from().line==u;)u=a[++s].to().line;a[s].to().ch||u--,o.push(l,u)}}o.length?i=!0:o.push(e.firstLine(),e.lastLine()),e.operation((function(){for(var t=[],a=0;a<o.length;a+=2){var s=o[a],c=o[a+1],l=n(s,0),u=n(c),h=e.getRange(l,u,!1);r?h.sort():h.sort((function(t,e){var n=t.toUpperCase(),r=e.toUpperCase();return n!=r&&(t=n,e=r),t<e?-1:t==e?0:1})),e.replaceRange(h,l,u),i&&t.push({anchor:l,head:n(c+1,0)})}i&&e.setSelections(t,0)}))}function d(e,n){e.operation((function(){for(var r=e.listSelections(),i=[],a=[],s=0;s<r.length;s++)(l=r[s]).empty()?(i.push(s),a.push("")):a.push(n(e.getRange(l.from(),l.to())));var c;for(e.replaceSelections(a,"around","case"),s=i.length-1;s>=0;s--){var l=r[i[s]];if(!(c&&t.cmpPos(l.head,c)>0)){var u=o(e,l.head);c=u.from,e.replaceRange(n(u.word),u.from,u.to)}}}))}function A(e){var n=e.getCursor("from"),r=e.getCursor("to");if(0==t.cmpPos(n,r)){var i=o(e,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:e.getRange(n,r),word:i}}function g(t,e){var r=A(t);if(r){var i=r.query,a=t.getSearchCursor(i,e?r.to:r.from);(e?a.findNext():a.findPrevious())?t.setSelection(a.from(),a.to()):(a=t.getSearchCursor(i,e?n(t.firstLine(),0):t.clipPos(n(t.lastLine()))),(e?a.findNext():a.findPrevious())?t.setSelection(a.from(),a.to()):r.word&&t.setSelection(r.from,r.to))}}e.selectScope=function(t){u(t)||t.execCommand("selectAll")},e.selectBetweenBrackets=function(e){if(!u(e))return t.Pass},e.goToBracket=function(e){e.extendSelectionsBy((function(r){var i=e.scanForBracket(r.head,1,h(e.getTokenTypeAt(r.head)));if(i&&0!=t.cmpPos(i.pos,r.head))return i.pos;var a=e.scanForBracket(r.head,-1,h(e.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return a&&n(a.pos.line,a.pos.ch+1)||r.head}))},e.swapLineUp=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],a=e.firstLine()-1,o=[],s=0;s<r.length;s++){var c=r[s],l=c.from().line-1,u=c.to().line;o.push({anchor:n(c.anchor.line-1,c.anchor.ch),head:n(c.head.line-1,c.head.ch)}),0!=c.to().ch||c.empty()||--u,l>a?i.push(l,u):i.length&&(i[i.length-1]=u),a=u}e.operation((function(){for(var t=0;t<i.length;t+=2){var r=i[t],a=i[t+1],s=e.getLine(r);e.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),a>e.lastLine()?e.replaceRange("\n"+s,n(e.lastLine()),null,"+swapLine"):e.replaceRange(s+"\n",n(a,0),null,"+swapLine")}e.setSelections(o),e.scrollIntoView()}))},e.swapLineDown=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],a=e.lastLine()+1,o=r.length-1;o>=0;o--){var s=r[o],c=s.to().line+1,l=s.from().line;0!=s.to().ch||s.empty()||c--,c<a?i.push(c,l):i.length&&(i[i.length-1]=l),a=l}e.operation((function(){for(var t=i.length-2;t>=0;t-=2){var r=i[t],a=i[t+1],o=e.getLine(r);r==e.lastLine()?e.replaceRange("",n(r-1),n(r),"+swapLine"):e.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),e.replaceRange(o+"\n",n(a,0),null,"+swapLine")}e.scrollIntoView()}))},e.toggleCommentIndented=function(t){t.toggleComment({indent:!0})},e.joinLines=function(t){for(var e=t.listSelections(),r=[],i=0;i<e.length;i++){for(var a=e[i],o=a.from(),s=o.line,c=a.to().line;i<e.length-1&&e[i+1].from().line==c;)c=e[++i].to().line;r.push({start:s,end:c,anchor:!a.empty()&&o})}t.operation((function(){for(var e=0,i=[],a=0;a<r.length;a++){for(var o,s=r[a],c=s.anchor&&n(s.anchor.line-e,s.anchor.ch),l=s.start;l<=s.end;l++){var u=l-e;l==s.end&&(o=n(u,t.getLine(u).length+1)),u<t.lastLine()&&(t.replaceRange(" ",n(u),n(u+1,/^\s*/.exec(t.getLine(u+1))[0].length)),++e)}i.push({anchor:c||o,head:o})}t.setSelections(i,0)}))},e.duplicateLine=function(t){t.operation((function(){for(var e=t.listSelections().length,r=0;r<e;r++){var i=t.listSelections()[r];i.empty()?t.replaceRange(t.getLine(i.head.line)+"\n",n(i.head.line,0)):t.replaceRange(t.getRange(i.from(),i.to()),i.from())}t.scrollIntoView()}))},e.sortLines=function(t){f(t,!0)},e.sortLinesInsensitive=function(t){f(t,!1)},e.nextBookmark=function(t){var e=t.state.sublimeBookmarks;if(e)for(;e.length;){var n=e.shift(),r=n.find();if(r)return e.push(n),t.setSelection(r.from,r.to)}},e.prevBookmark=function(t){var e=t.state.sublimeBookmarks;if(e)for(;e.length;){e.unshift(e.pop());var n=e[e.length-1].find();if(n)return t.setSelection(n.from,n.to);e.pop()}},e.toggleBookmark=function(t){for(var e=t.listSelections(),n=t.state.sublimeBookmarks||(t.state.sublimeBookmarks=[]),r=0;r<e.length;r++){for(var i=e[r].from(),a=e[r].to(),o=e[r].empty()?t.findMarksAt(i):t.findMarks(i,a),s=0;s<o.length;s++)if(o[s].sublimeBookmark){o[s].clear();for(var c=0;c<n.length;c++)n[c]==o[s]&&n.splice(c--,1);break}s==o.length&&n.push(t.markText(i,a,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},e.clearBookmarks=function(t){var e=t.state.sublimeBookmarks;if(e)for(var n=0;n<e.length;n++)e[n].clear();e.length=0},e.selectBookmarks=function(t){var e=t.state.sublimeBookmarks,n=[];if(e)for(var r=0;r<e.length;r++){var i=e[r].find();i?n.push({anchor:i.from,head:i.to}):e.splice(r--,0)}n.length&&t.setSelections(n,0)},e.smartBackspace=function(e){if(e.somethingSelected())return t.Pass;e.operation((function(){for(var r=e.listSelections(),i=e.getOption("indentUnit"),a=r.length-1;a>=0;a--){var o=r[a].head,s=e.getRange({line:o.line,ch:0},o),c=t.countColumn(s,null,e.getOption("tabSize")),l=e.findPosH(o,-1,"char",!1);if(s&&!/\S/.test(s)&&c%i==0){var u=new n(o.line,t.findColumn(s,c-i,i));u.ch!=o.ch&&(l=u)}e.replaceRange("",l,o,"+delete")}}))},e.delLineRight=function(t){t.operation((function(){for(var e=t.listSelections(),r=e.length-1;r>=0;r--)t.replaceRange("",e[r].anchor,n(e[r].to().line),"+delete");t.scrollIntoView()}))},e.upcaseAtCursor=function(t){d(t,(function(t){return t.toUpperCase()}))},e.downcaseAtCursor=function(t){d(t,(function(t){return t.toLowerCase()}))},e.setSublimeMark=function(t){t.state.sublimeMark&&t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor())},e.selectToSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&t.setSelection(t.getCursor(),e)},e.deleteToSublimeMark=function(e){var n=e.state.sublimeMark&&e.state.sublimeMark.find();if(n){var r=e.getCursor(),i=n;if(t.cmpPos(r,i)>0){var a=i;i=r,r=a}e.state.sublimeKilled=e.getRange(r,i),e.replaceRange("",r,i)}},e.swapWithSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&(t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor()),t.setCursor(e))},e.sublimeYank=function(t){null!=t.state.sublimeKilled&&t.replaceSelection(t.state.sublimeKilled,null,"paste")},e.showInCenter=function(t){var e=t.cursorCoords(null,"local");t.scrollTo(null,(e.top+e.bottom)/2-t.getScrollInfo().clientHeight/2)},e.findUnder=function(t){g(t,!0)},e.findUnderPrevious=function(t){g(t,!1)},e.findAllUnder=function(t){var e=A(t);if(e){for(var n=t.getSearchCursor(e.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=e.from.line&&n.from().ch<=e.from.ch&&i++;t.setSelections(r,i)}};var p=t.keyMap;p.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},t.normalizeKeyMap(p.macSublime),p.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},t.normalizeKeyMap(p.pcSublime);var m=p.default==p.macDefault;p.sublime=m?p.macSublime:p.pcSublime}(Wh)}));r((function(t,e){!function(t){function e(e,n,r){var i,a=e.getWrapperElement();return(i=a.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),t.addClass(a,"dialog-opened"),i}function n(t,e){t.state.currentNotificationClose&&t.state.currentNotificationClose(),t.state.currentNotificationClose=e}t.defineExtension("openDialog",(function(r,i,a){a||(a={}),n(this,null);var o=e(this,r,a.bottom),s=!1,c=this;function l(e){if("string"==typeof e)h.value=e;else{if(s)return;s=!0,t.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),c.focus(),a.onClose&&a.onClose(o)}}var u,h=o.getElementsByTagName("input")[0];return h?(h.focus(),a.value&&(h.value=a.value,!1!==a.selectValueOnOpen&&h.select()),a.onInput&&t.on(h,"input",(function(t){a.onInput(t,h.value,l)})),a.onKeyUp&&t.on(h,"keyup",(function(t){a.onKeyUp(t,h.value,l)})),t.on(h,"keydown",(function(e){a&&a.onKeyDown&&a.onKeyDown(e,h.value,l)||((27==e.keyCode||!1!==a.closeOnEnter&&13==e.keyCode)&&(h.blur(),t.e_stop(e),l()),13==e.keyCode&&i(h.value,e))})),!1!==a.closeOnBlur&&t.on(o,"focusout",(function(t){null!==t.relatedTarget&&l()}))):(u=o.getElementsByTagName("button")[0])&&(t.on(u,"click",(function(){l(),c.focus()})),!1!==a.closeOnBlur&&t.on(u,"blur",l),u.focus()),l})),t.defineExtension("openConfirm",(function(r,i,a){n(this,null);var o=e(this,r,a&&a.bottom),s=o.getElementsByTagName("button"),c=!1,l=this,u=1;function h(){c||(c=!0,t.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),l.focus())}s[0].focus();for(var f=0;f<s.length;++f){var d=s[f];!function(e){t.on(d,"click",(function(n){t.e_preventDefault(n),h(),e&&e(l)}))}(i[f]),t.on(d,"blur",(function(){--u,setTimeout((function(){u<=0&&h()}),200)})),t.on(d,"focus",(function(){++u}))}})),t.defineExtension("openNotification",(function(r,i){n(this,l);var a,o=e(this,r,i&&i.bottom),s=!1,c=i&&void 0!==i.duration?i.duration:5e3;function l(){s||(s=!0,clearTimeout(a),t.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o))}return t.on(o,"click",(function(e){t.e_preventDefault(e),l()})),c&&(a=setTimeout(l,c)),l}))}(Wh)}));r((function(t,e){var n,r,i,a,o,s;i=(r=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}]).length,a=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],o=(n=Wh).Pos,s=function(){function t(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),n.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",He),K(t),n.on(t.getInputField(),"paste",m(t))}function e(t){t.setOption("disableInput",!1),t.off("cursorActivity",He),n.off(t.getInputField(),"paste",m(t)),t.state.vim=null}function s(t,r){this==n.keyMap.vim&&(n.rmClass(t.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==t.getOption("inputStyle")&&null!=document.body.style.caretColor&&(f(t),t.getInputField().style.caretColor="")),r&&r.attach==c||e(t)}function c(e,r){this==n.keyMap.vim&&(n.addClass(e.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==e.getOption("inputStyle")&&null!=document.body.style.caretColor&&(h(e),e.getInputField().style.caretColor="transparent")),r&&r.attach==c||t(e)}function l(t){if(t.state.fatCursorMarks){u(t);for(var e=t.listSelections(),n=[],r=0;r<e.length;r++){var i=e[r];if(i.empty()){var a=t.getLine(i.anchor.line).length;i.anchor.ch<a?n.push(t.markText(i.anchor,o(i.anchor.line,i.anchor.ch+1),{className:"cm-fat-cursor-mark"})):n.push(t.markText(o(i.anchor.line,a-1),o(i.anchor.line,a),{className:"cm-fat-cursor-mark"}))}}t.state.fatCursorMarks=n}}function u(t){var e=t.state.fatCursorMarks;if(e)for(var n=0;n<e.length;n++)e[n].clear()}function h(t){t.state.fatCursorMarks=[],l(t),t.on("cursorActivity",l)}function f(t){u(t),t.off("cursorActivity",l),t.state.fatCursorMarks=null}function d(t,e){if(e){if(this[t])return this[t];var r=p(t);if(!r)return!1;var i=n.Vim.findKey(e,r);return"function"==typeof i&&n.signal(e,"vim-keypress",r),i}}n.defineOption("vimMode",!1,(function(t,e,r){e&&"vim"!=t.getOption("keyMap")?t.setOption("keyMap","vim"):!e&&r!=n.Init&&/^vim/.test(t.getOption("keyMap"))&&t.setOption("keyMap","default")}));var A={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A"},g={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function p(t){if("'"==t.charAt(0))return t.charAt(1);var e=t.split(/-(?!$)/),n=e[e.length-1];if(1==e.length&&1==e[0].length)return!1;if(2==e.length&&"Shift"==e[0]&&1==n.length)return!1;for(var r=!1,i=0;i<e.length;i++){var a=e[i];a in A?e[i]=A[a]:r=!0,a in g&&(e[i]=g[a])}return!!r&&(I(n)&&(e[e.length-1]=n.toLowerCase()),"<"+e.join("-")+">")}function m(t){var e=t.state.vim;return e.onPasteFn||(e.onPasteFn=function(){e.insertMode||(t.setCursor(lt(t.getCursor(),0,1)),at.enterInsertMode(t,{},e))}),e.onPasteFn}var b=/[\d]/,v=[n.isWordChar,function(t){return t&&!n.isWordChar(t)&&!/\s/.test(t)}],y=[function(t){return/\S/.test(t)}];function w(t,e){for(var n=[],r=t;r<t+e;r++)n.push(String.fromCharCode(r));return n}var k=w(65,26),C=w(97,26),x=w(48,10),E=[].concat(k,C,x,["<",">"]),T=[].concat(k,C,x,["-",'"',".",":","_","/"]);function B(t,e){return e>=t.firstLine()&&e<=t.lastLine()}function _(t){return/^[a-z]$/.test(t)}function S(t){return-1!="()[]{}".indexOf(t)}function L(t){return b.test(t)}function I(t){return/^[A-Z]$/.test(t)}function M(t){return/^\s*$/.test(t)}function O(t){return-1!=".?!".indexOf(t)}function D(t,e){for(var n=0;n<e.length;n++)if(e[n]==t)return!0;return!1}var F={};function N(t,e,n,r,i){if(void 0===e&&!i)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),F[t]={type:n,defaultValue:e,callback:i},r)for(var a=0;a<r.length;a++)F[r[a]]=F[t];e&&P(t,e)}function P(t,e,n,r){var i=F[t],a=(r=r||{}).scope;if(!i)return new Error("Unknown option: "+t);if("boolean"==i.type){if(e&&!0!==e)return new Error("Invalid argument: "+t+"="+e);!1!==e&&(e=!0)}i.callback?("local"!==a&&i.callback(e,void 0),"global"!==a&&n&&i.callback(e,n)):("local"!==a&&(i.value="boolean"==i.type?!!e:e),"global"!==a&&n&&(n.state.vim.options[t]={value:e}))}function R(t,e,n){var r=F[t],i=(n=n||{}).scope;if(!r)return new Error("Unknown option: "+t);if(r.callback){var a=e&&r.callback(void 0,e);return"global"!==i&&void 0!==a?a:"local"!==i?r.callback():void 0}return((a="global"!==i&&e&&e.state.vim.options[t])||"local"!==i&&r||{}).value}N("filetype",void 0,"string",["ft"],(function(t,e){if(void 0!==e){if(void 0===t)return"null"==(n=e.getOption("mode"))?"":n;var n=""==t?"null":t;e.setOption("mode",n)}}));var Q,U,$=function(){var t=100,e=-1,n=0,r=0,i=new Array(t);function a(a,o,s){var c=i[e%t];function l(n){var r=++e%t,o=i[r];o&&o.clear(),i[r]=a.setBookmark(n)}if(c){var u=c.find();u&&!gt(u,o)&&l(o)}else l(o);l(s),n=e,(r=e-t+1)<0&&(r=0)}function o(a,o){(e+=o)>n?e=n:e<r&&(e=r);var s=i[(t+e)%t];if(s&&!s.find()){var c,l=o>0?1:-1,u=a.getCursor();do{if((s=i[(t+(e+=l))%t])&&(c=s.find())&&!gt(u,c))break}while(e<n&&e>r)}return s}function s(t,n){var r=e,i=o(t,n);return e=r,i&&i.find()}return{cachedCursor:void 0,add:a,find:s,move:o}},H=function(t){return t?{changes:t.changes,expectCursorActivityForChange:t.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function j(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=H()}function K(t){return t.state.vim||(t.state.vim={inputState:new X,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},fakeCursor:null,insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),t.state.vim}function z(){for(var t in Q={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:$(),macroModeState:new j,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new Y({}),searchHistoryController:new J,exCommandHistoryController:new J},F){var e=F[t];e.value=e.defaultValue}}j.prototype={exitMacroRecordMode:function(){var t=Q.macroModeState;t.onRecordingDone&&t.onRecordingDone(),t.onRecordingDone=void 0,t.isRecording=!1},enterMacroRecordMode:function(t,e){var n=Q.registerController.getRegister(e);n&&(n.clear(),this.latestRegister=e,t.openDialog&&(this.onRecordingDone=t.openDialog("(recording)["+e+"]",null,{bottom:!0})),this.isRecording=!0)}};var G={buildKeyMap:function(){},getRegisterController:function(){return Q.registerController},resetVimGlobalState_:z,getVimGlobalState_:function(){return Q},maybeInitVimState_:K,suppressErrorLogging:!1,InsertModeKey:Ge,map:function(t,e,n){Me.map(t,e,n)},unmap:function(t,e){Me.unmap(t,e)},noremap:function(t,e,n){function a(t){return t?[t]:["normal","insert","visual"]}for(var o=a(n),s=r.length,c=s-i;c<s&&o.length;c++){var l=r[c];if(!(l.keys!=e||n&&l.context&&l.context!==n||"ex"===l.type.substr(0,2)||"key"===l.type.substr(0,3))){var u={};for(var h in l)u[h]=l[h];u.keys=t,n&&!u.context&&(u.context=n),this._mapCommand(u);var f=a(l.context);o=o.filter((function(t){return-1===f.indexOf(t)}))}}},mapclear:function(t){var e=r.length,n=i,a=r.slice(0,e-n);if(r=r.slice(e-n),t)for(var o=a.length-1;o>=0;o--){var s=a[o];if(t!==s.context)if(s.context)this._mapCommand(s);else{var c=["normal","insert","visual"];for(var l in c)if(c[l]!==t){var u={};for(var h in s)u[h]=s[h];u.context=c[l],this._mapCommand(u)}}}},setOption:P,getOption:R,defineOption:N,defineEx:function(t,e,n){if(e){if(0!==t.indexOf(e))throw new Error('(Vim.defineEx) "'+e+'" is not a prefix of "'+t+'", command not registered')}else e=t;Ie[t]=n,Me.commandMap_[e]={name:t,shortName:e,type:"api"}},handleKey:function(t,e,n){var r=this.findKey(t,e,n);if("function"==typeof r)return r()},findKey:function(t,e,i){var a,o=K(t);function s(){var n=Q.macroModeState;if(n.isRecording){if("q"==e)return n.exitMacroRecordMode(),V(t),!0;"mapping"!=i&&Re(n,e)}}function c(){if("<Esc>"==e)return V(t),o.visualMode?Ot(t):o.insertMode&&De(t),!0}function l(r){for(var i;r;)i=/<\w+-.+?>|<\w+>|./.exec(r),e=i[0],r=r.substring(i.index+e.length),n.Vim.handleKey(t,e,"mapping")}function u(){if(c())return!0;for(var n=o.inputState.keyBuffer=o.inputState.keyBuffer+e,i=1==e.length,a=Z.matchCommand(n,r,o.inputState,"insert");n.length>1&&"full"!=a.type;){n=o.inputState.keyBuffer=n.slice(1);var s=Z.matchCommand(n,r,o.inputState,"insert");"none"!=s.type&&(a=s)}if("none"==a.type)return V(t),!1;if("partial"==a.type)return U&&window.clearTimeout(U),U=window.setTimeout((function(){o.insertMode&&o.inputState.keyBuffer&&V(t)}),R("insertModeEscKeysTimeout")),!i;if(U&&window.clearTimeout(U),i){for(var l=t.listSelections(),u=0;u<l.length;u++){var h=l[u].head;t.replaceRange("",lt(h,0,-(n.length-1)),h,"+input")}Q.macroModeState.lastInsertModeChanges.changes.pop()}return V(t),a.command}function h(){if(s()||c())return!0;var n=o.inputState.keyBuffer=o.inputState.keyBuffer+e;if(/^[1-9]\d*$/.test(n))return!0;if(!(i=/^(\d*)(.*)$/.exec(n)))return V(t),!1;var i,a=o.visualMode?"visual":"normal",l=Z.matchCommand(i[2]||i[1],r,o.inputState,a);return"none"==l.type?(V(t),!1):"partial"==l.type||(o.inputState.keyBuffer="",(i=/^(\d*)(.*)$/.exec(n))[1]&&"0"!=i[1]&&o.inputState.pushRepeatDigit(i[1]),l.command)}return!1===(a=o.insertMode?u():h())?o.insertMode||1!==e.length?void 0:function(){return!0}:!0===a?function(){return!0}:function(){return t.operation((function(){t.curOp.isVimOp=!0;try{"keyToKey"==a.type?l(a.toKeys):Z.processCommand(t,o,a)}catch(e){throw t.state.vim=void 0,K(t),n.Vim.suppressErrorLogging,e}return!0}))}},handleEx:function(t,e){Me.processCommand(t,e)},defineMotion:et,defineAction:ot,defineOperator:it,mapCommand:Ne,_mapCommand:Fe,defineRegister:q,exitVisualMode:Ot,exitInsertMode:De};function X(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function V(t,e){t.state.vim.inputState=new X,n.signal(t,"vim-command-done",e)}function W(t,e,n){this.clear(),this.keyBuffer=[t||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!e,this.blockwise=!!n}function q(t,e){var n=Q.registerController.registers;if(!t||1!=t.length)throw Error("Register name must be 1 character");if(n[t])throw Error("Register already defined "+t);n[t]=e,T.push(t)}function Y(t){this.registers=t,this.unnamedRegister=t['"']=new W,t["."]=new W,t[":"]=new W,t["/"]=new W}function J(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}X.prototype.pushRepeatDigit=function(t){this.operator?this.motionRepeat=this.motionRepeat.concat(t):this.prefixRepeat=this.prefixRepeat.concat(t)},X.prototype.getRepeat=function(){var t=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(t=1,this.prefixRepeat.length>0&&(t*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(t*=parseInt(this.motionRepeat.join(""),10))),t},W.prototype={setText:function(t,e,n){this.keyBuffer=[t||""],this.linewise=!!e,this.blockwise=!!n},pushText:function(t,e){e&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(t)},pushInsertModeChanges:function(t){this.insertModeChanges.push(H(t))},pushSearchQuery:function(t){this.searchQueries.push(t)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},Y.prototype={pushText:function(t,e,n,r,i){if("_"!==t){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var a=this.isValidRegister(t)?this.getRegister(t):null;if(a)I(t)?a.pushText(n,r):a.setText(n,r,i),this.unnamedRegister.setText(a.toString(),r);else{switch(e){case"yank":this.registers[0]=new W(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new W(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new W(n,r))}this.unnamedRegister.setText(n,r,i)}}},getRegister:function(t){return this.isValidRegister(t)?(t=t.toLowerCase(),this.registers[t]||(this.registers[t]=new W),this.registers[t]):this.unnamedRegister},isValidRegister:function(t){return t&&D(t,T)},shiftNumericRegisters_:function(){for(var t=9;t>=2;t--)this.registers[t]=this.getRegister(""+(t-1))}},J.prototype={nextMatch:function(t,e){var n=this.historyBuffer,r=e?-1:1;null===this.initialPrefix&&(this.initialPrefix=t);for(var i=this.iterator+r;e?i>=0:i<n.length;i+=r)for(var a=n[i],o=0;o<=a.length;o++)if(this.initialPrefix==a.substring(0,o))return this.iterator=i,a;return i>=n.length?(this.iterator=n.length,this.initialPrefix):i<0?t:void 0},pushInput:function(t){var e=this.historyBuffer.indexOf(t);e>-1&&this.historyBuffer.splice(e,1),t.length&&this.historyBuffer.push(t)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Z={matchCommand:function(t,e,n,r){var i,a=ut(t,e,r,n);if(!a.full&&!a.partial)return{type:"none"};if(!a.full&&a.partial)return{type:"partial"};for(var o=0;o<a.full.length;o++){var s=a.full[o];i||(i=s)}if("<character>"==i.keys.slice(-11)){var c=ft(t);if(!c)return{type:"none"};n.selectedCharacter=c}return{type:"full",command:i}},processCommand:function(t,e,n){switch(e.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(t,e,n);break;case"operator":this.processOperator(t,e,n);break;case"operatorMotion":this.processOperatorMotion(t,e,n);break;case"action":this.processAction(t,e,n);break;case"search":this.processSearch(t,e,n);break;case"ex":case"keyToEx":this.processEx(t,e,n)}},processMotion:function(t,e,n){e.inputState.motion=n.motion,e.inputState.motionArgs=ct(n.motionArgs),this.evalInput(t,e)},processOperator:function(t,e,n){var r=e.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(t,e);V(t)}r.operator=n.operator,r.operatorArgs=ct(n.operatorArgs),n.exitVisualBlock&&(e.visualBlock=!1,Lt(t)),e.visualMode&&this.evalInput(t,e)},processOperatorMotion:function(t,e,n){var r=e.visualMode,i=ct(n.operatorMotionArgs);i&&r&&i.visualLine&&(e.visualLine=!0),this.processOperator(t,e,n),r||this.processMotion(t,e,n)},processAction:function(t,e,n){var r=e.inputState,i=r.getRepeat(),a=!!i,o=ct(n.actionArgs)||{};r.selectedCharacter&&(o.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(t,e,n),n.motion&&this.processMotion(t,e,n),(n.motion||n.operator)&&this.evalInput(t,e),o.repeat=i||1,o.repeatIsExplicit=a,o.registerName=r.registerName,V(t),e.lastMotion=null,n.isEdit&&this.recordLastEdit(e,r,n),at[n.action](t,o,e)},processSearch:function(t,e,r){if(t.getSearchCursor){var i=r.searchArgs.forward,a=r.searchArgs.wholeWordOnly;ne(t).setReversed(!i);var o=i?"/":"?",s=ne(t).getQuery(),c=t.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var l=Q.macroModeState;l.isPlaying?d(f=l.replaySearchQueries.shift(),!0,!1):me(t,{onClose:A,prefix:o,desc:pe,onKeyUp:g,onKeyDown:p});break;case"wordUnderCursor":var u=Pt(t,!1,!0,!1,!0),h=!0;if(u||(u=Pt(t,!1,!0,!1,!1),h=!1),!u)return;var f=t.getLine(u.start.line).substring(u.start.ch,u.end.ch);f=h&&a?"\\b"+f+"\\b":kt(f),Q.jumpList.cachedCursor=t.getCursor(),t.setCursor(u.start),d(f,!0,!1)}}function d(n,i,a){Q.searchHistoryController.pushInput(n),Q.searchHistoryController.reset();try{ve(t,n,i,a)}catch(e){return Ae(t,"Invalid regex: "+n),void V(t)}Z.processMotion(t,e,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}function A(e){t.scrollTo(c.left,c.top),d(e,!0,!0);var n=Q.macroModeState;n.isRecording&&Ue(n,e)}function g(e,r,a){var o,s,l,u=n.keyName(e);"Up"==u||"Down"==u?(o="Up"==u,s=e.target?e.target.selectionEnd:0,a(r=Q.searchHistoryController.nextMatch(r,o)||""),s&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(s,e.target.value.length))):"Left"!=u&&"Right"!=u&&"Ctrl"!=u&&"Alt"!=u&&"Shift"!=u&&Q.searchHistoryController.reset();try{l=ve(t,r,!0,!0)}catch(e){}l?t.scrollIntoView(Ce(t,!i,l),30):(Ee(t),t.scrollTo(c.left,c.top))}function p(e,r,i){var a=n.keyName(e);"Esc"==a||"Ctrl-C"==a||"Ctrl-["==a||"Backspace"==a&&""==r?(Q.searchHistoryController.pushInput(r),Q.searchHistoryController.reset(),ve(t,s),Ee(t),t.scrollTo(c.left,c.top),n.e_stop(e),V(t),i(),t.focus()):"Up"==a||"Down"==a?n.e_stop(e):"Ctrl-U"==a&&(n.e_stop(e),i(""))}},processEx:function(t,e,r){function i(e){Q.exCommandHistoryController.pushInput(e),Q.exCommandHistoryController.reset(),Me.processCommand(t,e)}function a(e,r,i){var a,o,s=n.keyName(e);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==r)&&(Q.exCommandHistoryController.pushInput(r),Q.exCommandHistoryController.reset(),n.e_stop(e),V(t),i(),t.focus()),"Up"==s||"Down"==s?(n.e_stop(e),a="Up"==s,o=e.target?e.target.selectionEnd:0,i(r=Q.exCommandHistoryController.nextMatch(r,a)||""),o&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(o,e.target.value.length))):"Ctrl-U"==s?(n.e_stop(e),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&Q.exCommandHistoryController.reset()}"keyToEx"==r.type?Me.processCommand(t,r.exArgs.input):e.visualMode?me(t,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:a,selectValueOnOpen:!1}):me(t,{onClose:i,prefix:":",onKeyDown:a})},evalInput:function(t,e){var n,r,i,a=e.inputState,s=a.motion,c=a.motionArgs||{},l=a.operator,u=a.operatorArgs||{},h=a.registerName,f=e.sel,d=At(e.visualMode?st(t,f.head):t.getCursor("head")),A=At(e.visualMode?st(t,f.anchor):t.getCursor("anchor")),g=At(d),p=At(A);if(l&&this.recordLastEdit(e,a),(i=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&c.explicitRepeat?c.repeatIsExplicit=!0:(c.noRepeat||!c.explicitRepeat&&0===i)&&(i=1,c.repeatIsExplicit=!1),a.selectedCharacter&&(c.selectedCharacter=u.selectedCharacter=a.selectedCharacter),c.repeat=i,V(t),s){var m=tt[s](t,d,c,e,a);if(e.lastMotion=tt[s],!m)return;if(c.toJumplist){var b=Q.jumpList,v=b.cachedCursor;v?(Qt(t,v,m),delete b.cachedCursor):Qt(t,d,m)}m instanceof Array?(r=m[0],n=m[1]):n=m,n||(n=At(d)),e.visualMode?(e.visualBlock&&n.ch===1/0||(n=st(t,n)),r&&(r=st(t,r)),r=r||p,f.anchor=r,f.head=n,Lt(t),Wt(t,e,"<",pt(r,n)?r:n),Wt(t,e,">",pt(r,n)?n:r)):l||(n=st(t,n),t.setCursor(n.line,n.ch))}if(l){if(u.lastSel){r=p;var y=u.lastSel,w=Math.abs(y.head.line-y.anchor.line),k=Math.abs(y.head.ch-y.anchor.ch);n=y.visualLine?o(p.line+w,p.ch):y.visualBlock?o(p.line+w,p.ch+k):y.head.line==y.anchor.line?o(p.line,p.ch+k):o(p.line+w,p.ch),e.visualMode=!0,e.visualLine=y.visualLine,e.visualBlock=y.visualBlock,f=e.sel={anchor:r,head:n},Lt(t)}else e.visualMode&&(u.lastSel={anchor:At(f.anchor),head:At(f.head),visualBlock:e.visualBlock,visualLine:e.visualLine});var C,x,E,T,B;if(e.visualMode){if(C=mt(f.head,f.anchor),x=bt(f.head,f.anchor),E=e.visualLine||u.linewise,B=It(t,{anchor:C,head:x},T=e.visualBlock?"block":E?"line":"char"),E){var _=B.ranges;if("block"==T)for(var S=0;S<_.length;S++)_[S].head.ch=yt(t,_[S].head.line);else"line"==T&&(_[0].head=o(_[0].head.line+1,0))}}else{if(C=At(r||p),pt(x=At(n||g),C)){var L=C;C=x,x=L}(E=c.linewise||u.linewise)?Ft(t,C,x):c.forward&&Dt(t,C,x),B=It(t,{anchor:C,head:x},T="char",!c.inclusive||E)}t.setSelections(B.ranges,B.primary),e.lastMotion=null,u.repeat=i,u.registerName=h,u.linewise=E;var I=rt[l](t,u,B.ranges,p,n);e.visualMode&&Ot(t,null!=I),I&&t.setCursor(I)}},recordLastEdit:function(t,e,n){var r=Q.macroModeState;r.isPlaying||(t.lastEditInputState=e,t.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=t.visualBlock?t.sel.head.line-t.sel.anchor.line:0)}},tt={moveToTopLine:function(t,e,n){var r=Be(t).top+n.repeat-1;return o(r,Nt(t.getLine(r)))},moveToMiddleLine:function(t){var e=Be(t),n=Math.floor(.5*(e.top+e.bottom));return o(n,Nt(t.getLine(n)))},moveToBottomLine:function(t,e,n){var r=Be(t).bottom-n.repeat+1;return o(r,Nt(t.getLine(r)))},expandToLine:function(t,e,n){return o(e.line+n.repeat-1,1/0)},findNext:function(t,e,n){var r=ne(t),i=r.getQuery();if(i){var a=!n.forward;return a=r.isReversed()?!a:a,ke(t,i),Ce(t,a,i,n.repeat)}},findAndSelectNextInclusive:function(t,e,r,i,a){var s=ne(t),c=s.getQuery();if(c){var l=!r.forward,u=xe(t,l=s.isReversed()?!l:l,c,r.repeat,i);if(u){if(a.operator)return u;var h=u[0],f=o(u[1].line,u[1].ch-1);if(i.visualMode){(i.visualLine||i.visualBlock)&&(i.visualLine=!1,i.visualBlock=!1,n.signal(t,"vim-mode-change",{mode:"visual",subMode:""}));var d=i.sel.anchor;if(d)return s.isReversed()?r.forward?[d,h]:[d,f]:r.forward?[d,f]:[d,h]}else i.visualMode=!0,i.visualLine=!1,i.visualBlock=!1,n.signal(t,"vim-mode-change",{mode:"visual",subMode:""});return l?[f,h]:[h,f]}}},goToMark:function(t,e,n,r){var i=_e(t,r,n.selectedCharacter);return i?n.linewise?{line:i.line,ch:Nt(t.getLine(i.line))}:i:null},moveToOtherHighlightedEnd:function(t,e,n,r){if(r.visualBlock&&n.sameLine){var i=r.sel;return[st(t,o(i.anchor.line,i.head.ch)),st(t,o(i.head.line,i.anchor.ch))]}return[r.sel.head,r.sel.anchor]},jumpToMark:function(t,e,n,r){for(var i=e,a=0;a<n.repeat;a++){var s=i;for(var c in r.marks)if(_(c)){var l=r.marks[c].find();if(!((n.forward?pt(l,s):pt(s,l))||n.linewise&&l.line==s.line)){var u=gt(s,i),h=n.forward?vt(s,l,i):vt(i,l,s);(u||h)&&(i=l)}}}return n.linewise&&(i=o(i.line,Nt(t.getLine(i.line)))),i},moveByCharacters:function(t,e,n){var r=e,i=n.repeat,a=n.forward?r.ch+i:r.ch-i;return o(r.line,a)},moveByLines:function(t,e,n,r){var i=e,a=i.ch;switch(r.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:a=r.lastHPos;break;default:r.lastHPos=a}var s=n.repeat+(n.repeatOffset||0),c=n.forward?i.line+s:i.line-s,l=t.firstLine(),u=t.lastLine(),h=t.findPosV(i,n.forward?s:-s,"line",r.lastHSPos);return(n.forward?h.line>c:h.line<c)&&(c=h.line,a=h.ch),c<l&&i.line==l?this.moveToStartOfLine(t,e,n,r):c>u&&i.line==u?Gt(t,e,n,r,!0):(n.toFirstChar&&(a=Nt(t.getLine(c)),r.lastHPos=a),r.lastHSPos=t.charCoords(o(c,a),"div").left,o(c,a))},moveByDisplayLines:function(t,e,n,r){var i=e;switch(r.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:r.lastHSPos=t.charCoords(i,"div").left}var a=n.repeat;if((c=t.findPosV(i,n.forward?a:-a,"line",r.lastHSPos)).hitSide)if(n.forward)var s={top:t.charCoords(c,"div").top+8,left:r.lastHSPos},c=t.coordsChar(s,"div");else{var l=t.charCoords(o(t.firstLine(),0),"div");l.left=r.lastHSPos,c=t.coordsChar(l,"div")}return r.lastHPos=c.ch,c},moveByPage:function(t,e,n){var r=e,i=n.repeat;return t.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(t,e,n){var r=n.forward?1:-1;return Yt(t,e,n.repeat,r)},moveBySentence:function(t,e,n){var r=n.forward?1:-1;return Jt(t,e,n.repeat,r)},moveByScroll:function(t,e,n,r){var i=t.getScrollInfo(),a=null,o=n.repeat;o||(o=i.clientHeight/(2*t.defaultTextHeight()));var s=t.charCoords(e,"local");if(n.repeat=o,!(a=tt.moveByDisplayLines(t,e,n,r)))return null;var c=t.charCoords(a,"local");return t.scrollTo(null,i.top+c.top-s.top),a},moveByWords:function(t,e,n){return zt(t,e,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(t,e,n){var r=Xt(t,n.repeat,n.forward,n.selectedCharacter),i=n.forward?-1:1;return Ut(i,n),r?(r.ch+=i,r):null},moveToCharacter:function(t,e,n){var r=n.repeat;return Ut(0,n),Xt(t,r,n.forward,n.selectedCharacter)||e},moveToSymbol:function(t,e,n){return jt(t,n.repeat,n.forward,n.selectedCharacter)||e},moveToColumn:function(t,e,n,r){var i=n.repeat;return r.lastHPos=i-1,r.lastHSPos=t.charCoords(e,"div").left,Vt(t,i)},moveToEol:function(t,e,n,r){return Gt(t,e,n,r,!1)},moveToFirstNonWhiteSpaceCharacter:function(t,e){var n=e;return o(n.line,Nt(t.getLine(n.line)))},moveToMatchedSymbol:function(t,e){for(var n,r=e,i=r.line,a=r.ch,s=t.getLine(i);a<s.length;a++)if((n=s.charAt(a))&&S(n)){var c=t.getTokenTypeAt(o(i,a+1));if("string"!==c&&"comment"!==c)break}if(a<s.length){var l="<"===a||">"===a?/[(){}[\]<>]/:/[(){}[\]]/;return t.findMatchingBracket(o(i,a),{bracketRegex:l}).to}return r},moveToStartOfLine:function(t,e){return o(e.line,0)},moveToLineOrEdgeOfDocument:function(t,e,n){var r=n.forward?t.lastLine():t.firstLine();return n.repeatIsExplicit&&(r=n.repeat-t.getOption("firstLineNumber")),o(r,Nt(t.getLine(r)))},textObjectManipulation:function(t,e,n,r){var i={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},a={"'":!0,'"':!0,"`":!0},o=n.selectedCharacter;"b"==o?o="(":"B"==o&&(o="{");var s,c=!n.textObjectInner;if(i[o])s=Zt(t,e,o,c);else if(a[o])s=te(t,e,o,c);else if("W"===o)s=Pt(t,c,!0,!0);else if("w"===o)s=Pt(t,c,!0,!1);else if("p"===o)if(s=Yt(t,e,n.repeat,0,c),n.linewise=!0,r.visualMode)r.visualLine||(r.visualLine=!0);else{var l=r.inputState.operatorArgs;l&&(l.linewise=!0),s.end.line--}else{if("t"!==o)return null;s=Rt(t,e,c)}return t.state.vim.visualMode?St(t,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(t,e,n){var r=Q.lastCharacterSearch,i=n.repeat,a=n.forward===r.forward,o=(r.increment?1:0)*(a?-1:1);t.moveH(-o,"char"),n.inclusive=!!a;var s=Xt(t,i,a,r.selectedCharacter);return s?(s.ch+=o,s):(t.moveH(o,"char"),e)}};function et(t,e){tt[t]=e}function nt(t,e){for(var n=[],r=0;r<e;r++)n.push(t);return n}var rt={change:function(t,e,r){var i,a,s=t.state.vim,c=r[0].anchor,l=r[0].head;if(s.visualMode)if(e.fullLine)l.ch=Number.MAX_VALUE,l.line--,t.setSelection(c,l),a=t.getSelection(),t.replaceSelection(""),i=c;else{a=t.getSelection();var u=nt("",r.length);t.replaceSelections(u),i=mt(r[0].head,r[0].anchor)}else{a=t.getRange(c,l);var h=s.lastEditInputState||{};if("moveByWords"==h.motion&&!M(a)){var f=/\s+$/.exec(a);f&&h.motionArgs&&h.motionArgs.forward&&(l=lt(l,0,-f[0].length),a=a.slice(0,-f[0].length))}var d=new o(c.line-1,Number.MAX_VALUE),A=t.firstLine()==t.lastLine();l.line>t.lastLine()&&e.linewise&&!A?t.replaceRange("",d,l):t.replaceRange("",c,l),e.linewise&&(A||(t.setCursor(d),n.commands.newlineAndIndent(t)),c.ch=Number.MAX_VALUE),i=c}Q.registerController.pushText(e.registerName,"change",a,e.linewise,r.length>1),at.enterInsertMode(t,{head:i},t.state.vim)},delete:function(t,e,n){var r,i,a=t.state.vim;if(a.visualBlock){i=t.getSelection();var s=nt("",n.length);t.replaceSelections(s),r=n[0].anchor}else{var c=n[0].anchor,l=n[0].head;e.linewise&&l.line!=t.firstLine()&&c.line==t.lastLine()&&c.line==l.line-1&&(c.line==t.firstLine()?c.ch=0:c=o(c.line-1,yt(t,c.line-1))),i=t.getRange(c,l),t.replaceRange("",c,l),r=c,e.linewise&&(r=tt.moveToFirstNonWhiteSpaceCharacter(t,c))}return Q.registerController.pushText(e.registerName,"delete",i,e.linewise,a.visualBlock),st(t,r)},indent:function(t,e,n){var r=t.state.vim,i=n[0].anchor.line,a=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line,o=r.visualMode?e.repeat:1;e.linewise&&a--;for(var s=i;s<=a;s++)for(var c=0;c<o;c++)t.indentLine(s,e.indentRight);return tt.moveToFirstNonWhiteSpaceCharacter(t,n[0].anchor)},indentAuto:function(t,e,n){return t.execCommand("indentAuto"),tt.moveToFirstNonWhiteSpaceCharacter(t,n[0].anchor)},changeCase:function(t,e,n,r,i){for(var a=t.getSelections(),o=[],s=e.toLower,c=0;c<a.length;c++){var l=a[c],u="";if(!0===s)u=l.toLowerCase();else if(!1===s)u=l.toUpperCase();else for(var h=0;h<l.length;h++){var f=l.charAt(h);u+=I(f)?f.toLowerCase():f.toUpperCase()}o.push(u)}return t.replaceSelections(o),e.shouldMoveCursor?i:!t.state.vim.visualMode&&e.linewise&&n[0].anchor.line+1==n[0].head.line?tt.moveToFirstNonWhiteSpaceCharacter(t,r):e.linewise?r:mt(n[0].anchor,n[0].head)},yank:function(t,e,n,r){var i=t.state.vim,a=t.getSelection(),o=i.visualMode?mt(i.sel.anchor,i.sel.head,n[0].head,n[0].anchor):r;return Q.registerController.pushText(e.registerName,"yank",a,e.linewise,i.visualBlock),o}};function it(t,e){rt[t]=e}var at={jumpListWalk:function(t,e,n){if(!n.visualMode){var r=e.repeat,i=e.forward,a=Q.jumpList.move(t,i?r:-r),o=a?a.find():void 0;o=o||t.getCursor(),t.setCursor(o)}},scroll:function(t,e,n){if(!n.visualMode){var r=e.repeat||1,i=t.defaultTextHeight(),a=t.getScrollInfo().top,o=i*r,s=e.forward?a+o:a-o,c=At(t.getCursor()),l=t.charCoords(c,"local");if(e.forward)s>l.top?(c.line+=(s-l.top)/i,c.line=Math.ceil(c.line),t.setCursor(c),l=t.charCoords(c,"local"),t.scrollTo(null,l.top)):t.scrollTo(null,s);else{var u=s+t.getScrollInfo().clientHeight;u<l.bottom?(c.line-=(l.bottom-u)/i,c.line=Math.floor(c.line),t.setCursor(c),l=t.charCoords(c,"local"),t.scrollTo(null,l.bottom-t.getScrollInfo().clientHeight)):t.scrollTo(null,s)}}},scrollToCursor:function(t,e){var n=t.getCursor().line,r=t.charCoords(o(n,0),"local"),i=t.getScrollInfo().clientHeight,a=r.top,s=r.bottom-a;switch(e.position){case"center":a=a-i/2+s;break;case"bottom":a=a-i+s}t.scrollTo(null,a)},replayMacro:function(t,e,n){var r=e.selectedCharacter,i=e.repeat,a=Q.macroModeState;for("@"==r?r=a.latestRegister:a.latestRegister=r;i--;)Pe(t,n,a,r)},enterMacroRecordMode:function(t,e){var n=Q.macroModeState,r=e.selectedCharacter;Q.registerController.isValidRegister(r)&&n.enterMacroRecordMode(t,r)},toggleOverwrite:function(t){t.state.overwrite?(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),n.signal(t,"vim-mode-change",{mode:"insert"})):(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),n.signal(t,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(t,e,r){if(!t.getOption("readOnly")){r.insertMode=!0,r.insertModeRepeat=e&&e.repeat||1;var i=e?e.insertAt:null,a=r.sel,s=e.head||t.getCursor("head"),c=t.listSelections().length;if("eol"==i)s=o(s.line,yt(t,s.line));else if("bol"==i)s=o(s.line,0);else if("charAfter"==i)s=lt(s,0,1);else if("firstNonBlank"==i)s=tt.moveToFirstNonWhiteSpaceCharacter(t,s);else if("startOfSelectedArea"==i){if(!r.visualMode)return;r.visualBlock?(s=o(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),c=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line<a.anchor.line?a.head:o(a.anchor.line,0)}else if("endOfSelectedArea"==i){if(!r.visualMode)return;r.visualBlock?(s=o(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch+1,a.anchor.ch)),c=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line>=a.anchor.line?lt(a.head,0,1):o(a.anchor.line,0)}else if("inplace"==i){if(r.visualMode)return}else"lastEdit"==i&&(s=Se(t)||s);t.setOption("disableInput",!1),e&&e.replace?(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),n.signal(t,"vim-mode-change",{mode:"replace"})):(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),n.signal(t,"vim-mode-change",{mode:"insert"})),Q.macroModeState.isPlaying||(t.on("change",$e),n.on(t.getInputField(),"keydown",Xe)),r.visualMode&&Ot(t),Et(t,s,c)}},toggleVisualMode:function(t,e,r){var i,a=e.repeat,s=t.getCursor();r.visualMode?r.visualLine^e.linewise||r.visualBlock^e.blockwise?(r.visualLine=!!e.linewise,r.visualBlock=!!e.blockwise,n.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),Lt(t)):Ot(t):(r.visualMode=!0,r.visualLine=!!e.linewise,r.visualBlock=!!e.blockwise,i=st(t,o(s.line,s.ch+a-1)),r.sel={anchor:s,head:i},n.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),Lt(t),Wt(t,r,"<",mt(s,i)),Wt(t,r,">",bt(s,i)))},reselectLastSelection:function(t,e,r){var i=r.lastSelection;if(r.visualMode&&_t(t,r),i){var a=i.anchorMark.find(),o=i.headMark.find();if(!a||!o)return;r.sel={anchor:a,head:o},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,Lt(t),Wt(t,r,"<",mt(a,o)),Wt(t,r,">",bt(a,o)),n.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(t,e,n){var r,i;if(n.visualMode){if(r=t.getCursor("anchor"),pt(i=t.getCursor("head"),r)){var a=i;i=r,r=a}i.ch=yt(t,i.line)-1}else{var s=Math.max(e.repeat,2);r=t.getCursor(),i=st(t,o(r.line+s-1,1/0))}for(var c=0,l=r.line;l<i.line;l++){c=yt(t,r.line),a=o(r.line+1,yt(t,r.line+1));var u=t.getRange(r,a);u=e.keepSpaces?u.replace(/\n\r?/g,""):u.replace(/\n\s*/g," "),t.replaceRange(u,r,a)}var h=o(r.line,c);n.visualMode&&Ot(t,!1),t.setCursor(h)},newLineAndEnterInsertMode:function(t,e,r){r.insertMode=!0;var i=At(t.getCursor());i.line!==t.firstLine()||e.after?(i.line=e.after?i.line:i.line-1,i.ch=yt(t,i.line),t.setCursor(i),(n.commands.newlineAndIndentContinueComment||n.commands.newlineAndIndent)(t)):(t.replaceRange("\n",o(t.firstLine(),0)),t.setCursor(t.firstLine(),0)),this.enterInsertMode(t,{repeat:e.repeat},r)},paste:function(t,e,n){var r=At(t.getCursor()),i=Q.registerController.getRegister(e.registerName);if(d=i.toString()){if(e.matchIndent){var a=t.getOption("tabSize"),s=function(t){var e=t.split("\t").length-1,n=t.split(" ").length-1;return e*a+1*n},c=t.getLine(t.getCursor().line),l=s(c.match(/^\s*/)[0]),u=d.replace(/\n$/,""),h=d!==u,f=s(d.match(/^\s*/)[0]),d=u.replace(/^\s*/gm,(function(e){var n=l+(s(e)-f);if(n<0)return"";if(t.getOption("indentWithTabs")){var r=Math.floor(n/a);return Array(r+1).join("\t")}return Array(n+1).join(" ")}));d+=h?"\n":""}e.repeat>1&&(d=Array(e.repeat+1).join(d));var A,g,p=i.linewise,m=i.blockwise;if(m){d=d.split("\n"),p&&d.pop();for(var b=0;b<d.length;b++)d[b]=""==d[b]?" ":d[b];r.ch+=e.after?1:0,r.ch=Math.min(yt(t,r.line),r.ch)}else p?n.visualMode?d=n.visualLine?d.slice(0,-1):"\n"+d.slice(0,d.length-1)+"\n":e.after?(d="\n"+d.slice(0,d.length-1),r.ch=yt(t,r.line)):r.ch=0:r.ch+=e.after?1:0;if(n.visualMode){var v;n.lastPastedText=d;var y=Bt(t,n),w=y[0],k=y[1],C=t.getSelection(),x=t.listSelections(),E=new Array(x.length).join("1").split("1");n.lastSelection&&(v=n.lastSelection.headMark.find()),Q.registerController.unnamedRegister.setText(C),m?(t.replaceSelections(E),k=o(w.line+d.length-1,w.ch),t.setCursor(w),xt(t,k),t.replaceSelections(d),A=w):n.visualBlock?(t.replaceSelections(E),t.setCursor(w),t.replaceRange(d,w,w),A=w):(t.replaceRange(d,w,k),A=t.posFromIndex(t.indexFromPos(w)+d.length-1)),v&&(n.lastSelection.headMark=t.setBookmark(v)),p&&(A.ch=0)}else if(m){for(t.setCursor(r),b=0;b<d.length;b++){var T=r.line+b;T>t.lastLine()&&t.replaceRange("\n",o(T,0)),yt(t,T)<r.ch&&Ct(t,T,r.ch)}t.setCursor(r),xt(t,o(r.line+d.length-1,r.ch)),t.replaceSelections(d),A=r}else t.replaceRange(d,r),p&&e.after?A=o(r.line+1,Nt(t.getLine(r.line+1))):p&&!e.after?A=o(r.line,Nt(t.getLine(r.line))):!p&&e.after?(g=t.indexFromPos(r),A=t.posFromIndex(g+d.length-1)):(g=t.indexFromPos(r),A=t.posFromIndex(g+d.length));n.visualMode&&Ot(t,!1),t.setCursor(A)}},undo:function(t,e){t.operation((function(){dt(t,n.commands.undo,e.repeat)(),t.setCursor(t.getCursor("anchor"))}))},redo:function(t,e){dt(t,n.commands.redo,e.repeat)()},setRegister:function(t,e,n){n.inputState.registerName=e.selectedCharacter},setMark:function(t,e,n){Wt(t,n,e.selectedCharacter,t.getCursor())},replace:function(t,e,r){var i,a,s=e.selectedCharacter,c=t.getCursor(),l=t.listSelections();if(r.visualMode)c=t.getCursor("start"),a=t.getCursor("end");else{var u=t.getLine(c.line);(i=c.ch+e.repeat)>u.length&&(i=u.length),a=o(c.line,i)}if("\n"==s)r.visualMode||t.replaceRange("",c,a),(n.commands.newlineAndIndentContinueComment||n.commands.newlineAndIndent)(t);else{var h=t.getRange(c,a);if(h=h.replace(/[^\n]/g,s),r.visualBlock){var f=new Array(t.getOption("tabSize")+1).join(" ");h=(h=t.getSelection()).replace(/\t/g,f).replace(/[^\n]/g,s).split("\n"),t.replaceSelections(h)}else t.replaceRange(h,c,a);r.visualMode?(c=pt(l[0].anchor,l[0].head)?l[0].anchor:l[0].head,t.setCursor(c),Ot(t,!1)):t.setCursor(lt(a,0,-1))}},incrementNumberToken:function(t,e){for(var n,r,i,a,s=t.getCursor(),c=t.getLine(s.line),l=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(n=l.exec(c))&&(i=(r=n.index)+n[0].length,!(s.ch<i)););if((e.backtrack||!(i<=s.ch))&&n){var u=n[2]||n[4],h=n[3]||n[5],f=e.increase?1:-1,d={"0b":2,0:8,"":10,"0x":16}[u.toLowerCase()];a=(parseInt(n[1]+h,d)+f*e.repeat).toString(d);var A=u?new Array(h.length-a.length+1+n[1].length).join("0"):"";a="-"===a.charAt(0)?"-"+u+A+a.substr(1):u+A+a;var g=o(s.line,r),p=o(s.line,i);t.replaceRange(a,g,p),t.setCursor(o(s.line,r+a.length-1))}},repeatLastEdit:function(t,e,n){if(n.lastEditInputState){var r=e.repeat;r&&e.repeatIsExplicit?n.lastEditInputState.repeatOverride=r:r=n.lastEditInputState.repeatOverride||r,Ve(t,n,r,!1)}},indent:function(t,e){t.indentLine(t.getCursor().line,e.indentRight)},exitInsertMode:De};function ot(t,e){at[t]=e}function st(t,e){var n=t.state.vim,r=n.insertMode||n.visualMode,i=Math.min(Math.max(t.firstLine(),e.line),t.lastLine()),a=yt(t,i)-1+!!r,s=Math.min(Math.max(0,e.ch),a);return o(i,s)}function ct(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function lt(t,e,n){return"object"==typeof e&&(n=e.ch,e=e.line),o(t.line+e,t.ch+n)}function ut(t,e,n,r){for(var i,a=[],o=[],s=0;s<e.length;s++){var c=e[s];"insert"==n&&"insert"!=c.context||c.context&&c.context!=n||r.operator&&"action"==c.type||!(i=ht(t,c.keys))||("partial"==i&&a.push(c),"full"==i&&o.push(c))}return{partial:a.length&&a,full:o.length&&o}}function ht(t,e){if("<character>"==e.slice(-11)){var n=e.length-11,r=t.slice(0,n),i=e.slice(0,n);return r==i&&t.length>n?"full":0==i.indexOf(r)&&"partial"}return t==e?"full":0==e.indexOf(t)&&"partial"}function ft(t){var e=/^.*(<[^>]+>)$/.exec(t),n=e?e[1]:t.slice(-1);if(n.length>1)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n=""}return n}function dt(t,e,n){return function(){for(var r=0;r<n;r++)e(t)}}function At(t){return o(t.line,t.ch)}function gt(t,e){return t.ch==e.ch&&t.line==e.line}function pt(t,e){return t.line<e.line||t.line==e.line&&t.ch<e.ch}function mt(t,e){return arguments.length>2&&(e=mt.apply(void 0,Array.prototype.slice.call(arguments,1))),pt(t,e)?t:e}function bt(t,e){return arguments.length>2&&(e=bt.apply(void 0,Array.prototype.slice.call(arguments,1))),pt(t,e)?e:t}function vt(t,e,n){var r=pt(t,e),i=pt(e,n);return r&&i}function yt(t,e){return t.getLine(e).length}function wt(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function kt(t){return t.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function Ct(t,e,n){var r=yt(t,e),i=new Array(n-r+1).join(" ");t.setCursor(o(e,r)),t.replaceRange(i,t.getCursor())}function xt(t,e){var n=[],r=t.listSelections(),i=At(t.clipPos(e)),a=!gt(e,i),s=Tt(r,t.getCursor("head")),c=gt(r[s].head,r[s].anchor),l=r.length-1,u=l-s>s?l:0,h=r[u].anchor,f=Math.min(h.line,i.line),d=Math.max(h.line,i.line),A=h.ch,g=i.ch,p=r[u].head.ch-A,m=g-A;p>0&&m<=0?(A++,a||g--):p<0&&m>=0?(A--,c||g++):p<0&&-1==m&&(A--,g++);for(var b=f;b<=d;b++){var v={anchor:new o(b,A),head:new o(b,g)};n.push(v)}return t.setSelections(n),e.ch=g,h.ch=A,h}function Et(t,e,n){for(var r=[],i=0;i<n;i++){var a=lt(e,i,0);r.push({anchor:a,head:a})}t.setSelections(r,0)}function Tt(t,e,n){for(var r=0;r<t.length;r++){var i="head"!=n&&gt(t[r].anchor,e),a="anchor"!=n&&gt(t[r].head,e);if(i||a)return r}return-1}function Bt(t,e){var n=e.lastSelection,r=function(){var e=t.listSelections(),n=e[0],r=e[e.length-1];return[pt(n.anchor,n.head)?n.anchor:n.head,pt(r.anchor,r.head)?r.head:r.anchor]},i=function(){var e=t.getCursor(),r=t.getCursor(),i=n.visualBlock;if(i){var a=i.width,s=i.height;r=o(e.line+s,e.ch+a);for(var c=[],l=e.line;l<r.line;l++){var u={anchor:o(l,e.ch),head:o(l,r.ch)};c.push(u)}t.setSelections(c)}else{var h=n.anchorMark.find(),f=n.headMark.find(),d=f.line-h.line,A=f.ch-h.ch;r={line:r.line+d,ch:d?r.ch:A+r.ch},n.visualLine&&(e=o(e.line,0),r=o(r.line,yt(t,r.line))),t.setSelection(e,r)}return[e,r]};return e.visualMode?r():i()}function _t(t,e){var n=e.sel.anchor,r=e.sel.head;e.lastPastedText&&(r=t.posFromIndex(t.indexFromPos(n)+e.lastPastedText.length),e.lastPastedText=null),e.lastSelection={anchorMark:t.setBookmark(n),headMark:t.setBookmark(r),anchor:At(n),head:At(r),visualMode:e.visualMode,visualLine:e.visualLine,visualBlock:e.visualBlock}}function St(t,e,n){var r,i=t.state.vim.sel,a=i.head,s=i.anchor;return pt(n,e)&&(r=n,n=e,e=r),pt(a,s)?(a=mt(e,a),s=bt(s,n)):(s=mt(e,s),-1==(a=lt(a=bt(a,n),0,-1)).ch&&a.line!=t.firstLine()&&(a=o(a.line-1,yt(t,a.line-1)))),[s,a]}function Lt(t,e,n){var r=t.state.vim,i=It(t,e=e||r.sel,n=n||r.visualLine?"line":r.visualBlock?"block":"char");t.setSelections(i.ranges,i.primary),je(t)}function It(t,e,n,r){var i=At(e.head),a=At(e.anchor);if("char"==n){var s=r||pt(e.head,e.anchor)?0:1,c=pt(e.head,e.anchor)?1:0;return i=lt(e.head,0,s),{ranges:[{anchor:a=lt(e.anchor,0,c),head:i}],primary:0}}if("line"==n){if(pt(e.head,e.anchor))i.ch=0,a.ch=yt(t,a.line);else{a.ch=0;var l=t.lastLine();i.line>l&&(i.line=l),i.ch=yt(t,i.line)}return{ranges:[{anchor:a,head:i}],primary:0}}if("block"==n){for(var u=Math.min(a.line,i.line),h=Math.min(a.ch,i.ch),f=Math.max(a.line,i.line),d=Math.max(a.ch,i.ch)+1,A=f-u+1,g=i.line==u?0:A-1,p=[],m=0;m<A;m++)p.push({anchor:o(u+m,h),head:o(u+m,d)});return{ranges:p,primary:g}}}function Mt(t){var e=t.getCursor("head");return 1==t.getSelection().length&&(e=mt(e,t.getCursor("anchor"))),e}function Ot(t,e){var r=t.state.vim;!1!==e&&t.setCursor(st(t,r.sel.head)),_t(t,r),r.visualMode=!1,r.visualLine=!1,r.visualBlock=!1,r.insertMode||n.signal(t,"vim-mode-change",{mode:"normal"}),Ke(r)}function Dt(t,e,n){var r=t.getRange(e,n);if(/\n\s*$/.test(r)){var i=r.split("\n");i.pop();for(var a=i.pop();i.length>0&&a&&M(a);a=i.pop())n.line--,n.ch=0;a?(n.line--,n.ch=yt(t,n.line)):n.ch=0}}function Ft(t,e,n){e.ch=0,n.ch=0,n.line++}function Nt(t){if(!t)return 0;var e=t.search(/\S/);return-1==e?t.length:e}function Pt(t,e,n,r,i){for(var a=Mt(t),s=t.getLine(a.line),c=a.ch,l=i?v[0]:y[0];!l(s.charAt(c));)if(++c>=s.length)return null;r?l=y[0]:(l=v[0])(s.charAt(c))||(l=v[1]);for(var u=c,h=c;l(s.charAt(u))&&u<s.length;)u++;for(;l(s.charAt(h))&&h>=0;)h--;if(h++,e){for(var f=u;/\s/.test(s.charAt(u))&&u<s.length;)u++;if(f==u){for(var d=h;/\s/.test(s.charAt(h-1))&&h>0;)h--;h||(h=d)}}return{start:o(a.line,h),end:o(a.line,u)}}function Rt(t,e,r){var i=e;if(!n.findMatchingTag||!n.findEnclosingTag)return{start:i,end:i};var a=n.findMatchingTag(t,e)||n.findEnclosingTag(t,e);return a&&a.open&&a.close?r?{start:a.open.from,end:a.close.to}:{start:a.open.to,end:a.close.from}:{start:i,end:i}}function Qt(t,e,n){gt(e,n)||Q.jumpList.add(t,e,n)}function Ut(t,e){Q.lastCharacterSearch.increment=t,Q.lastCharacterSearch.forward=e.forward,Q.lastCharacterSearch.selectedCharacter=e.selectedCharacter}var $t={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Ht={bracket:{isComplete:function(t){if(t.nextCh===t.symb){if(t.depth++,t.depth>=1)return!0}else t.nextCh===t.reverseSymb&&t.depth--;return!1}},section:{init:function(t){t.curMoveThrough=!0,t.symb=(t.forward?"]":"[")===t.symb?"{":"}"},isComplete:function(t){return 0===t.index&&t.nextCh===t.symb}},comment:{isComplete:function(t){var e="*"===t.lastCh&&"/"===t.nextCh;return t.lastCh=t.nextCh,e}},method:{init:function(t){t.symb="m"===t.symb?"{":"}",t.reverseSymb="{"===t.symb?"}":"{"},isComplete:function(t){return t.nextCh===t.symb}},preprocess:{init:function(t){t.index=0},isComplete:function(t){if("#"===t.nextCh){var e=t.lineText.match(/#(\w+)/)[1];if("endif"===e){if(t.forward&&0===t.depth)return!0;t.depth++}else if("if"===e){if(!t.forward&&0===t.depth)return!0;t.depth--}if("else"===e&&0===t.depth)return!0}return!1}}};function jt(t,e,n,r){var i=At(t.getCursor()),a=n?1:-1,s=n?t.lineCount():-1,c=i.ch,l=i.line,u=t.getLine(l),h={lineText:u,nextCh:u.charAt(c),lastCh:null,index:c,symb:r,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[r],forward:n,depth:0,curMoveThrough:!1},f=$t[r];if(!f)return i;var d=Ht[f].init,A=Ht[f].isComplete;for(d&&d(h);l!==s&&e;){if(h.index+=a,h.nextCh=h.lineText.charAt(h.index),!h.nextCh){if(l+=a,h.lineText=t.getLine(l)||"",a>0)h.index=0;else{var g=h.lineText.length;h.index=g>0?g-1:0}h.nextCh=h.lineText.charAt(h.index)}A(h)&&(i.line=l,i.ch=h.index,e--)}return h.nextCh||h.curMoveThrough?o(l,h.index):i}function Kt(t,e,n,r,i){var a=e.line,o=e.ch,s=t.getLine(a),c=n?1:-1,l=r?y:v;if(i&&""==s){if(a+=c,s=t.getLine(a),!B(t,a))return null;o=n?0:s.length}for(;;){if(i&&""==s)return{from:0,to:0,line:a};for(var u=c>0?s.length:-1,h=u,f=u;o!=u;){for(var d=!1,A=0;A<l.length&&!d;++A)if(l[A](s.charAt(o))){for(h=o;o!=u&&l[A](s.charAt(o));)o+=c;if(d=h!=(f=o),h==e.ch&&a==e.line&&f==h+c)continue;return{from:Math.min(h,f+1),to:Math.max(h,f),line:a}}d||(o+=c)}if(!B(t,a+=c))return null;s=t.getLine(a),o=c>0?0:s.length}}function zt(t,e,n,r,i,a){var s=At(e),c=[];(r&&!i||!r&&i)&&n++;for(var l=!(r&&i),u=0;u<n;u++){var h=Kt(t,e,r,a,l);if(!h){var f=yt(t,t.lastLine());c.push(r?{line:t.lastLine(),from:f,to:f}:{line:0,from:0,to:0});break}c.push(h),e=o(h.line,r?h.to-1:h.from)}var d=c.length!=n,A=c[0],g=c.pop();return r&&!i?(d||A.from==s.ch&&A.line==s.line||(g=c.pop()),o(g.line,g.from)):r&&i?o(g.line,g.to-1):!r&&i?(d||A.to==s.ch&&A.line==s.line||(g=c.pop()),o(g.line,g.to)):o(g.line,g.from)}function Gt(t,e,n,r,i){var a=o(e.line+n.repeat-1,1/0),s=t.clipPos(a);return s.ch--,i||(r.lastHPos=1/0,r.lastHSPos=t.charCoords(s,"div").left),a}function Xt(t,e,n,r){for(var i,a=t.getCursor(),s=a.ch,c=0;c<e;c++){if(-1==(i=qt(s,t.getLine(a.line),r,n,!0)))return null;s=i}return o(t.getCursor().line,i)}function Vt(t,e){var n=t.getCursor().line;return st(t,o(n,e-1))}function Wt(t,e,n,r){D(n,E)&&(e.marks[n]&&e.marks[n].clear(),e.marks[n]=t.setBookmark(r))}function qt(t,e,n,r,i){var a;return r?-1==(a=e.indexOf(n,t+1))||i||(a-=1):-1==(a=e.lastIndexOf(n,t-1))||i||(a+=1),a}function Yt(t,e,n,r,i){var a,s=e.line,c=t.firstLine(),l=t.lastLine(),u=s;function h(e){return!t.getLine(e)}function f(t,e,n){return n?h(t)!=h(t+e):!h(t)&&h(t+e)}if(r){for(;c<=u&&u<=l&&n>0;)f(u,r)&&n--,u+=r;return new o(u,0)}var d=t.state.vim;if(d.visualLine&&f(s,1,!0)){var A=d.sel.anchor;f(A.line,-1,!0)&&(i&&A.line==s||(s+=1))}var g=h(s);for(u=s;u<=l&&n;u++)f(u,1,!0)&&(i&&h(u)==g||n--);for(a=new o(u,0),u>l&&!g?g=!0:i=!1,u=s;u>c&&(i&&h(u)!=g&&u!=s||!f(u,-1,!0));u--);return{start:new o(u,0),end:a}}function Jt(t,e,n,r){function i(t,e){if(e.pos+e.dir<0||e.pos+e.dir>=e.line.length){if(e.ln+=e.dir,!B(t,e.ln))return e.line=null,e.ln=null,void(e.pos=null);e.line=t.getLine(e.ln),e.pos=e.dir>0?0:e.line.length-1}else e.pos+=e.dir}function a(t,e,n,r){var a=""===(l=t.getLine(e)),o={line:l,ln:e,pos:n,dir:r},s={ln:o.ln,pos:o.pos},c=""===o.line;for(i(t,o);null!==o.line;){if(s.ln=o.ln,s.pos=o.pos,""===o.line&&!c)return{ln:o.ln,pos:o.pos};if(a&&""!==o.line&&!M(o.line[o.pos]))return{ln:o.ln,pos:o.pos};!O(o.line[o.pos])||a||o.pos!==o.line.length-1&&!M(o.line[o.pos+1])||(a=!0),i(t,o)}var l=t.getLine(s.ln);s.pos=0;for(var u=l.length-1;u>=0;--u)if(!M(l[u])){s.pos=u;break}return s}function s(t,e,n,r){var a={line:c=t.getLine(e),ln:e,pos:n,dir:r},o={ln:a.ln,pos:null},s=""===a.line;for(i(t,a);null!==a.line;){if(""===a.line&&!s)return null!==o.pos?o:{ln:a.ln,pos:a.pos};if(O(a.line[a.pos])&&null!==o.pos&&(a.ln!==o.ln||a.pos+1!==o.pos))return o;""===a.line||M(a.line[a.pos])||(s=!1,o={ln:a.ln,pos:a.pos}),i(t,a)}var c=t.getLine(o.ln);o.pos=0;for(var l=0;l<c.length;++l)if(!M(c[l])){o.pos=l;break}return o}for(var c={ln:e.line,pos:e.ch};n>0;)c=r<0?s(t,c.ln,c.pos,r):a(t,c.ln,c.pos,r),n--;return o(c.ln,c.pos)}function Zt(t,e,n,r){var i,a,s=e,c={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],l={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],u=t.getLine(s.line).charAt(s.ch)===l?1:0;if(i=t.scanForBracket(o(s.line,s.ch+u),-1,void 0,{bracketRegex:c}),a=t.scanForBracket(o(s.line,s.ch+u),1,void 0,{bracketRegex:c}),!i||!a)return{start:s,end:s};if(i=i.pos,a=a.pos,i.line==a.line&&i.ch>a.ch||i.line>a.line){var h=i;i=a,a=h}return r?a.ch+=1:i.ch+=1,{start:i,end:a}}function te(t,e,n,r){var i,a,s,c,l=At(e),u=t.getLine(l.line).split(""),h=u.indexOf(n);if(l.ch<h?l.ch=h:h<l.ch&&u[l.ch]==n&&(a=l.ch,--l.ch),u[l.ch]!=n||a)for(s=l.ch;s>-1&&!i;s--)u[s]==n&&(i=s+1);else i=l.ch+1;if(i&&!a)for(s=i,c=u.length;s<c&&!a;s++)u[s]==n&&(a=s);return i&&a?(r&&(--i,++a),{start:o(l.line,i),end:o(l.line,a)}):{start:l,end:l}}function ee(){}function ne(t){var e=t.state.vim;return e.searchState_||(e.searchState_=new ee)}function re(t,e,n,r,i){t.openDialog?t.openDialog(e,r,{bottom:!0,value:i.value,onKeyDown:i.onKeyDown,onKeyUp:i.onKeyUp,selectValueOnOpen:!1}):r(prompt(n,""))}function ie(t){return oe(t,"/")}function ae(t){return se(t,"/")}function oe(t,e){var n=se(t,e)||[];if(!n.length)return[];var r=[];if(0===n[0]){for(var i=0;i<n.length;i++)"number"==typeof n[i]&&r.push(t.substring(n[i]+1,n[i+1]));return r}}function se(t,e){e||(e="/");for(var n=!1,r=[],i=0;i<t.length;i++){var a=t.charAt(i);n||a!=e||r.push(i),n=!n&&"\\"==a}return r}function ce(t){for(var e="|(){",n="}",r=!1,i=[],a=-1;a<t.length;a++){var o=t.charAt(a)||"",s=t.charAt(a+1)||"",c=s&&-1!=e.indexOf(s);r?("\\"===o&&c||i.push(o),r=!1):"\\"===o?(r=!0,s&&-1!=n.indexOf(s)&&(c=!0),c&&"\\"!==s||i.push(o)):(i.push(o),c&&"\\"!==s&&i.push("\\"))}return i.join("")}N("pcre",!0,"boolean"),ee.prototype={getQuery:function(){return Q.query},setQuery:function(t){Q.query=t},getOverlay:function(){return this.searchOverlay},setOverlay:function(t){this.searchOverlay=t},isReversed:function(){return Q.isReversed},setReversed:function(t){Q.isReversed=t},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(t){this.annotate=t}};var le={"\\n":"\n","\\r":"\r","\\t":"\t"};function ue(t){for(var e=!1,n=[],r=-1;r<t.length;r++){var i=t.charAt(r)||"",a=t.charAt(r+1)||"";le[i+a]?(n.push(le[i+a]),r++):e?(n.push(i),e=!1):"\\"===i?(e=!0,L(a)||"$"===a?n.push("$"):"/"!==a&&"\\"!==a&&n.push("\\")):("$"===i&&n.push("$"),n.push(i),"/"===a&&n.push("\\"))}return n.join("")}var he={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function fe(t){for(var e=new n.StringStream(t),r=[];!e.eol();){for(;e.peek()&&"\\"!=e.peek();)r.push(e.next());var i=!1;for(var a in he)if(e.match(a,!0)){i=!0,r.push(he[a]);break}i||r.push(e.next())}return r.join("")}function de(t,e,n){if(Q.registerController.getRegister("/").setText(t),t instanceof RegExp)return t;var r,i,a=ae(t);return a.length?(r=t.substring(0,a[0]),i=-1!=t.substring(a[0]).indexOf("i")):r=t,r?(R("pcre")||(r=ce(r)),n&&(e=/^[^A-Z]*$/.test(r)),new RegExp(r,e||i?"i":void 0)):null}function Ae(t,e){t.openNotification?t.openNotification('<span style="color: red">'+e+"</span>",{bottom:!0,duration:5e3}):alert(e)}function ge(t,e){var n='<span style="font-family: monospace; white-space: pre">'+(t||"")+'<input type="text" autocorrect="off" autocapitalize="off" spellcheck="false"></span>';return e&&(n+=' <span style="color: #888">'+e+"</span>"),n}var pe="(Javascript regexp)";function me(t,e){var n=(e.prefix||"")+" "+(e.desc||"");re(t,ge(e.prefix,e.desc),n,e.onClose,e)}function be(t,e){if(t instanceof RegExp&&e instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r<n.length;r++){var i=n[r];if(t[i]!==e[i])return!1}return!0}return!1}function ve(t,e,n,r){if(e){var i=ne(t),a=de(e,!!n,!!r);if(a)return ke(t,a),be(a,i.getQuery())||i.setQuery(a),a}}function ye(t){if("^"==t.source.charAt(0))var e=!0;return{token:function(n){if(!e||n.sol()){var r=n.match(t,!1);if(r)return 0==r[0].length?(n.next(),"searching"):n.sol()||(n.backUp(1),t.exec(n.next()+r[0]))?(n.match(t),"searching"):(n.next(),null);for(;!n.eol()&&(n.next(),!n.match(t,!1)););}else n.skipToEnd()},query:t}}var we=0;function ke(t,e){clearTimeout(we),we=setTimeout((function(){var n=ne(t),r=n.getOverlay();r&&e==r.query||(r&&t.removeOverlay(r),r=ye(e),t.addOverlay(r),t.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(t.showMatchesOnScrollbar(e))),n.setOverlay(r))}),50)}function Ce(t,e,n,r){return void 0===r&&(r=1),t.operation((function(){for(var i=t.getCursor(),a=t.getSearchCursor(n,i),s=0;s<r;s++){var c=a.find(e);if(0==s&&c&&gt(a.from(),i)&&(c=a.find(e)),!c&&!(a=t.getSearchCursor(n,e?o(t.lastLine()):o(t.firstLine(),0))).find(e))return}return a.from()}))}function xe(t,e,n,r,i){return void 0===r&&(r=1),t.operation((function(){var a=t.getCursor(),s=t.getSearchCursor(n,a),c=s.find(!e);!i.visualMode&&c&&gt(s.from(),a)&&s.find(!e);for(var l=0;l<r;l++)if(!(c=s.find(e))&&!(s=t.getSearchCursor(n,e?o(t.lastLine()):o(t.firstLine(),0))).find(e))return;return[s.from(),s.to()]}))}function Ee(t){var e=ne(t);t.removeOverlay(ne(t).getOverlay()),e.setOverlay(null),e.getScrollbarAnnotate()&&(e.getScrollbarAnnotate().clear(),e.setScrollbarAnnotate(null))}function Te(t,e,n){return"number"!=typeof t&&(t=t.line),e instanceof Array?D(t,e):n?t>=e&&t<=n:t==e}function Be(t){var e=t.getScrollInfo(),n=6,r=10,i=t.coordsChar({left:0,top:n+e.top},"local"),a=e.clientHeight-r+e.top,o=t.coordsChar({left:0,top:a},"local");return{top:i.line,bottom:o.line}}function _e(t,e,n){if("'"==n||"`"==n)return Q.jumpList.find(t,-1)||o(0,0);if("."==n)return Se(t);var r=e.marks[n];return r&&r.find()}function Se(t){for(var e=t.doc.history.done,n=e.length;n--;)if(e[n].changes)return At(e[n].changes[0].to)}var Le=function(){this.buildCommandMap_()};Le.prototype={processCommand:function(t,e,n){var r=this;t.operation((function(){t.curOp.isVimOp=!0,r._processCommand(t,e,n)}))},_processCommand:function(t,e,r){var i=t.state.vim,a=Q.registerController.getRegister(":"),o=a.toString();i.visualMode&&Ot(t);var s=new n.StringStream(e);a.setText(e);var c,l,u=r||{};u.input=e;try{this.parseInput_(t,s,u)}catch(e){throw Ae(t,e),e}if(u.commandName){if(c=this.matchCommand_(u.commandName)){if(l=c.name,c.excludeFromCommandHistory&&a.setText(o),this.parseCommandArgs_(s,u,c),"exToKey"==c.type){for(var h=0;h<c.toKeys.length;h++)n.Vim.handleKey(t,c.toKeys[h],"mapping");return}if("exToEx"==c.type)return void this.processCommand(t,c.toInput)}}else void 0!==u.line&&(l="move");if(l)try{Ie[l](t,u),c&&c.possiblyAsync||!u.callback||u.callback()}catch(e){throw Ae(t,e),e}else Ae(t,'Not an editor command ":'+e+'"')},parseInput_:function(t,e,n){e.eatWhile(":"),e.eat("%")?(n.line=t.firstLine(),n.lineEnd=t.lastLine()):(n.line=this.parseLineSpec_(t,e),void 0!==n.line&&e.eat(",")&&(n.lineEnd=this.parseLineSpec_(t,e)));var r=e.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return n.commandName=r?r[1]:e.match(/.*/)[0],n},parseLineSpec_:function(t,e){var n=e.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(e.next()){case".":return this.parseLineSpecOffset_(e,t.getCursor().line);case"$":return this.parseLineSpecOffset_(e,t.lastLine());case"'":var r=e.next(),i=_e(t,t.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(e,i.line);case"-":case"+":return e.backUp(1),this.parseLineSpecOffset_(e,t.getCursor().line);default:return void e.backUp(1)}},parseLineSpecOffset_:function(t,e){var n=t.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?e-=r:e+=r}return e},parseCommandArgs_:function(t,e,n){if(!t.eol()){e.argString=t.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=wt(e.argString).split(r);i.length&&i[0]&&(e.args=i)}},matchCommand_:function(t){for(var e=t.length;e>0;e--){var n=t.substring(0,e);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(t))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var t=0;t<a.length;t++){var e=a[t],n=e.shortName||e.name;this.commandMap_[n]=e}},map:function(t,e,n){if(":"!=t&&":"==t.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var i=t.substring(1);":"!=e&&":"==e.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:e.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:e,user:!0}}else if(":"!=e&&":"==e.charAt(0)){var a={keys:t,type:"keyToEx",exArgs:{input:e.substring(1)}};n&&(a.context=n),r.unshift(a)}else a={keys:t,type:"keyToKey",toKeys:e},n&&(a.context=n),r.unshift(a)},unmap:function(t,e){if(":"!=t&&":"==t.charAt(0)){if(e)throw Error("Mode not supported for ex mappings");var n=t.substring(1);if(this.commandMap_[n]&&this.commandMap_[n].user)return void delete this.commandMap_[n]}else for(var i=t,a=0;a<r.length;a++)if(i==r[a].keys&&r[a].context===e)return void r.splice(a,1);throw Error("No such mapping.")}};var Ie={colorscheme:function(t,e){!e.args||e.args.length<1?Ae(t,t.getOption("theme")):t.setOption("theme",e.args[0])},map:function(t,e,n){var r=e.args;!r||r.length<2?t&&Ae(t,"Invalid mapping: "+e.input):Me.map(r[0],r[1],n)},imap:function(t,e){this.map(t,e,"insert")},nmap:function(t,e){this.map(t,e,"normal")},vmap:function(t,e){this.map(t,e,"visual")},unmap:function(t,e,n){var r=e.args;!r||r.length<1?t&&Ae(t,"No such mapping: "+e.input):Me.unmap(r[0],n)},move:function(t,e){Z.processCommand(t,t.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:e.line+1})},set:function(t,e){var n=e.args,r=e.setCfg||{};if(!n||n.length<1)t&&Ae(t,"Invalid mapping: "+e.input);else{var i=n[0].split("="),a=i[0],o=i[1],s=!1;if("?"==a.charAt(a.length-1)){if(o)throw Error("Trailing characters: "+e.argString);a=a.substring(0,a.length-1),s=!0}void 0===o&&"no"==a.substring(0,2)&&(a=a.substring(2),o=!1);var c=F[a]&&"boolean"==F[a].type;if(c&&null==o&&(o=!0),!c&&void 0===o||s){var l=R(a,t,r);l instanceof Error?Ae(t,l.message):Ae(t,!0===l||!1===l?" "+(l?"":"no")+a:" "+a+"="+l)}else{var u=P(a,o,t,r);u instanceof Error&&Ae(t,u.message)}}},setlocal:function(t,e){e.setCfg={scope:"local"},this.set(t,e)},setglobal:function(t,e){e.setCfg={scope:"global"},this.set(t,e)},registers:function(t,e){var n=e.args,r=Q.registerController.registers,i="----------Registers----------<br><br>";if(n){n=n.join("");for(var a=0;a<n.length;a++)o=n.charAt(a),Q.registerController.isValidRegister(o)&&(i+='"'+o+" "+(r[o]||new W).toString()+"<br>")}else for(var o in r){var s=r[o].toString();s.length&&(i+='"'+o+" "+s+"<br>")}Ae(t,i)},sort:function(t,e){var r,i,a,s,c;function l(){if(e.argString){var t=new n.StringStream(e.argString);if(t.eat("!")&&(r=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var o=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!o&&!t.eol())return"Invalid arguments";if(o[1]){i=-1!=o[1].indexOf("i"),a=-1!=o[1].indexOf("u");var l=-1!=o[1].indexOf("d")||-1!=o[1].indexOf("n")&&1,u=-1!=o[1].indexOf("x")&&1,h=-1!=o[1].indexOf("o")&&1;if(l+u+h>1)return"Invalid arguments";s=(l?"decimal":u&&"hex")||h&&"octal"}o[2]&&(c=new RegExp(o[2].substr(1,o[2].length-2),i?"i":""))}}var u=l();if(u)Ae(t,u+": "+e.argString);else{var h=e.line||t.firstLine(),f=e.lineEnd||e.line||t.lastLine();if(h!=f){var d=o(h,0),A=o(f,yt(t,f)),g=t.getRange(d,A).split("\n"),p=c||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),m="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,b=[],v=[];if(s||c)for(var y=0;y<g.length;y++){var w=c?g[y].match(c):null;w&&""!=w[0]?b.push(w):!c&&p.exec(g[y])?b.push(g[y]):v.push(g[y])}else v=g;if(b.sort(c?E:x),c)for(y=0;y<b.length;y++)b[y]=b[y].input;else s||v.sort(x);if(g=r?b.concat(v):v.concat(b),a){var k,C=g;for(g=[],y=0;y<C.length;y++)C[y]!=k&&g.push(C[y]),k=C[y]}t.replaceRange(g.join("\n"),d,A)}}function x(t,e){var n;r&&(n=t,t=e,e=n),i&&(t=t.toLowerCase(),e=e.toLowerCase());var a=s&&p.exec(t),o=s&&p.exec(e);return a?(a=parseInt((a[1]+a[2]).toLowerCase(),m))-(o=parseInt((o[1]+o[2]).toLowerCase(),m)):t<e?-1:1}function E(t,e){var n;return r&&(n=t,t=e,e=n),i&&(t[0]=t[0].toLowerCase(),e[0]=e[0].toLowerCase()),t[0]<e[0]?-1:1}},global:function(t,e){var n=e.argString;if(n){var r,i=void 0!==e.line?e.line:t.firstLine(),a=e.lineEnd||e.line||t.lastLine(),o=ie(n),s=n;if(o.length&&(s=o[0],r=o.slice(1,o.length).join("/")),s)try{ve(t,s,!0,!0)}catch(e){return void Ae(t,"Invalid regex: "+s)}for(var c=ne(t).getQuery(),l=[],u="",h=i;h<=a;h++)c.test(t.getLine(h))&&(l.push(h+1),u+=t.getLine(h)+"<br>");if(r){var f=0,d=function(){if(f<l.length){var e=l[f]+r;Me.processCommand(t,e,{callback:d})}f++};d()}else Ae(t,u)}else Ae(t,"Regular Expression missing from global")},substitute:function(t,e){if(!t.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var n,r,i,a,s=e.argString,c=s?oe(s,s[0]):[],l="",u=!1,h=!1;if(c.length)n=c[0],R("pcre")&&""!==n&&(n=new RegExp(n).source),l=c[1],n&&"$"===n[n.length-1]&&(n=n.slice(0,n.length-1)+"\\n",l=l?l+"\n":"\n"),void 0!==l&&(l=R("pcre")?fe(l.replace(/([^\\])&/g,"$1$$&")):ue(l),Q.lastSubstituteReplacePart=l),r=c[2]?c[2].split(" "):[];else if(s&&s.length)return void Ae(t,"Substitutions should be of the form :s/pattern/replace/");if(r&&(i=r[0],a=parseInt(r[1]),i&&(-1!=i.indexOf("c")&&(u=!0,i.replace("c","")),-1!=i.indexOf("g")&&(h=!0,i.replace("g","")),n=R("pcre")?n+"/"+i:n.replace(/\//g,"\\/")+"/"+i)),n)try{ve(t,n,!0,!0)}catch(e){return void Ae(t,"Invalid regex: "+n)}if(void 0!==(l=l||Q.lastSubstituteReplacePart)){var f=ne(t).getQuery(),d=void 0!==e.line?e.line:t.getCursor().line,A=e.lineEnd||d;d==t.firstLine()&&A==t.lastLine()&&(A=1/0),a&&(A=(d=A)+a-1);var g=st(t,o(d,0)),p=t.getSearchCursor(f,g);Oe(t,u,h,d,A,p,f,l,e.callback)}else Ae(t,"No previous substitute regular expression")},redo:n.commands.redo,undo:n.commands.undo,write:function(t){n.commands.save?n.commands.save(t):t.save&&t.save()},nohlsearch:function(t){Ee(t)},yank:function(t){var e=At(t.getCursor()).line,n=t.getLine(e);Q.registerController.pushText("0","yank",n,!0,!0)},delmarks:function(t,e){if(e.argString&&wt(e.argString))for(var r=t.state.vim,i=new n.StringStream(wt(e.argString));!i.eol();){i.eatSpace();var a=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void Ae(t,"Invalid argument: "+e.argString.substring(a));var o=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void Ae(t,"Invalid argument: "+e.argString.substring(a));var s=o,c=i.next();if(!(_(s)&&_(c)||I(s)&&I(c)))return void Ae(t,"Invalid argument: "+s+"-");var l=s.charCodeAt(0),u=c.charCodeAt(0);if(l>=u)return void Ae(t,"Invalid argument: "+e.argString.substring(a));for(var h=0;h<=u-l;h++){var f=String.fromCharCode(l+h);delete r.marks[f]}}else delete r.marks[o]}else Ae(t,"Argument required")}},Me=new Le;function Oe(t,e,r,i,a,o,s,c,l){t.state.vim.exMode=!0;var u=!1,h=o.from();function f(){t.operation((function(){for(;!u;)d(),A();g()}))}function d(){var e=t.getRange(o.from(),o.to()).replace(s,c);o.replace(e)}function A(){for(;o.findNext()&&Te(o.from(),i,a);)if(r||!h||o.from().line!=h.line)return t.scrollIntoView(o.from(),30),t.setSelection(o.from(),o.to()),h=o.from(),void(u=!1);u=!0}function g(e){if(e&&e(),t.focus(),h){t.setCursor(h);var n=t.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=h.ch}l&&l()}function p(e,r,i){switch(n.e_stop(e),n.keyName(e)){case"Y":d(),A();break;case"N":A();break;case"A":var a=l;l=void 0,t.operation(f),l=a;break;case"L":d();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":g(i)}return u&&g(i),!0}if(A(),!u)return e?void me(t,{prefix:"replace with <strong>"+c+"</strong> (y/n/a/q/l)",onKeyDown:p}):(f(),void(l&&l()));Ae(t,"No matches for "+s.source)}function De(t){var e=t.state.vim,r=Q.macroModeState,i=Q.registerController.getRegister("."),a=r.isPlaying,o=r.lastInsertModeChanges;a||(t.off("change",$e),n.off(t.getInputField(),"keydown",Xe)),!a&&e.insertModeRepeat>1&&(Ve(t,e,e.insertModeRepeat-1,!0),e.lastEditInputState.repeatOverride=e.insertModeRepeat),delete e.insertModeRepeat,e.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),i.setText(o.changes.join("")),n.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&Qe(r)}function Fe(t){r.unshift(t)}function Ne(t,e,n,r,i){var a={keys:t,type:e};for(var o in a[e]=n,a[e+"Args"]=r,i)a[o]=i[o];Fe(a)}function Pe(t,e,r,i){var a=Q.registerController.getRegister(i);if(":"==i)return a.keyBuffer[0]&&Me.processCommand(t,a.keyBuffer[0]),void(r.isPlaying=!1);var o=a.keyBuffer,s=0;r.isPlaying=!0,r.replaySearchQueries=a.searchQueries.slice(0);for(var c=0;c<o.length;c++)for(var l,u,h=o[c];h;)if(u=(l=/<\w+-.+?>|<\w+>|./.exec(h))[0],h=h.substring(l.index+u.length),n.Vim.handleKey(t,u,"macro"),e.insertMode){var f=a.insertModeChanges[s++].changes;Q.macroModeState.lastInsertModeChanges.changes=f,We(t,f,1),De(t)}r.isPlaying=!1}function Re(t,e){if(!t.isPlaying){var n=t.latestRegister,r=Q.registerController.getRegister(n);r&&r.pushText(e)}}function Qe(t){if(!t.isPlaying){var e=t.latestRegister,n=Q.registerController.getRegister(e);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(t.lastInsertModeChanges)}}function Ue(t,e){if(!t.isPlaying){var n=t.latestRegister,r=Q.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(e)}}function $e(t,e){var n=Q.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;e;){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==e.origin||"paste"==e.origin||void 0===e.origin){var i=t.listSelections().length;i>1&&(r.ignoreCount=i);var a=e.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),a&&(t.state.overwrite&&!/\n/.test(a)?r.changes.push([a]):r.changes.push(a))}e=e.next}}function He(t){var e=t.state.vim;if(e.insertMode){var n=Q.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else t.curOp.isVimOp||ze(t,e);e.visualMode&&je(t)}function je(t){var e="cm-animate-fat-cursor",n=t.state.vim,r=st(t,At(n.sel.head)),i=lt(r,0,1);if(Ke(n),r.ch==t.getLine(r.line).length){var a=document.createElement("span");a.textContent=" ",a.className=e,n.fakeCursorBookmark=t.setBookmark(r,{widget:a})}else n.fakeCursor=t.markText(r,i,{className:e})}function Ke(t){t.fakeCursor&&(t.fakeCursor.clear(),t.fakeCursor=null),t.fakeCursorBookmark&&(t.fakeCursorBookmark.clear(),t.fakeCursorBookmark=null)}function ze(t,e){var r=t.getCursor("anchor"),i=t.getCursor("head");if(e.visualMode&&!t.somethingSelected()?Ot(t,!1):e.visualMode||e.insertMode||!t.somethingSelected()||(e.visualMode=!0,e.visualLine=!1,n.signal(t,"vim-mode-change",{mode:"visual"})),e.visualMode){var a=pt(i,r)?0:-1,o=pt(i,r)?-1:0;i=lt(i,0,a),r=lt(r,0,o),e.sel={anchor:r,head:i},Wt(t,e,"<",mt(i,r)),Wt(t,e,">",bt(i,r))}else e.insertMode||(e.lastHPos=t.getCursor().ch)}function Ge(t){this.keyName=t}function Xe(t){var e=Q.macroModeState.lastInsertModeChanges,r=n.keyName(t);function i(){return e.maybeReset&&(e.changes=[],e.maybeReset=!1),e.changes.push(new Ge(r)),!0}r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||n.lookupKey(r,"vim-insert",i))}function Ve(t,e,n,r){var i=Q.macroModeState;i.isPlaying=!0;var a=!!e.lastEditActionCommand,o=e.inputState;function s(){a?Z.processAction(t,e,e.lastEditActionCommand):Z.evalInput(t,e)}function c(n){if(i.lastInsertModeChanges.changes.length>0){n=e.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;We(t,r.changes,n)}}if(e.inputState=e.lastEditInputState,a&&e.lastEditActionCommand.interlaceInsertRepeat)for(var l=0;l<n;l++)s(),c(1);else r||s(),c(n);e.inputState=o,e.insertMode&&!r&&De(t),i.isPlaying=!1}function We(t,e,r){function i(e){return"string"==typeof e?n.commands[e](t):e(t),!0}var a=t.getCursor("head"),o=Q.macroModeState.lastInsertModeChanges.visualBlock;o&&(Et(t,a,o+1),r=t.listSelections().length,t.setCursor(a));for(var s=0;s<r;s++){o&&t.setCursor(lt(a,s,0));for(var c=0;c<e.length;c++){var l=e[c];if(l instanceof Ge)n.lookupKey(l.keyName,"vim-insert",i);else if("string"==typeof l){var u=t.getCursor();t.replaceRange(l,u,u)}else{var h=t.getCursor(),f=lt(h,0,l[0].length);t.replaceRange(l[0],h,f)}}}o&&t.setCursor(lt(a,0,1))}return n.keyMap.vim={attach:c,detach:s,call:d},N("insertModeEscKeysTimeout",200,"number"),n.keyMap["vim-insert"]={fallthrough:["default"],attach:c,detach:s,call:d},n.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:c,detach:s,call:d},z(),G},n.Vim=s()}));r((function(t,e){!function(t){function e(t,e){function n(t){clearTimeout(r.doRedraw),r.doRedraw=setTimeout((function(){r.redraw()}),t)}this.cm=t,this.options=e,this.buttonHeight=e.scrollButtonHeight||t.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=t.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;t.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout((function(){r.computeScale()&&n(20)}),100)}),t.on("markerAdded",this.resizeHandler),t.on("markerCleared",this.resizeHandler),!1!==e.listenForChanges&&t.on("changes",this.changeHandler=function(){n(250)})}t.defineExtension("annotateScrollbar",(function(t){return"string"==typeof t&&(t={className:t}),new e(this,t)})),t.defineOption("scrollButtonHeight",0),e.prototype.computeScale=function(){var t=this.cm,e=(t.getWrapperElement().clientHeight-t.display.barHeight-2*this.buttonHeight)/t.getScrollerElement().scrollHeight;if(e!=this.hScale)return this.hScale=e,!0},e.prototype.update=function(t){this.annotations=t,this.redraw()},e.prototype.redraw=function(t){!1!==t&&this.computeScale();var e=this.cm,n=this.hScale,r=document.createDocumentFragment(),i=this.annotations,a=e.getOption("lineWrapping"),o=a&&1.5*e.defaultTextHeight(),s=null,c=null;function l(t,n){if(s!=t.line){s=t.line,c=e.getLineHandle(t.line);var r=e.getLineHandleVisualStart(c);r!=c&&(s=e.getLineNumber(r),c=r)}return c.widgets&&c.widgets.length||a&&c.height>o?e.charCoords(t,"local")[n?"top":"bottom"]:e.heightAtLine(c,"local")+(n?0:c.height)}var u=e.lastLine();if(e.display.barWidth)for(var h,f=0;f<i.length;f++){var d=i[f];if(!(d.to.line>u)){for(var A=h||l(d.from,!0)*n,g=l(d.to,!1)*n;f<i.length-1&&!(i[f+1].to.line>u)&&!((h=l(i[f+1].from,!0)*n)>g+.9);)g=l((d=i[++f]).to,!1)*n;if(g!=A){var p=Math.max(g-A,3),m=r.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(A+this.buttonHeight)+"px; height: "+p+"px",m.className=this.options.className,d.id&&m.setAttribute("annotation-id",d.id)}}}this.div.textContent="",this.div.appendChild(r)},e.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(Wh)}));r((function(t,e){!function(t){function e(t,e,n,r){this.cm=t,this.options=r;var i={listenForChanges:!1};for(var a in r)i[a]=r[a];i.className||(i.className="CodeMirror-search-match"),this.annotation=t.annotateScrollbar(i),this.query=e,this.caseFold=n,this.gap={from:t.firstLine(),to:t.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var o=this;t.on("change",this.changeHandler=function(t,e){o.onChange(e)})}t.defineExtension("showMatchesOnScrollbar",(function(t,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new e(this,t,n,r)}));var n=1e3;function r(t,e,n){return t<=e?t:Math.max(e,t+n)}e.prototype.findMatches=function(){if(this.gap){for(var e=0;e<this.matches.length&&!((a=this.matches[e]).from.line>=this.gap.to);e++)a.to.line>=this.gap.from&&this.matches.splice(e--,1);for(var r=this.cm.getSearchCursor(this.query,t.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),i=this.options&&this.options.maxMatches||n;r.findNext();){var a;if((a={from:r.from(),to:r.to()}).from.line>=this.gap.to)break;if(this.matches.splice(e++,0,a),this.matches.length>i)break}this.gap=null}},e.prototype.onChange=function(e){var n=e.from.line,i=t.changeEnd(e).line,a=i-e.to.line;if(this.gap?(this.gap.from=Math.min(r(this.gap.from,n,a),e.from.line),this.gap.to=Math.max(r(this.gap.to,n,a),e.from.line)):this.gap={from:e.from.line,to:i+1},a)for(var o=0;o<this.matches.length;o++){var s=this.matches[o],c=r(s.from.line,n,a);c!=s.from.line&&(s.from=t.Pos(c,s.from.ch));var l=r(s.to.line,n,a);l!=s.to.line&&(s.to=t.Pos(l,s.to.ch))}clearTimeout(this.update);var u=this;this.update=setTimeout((function(){u.updateAfterChange()}),250)},e.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},e.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}(Wh)})),Dn({target:"Array",stat:!0},{isArray:pr});var qh=H.Array.isArray,Yh=qh;function Jh(t){if(Yh(t))return t}var Zh=kh,tf=Zh,ef=TypeError,nf=Object.getOwnPropertyDescriptor,rf=$t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(pr(t)&&!nf(t,"length").writable)throw new ef("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},af=rf,of=u((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();Dn({target:"Array",proto:!0,arity:1,forced:of},{push:function(t){var e=yt(this),n=un(e),r=arguments.length;sa(n+r);for(var i=0;i<r;i++)e[n]=arguments[i],n++;return af(e,n),n}});var sf=Ni("Array","push"),cf=Array.prototype,lf=function(t){var e=t.push;return t===cf||rt(cf,t)&&e===cf.push?sf:e},uf=lf;var hf=Oi("slice"),ff=Ft("species"),df=Array,Af=Math.max;Dn({target:"Array",proto:!0,forced:!hf},{slice:function(t,e){var n,r,i,a=Gt(this),o=un(a),s=ln(t,o),c=ln(void 0===e?o:e,o);if(pr(a)&&(n=a.constructor,(Ye(n)&&(n===df||pr(n.prototype))||ft(n)&&null===(n=n[ff]))&&(n=void 0),n===df||void 0===n))return Te(a,s,c);for(r=new(void 0===n?df:n)(Af(c-s,0)),i=0;s<c;s++,i++)s in a&&Vi(r,i,a[s]);return r.length=i,r}});var gf=Ni("Array","slice"),pf=Array.prototype,mf=function(t){var e=t.slice;return t===pf||rt(pf,t)&&e===pf.slice?gf:e},bf=mf,vf=bf,yf=Fh;function wf(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function kf(t,e){if(t){var n;if("string"==typeof t)return wf(t,e);var r=vf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?yf(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wf(t,e):void 0}}function Cf(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xf(t,e){return Jh(t)||function(t,e){var n=null==t?null:void 0!==Eo&&tf(t)||t["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(uf(s).call(s,r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(t,e)||kf(t,e)||Cf()}var Ef=Tu,Tf=rs,Bf=mf,_f=dh.trim,Sf=j.parseInt,Lf=j.Symbol,If=Lf&&Lf.iterator,Mf=/^[+-]?0x/i,Of=w(Mf.exec),Df=8!==Sf(oh+"08")||22!==Sf(oh+"0x16")||If&&!u((function(){Sf(Object(If))}))?function(t,e){var n=_f(xr(t));return Sf(n,e>>>0||(Of(Mf,n)?16:10))}:Sf;Dn({global:!0,forced:parseInt!==Df},{parseInt:Df});var Ff=H.parseInt;Dn({target:"String",proto:!0},{repeat:Lu});var Nf=Ni("String","repeat"),Pf=String.prototype,Rf=function(t){var e=t.repeat;return"string"==typeof t||t===Pf||rt(Pf,t)&&e===Pf.repeat?Nf:e},Qf={run:function(t){var e,n="<div>".concat(t,"</div>");this.tagParser.formatEngine=this.mdFormatEngine,n=n.replace(/<!--[\s\S]*?-->/g,"");var r=this.htmlParser.parseHtml(n);return r=this.paragraphStyleClear(r),mh(e=this.$dealHtml(r).replace(/\n{3,}/g,"\n\n\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")).call(e,"\n")},$dealHtml:function(t){for(var e="",n=0;n<t.length;n++){var r=t[n];"tag"===r.type?e=this.$handleTagObject(r,e):"text"===r.type&&r.content.length>0&&(e+=r.content.replace(/&nbsp;/g," ").replace(/[\n]+/g,"\n").replace(/^[ \t\n]+\n\s*$/,"\n"))}return e},$handleTagObject:function(t,e){var n,r=e;t.attrs.class&&/(ch-icon-square|ch-icon-check)/.test(t.attrs.class)?Ef(n=t.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":t.attrs.class&&/cherry-code-preview-lang-select/.test(t.attrs.class)?r+="":r+=this.$dealTag(t);return r},$dealTag:function(t){var e=this,n="";return t.children&&(n=e.$dealHtml(t.children)),/(style|meta|link|script)/.test(t.name)?"":"code"===t.name||"pre"===t.name?e.tagParser.codeParser(t,e.$dealCodeTag(t),"pre"===t.name):"function"==typeof e.tagParser["".concat(t.name,"Parser")]?e.tagParser["".concat(t.name,"Parser")](t,n):n},$dealCodeTag:function(t){if(t.children.length<0)return"";for(var e="",n=0;n<t.children.length;n++){var r=t.children[n];"text"!==r.type?("li"===r.name&&(e+="\n"),"br"===r.name&&(e+="\n"),e+=this.$dealCodeTag(r)):e+=r.content}return e},htmlParser:{attrRE:/([\w-]+)|['"]{1}([^'"]*)['"]{1}/g,lookup:{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,video:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},tagRE:/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,empty:Tf?Tf(null):{},parseTags:function(t){var e,n=this,r=0,i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return t.replace(this.attrRE,(function(a){r%2?e=a:0===r?((n.lookup[a]||"/"===t.charAt(t.length-2))&&(i.voidElement=!0),i.name=a):i.attrs[e]=a.replace(/['"]/g,""),r+=1})),i},parseHtml:function(t,e){var n=this,r=e||{};r.components||(r.components=this.empty);var i,a=[],o=-1,s=[],c={},l=!1;return t.replace(this.tagRE,(function(e,u){if(l){if(e!=="</".concat(i.name,">"))return;l=!1}var h,f="/"!==e.charAt(1),d=u+e.length,A=t.charAt(d);f&&(o+=1,"tag"===(i=n.parseTags(e)).type&&r.components[i.name]&&(i.type="component",l=!0),i.voidElement||l||!A||"<"===A||i.children.push({type:"text",content:Bf(t).call(t,d,Ef(t).call(t,"<",d))}),c[i.tagName]=i,0===o&&a.push(i),(h=s[o-1])&&h.children.push(i),s[o]=i),f&&!i.voidElement||(o-=1,!l&&"<"!==A&&A&&s[o]&&s[o].children.push({type:"text",content:Bf(t).call(t,d,Ef(t).call(t,"<",d))}))})),a}},tagParser:{formatEngine:{},pParser:function(t,e){var n=e;return/\n$/.test(n)?n:"".concat(n,"\n")},divParser:function(t,e){var n=e;return/\n$/.test(n)?n:"".concat(n,"\n")},spanParser:function(t,e){var n=e.replace(/\t/g,"").replace(/\n/g," ");return t.attrs&&t.attrs.style,n},codeParser:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.formatEngine.convertCode(e,n)},brParser:function(t,e){return this.formatEngine.convertBr(e,"\n")},imgParser:function(t,e){return t.attrs&&"tapd-graph"===t.attrs["data-control"]?this.formatEngine.convertGraph(t.attrs.title,t.attrs.src,t.attrs["data-origin-xml"],t):t.attrs&&t.attrs.src?this.formatEngine.convertImg(t.attrs.alt,t.attrs.src):void 0},videoParser:function(t,e){if(t.attrs&&t.attrs.src)return this.formatEngine.convertVideo(e,t.attrs.src,t.attrs.poster,t.attrs.title)},bParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertB(n[i]));return r.join("\n")},iParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertI(n[i]));return r.join("\n")},strikeParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertStrike(n[i]));return r.join("\n")},delParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertDel(n[i]));return r.join("\n")},uParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertU(n[i]));return r.join("\n")},aParser:function(t,e){return t.attrs&&t.attrs.href?this.formatEngine.convertA(e,t.attrs.href):""},supParser:function(t,e){return this.formatEngine.convertSup(e)},subParser:function(t,e){return this.formatEngine.convertSub(e)},tdParser:function(t,e){return this.formatEngine.convertTd(e)},trParser:function(t,e){return this.formatEngine.convertTr(e)},thParser:function(t,e){return this.formatEngine.convertTh(e)},theadParser:function(t,e){return this.formatEngine.convertThead(e)},tableParser:function(t,e){return this.formatEngine.convertTable(e)},liParser:function(t,e){return this.formatEngine.convertLi(e)},ulParser:function(t,e){return this.formatEngine.convertUl(e)},olParser:function(t,e){return this.formatEngine.convertOl(e)},strongParser:function(t,e){return this.formatEngine.convertStrong(e)},hrParser:function(t,e){return this.formatEngine.convertHr(e)},h1Parser:function(t,e){return this.formatEngine.convertH1(e)},h2Parser:function(t,e){return this.formatEngine.convertH2(e)},h3Parser:function(t,e){return this.formatEngine.convertH3(e)},h4Parser:function(t,e){return this.formatEngine.convertH4(e)},h5Parser:function(t,e){return this.formatEngine.convertH5(e)},h6Parser:function(t,e){return this.formatEngine.convertH6(e)},blockquoteParser:function(t,e){return this.formatEngine.convertBlockquote(e.replace(/\n+/g,"\n"))},addressParser:function(t,e){return this.formatEngine.convertAddress(e.replace(/\n+/g,"\n"))},styleParser:{colorAttrParser:function(t){var e=t.match(/color:\s*(#[a-zA-Z0-9]{3,6});/);return e&&e[1]?e[1]:""},sizeAttrParser:function(t){var e=t.match(/font-size:\s*([a-zA-Z0-9-]+?);/);if(e&&e[1]){var n,r=0;if(/[0-9]+px/.test(e[1]))r=mh(n=e[1].replace(/px/,"")).call(n);else switch(e[1]){case"x-small":r=10;break;case"small":r=12;break;case"medium":r=16;break;case"large":r=18;break;case"x-large":r=24;break;case"xx-large":r=32;break;default:r=""}return r>0?r:""}return""},bgColorAttrParser:function(t){var e=t.match(/background-color:\s*([^;]+?);/);if(e&&e[1]){var n="";if(/rgb\([ 0-9]+,[ 0-9]+,[ 0-9]+\)/.test(e[1])){var r,i,a,o,s,c=e[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(c[1]&&c[2]&&c[3])c[1]=Ff(mh(r=c[1]).call(r),10),c[2]=Ff(mh(i=c[2]).call(i),10),c[3]=Ff(mh(a=c[3]).call(a),10),n=hs(o=hs(s="#".concat(c[1].toString(16))).call(s,c[2].toString(16))).call(o,c[3].toString(16))}else{n=xf(e,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(t,e){var n,r=mh(t).call(t);return!r||/\n/.test(r)?r:e?hs(n="!!".concat(e," ")).call(n,r,"!!"):r},convertSize:function(t,e){var n,r=mh(t).call(t);return!r||/\n/.test(r)?r:e?hs(n="!".concat(e," ")).call(n,r,"!"):r},convertBgColor:function(t,e){var n,r=mh(t).call(t);return!r||/\n/.test(r)?r:e?hs(n="!!!".concat(e," ")).call(n,r,"!!!"):r},convertBr:function(t,e){return t+e},convertCode:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return/\n/.test(t)||e?"```\n".concat(t.replace(/\n+$/,""),"\n```"):"`".concat(t.replace(/`/g,"\\`"),"`")},convertB:function(t){return/^\s*$/.test(t)?"":"**".concat(t,"**")},convertI:function(t){return/^\s*$/.test(t)?"":"*".concat(t,"*")},convertU:function(t){return/^\s*$/.test(t)?"":" /".concat(t,"/ ")},convertImg:function(t,e){var n,r=t&&t.length>0?t:"image";return hs(n="![".concat(r,"](")).call(n,e,")")},convertGraph:function(t,e,n,r){var i,a,o,s=t&&t.length>0?t:"graph",c="";if(r)try{var l,u=r.attrs;Qs(l=Is(u)).call(l,(function(t){var e;Object.prototype.hasOwnProperty.call(u,t)&&(Ef(t).call(t,"data-graph-")>=0&&u[t]&&(c+=hs(e=" ".concat(t,"=")).call(e,u[t])))}))}catch(t){}return hs(i=hs(a=hs(o="![".concat(s,"](")).call(o,e,"){data-control=tapd-graph data-origin-xml=")).call(a,n)).call(i,c,"}")},convertVideo:function(t,e,n,r){var i,a,o=r&&r.length>0?r:"video";return hs(i=hs(a="!video[".concat(o,"](")).call(a,e,"){poster=")).call(i,n,"}")},convertA:function(t,e){var n;if(t===e)return"".concat(t," ");var r=mh(t).call(t);return r?hs(n="[".concat(r,"](")).call(n,e,")"):r},convertSup:function(t){return"^".concat(mh(t).call(t).replace(/\^/g,"\\^"),"^")},convertSub:function(t){return"^^".concat(mh(t).call(t).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(t){return"~|".concat(mh(t).call(t).replace(/\n{1,}/g,"<br>").replace(/ /g,"~s~")," ~|")},convertTh:function(t){return/^\s*$/.test(t)?"":"~|".concat(mh(t).call(t).replace(/\n{1,}/g,"<br>")," ~|")},convertTr:function(t){return/^\s*$/.test(t)?"":"".concat(mh(t).call(t).replace(/\n/g,""),"\n")},convertThead:function(t){var e,n="".concat(t.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n"),r=n.match(/\|/g).length-1;return hs(e="".concat(n,"|")).call(e,Rf(":-:|").call(":-:|",r),"\n")},convertTable:function(t){var e="\n".concat(t.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n").replace(/\n[ \t]+\n/g,"\n").replace(/~s~/g," ");if(!/\|:-:\|/.test(e)){var n,r,i=e.match(/^\n[^\n]+\n/)[0].match(/\|/g).length-1;e=hs(n=hs(r="\n|".concat(Rf(" |").call(" |",i),"\n|")).call(r,Rf(":-:|").call(":-:|",i))).call(n,e)}return e},convertLi:function(t){return"- ".concat(t.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(t){return"".concat(t,"\n")},convertOl:function(t){for(var e=t.split("\n"),n=1,r=0;r<e.length;r++)/^- /.test(e[r])&&(e[r]=e[r].replace(/^- /,"".concat(n,". ")),n+=1);var i=e.join("\n");return"".concat(i,"\n")},convertStrong:function(t){return/^\s*$/.test(t)?"":"**".concat(t,"**")},convertStrike:function(t){return/^\s*$/.test(t)?"":"~~".concat(t,"~~")},convertDel:function(t){return/^\s*$/.test(t)?"":"~~".concat(t,"~~")},convertHr:function(t){return/^\s*$/.test(t)?"\n\n----\n":"\n\n----\n".concat(t)},convertH1:function(t){return"# ".concat(mh(t).call(t).replace(/\n+$/,""),"\n\n")},convertH2:function(t){return"## ".concat(mh(t).call(t).replace(/\n+$/,""),"\n\n")},convertH3:function(t){return"### ".concat(mh(t).call(t).replace(/\n+$/,""),"\n\n")},convertH4:function(t){return"#### ".concat(mh(t).call(t).replace(/\n+$/,""),"\n\n")},convertH5:function(t){return"##### ".concat(mh(t).call(t).replace(/\n+$/,""),"\n\n")},convertH6:function(t){return"###### ".concat(mh(t).call(t).replace(/\n+$/,""),"\n\n")},convertBlockquote:function(t){return">".concat(mh(t).call(t),"\n\n")},convertAddress:function(t){return">".concat(mh(t).call(t),"\n\n")}},paragraphStyleClear:function(t){for(var e=0;e<t[0].children.length;e++){for(var n=[t[0].children[e]],r=[];n.length;){var i=n.shift(),a=this.notEmptyTagCount(i);if(1===a)r.push(i);else if(a>1)for(var o=0;o<i.children.length;o++)n.push(i.children[o]);else 1===r.length&&this.clearChildColorAttrs(r.pop()),r=[]}1===r.length&&this.clearChildColorAttrs(r.pop())}return t},notEmptyTagCount:function(t){if(!t||t.voidElement||"tag"===t.type&&!t.children.length||"text"===t.type&&!t.content.replace(/(\r|\n|\s)+/g,""))return 0;if(t.children&&t.children.length){for(var e=0,n=0;n<t.children.length;n++)e+=this.notEmptyTagCount(t.children[n]);return e}return 1},clearChildColorAttrs:function(t){var e=this;this.forEachHtmlParsedItems(t,(function(t){e.clearSelfNodeColorAttrs(t)}))},clearSelfNodeColorAttrs:function(t){if(t.attrs&&t.attrs.style){for(var e=t.attrs.style.split(";"),n=[],r=0;r<e.length;r++){var i;e[r]&&-1===Ef(i=e[r]).call(i,"color")&&n.push(e[r])}n.length?t.attrs.style="".concat(n.join(";"),";"):delete t.attrs.style}},forEachHtmlParsedItems:function(t,e){if(t&&(e(t),t.children&&t.children.length))for(var n=0;n<t.children.length;n++)this.forEachHtmlParsedItems(t.children[n],e)}},Uf=Qf;var $f=_s;function Hf(){var t;return Hf=$f?qo(t=$f).call(t):function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Hf.apply(null,arguments)}var jf=dh.trim,Kf=w("".charAt),zf=j.parseFloat,Gf=j.Symbol,Xf=Gf&&Gf.iterator,Vf=1/zf(oh+"-0")!=-1/0||Xf&&!u((function(){zf(Object(Xf))}))?function(t){var e=jf(xr(t)),n=zf(e);return 0===n&&"-"===Kf(e,0)?-0:n}:zf;Dn({global:!0,forced:parseFloat!==Vf},{parseFloat:Vf});var Wf=H.parseFloat;function qf(t,e){var n=Wf(t),r=Wf(e);return r>=0?n:n>=0?n+r:Math.min(n,r)}function Yf(t){var e=t.previousElementSibling,n=t.nextElementSibling;if(!e){var r=getComputedStyle(t),i=t.getBoundingClientRect();if(!n)return{height:Math.max(Wf(r.marginTop)+i.height+Wf(r.marginBottom),0),offsetTop:t.offsetTop-Math.abs(Wf(r.marginTop))};var a=getComputedStyle(n),o=qf(r.marginBottom,a.marginTop);return{height:Math.max(Wf(r.marginTop)+i.height+o,0),offsetTop:t.offsetTop-Math.abs(Wf(r.marginTop))}}var s=getComputedStyle(t),c=t.getBoundingClientRect(),l=function(t,e){var n=Wf(t),r=Wf(e);return r<0?0:n>=0?Math.max(r-n,0):r}(getComputedStyle(e).marginBottom,s.marginTop);if(!n)return{height:Math.max(l+c.height+Wf(s.marginBottom),0),offsetTop:t.offsetTop-Math.abs(Wf(s.marginTop))};var u=getComputedStyle(n),h=qf(s.marginBottom,u.marginTop);return{height:Math.max(l+c.height+h,0),offsetTop:t.offsetTop-Math.abs(l)}}function Jf(t,e){if(!t||!t.tagName)return"";var n,r,i=document.createElement("div");return i.appendChild(t.cloneNode(!1)),n=i.innerHTML,e&&(r=Ef(n).call(n,">")+1,n=n.substring(0,r)+t.innerHTML+n.substring(r)),i=null,n}function Zf(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.createElement(t);(i.className=n,void 0!==r)&&Qs(e=Is(r)).call(e,(function(t){var e=r[t];if(Vh(t).call(t,"data-")){var n=t.replace(/^data-/,"");i.dataset[n]=e}else i.setAttribute(t,e)}));return i}var td={showSwitchBtnAfterPasteHtml:function(t,e,n,r,i){mh(r).call(r)!==mh(i).call(i)&&(this.init(t,e,n,r,i),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(t,e,n,r,i){this.$cherry=t,this.html=r,this.md=i,this.codemirror=n,this.currentCursor=e,this.locale=t.locale},getTypeFromLocalStorage:function(){return"undefined"==typeof localStorage?"md":localStorage.getItem("cherry-paste-type")||"md"},setTypeToLocalStorage:function(t){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-paste-type",t)},setSelection:function(){var t=this.codemirror.getCursor(),e=Hf({},(function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),t)),n=this.currentCursor;this.codemirror.setSelection(n,e)},bindListener:function(){var t=this;if(this.hasBindListener)return!0;this.hasBindListener=!0,this.codemirror.on("beforeSelectionChange",(function(e,n){t.hideBubble()})),this.codemirror.on("beforeChange",(function(e,n){t.hideBubble()})),this.codemirror.on("scroll",(function(e){t.updatePositionWhenScroll()}))},isHidden:function(){return"none"===this.bubbleDom.style.display},toggleBubbleDisplay:function(){this.isHidden()?this.bubbleDom.style.display="":this.bubbleDom.style.display="none"},hideBubble:function(){if(this.noHide)return!0;this.isHidden()||this.toggleBubbleDisplay()},updatePositionWhenScroll:function(){if(!this.isHidden()){var t=this.bubbleDom.dataset.scrollTop-this.getScrollTop();this.bubbleDom.style.marginTop="".concat(t,"px")}},getScrollTop:function(){return this.codemirror.getScrollInfo().top},showBubble:function(){var t=this.getLastSelectedPosition().top;this.isHidden()&&(this.toggleBubbleDisplay(),this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=this.getScrollTop()),t>this.codemirror.getWrapperElement().clientHeight-this.bubbleDom.getBoundingClientRect().height-15?(this.bubbleDom.style.top="",this.bubbleDom.style.bottom="".concat(15,"px")):(this.bubbleDom.style.top="".concat(t,"px"),this.bubbleDom.style.bottom="")},initBubble:function(){var t,e;if(this.bubbleDom)return this.bubbleDom.setAttribute("data-type","md"),!0;var n=Zf("div","cherry-bubble cherry-bubble--centered cherry-switch-paste");n.style.display="none";var r=Zf("span","cherry-toolbar-button cherry-text-btn",{title:this.locale.pastePlain});r.innerText="TEXT";var i=Zf("span","cherry-toolbar-button cherry-md-btn",{title:this.locale.pasteMarkdown});i.innerText="Markdown";var a=Zf("span","switch-btn--bg");this.bubbleDom=n,this.switchText=r,this.switchMd=i,this.switchBG=a,this.bubbleDom.appendChild(r),this.bubbleDom.appendChild(i),this.bubbleDom.appendChild(a),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",fs(t=this.switchMDClick).call(t,this)),this.switchText.addEventListener("click",fs(e=this.switchTextClick).call(e,this))},switchMDClick:function(t){this.setTypeToLocalStorage("md"),"md"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","md"),this.codemirror.doc.replaceSelection(this.md),this.setSelection(),this.showBubble(),this.noHide=!1)},switchTextClick:function(t){this.setTypeToLocalStorage("text"),"text"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","text"),this.codemirror.doc.replaceSelection(this.html),this.setSelection(),this.showBubble(),this.noHide=!1)},getLastSelectedPosition:function(){var t=Nh(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")),e=0,n=0;if(t.length<=0)return this.hideBubble(),{};for(var r=0;r<t.length;r++){var i=t[r].getBoundingClientRect(),a=i.left+i.width/2,o=i.top+i.height;o>n&&a>=e&&(n=o),a>e&&(e=a)}return{top:n}}},ed=td;function nd(t,e,n,r){return t.addEventListener?(t.addEventListener(e,n,r),!0):t.attachEvent?t.attachEvent("on".concat(e),n):void(t["on".concat(e)]=n)}function rd(t,e,n,r){if(t.removeEventListener)t.removeEventListener(e,n,r);else{if(t.detachEvent)return t.detachEvent("on".concat(e),n);t["on".concat(e)]=null}}var id=new Proxy({},{get:function(t,e,n){return function(){}}}),ad=so,od=Zh,sd=qh;function cd(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return ld(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ld(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function ld(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ud(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input"),a=t.$cherry.options.multipleFileSelection||!1;i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.multiple=a,i.addEventListener("change",(function(n){var i=n.target.files;t.$cherry.options.callback.fileUploadMulti(i,(function(n){if(0!==n.length){if(r)return r(n);var a,o="",s=cd(i);try{for(s.s();!(a=s.n()).done;){var c=a.value,l=c.url;o+="".concat(fd(e,c,l),"/n")}}catch(t){s.e(t)}finally{s.f()}t.editor.doc.replaceSelection(o)}}))})),i.click()}function hd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input");i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.addEventListener("change",(function(n){var i=xf(n.target.files,1)[0];t.$cherry.options.callback.fileUpload(i,(function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof n&&n){if(r)return r(i.name,n,a);var o;o=fd(e,i,n),t.editor.doc.replaceSelection(o)}}))})),i.click()}var fd=function(t,e,n){var r,i,a,o;return"image"===t?hs(i="![".concat(e.name,"](")).call(i,n,")"):"video"===t?hs(a="!video[".concat(e.name,"](")).call(a,n,")"):"audio"===t?hs(o="!audio[".concat(e.name,"](")).call(o,n,")"):hs(r="[".concat(e.name,"](")).call(r,n,")")};function dd(t){var e=[];return null!=t&&t.isBorder&&e.push("#B"),null!=t&&t.isShadow&&e.push("#S"),null!=t&&t.isRadius&&e.push("#R"),null!=t&&t.width&&e.push("#".concat(t.width)),null!=t&&t.height&&(t.width||e.push("#auto"),e.push("#".concat(t.height))),e.join(" ")}function Ad(t,e,n){var r,i,a,o,s,c=null!==(r=null==e?void 0:e.name)&&void 0!==r?r:n.name,l="",u="";/video/i.test(n.type)&&(l="!video",u=null!=e&&e.poster?"{poster=".concat(e.poster,"}"):""),/audio/i.test(n.type)&&(l="!audio"),/image/i.test(n.type)&&(l="!");var h=l?dd(e):"";return hs(i=hs(a=hs(o=hs(s="".concat(l,"[")).call(s,c)).call(o,h,"](")).call(a,t,")")).call(i,u)}function gd(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function pd(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=gd(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=gd(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}function md(t,e,n){var r=t.begin+t.content+t.end;return n&&(r=r.replace(/\[\\h\]/g,vd).replace(/\\h/g,vd)),new RegExp(r,e||"g")}function bd(){try{return new RegExp("(?<=.)"),!0}catch(t){}return!1}var vd="[ \\t\\u00a0]",yd="(?:[^\\n]*?\\S[^\\n]*?)",wd="[\\u0021-\\u002F\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e]",kd="[\\u0021-\\u002F\\u003a-\\u0040\\u005b\\u005d\\u005e\\u0060\\u007b-\\u007e \\t\\n!“”¥‘’(),。—:;《》?【】「」·~|]",Cd=new RegExp([/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+/.source,"@",/[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*/.source].join("")),xd=new RegExp("^".concat(Cd.source,"$")),Ed=new RegExp('(?:\\S+(?::\\S*)?@)?(?:(?:1\\d\\d|2[01]\\d|22[0-3]|[1-9]\\d?)(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:1\\d\\d|2[0-4]\\d|25[0-4]|[1-9]\\d?))|(?![-_])(?:[-\\w\\xa1-\\xff]{0,63}[^-_]\\.)+(?:[a-zA-Z\\xa1-\\xff]{2,}\\.?))(?::\\d{2,5})?(?:[/?#][^\\s<>\\x00-\\x1f"\\(\\)]*)?'),Td=new RegExp("(?:\\/\\/)".concat(Ed.source)),Bd=new RegExp("^".concat(Ed.source,"$")),_d=new RegExp("^".concat(Td.source,"$")),Sd=/^([ \t]*)([*+-][ ](\[[ x]\])?|[0-9一二三四五六七八九十零]+\.|[a-z]\.|\b(?:M{0,3}(?:CM|CD|D?C{0,3})(?:XC|XL|L?X{0,3})(?:IX|IV|V?I{0,3}))\b\.)([^\r\n]*)/;function Ld(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n={begin:"(?:^|\\n)(\\n*)",content:["(\\h*\\|[^\\n]+\\|?\\h*)","\\n","(?:(?:\\h*\\|\\h*:?[-]{1,}:?\\h*)+\\|?\\h*)","((\\n\\h*\\|[^\\n]+\\|?\\h*)*)"].join(""),end:"(?=$|\\n)"};n.reg=md(n,"g",!0);var r={begin:"(?:^|\\n)(\\n*)",content:["(\\|?[^\\n|]+(\\|[^\\n|]+)+\\|?)","\\n","(?:\\|?\\h*:?[-]{1,}:?[\\h]*(?:\\|[\\h]*:?[-]{1,}:?\\h*)+\\|?)","((\\n\\|?([^\\n|]+(\\|[^\\n|]*)+)\\|?)*)"].join(""),end:"(?=$|\\n)"};return r.reg=md(r,"g",!0),!1===e?{strict:n,loose:r}:md({begin:"",content:hs(t="(?:".concat(n.begin+n.content+n.end,"|")).call(t,r.begin+r.content+r.end,")"),end:""},"g",!0)}function Id(){var t={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/,reg:new RegExp("")};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),pd(pd({},t),{},{begin:t.begin.source,content:t.content.source,end:t.end.source})}function Md(t,e){var n=t||"Item 1\n Item 1.1\nItem 2";n=n.replace(/^\n+/,"").replace(/\n+$/,"");var r="1.";switch(e){case"ol":r="1.";break;case"ul":r="-";break;case"checklist":r="- [x]"}if(n=n.replace(/^(\s*)([0-9a-zA-Z]+\.|- \[x\]|- \[ \]|-) /gm,"$1"),"1."===r){var i={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,(function(t,e,n){var r,a,o,s=(null===(r=e.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return i[s]=i[s]?i[s]+1:1,hs(a=hs(o="".concat(e)).call(o,i[s],". ")).call(a,n)}))}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}function Od(){var t={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),t}function Dd(){var t={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),t}var Fd=/(\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,)([^)]+)\)/g,Nd=/(!\[[^\n]*?\]\([^)]+\)\{[^}]* data-xml=)([^}]+)\}/g,Pd=/(!\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,[^)]+\)\{data-type=drawio data-xml=[^}]+\})/g,Rd=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(Id().reg,(function(t){return t.replace(/^.*$/gm,"/n")})).replace(/(`+)(.+?(?:\n.+?)*?)\1/g,(function(t){return t.replace(/[![\]()]/g,".")}))};function Qd(t){(function(t){var e=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)/,n=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/;if(t.getOption("disableInput"))return!1;for(var r=t.listSelections(),i=[],a=0;a<r.length;a++){var o=r[a].head,s=t.getLine(o.line),c=e.exec(s),l=/^\s*$/.test(Bf(s).call(s,0,o.ch));if(!r[a].empty()||l||!c)return;if(n.test(s))t.replaceRange("",{line:o.line,ch:0},{line:o.line,ch:o.ch+1}),i[a]="\n";else{var u,h=c[1],f=c[3];i[a]=hs(u="\n".concat(h,"I.")).call(u,f)}}return t.replaceSelections(i),!0})(t)||t.execCommand("newlineAndIndentContinueMarkdownList")}var Ud=["codemirror"],$d=function(){return Ho((function t(e){var n=this;ra(this,t),cs(this,"disableShortcut",(function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?n.editor.setOption("keyMap","default"):n.editor.setOption("keyMap",n.options.keyMap)})),cs(this,"dealSpecialWords",(function(){n.noChange?n.noChange=!1:"hide"!==n.$cherry.status.editor&&(n.formatFullWidthMark(),n.formatBigData2Mark(Fd,"cm-url base64"),n.formatBigData2Mark(Nd,"cm-url drawio"))})),cs(this,"formatBigData2Mark",(function(t,e){for(var r=n.editor,i=r.getSearchCursor(t),a=i.findNext();!1!==a;a=i.findNext()){var o,s,c=i.from();if(c){var l=null!==(o=a[2])&&void 0!==o?o:"",u=c.ch+(null===(s=a[1])||void 0===s?void 0:s.length),h=u+l.length,f=c.line,d={line:f,ch:u},A={line:f,ch:h};if(!(r.findMarks(d,A).length>0)){var g=Zf("span","cm-string ".concat(e),{title:l});g.textContent=l,n.noChange=!0,r.markText(d,A,{replacedWith:g,atomic:!0})}}}})),cs(this,"onKeyup",(function(t,e){var r=e.getCursor().line;n.previewer.highlightLine(r+1)})),cs(this,"onScroll",(function(t){if(n.$cherry.$event.emit("cleanAllSubMenus"),n.disableScrollListener)n.disableScrollListener=!1;else{var e=t.getScrollerElement();if(e.scrollTop<=0)n.previewer.scrollToLineNum(0);else if(e.scrollTop+e.clientHeight>=e.scrollHeight-20)n.previewer.scrollToLineNum(null);else{var r=t.getScrollInfo().top,i=t.lineAtHeight(r,"local"),a=t.charCoords({line:i,ch:0},"local"),o=t.getLineHandle(i).height,s=100*(r-(a.bottom-o))/o/100;n.previewer.scrollToLineNum(i+1,s)}}})),cs(this,"onMouseDown",(function(t,e){n.$cherry.$event.emit("cleanAllSubMenus");var r=t.getCursor().line,i=Math.abs(e.y-t.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,i),n.toHalfWidth(t,e)})),cs(this,"onCursorActivity",(function(){n.refreshWritingStatus()})),this.options={id:"code",name:"code",autoSave2Textarea:!1,editorDom:document.createElement("div"),wrapperDom:null,autoScrollByCursor:!0,convertWhenPaste:!0,keyMap:"sublime",showFullWidthMark:!0,showSuggestList:!0,codemirror:{lineNumbers:!1,cursorHeight:.85,indentUnit:4,tabSize:4,mode:{name:"yaml-frontmatter",gitHubSpice:!1},lineWrapping:!0,indentWithTabs:!0,autofocus:!0,theme:"default",autoCloseTags:!0,extraKeys:{Enter:Qd},matchTags:{bothTags:!0},placeholder:"",keyMap:"sublime"},toolbars:{},onKeydown:function(){},onChange:function(){},onFocus:function(){},onBlur:function(){},onPaste:this.onPaste,onScroll:this.onScroll},this.animation={},this.selectAll=!1;var r=e.codemirror,i=_u(e,Ud);r&&Ss(this.options.codemirror,r),Ss(this.options,i),this.options.codemirror.keyMap=this.options.keyMap,this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}),[{key:"formatFullWidthMark",value:function(){var t;if(this.options.showFullWidthMark){var e=this.editor,n=/[·¥、:“”【】()《》]/,r=e.getSearchCursor(n),i=r.findNext();for(Qs(t=e.getAllMarks()).call(t,(function(t){if("cm-fullWidth"===t.className){var r=JSON.parse(Zu(ah(t).call(t))),i=e.getRange(r.from,r.to);n.test(i)||t.clear()}}));!1!==i;i=r.findNext()){var a,o=r.from();if(o){var s={line:o.line,ch:o.ch},c={line:o.line,ch:o.ch+1};0===Qi(a=e.findMarks(s,c)).call(a,(function(t){return"cm-fullWidth"===t.className})).length&&e.markText(s,c,{className:"cm-fullWidth",title:"按住Ctrl/Cmd点击切换成半角(Hold down Ctrl/Cmd and click to switch to half-width)"})}}}}},{key:"toHalfWidth",value:function(t,e){var n=e.target;if(n instanceof HTMLElement&&n.classList.contains("cm-fullWidth")&&(e.ctrlKey||e.metaKey)&&1===e.buttons){var r=n.getBoundingClientRect(),i=t.coordsChar({left:r.left,top:r.top}),a={line:i.line,ch:i.ch+1};t.setSelection(i,a),t.replaceSelection(n.innerText.replace("·","`").replace("¥","$").replace("、","/").replace(":",":").replace("“",'"').replace("”",'"').replace("【","[").replace("】","]").replace("(","(").replace(")",")").replace("《","<").replace("》",">"))}}},{key:"onPaste",value:function(t,e){var n=t.clipboardData;n?this.handlePaste(t,n,e):(n=window.clipboardData,this.handlePaste(t,n,e))}},{key:"handlePaste",value:function(t,e,n){var r,i,a=this,o=this.$cherry.options.callback.onPaste(e,this.$cherry);if(!1!==o&&"string"==typeof o)return t.preventDefault(),void n.replaceSelection(o);var s=e.getData("Text/Html"),c=e.items;s=s.replace(/<!--[^>]+>/g,""),/<body>\s*<img [^>]+>\s*<\/body>/.test(s)&&"file"===(null===(r=c[1])||void 0===r?void 0:r.kind)&&null!==(i=c[1])&&void 0!==i&&i.type.match(/^image\//i)&&(s="");var l=n.getDoc();this.fileUploadCount=0;for(var u=function(){var e=c[h];if(e&&"file"===e.kind&&e.type.match(/^image\//i)){var n=e.getAsFile();a.$cherry.options.callback.fileUpload(n,(function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a.fileUploadCount+=1,"string"==typeof t){var i=hs(e="".concat(a.fileUploadCount>1?"\n":"")).call(e,Ad(t,r,n));l.replaceSelection(i)}})),t.preventDefault()}},h=0;!s&&h<c.length;h++)u();var f=e.getData("text/plain");if(!s||!this.options.convertWhenPaste)return!0;var d=document.createElement("DIV");d.innerHTML=s,s=d.innerHTML;var A=Uf.run(s);if("string"==typeof A&&mh(A).call(A).length>0){var g=n.listSelections();if(n.getSelections().length<=1&&g[0]&&g[0].anchor){var p={};p.line=g[0].anchor.line,p.ch=g[0].anchor.ch,l.replaceSelection(A),ed.showSwitchBtnAfterPasteHtml(this.$cherry,p,n,f,A)}else l.replaceSelection(A);t.preventDefault()}d=null}},{key:"init",value:function(t){var e=this,n=this.options.editorDom.querySelector("#".concat(this.options.id));if(!(n instanceof HTMLTextAreaElement))throw new Error("The specific element is not a textarea.");var r=Wh.fromTextArea(n,this.options.codemirror);this.previewer=t,this.disableScrollListener=!1,this.options.value&&r.setOption("value",this.options.value),r.on("blur",(function(t,n){e.options.onBlur(n,t),e.$cherry.$event.emit("blur",{evt:n,cherry:e.$cherry})})),r.on("focus",(function(t,n){e.options.onFocus(n,t),e.$cherry.$event.emit("focus",{evt:n,cherry:e.$cherry})})),r.on("change",(function(t,n){e.options.onChange(n,t),e.dealSpecialWords(),e.options.autoSave2Textarea&&t.save()})),r.on("keydown",(function(t,n){e.options.onKeydown(n,t)})),r.on("keyup",(function(t,n){e.onKeyup(n,t)})),r.on("paste",(function(t,n){e.options.onPaste.call(e,n,t)})),this.options.autoScrollByCursor&&r.on("mousedown",(function(t,n){ks((function(){e.onMouseDown(t,n)}))})),r.on("drop",(function(t,n){var r=n.dataTransfer.files||[];r&&r.length>0&&ks((function(){for(var n=function(n){var i=r[n],a=i.type||"";if(/\.(text|md)/.test(i.name)||/^text/i.test(a))return 1;e.$cherry.options.callback.fileUpload(i,(function(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof r){t.setSelection(t.getCursor());var o=Ad(r,a,i),s=n>0?"\n".concat(o," "):"".concat(o," ");t.replaceSelection(s),e.dealSpecialWords()}}))},i=0;i<r.length;i++)n(i)}),50)})),r.on("scroll",(function(t){e.options.onScroll(t),"focus"===e.options.writingStyle&&e.refreshWritingStatus()})),r.on("cursorActivity",(function(){e.onCursorActivity()})),r.on("beforeChange",(function(t){e.selectAll=e.editor.getValue()===t.getSelection()})),nd(this.getEditorDom(),"wheel",(function(){e.disableScrollListener=!1,cancelAnimationFrame(e.animation.timer),e.animation.timer=0}),!1),this.editor=r,"normal"!==this.options.writingStyle&&this.initWritingStyle(),this.dealSpecialWords()}},{key:"jumpToLine",value:function(t,e,n){var r=this;if(null===t)return cancelAnimationFrame(this.animation.timer),this.disableScrollListener=!0,this.editor.scrollIntoView({line:this.editor.lineCount()-1,ch:1}),void(this.animation.timer=0);var i=this.editor.charCoords({line:t,ch:0},"local"),a=i.top;if(a+=(this.editor.charCoords({line:t+e,ch:0},"local").top-i.top)*n,this.animation.destinationTop=Math.ceil(a-15),!this.animation.timer){this.animation.timer=requestAnimationFrame((function t(){var e=r.editor.getScrollInfo().top,n=r.animation.destinationTop-e,i=Math.ceil(Math.min(Math.abs(n),Math.max(1,Math.abs(n)/(100/16.7))));if(n>0){if(e>=r.animation.destinationTop)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,e+i)}else{if(!(n<0))return void(r.animation.timer=0);if(e<=r.animation.destinationTop||e<=0)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,e-i)}e===r.editor.getScrollInfo().top||i>=Math.abs(n)?r.animation.timer=0:r.animation.timer=requestAnimationFrame(t)}))}}},{key:"scrollToLineNum",value:function(t,e,n){if(null!==t){var r=Math.max(0,t);this.jumpToLine(r,e,n),id.log("滚动预览区域,左侧应scroll to ",r)}else this.jumpToLine(null)}},{key:"getEditorDom",value:function(){return this.options.editorDom}},{key:"addListener",value:function(t,e){this.editor.on(t,e)}},{key:"initWritingStyle",value:function(){var t,e,n=this.options.writingStyle,r="cherry-editor-writing-style--".concat(n),i=this.getEditorDom();Qs(t=Qi(e=Nh(i.classList)).call(e,(function(t){return Vh(t).call(t,"cherry-editor-writing-style--")}))).call(t,(function(t){return i.classList.remove(t)})),"normal"!==n&&(i.classList.add(r),this.refreshWritingStatus())}},{key:"refreshWritingStatus",value:function(){var t,e,n=this.options.writingStyle;if("focus"===n||"typewriter"===n){var r="cherry-editor-writing-style--".concat(n),i=document.querySelector("#cherry-editor-writing-style")||document.createElement("style");i.id="cherry-editor-writing-style",ah(t=Nh(document.head.childNodes)).call(t,(function(t){return t===i}))||document.head.appendChild(i);var a=i.sheet;if(Qs(e=Nh(Array(a.cssRules.length))).call(e,(function(){return a.deleteRule(0)})),"focus"===n){var o,s,c=this.getEditorDom().getBoundingClientRect(),l=this.editor.charCoords(this.editor.getCursor()),u=l.top,h=l.bottom,f=u-c.top,d=c.height-(h-c.top);a.insertRule(hs(o=".".concat(r,"::before { height: ")).call(o,f>0?f:0,"px; }"),0),a.insertRule(hs(s=".".concat(r,"::after { height: ")).call(s,d>0?d:0,"px; }"),0)}if("typewriter"===n){var A,g,p=this.editor.getScrollInfo().clientHeight/2;a.insertRule(hs(A=".".concat(r," .CodeMirror-lines::before { height: ")).call(A,p,"px; }"),0),a.insertRule(hs(g=".".concat(r," .CodeMirror-lines::after { height: ")).call(g,p,"px; }"),0),this.editor.scrollTo(null,this.editor.cursorCoords(null,"local").top-p)}}}},{key:"setWritingStyle",value:function(t){this.options.writingStyle=t,this.initWritingStyle()}},{key:"setValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.editor.setOption("value",t)}}])}(),Hd=Mr.findIndex,jd="findIndex",Kd=!0;jd in[]&&Array(1)[jd]((function(){Kd=!1})),Dn({target:"Array",proto:!0,forced:Kd},{findIndex:function(t){return Hd(this,t,arguments.length>1?arguments[1]:void 0)}}),Wa();var zd=Ni("Array","findIndex"),Gd=Array.prototype,Xd=function(t){var e=t.findIndex;return t===Gd||rt(Gd,t)&&e===Gd.findIndex?zd:e},Vd=TypeError,Wd=function(t,e){if(!delete t[e])throw new Vd("Cannot delete property "+ct(e)+" of "+ct(t))},qd=Oi("splice"),Yd=Math.max,Jd=Math.min;Dn({target:"Array",proto:!0,forced:!qd},{splice:function(t,e){var n,r,i,a,o,s,c=yt(this),l=un(c),u=ln(t,l),h=arguments.length;for(0===h?n=r=0:1===h?(n=0,r=l-u):(n=h-2,r=Jd(Yd(rn(e),0),l-u)),sa(l+n-r),i=yr(c,r),a=0;a<r;a++)(o=u+a)in c&&Vi(i,a,c[o]);if(i.length=r,n<r){for(a=u;a<l-r;a++)s=a+n,(o=a+r)in c?c[s]=c[o]:Wd(c,s);for(a=l;a>l-r+n;a--)Wd(c,a-1)}else if(n>r)for(a=l-r;a>u;a--)s=a+n-1,(o=a+r-1)in c?c[s]=c[o]:Wd(c,s);for(a=0;a<n;a++)c[a+u]=arguments[a+2];return af(c,l-r+n),i}});var Zd=Ni("Array","splice"),tA=Array.prototype,eA=function(t){var e=t.splice;return t===tA||rt(tA,t)&&e===tA.splice?Zd:e},nA=!1,rA={SEN:"sentence",PAR:"paragraph",DEFAULT:"sentence"},iA=function(){return Ho((function t(e){ra(this,t),cs(this,"$engine",void 0),cs(this,"$locale",void 0),this.RULE=this.rule(e)}),[{key:"getType",value:function(){return this.constructor.HOOK_TYPE||rA.DEFAULT}},{key:"getName",value:function(){return this.constructor.HOOK_NAME}},{key:"afterInit",value:function(t){"function"==typeof t&&t()}},{key:"setLocale",value:function(t){this.$locale=t}},{key:"beforeMakeHtml",value:function(t){return t}},{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){return t}},{key:"onKeyDown",value:function(t,e){}},{key:"getOnKeyDown",value:function(){return this.onKeyDown||!1}},{key:"getAttributesTest",value:function(){return/^(color|fontSize|font-size|id|title|class|target|underline|line-through|overline|sub|super)$/}},{key:"$testAttributes",value:function(t,e){this.getAttributesTest().test(t)&&e()}},{key:"getAttributes",value:function(t){return{attrs:{},str:t}}},{key:"test",value:function(t){return!!this.RULE.reg&&this.RULE.reg.test(t)}},{key:"rule",value:function(t){return{begin:"",end:"",content:"",reg:new RegExp("")}}},{key:"mounted",value:function(){}}],[{key:"getMathJaxConfig",value:function(){return nA}},{key:"setMathJaxConfig",value:function(t){nA=t}}])}();cs(iA,"HOOK_NAME","default"),cs(iA,"HOOK_TYPE",rA.DEFAULT);var aA=Mr.map,oA=Oi("map");Dn({target:"Array",proto:!0,forced:!oA},{map:function(t){return aA(this,t,arguments.length>1?arguments[1]:void 0)}});var sA=Ni("Array","map"),cA=Array.prototype,lA=function(t){var e=t.map;return t===cA||rt(cA,t)&&e===cA.map?sA:e};function uA(t,e){var n,r,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(t)?a?(null!==(n=null===(r=t.match(/^\n+/g))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.length)&&void 0!==n?n:0)>1?"\n\n".concat(e):"\n".concat(e):"\n\n".concat(e):e}function hA(t,e){var n=(t.match(/\n/g)||[]).length;return""!==t&&(n-=2),n+e}function fA(t,e){if(sd(e))return e}function dA(t){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(t))}function AA(){var t="false";return"undefined"!=typeof localStorage&&(t=localStorage.getItem("cherry-classicBr")),"true"===t}function gA(t,e){var n;return"undefined"!=typeof localStorage&&!!localStorage.getItem(hs(n="".concat(t,"-")).call(n,e))}function pA(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cherry",n="default";if("undefined"!=typeof localStorage){var r=localStorage.getItem("".concat(e,"-theme"));r&&(n=r)}return t?"theme__".concat(n):n}function mA(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(e||pA(!1,t.nameSpace)).replace(/^.*theme__/,""),r=" theme__".concat(n);t.wrapperDom.className=t.wrapperDom.className.replace(/ theme__[^ $]+?( |$)/g," ")+r,t.previewer.getDomContainer().className=t.previewer.getDomContainer().className.replace(/ theme__[^ $]+?( |$)/g," ")+r,function(t,e){"undefined"!=typeof localStorage&&localStorage.setItem("".concat(t,"-theme"),e)}(t.nameSpace,n)}function bA(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cherry",e="default";if("undefined"!=typeof localStorage){var n=localStorage.getItem("".concat(t,"-codeTheme"));n&&(e=n)}return e}function vA(t,e){var n=e||bA(t.nameSpace);t.wrapperDom.setAttribute("data-code-block-theme",n),function(t,e){"undefined"!=typeof localStorage&&localStorage.setItem("".concat(t,"-codeTheme"),e)}(t.nameSpace,n)}var yA=RangeError,wA=String.fromCharCode,kA=String.fromCodePoint,CA=w([].join),xA=!!kA&&1!==kA.length;Dn({target:"String",stat:!0,arity:1,forced:xA},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],ln(e,1114111)!==e)throw new yA(e+" is not a valid code point");n[i]=e<65536?wA(e):wA(55296+((e-=65536)>>10),e%1024+56320)}return CA(n,"")}});var EA,TA,BA=H.String.fromCodePoint;function _A(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function SA(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=_A(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=_A(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}var LA={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#x27;"},IA={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},MA=SA(SA(SA(SA(SA(SA({},{34:"&quot;",38:"&amp;",39:"&apos;",60:"&lt;",62:"&gt;"}),{192:"&Agrave;",193:"&Aacute;",194:"&Acirc;",195:"&Atilde;",196:"&Auml;",197:"&Aring;",198:"&AElig;",199:"&Ccedil;",200:"&Egrave;",201:"&Eacute;",202:"&Ecirc;",203:"&Euml;",204:"&Igrave;",205:"&Iacute;",206:"&Icirc;",207:"&Iuml;",208:"&ETH;",209:"&Ntilde;",210:"&Ograve;",211:"&Oacute;",212:"&Ocirc;",213:"&Otilde;",214:"&Ouml;",216:"&Oslash;",217:"&Ugrave;",218:"&Uacute;",219:"&Ucirc;",220:"&Uuml;",221:"&Yacute;",222:"&THORN;",223:"&szlig;",224:"&agrave;",225:"&aacute;",226:"&acirc;",227:"&atilde;",228:"&auml;",229:"&aring;",230:"&aelig;",231:"&ccedil;",232:"&egrave;",233:"&eacute;",234:"&ecirc;",235:"&euml;",236:"&igrave;",237:"&iacute;",238:"&icirc;",239:"&iuml;",240:"&eth;",241:"&ntilde;",242:"&ograve;",243:"&oacute;",244:"&ocirc;",245:"&otilde;",246:"&ouml;",248:"&oslash;",249:"&ugrave;",250:"&uacute;",251:"&ucirc;",252:"&uuml;",253:"&yacute;",254:"&thorn;",255:"&yuml;"}),{160:"&nbsp;",161:"&iexcl;",162:"&cent;",163:"&pound;",164:"&curren;",165:"&yen;",166:"&brvbar;",167:"&sect;",168:"&uml;",169:"&copy;",170:"&ordf;",171:"&laquo;",172:"&not;",173:"&shy;",174:"&reg;",175:"&macr;",176:"&deg;",177:"&plusmn;",178:"&sup2;",179:"&sup3;",180:"&acute;",181:"&micro;",182:"&para;",184:"&cedil;",185:"&sup1;",186:"&ordm;",187:"&raquo;",188:"&frac14;",189:"&frac12;",190:"&frac34;",191:"&iquest;",215:"&times;",247:"&divide;"}),{8704:"&forall;",8706:"&part;",8707:"&exist;",8709:"&empty;",8711:"&nabla;",8712:"&isin;",8713:"&notin;",8715:"&ni;",8719:"&prod;",8721:"&sum;",8722:"&minus;",8727:"&lowast;",8730:"&radic;",8733:"&prop;",8734:"&infin;",8736:"&ang;",8743:"&and;",8744:"&or;",8745:"&cap;",8746:"&cup;",8747:"&int;",8756:"&there4;",8764:"&sim;",8773:"&cong;",8776:"&asymp;",8800:"&ne;",8801:"&equiv;",8804:"&le;",8805:"&ge;",8834:"&sub;",8835:"&sup;",8836:"&nsub;",8838:"&sube;",8839:"&supe;",8853:"&oplus;",8855:"&otimes;",8869:"&perp;",8901:"&sdot;"}),{913:"&Alpha;",914:"&Beta;",915:"&Gamma;",916:"&Delta;",917:"&Epsilon;",918:"&Zeta;",919:"&Eta;",920:"&Theta;",921:"&Iota;",922:"&Kappa;",923:"&Lambda;",924:"&Mu;",925:"&Nu;",926:"&Xi;",927:"&Omicron;",928:"&Pi;",929:"&Rho;",931:"&Sigma;",932:"&Tau;",933:"&Upsilon;",934:"&Phi;",935:"&Chi;",936:"&Psi;",937:"&Omega;",945:"&alpha;",946:"&beta;",947:"&gamma;",948:"&delta;",949:"&epsilon;",950:"&zeta;",951:"&eta;",952:"&theta;",953:"&iota;",954:"&kappa;",955:"&lambda;",956:"&mu;",957:"&nu;",958:"&xi;",959:"&omicron;",960:"&pi;",961:"&rho;",962:"&sigmaf;",963:"&sigma;",964:"&tau;",965:"&upsilon;",966:"&phi;",967:"&chi;",968:"&psi;",969:"&omega;",977:"&thetasym;",978:"&upsih;",982:"&piv;"}),{338:"&OElig;",339:"&oelig;",352:"&Scaron;",353:"&scaron;",376:"&Yuml;",402:"&fnof;",710:"&circ;",732:"&tilde;",8194:"&ensp;",8195:"&emsp;",8201:"&thinsp;",8204:"&zwnj;",8205:"&zwj;",8206:"&lrm;",8207:"&rlm;",8211:"&ndash;",8212:"&mdash;",8216:"&lsquo;",8217:"&rsquo;",8218:"&sbquo;",8220:"&ldquo;",8221:"&rdquo;",8222:"&bdquo;",8224:"&dagger;",8225:"&Dagger;",8226:"&bull;",8230:"&hellip;",8240:"&permil;",8242:"&prime;",8243:"&Prime;",8249:"&lsaquo;",8250:"&rsaquo;",8254:"&oline;",8364:"&euro;",8482:"&trade;",8592:"&larr;",8593:"&uarr;",8594:"&rarr;",8595:"&darr;",8596:"&harr;",8629:"&crarr;",8968:"&lceil;",8969:"&rceil;",8970:"&lfloor;",8971:"&rfloor;",9674:"&loz;",9824:"&spades;",9827:"&clubs;",9829:"&hearts;",9830:"&diams;"}),OA=Is(MA),DA=lA(OA).call(OA,(function(t){return MA[t].replace(/^&(\w+);$/g,(function(t,e){return e.toLowerCase()}))})),FA=function(t){return"string"!=typeof t||t.length<=0},NA=function(t){try{var e=BA(t);return!FA(e)}catch(t){return!1}};var PA=["h1|h2|h3|h4|h5|h6","ul|ol|li|dd|dl|dt","table|thead|tbody|tfoot|col|colgroup|th|td|tr","div|article|section|footer|aside|details|summary|code|audio|video|canvas|figure","address|center|cite|p|pre|blockquote|marquee|caption|figcaption|track|source|output|svg"].join("|"),RA=["span|a|link|b|s|i|del|u|em|strong|sup|sub|kbd","nav|font|bdi|samp|map|area|small|time|bdo|var|wbr|meter|dfn","ruby|rt|rp|mark|q|progress|input|textarea|select|ins"].join("|"),QA=new RegExp(hs(EA=hs(TA="^(".concat(PA,"|")).call(TA,RA,"|")).call(EA,"br|img|hr",")( |$|/)"),"i");function UA(t,e){return"string"!=typeof t?"":e?t.replace(/[<>&]/g,(function(t){return LA[t]||t})):t.replace(/[<>&"']/g,(function(t){return LA[t]||t}))}function $A(t,e){if("string"!=typeof t)return"";var n=HA(t);return n=function(t){return"string"!=typeof t?"":t.replace(/&(\w+);?/g,(function(t,e){return IA[e]||t}))}(n),UA(n,e)}function HA(t){return t.replace(/&#(\d+);?/g,(function(t,e){return MA[e]||t}))}function jA(t){var e=function(t){return t.replace(/&#x([0-9a-f]+);?/gi,(function(t,e){var n=Ff("0x".concat(e),16);try{return BA(n)}catch(e){return t}}))}(function(t){return t.replace(/&#(\d+);?/g,(function(t,e){try{return BA(e)}catch(e){return t}}))}(t)).match(/^\s*([\w\W]+?)(?=:)/i);if(!e)return!0;var n=["javascript","data"],r=e[1].replace(/[\s]/g,"");return-1===Ef(n).call(n,r.toLowerCase())}function KA(t){return encodeURI(t).replace(/%25/g,"%")}function zA(t,e,n){return e=es(e),Ko(t,GA()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function GA(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(GA=function(){return!!t})()}var XA=0,VA=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},r=n.needCache,i=n.defaultCache,a=void 0===i?{}:i;return ra(this,e),(t=zA(this,e,[{}])).needCache=!!r,t.sign="",r&&(t.cache=a||{},t.cacheKey="~~C".concat(XA),XA+=1),t}return ss(e,t),Ho(e,[{key:"initBrReg",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=dA("classicBr")?AA():t,this.removeBrAfterBlock=null,this.removeBrBeforeBlock=null,this.removeNewlinesBetweenTags=null}},{key:"$cleanParagraph",value:function(t){var e=t.replace(/^\n+/,"").replace(/\n+$/,"");return this.classicBr?e:this.joinRawHtml(e).replace(/\n/g,"<br>").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(t){if(!this.removeBrAfterBlock){var e,n,r,i,a=null!==(e=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==e?e:[];a=Qi(r=lA(a).call(a,(function(t){return/[a-z-]+/gi.test(t)?t:null}))).call(r,(function(t){return null!==t}));var o=hs(a).call(a,PA).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(o,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(o,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(hs(i="<\\/(".concat(o,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(i,o,")(>| [^>]*?>)"),"ig")}return t.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"</$1>").replace(this.removeNewlinesBetweenTags,"</$1>\r$2<$3$4")}},{key:"toHtml",value:function(t,e){return t}},{key:"makeHtml",value:function(t,e){return e(t).html}},{key:"afterMakeHtml",value:function(t){return this.restoreCache(t)}},{key:"isContainsCache",value:function(t,n){if(n){var r=/^(\s*~~C\d+I\w+\$\s*)+$/g.test(t),i=new RegExp("~~C\\d+I".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(t);return r&&!i}return new RegExp("~~C\\d+I(?!".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$"),"g").test(t)}},{key:"$splitHtmlByCache",value:function(t){var n=new RegExp("\\n*~~C\\d+I(?!".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$\\n?"),"g");return{caches:t.match(n),contents:t.split(n)}}},{key:"makeExcludingCached",value:function(t,e){for(var n=this.$splitHtmlByCache(t),r=n.caches,i=n.contents,a=lA(i).call(i,e),o="",s=0;s<a.length;s++){var c;if(o+=a[s],r&&r[s])o+=mh(c=r[s]).call(c)}return o}},{key:"getCacheWithSpace",value:function(t,e){var n,r,i,a,o,s,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=null!==(n=null===(r=e.match(/^\n+/))||void 0===r?void 0:r[0])&&void 0!==n?n:"",u=null!==(i=null===(a=e.match(/\n+$/))||void 0===a?void 0:a[0])&&void 0!==i?i:"";return c?uA(e,t):hs(o=hs(s="".concat(l)).call(s,t)).call(o,u)}},{key:"getLineCount",value:function(t){var n,r,i,a=t,o=null!==(n=null===(r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.length)&&void 0!==n?n:0;o=1===o?1:0,a=a.replace(/^\n+/g,"");var s=new RegExp("\n*~~C\\d+I(?:".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),c=0;return a=a.replace(s,(function(t,e){return c+=Ff(e,10),t.replace(/^\n+/g,"")})),o+c+(a.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var a=r||this.$engine.md5(t),o=hs(e=hs(n="".concat(this.cacheKey,"I")).call(n,a,"_L")).call(e,i,"$");return this.cache[a]={content:t,key:o},o}}},{key:"popCache",value:function(t){if(this.needCache)return this.cache[t].content||""}},{key:"testHasCache",value:function(t){return!(!this.needCache||!this.cache[t])&&this.cache[t].key}},{key:"resetCache",value:function(){if(this.needCache&&Is(this.cache).length>3e3)for(var t=0,e=0,n=Is(this.cache);e<n.length;e++){var r=n[e];if((t+=1)>500)return;delete this.cache[r]}}},{key:"restoreCache",value:function(t){var n,r=this;if(!this.needCache)return t;var i=new RegExp(hs(n="".concat(this.cacheKey,"I((?:")).call(n,e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+)\\$"),"g"),a=t.replace(i,(function(t,e){return r.popCache(e.replace(/_L\d+$/,""))}));return this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=ks((function(){r.resetCache()}),1e3),a}},{key:"checkCache",value:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.md5(t),this.cache[this.sign]?hs(n=hs(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,i,"$"):this.toHtml(t,e)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(t){return!1}}])}(iA);cs(VA,"HOOK_TYPE",rA.PAR),cs(VA,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),cs(VA,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var WA=u((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),qA=Object.isExtensible,YA=u((function(){qA(1)}))||WA?function(t){return!!ft(t)&&((!WA||"ArrayBuffer"!==x(t))&&(!qA||qA(t)))}:qA,JA=!u((function(){return Object.isExtensible(Object.preventExtensions({}))})),ZA=YA,tg=JA,eg=r((function(t){var e=me.f,n=!1,r=_t("meta"),i=0,a=function(t){e(t,r,{value:{objectID:"O"+i++,weakData:{}}})},o=t.exports={enable:function(){o.enable=function(){},n=!0;var t=Yn.f,e=w([].splice),i={};i[r]=1,t(i).length&&(Yn.f=function(n){for(var i=t(n),a=0,o=i.length;a<o;a++)if(i[a]===r){e(i,a,1);break}return i},Dn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Er.f}))},fastKey:function(t,e){if(!ft(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Bt(t,r)){if(!ZA(t))return"F";if(!e)return"E";a(t)}return t[r].objectID},getWeakData:function(t,e){if(!Bt(t,r)){if(!ZA(t))return!0;if(!e)return!1;a(t)}return t[r].weakData},onFreeze:function(t){return tg&&n&&ZA(t)&&!Bt(t,r)&&a(t),t}};dn[r]=!0}));eg.enable,eg.fastKey,eg.getWeakData,eg.onFreeze;var ng=TypeError,rg=function(t,e){this.stopped=t,this.result=e},ig=rg.prototype,ag=TypeError,og=eg,sg=function(t,e,n){var r,i,a,o,s,c,l,u=n&&n.that,h=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),g=ke(e,u),p=function(t){return r&&bh(r,"normal",t),new rg(!0,t)},m=function(t){return h?(ue(t),A?g(t[0],t[1],p):g(t[0],t[1])):A?g(t,p):g(t)};if(f)r=t.iterator;else if(d)r=t;else{if(!(i=kh(t)))throw new ng(ct(t)+" is not iterable");if(Eh(i)){for(a=0,o=un(t);o>a;a++)if((s=m(t[a]))&&rt(ig,s))return s;return new rg(!1)}r=Th(t,i)}for(c=f?t.next:r.next;!(l=ht(c,r)).done;){try{s=m(l.value)}catch(t){bh(r,"throw",t)}if("object"==typeof s&&s&&rt(ig,s))return s}return new rg(!1)},cg=function(t,e){if(rt(e,t))return t;throw new ag("Incorrect invocation")},lg=me.f,ug=Mr.forEach,hg=Ir.set,fg=Ir.getterFor,dg=Ft("species"),Ag=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:ir(t,r,e[r],n);return t},gg=function(t){var e=nt(t);$t&&e&&!e[dg]&&Br(e,dg,{configurable:!0,get:function(){return this}})},pg=og.fastKey,mg=Ir.set,bg=Ir.getterFor,vg={getConstructor:function(t,e,n,r){var i=t((function(t,i){cg(t,a),mg(t,{type:e,index:Pn(null),first:void 0,last:void 0,size:0}),$t||(t.size=0),P(i)||sg(i,t[r],{that:t,AS_ENTRIES:n})})),a=i.prototype,o=bg(e),s=function(t,e,n){var r,i,a=o(t),s=c(t,e);return s?s.value=n:(a.last=s={index:i=pg(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),$t?a.size++:t.size++,"F"!==i&&(a.index[i]=s)),t},c=function(t,e){var n,r=o(t),i=pg(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return Ag(a,{clear:function(){for(var t=o(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),e=e.next;t.first=t.last=void 0,t.index=Pn(null),$t?t.size=0:this.size=0},delete:function(t){var e=this,n=o(e),r=c(e,t);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first===r&&(n.first=i),n.last===r&&(n.last=a),$t?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=o(this),r=ke(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),Ag(a,n?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),$t&&Br(a,"size",{configurable:!0,get:function(){return o(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=bg(e),a=bg(r);qa(t,e,(function(t,e){mg(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?Ya("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,Ya(void 0,!0))}),n?"entries":"values",!n,!0),gg(e)}},yg=function(t,e,n){var r,i=-1!==t.indexOf("Map"),a=-1!==t.indexOf("Weak"),o=i?"set":"add",s=j[t],c=s&&s.prototype,l={};if($t&&$(s)&&(a||c.forEach&&!u((function(){(new s).entries().next()})))){var h=(r=e((function(e,n){hg(cg(e,h),{type:t,collection:new s}),P(n)||sg(n,e[o],{that:e,AS_ENTRIES:i})}))).prototype,f=fg(t);ug(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in c)||a&&"clear"===t||Ce(h,t,(function(n,r){var i=f(this).collection;if(!e&&a&&!ft(n))return"get"===t&&void 0;var o=i[t](0===n?0:n,r);return e?this:o}))})),a||lg(h,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(e,t,i,o),og.enable();return Lr(r,t,!1,!0),l[t]=r,Dn({global:!0,forced:!0},l),a||n.setStrong(r,t,i),r},wg=vg;yg("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),wg);var kg=function(t,e){return 1===e?function(e,n){return e[t](n)}:function(e,n,r){return e[t](n,r)}},Cg=nt("Map"),xg={Map:Cg,set:kg("set",2),get:kg("get",1),has:kg("has",1),remove:kg("delete",1),proto:Cg.prototype},Eg=xg.Map,Tg=xg.has,Bg=xg.get,_g=xg.set,Sg=w([].push);Dn({target:"Map",stat:!0,forced:gt},{groupBy:function(t,e){U(t),ut(e);var n=new Eg,r=0;return sg(t,(function(t){var i=e(t,r++);Tg(n,i)?Sg(Bg(n,i),t):_g(n,i,[t])})),n}});var Lg=H.Map,Ig=Lg,Mg=function(t,e,n){return function(r){var i=yt(r),a=arguments.length,o=a>1?arguments[1]:void 0,s=void 0!==o,c=s?ke(o,a>2?arguments[2]:void 0):void 0,l=new t,u=0;return sg(i,(function(t){var r=s?c(t,u++):t;n?e(l,ue(r)[0],r[1]):e(l,r)})),l}};Dn({target:"Map",stat:!0,forced:!0},{from:Mg(xg.Map,xg.set,!0)});var Og=function(t,e,n){return function(){for(var r=new t,i=arguments.length,a=0;a<i;a++){var o=arguments[a];n?e(r,ue(o)[0],o[1]):e(r,o)}return r}};Dn({target:"Map",stat:!0,forced:!0},{of:Og(xg.Map,xg.set,!0)});var Dg=TypeError,Fg=function(t){if("object"==typeof t&&"size"in t&&"has"in t&&"get"in t&&"set"in t&&"delete"in t&&"entries"in t)return t;throw new Dg(ct(t)+" is not a map")},Ng=xg.remove;Dn({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=Fg(this),n=!0,r=0,i=arguments.length;r<i;r++)t=Ng(e,arguments[r]),n=n&&t;return!!n}});var Pg=xg.get,Rg=xg.has,Qg=xg.set;Dn({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var n,r,i=Fg(this);return Rg(i,t)?(n=Pg(i,t),"update"in e&&(n=e.update(n,t,i),Qg(i,t,n)),n):(r=e.insert(t,i),Qg(i,t,r),r)}});var Ug=function(t,e,n){for(var r,i,a=n?t:t.iterator,o=t.next;!(r=ht(o,a)).done;)if(void 0!==(i=e(r.value)))return i},$g=function(t,e,n){return n?Ug(t.entries(),(function(t){return e(t[1],t[0])}),!0):t.forEach(e)};Dn({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=Fg(this),n=ke(t,arguments.length>1?arguments[1]:void 0);return!1!==$g(e,(function(t,r){if(!n(t,r,e))return!1}),!0)}});var Hg=xg.Map,jg=xg.set;Dn({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=Fg(this),n=ke(t,arguments.length>1?arguments[1]:void 0),r=new Hg;return $g(e,(function(t,i){n(t,i,e)&&jg(r,i,t)})),r}}),Dn({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=Fg(this),n=ke(t,arguments.length>1?arguments[1]:void 0),r=$g(e,(function(t,r){if(n(t,r,e))return{value:t}}),!0);return r&&r.value}}),Dn({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=Fg(this),n=ke(t,arguments.length>1?arguments[1]:void 0),r=$g(e,(function(t,r){if(n(t,r,e))return{key:r}}),!0);return r&&r.key}});var Kg=function(t,e){return t===e||t!=t&&e!=e};Dn({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===$g(Fg(this),(function(e){if(Kg(e,t))return!0}),!0)}});var zg=xg.Map;Dn({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var n=new($(this)?this:zg);ut(e);var r=ut(n.set);return sg(t,(function(t){ht(r,n,e(t),t)})),n}}),Dn({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=$g(Fg(this),(function(e,n){if(e===t)return{key:n}}),!0);return e&&e.key}});var Gg=xg.Map,Xg=xg.set;Dn({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=Fg(this),n=ke(t,arguments.length>1?arguments[1]:void 0),r=new Gg;return $g(e,(function(t,i){Xg(r,n(t,i,e),t)})),r}});var Vg=xg.Map,Wg=xg.set;Dn({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=Fg(this),n=ke(t,arguments.length>1?arguments[1]:void 0),r=new Vg;return $g(e,(function(t,i){Wg(r,i,n(t,i,e))})),r}});var qg=xg.set;Dn({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=Fg(this),n=arguments.length,r=0;r<n;)sg(arguments[r++],(function(t,n){qg(e,t,n)}),{AS_ENTRIES:!0});return e}});var Yg=TypeError;Dn({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=Fg(this),n=arguments.length<2,r=n?void 0:arguments[1];if(ut(t),$g(e,(function(i,a){n?(n=!1,r=i):r=t(r,i,a,e)})),n)throw new Yg("Reduce of empty map with no initial value");return r}}),Dn({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=Fg(this),n=ke(t,arguments.length>1?arguments[1]:void 0);return!0===$g(e,(function(t,r){if(n(t,r,e))return!0}),!0)}});var Jg=TypeError,Zg=xg.get,tp=xg.has,ep=xg.set;Dn({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var n=Fg(this),r=arguments.length;ut(e);var i=tp(n,t);if(!i&&r<3)throw new Jg("Updating absent value");var a=i?Zg(n,t):ut(r>2?arguments[2]:void 0)(t,n);return ep(n,t,e(a,t,n)),n}});var np=TypeError,rp=function(t,e){var n,r=ue(this),i=ut(r.get),a=ut(r.has),o=ut(r.set),s=arguments.length>2?arguments[2]:void 0;if(!$(e)&&!$(s))throw new np("At least one callback required");return ht(a,r,t)?(n=ht(i,r,t),$(e)&&(n=e(n),ht(o,r,t,n))):$(s)&&(n=s(),ht(o,r,t,n)),n};Dn({target:"Map",proto:!0,real:!0,forced:!0},{upsert:rp}),Dn({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:rp});var ip=Ig;var ap=Xn;function op(){try{var t=!Boolean.prototype.valueOf.call(ap(Boolean,[],(function(){})))}catch(t){}return(op=function(){return!!t})()}function sp(t,e,n){if(op())return ap.apply(null,arguments);var r=[null];uf(r).apply(r,e);var i=new(qo(t).apply(t,r));return n&&os(i,n.prototype),i}function cp(t){var e="function"==typeof ip?new ip:void 0;return cp=function(t){if(null===t||!function(t){try{var e;return-1!==Bu(e=Function.toString.call(t)).call(e,"[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return sp(t,arguments,es(this).constructor)}return n.prototype=as(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),os(n,t)},cp(t)}function lp(t,e,n){return e=es(e),Ko(t,up()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function up(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(up=function(){return!!t})()}var hp=function(t,e){if(!sd(t)&&Ro(t)!==e.name.toLowerCase()||!sd(t)&&"array"===e.name.toLowerCase())throw new TypeError("parameter given must be ".concat(e.name));return!0},fp=function(t,e){if(!(t instanceof e))throw new Error("the hook does not correctly inherit");return!0},dp=function(t){if("object"!==Ro(t))throw new Error("the hook must be a instance, not a class");return!0},Ap=function(t){function e(t,n){var r;return ra(this,e),(r=lp(this,e,[t])).name="Error",r.stack=r.buildStackTrace(n),r}return ss(e,t),Ho(e,[{key:"buildStackTrace",value:function(t){var e,n=t&&t.stack?t.stack:"";return hs(e="".concat(this.stack,"\nCaused By: ")).call(e,n)}}])}(cp(Error));function gp(t,e,n){var r,i;if(-1===t)id.warn(hs(r=hs(i="Duplicate hook name [".concat(e.HOOK_NAME,"] found, hook [")).call(i,e.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===t){var a;id.warn(hs(a="Hook [".concat(e.toString(),"] ")).call(a,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function pp(t){return mp(t)||bp(t)}function mp(t){return Object.prototype.isPrototypeOf.call(iA,t)}function bp(t){return Object.prototype.isPrototypeOf.call(VA,t)}function vp(t){return pp(t)&&!0===(null==t?void 0:t.Cherry$$CUSTOM)}var yp=function(){return Ho((function t(e,n,r){ra(this,t),this.$locale=r.locale,this.$cherry=r,this.hookList={},this.hookNameList={},hp(e,Array),this.registerInternalHooks(e,n),this.registerCustomHooks(n.engine.customSyntax,n)}),[{key:"registerInternalHooks",value:function(t,e){var n=this;Qs(t).call(t,(function(t,r){gp(n.register(t,e),t,r)}))}},{key:"registerCustomHooks",value:function(t,e){var n=this;if(t){var r=Is(t);Qs(r).call(r,(function(r){var i,a,o,s,c={},l=t[r];if(mp(l))a=l;else{if(!mp(s=null==(o=l)?void 0:o.syntaxClass)&&!bp(s))return;a=l.syntaxClass,c.force=Boolean(l.force),l.before?c.before=l.before:l.after&&(c.after=l.after)}pp(a)?(na(a,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),i=n.register(a,e,c)):i=-2,gp(i,a,void 0)}))}}},{key:"getHookList",value:function(){return this.hookList}},{key:"getHookNameList",value:function(){return this.hookNameList}},{key:"register",value:function(t,e,n){var r,i,a=this,o=e.externals,s=e.engine,c=s.syntax,l=this.$cherry;if(pp(t)){i=t.HOOK_NAME;var u=(null==c?void 0:c[i])||{};(r=new t({externals:o,config:u,globalConfig:s.global,cherry:l})).afterInit((function(){r.setLocale(a.$locale)}))}else{if("function"!=typeof t)return-2;if(!(r=t(e))||!pp(r.constructor))return-2;i=r.getName()}if(!1!==c[i]||vp(t)){var h=r.getType();if(this.hookNameList[i]){var f;if(!vp(t))return-1;if(!n.force)return-1;var d=this.hookNameList[i].type;this.hookList[d]=Qi(f=this.hookList[d]).call(f,(function(t){return t.getName()!==i}))}if(this.hookNameList[i]={type:h},this.hookList[h]=this.hookList[h]||[],vp(t)){var A,g,p,m=-1;if(n.before){if(-1===(m=Xd(A=this.hookList[h]).call(A,(function(t){return t.getName()===n.before}))))id.warn(hs(g="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(g,i,"] will append to the end of the hooks."))}else if(n.after){var b,v;-1===(m=Xd(b=this.hookList[h]).call(b,(function(t){return t.getName()===n.after})))?id.warn(hs(v="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(v,i,"] will append to the end of the hooks.")):m+=1}if(m<0||m>=this.hookList[h].length)this.hookList[h].push(r);else eA(p=this.hookList[h]).call(p,m,0,r)}else this.hookList[h].push(r)}}}])}();function wp(t){if(void 0!==Eo&&null!=tf(t)||null!=t["@@iterator"])return yf(t)}function kp(t){return function(t){if(Yh(t))return wf(t)}(t)||wp(t)||kf(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cp(t){return Jh(t)||wp(t)||kf(t)||Cf()}function xp(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ep(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=xp(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=xp(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}function Tp(t,e,n){var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!e)return t;e.lastIndex=0;for(var o=0,s=[];null!==(r=e.exec(t));){var c={begin:r.index,length:r[0].length};if(i&&r.index===o-a){var l,u=Cp(r),h=u[0],f=Bf(u).call(u,2);s.push({begin:c.begin+a,length:c.length-a,replacedText:n.apply(void 0,hs(l=[Bf(h).call(h,a),""]).call(l,kp(f)))})}else s.push(Ep(Ep({},c),{},{replacedText:n.apply(void 0,kp(r))}));o=e.lastIndex,e.lastIndex-=a}return e.lastIndex=0,function(t,e){if(!e.length)return t;var n=[],r=0;return Qs(e).call(e,(function(i,a){n.push(Bf(t).call(t,r,i.begin)),n.push(i.replacedText),r=i.begin+i.length,a===e.length-1&&n.push(Bf(t).call(t,r))})),n.join("")}(t,s)}function Bp(t,e,n){return e=es(e),Ko(t,_p()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function _p(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(_p=function(){return!!t})()}var Sp=function(t){function e(){return ra(this,e),Bp(this,e,arguments)}return ss(e,t),Ho(e,[{key:"toHtml",value:function(t,e,n,r){var i,a;return hs(i=hs(a="".concat(e,'<span style="color:')).call(a,n,'">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(t){return bd()?t.replace(this.RULE.reg,this.toHtml):Tp(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:bd()?"((?<!\\\\))!!":"(^|[^\\\\])!!",end:"!!",content:"(#[0-9a-zA-Z]{3,6}|[a-z]{3,20})[\\s]([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(iA);function Lp(t,e,n){return e=es(e),Ko(t,Ip()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Ip(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Ip=function(){return!!t})()}cs(Sp,"HOOK_NAME","fontColor");var Mp=function(t){function e(){return ra(this,e),Lp(this,e,arguments)}return ss(e,t),Ho(e,[{key:"toHtml",value:function(t,e,n,r){var i,a;return hs(i=hs(a="".concat(e,'<span style="background-color:')).call(a,n,'">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(t){return bd()?t.replace(this.RULE.reg,this.toHtml):Tp(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:bd()?"((?<!\\\\))!!!":"(^|[^\\\\])!!!",end:"!!!",content:"(#[0-9a-zA-Z]{3,6}|[a-z]{3,10})[\\s]([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(iA);function Op(t,e,n){return e=es(e),Ko(t,Dp()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Dp(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Dp=function(){return!!t})()}cs(Mp,"HOOK_NAME","bgColor");var Fp=function(t){function e(){return ra(this,e),Op(this,e,arguments)}return ss(e,t),Ho(e,[{key:"toHtml",value:function(t,e,n,r){var i,a;return hs(i=hs(a="".concat(e,'<span style="font-size:')).call(a,n,'px;line-height:1em;">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(t){return this.test(t)?bd()?t.replace(this.RULE.reg,this.toHtml):Tp(t,this.RULE.reg,this.toHtml,!0,1):t}},{key:"rule",value:function(){var t={begin:bd()?"((?<!\\\\))!":"(^|[^\\\\])!",end:"!",content:"([0-9]{1,2})[\\s]([\\w\\W]*?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(iA);function Np(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pp(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=Np(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=Np(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}function Rp(t,e,n){return e=es(e),Ko(t,Qp()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Qp(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Qp=function(){return!!t})()}cs(Fp,"HOOK_NAME","fontSize");var Up=function(t){function e(){var t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return ra(this,e),t=Rp(this,e,[{config:n}]),n?(t.needWhitespace=!!n.needWhitespace,t):Ko(t)}return ss(e,t),Ho(e,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1<del>$2</del>"):t}},{key:"rule",value:function(){var t={};return(t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config.needWhitespace?Pp(Pp({},t),{},{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}):Pp(Pp({},t),{},{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"})).reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(iA);function $p(t,e,n){return e=es(e),Ko(t,Hp()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Hp(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Hp=function(){return!!t})()}cs(Up,"HOOK_NAME","strikethrough");var jp=function(t){function e(){return ra(this,e),$p(this,e,arguments)}return ss(e,t),Ho(e,[{key:"toHtml",value:function(t,e,n){var r;return hs(r="".concat(e,"<sup>")).call(r,n,"</sup>")}},{key:"makeHtml",value:function(t){return bd()?t.replace(this.RULE.reg,this.toHtml):Tp(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:bd()?"((?<!\\\\))\\^":"(^|[^\\\\])\\^",end:"\\^",content:"([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(iA);function Kp(t,e,n){return e=es(e),Ko(t,zp()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function zp(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(zp=function(){return!!t})()}cs(jp,"HOOK_NAME","sup");var Gp=function(t){function e(){return ra(this,e),Kp(this,e,arguments)}return ss(e,t),Ho(e,[{key:"toHtml",value:function(t,e,n){var r;return hs(r="".concat(e,"<sub>")).call(r,n,"</sub>")}},{key:"makeHtml",value:function(t){return bd()?t.replace(this.RULE.reg,this.toHtml):Tp(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:bd()?"((?<!\\\\))\\^\\^":"(^|[^\\\\])\\^\\^",end:"\\^\\^",content:"([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(iA);cs(Gp,"HOOK_NAME","sub");var Xp=r((function(t){var n=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof a?new a(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var r,a;switch(n=n||{},i.util.type(e)){case"Object":if(a=i.util.objId(e),n[a])return n[a];for(var o in r={},n[a]=r,e)e.hasOwnProperty(o)&&(r[o]=t(e[o],n));return r;case"Array":return a=i.util.objId(e),n[a]?n[a]:(r=[],n[a]=r,e.forEach((function(e,i){r[i]=t(e,n)})),r);default:return e}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var r="no-"+e;t;){var i=t.classList;if(i.contains(e))return!0;if(i.contains(r))return!1;t=t.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(t,e){var n=i.util.clone(i.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){var a=(r=r||i.languages)[t],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==e)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[t];return r[t]=o,i.languages.DFS(i.languages,(function(e,n){n===l&&e!=t&&(this[e]=o)})),o},DFS:function t(e,n,r,a){a=a||{};var o=i.util.objId;for(var s in e)if(e.hasOwnProperty(s)){n.call(e,s,e[s],r||s);var c=e[s],l=i.util.type(c);"Object"!==l||a[o(c)]?"Array"!==l||a[o(c)]||(a[o(c)]=!0,t(c,n,s,a)):(a[o(c)]=!0,t(c,n,null,a))}}},plugins:{},highlightAll:function(t,e){i.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var r={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var a,o=0;a=r.elements[o++];)i.highlightElement(a,!0===e,r.callback)},highlightElement:function(e,n,r){var a=i.util.getLanguage(e),o=i.languages[a];i.util.setLanguage(e,a);var s=e.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,a);var c={element:e,language:a,grammar:o,code:e.textContent};function l(t){c.highlightedCode=t,i.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,i.hooks.run("after-highlight",c),i.hooks.run("complete",c),r&&r.call(c.element)}if(i.hooks.run("before-sanity-check",c),(s=c.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!c.code)return i.hooks.run("complete",c),void(r&&r.call(c.element));if(i.hooks.run("before-highlight",c),c.grammar)if(n&&t.Worker){var u=new Worker(i.filename);u.onmessage=function(t){l(t.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language));else l(i.util.encode(c.code))},highlight:function(t,e,n){var r={code:t,grammar:e,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var r in n)e[r]=n[r];delete e.rest}var i=new c;return l(i,i.head,t),s(t,i,e,i.head,0),function(t){var e=[],n=t.head.next;for(;n!==t.tail;)e.push(n.value),n=n.next;return e}(i)},hooks:{all:{},add:function(t,e){var n=i.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=i.hooks.all[t];if(n&&n.length)for(var r,a=0;r=n[a++];)r(e)}},Token:a};function a(t,e,n,r){this.type=t,this.content=e,this.alias=n,this.length=0|(r||"").length}function o(t,e,n,r){t.lastIndex=e;var i=t.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(t,e,n,r,c,h){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var d=n[f];d=Array.isArray(d)?d:[d];for(var A=0;A<d.length;++A){if(h&&h.cause==f+","+A)return;var g=d[A],p=g.inside,m=!!g.lookbehind,b=!!g.greedy,v=g.alias;if(b&&!g.pattern.global){var y=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,y+"g")}for(var w=g.pattern||g,k=r.next,C=c;k!==e.tail&&!(h&&C>=h.reach);C+=k.value.length,k=k.next){var x=k.value;if(e.length>t.length)return;if(!(x instanceof a)){var E,T=1;if(b){if(!(E=o(w,C,t,m))||E.index>=t.length)break;var B=E.index,_=E.index+E[0].length,S=C;for(S+=k.value.length;B>=S;)S+=(k=k.next).value.length;if(C=S-=k.value.length,k.value instanceof a)continue;for(var L=k;L!==e.tail&&(S<_||"string"==typeof L.value);L=L.next)T++,S+=L.value.length;T--,x=t.slice(C,S),E.index-=C}else if(!(E=o(w,0,x,m)))continue;B=E.index;var I=E[0],M=x.slice(0,B),O=x.slice(B+I.length),D=C+x.length;h&&D>h.reach&&(h.reach=D);var F=k.prev;if(M&&(F=l(e,F,M),C+=M.length),u(e,F,T),k=l(e,F,new a(f,p?i.tokenize(I,p):I,v,I)),O&&l(e,k,O),T>1){var N={cause:f+","+A,reach:D};s(t,e,n,k.prev,C,N),h&&N.reach>h.reach&&(h.reach=N.reach)}}}}}}function c(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function l(t,e,n){var r=e.next,i={value:n,prev:e,next:r};return e.next=i,r.prev=i,t.length++,i}function u(t,e,n){for(var r=e.next,i=0;i<n&&r!==t.tail;i++)r=r.next;e.next=r,r.prev=e,t.length-=i}if(t.Prism=i,a.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var r="";return e.forEach((function(e){r+=t(e,n)})),r}var a={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},o=e.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run("wrap",a);var s="";for(var c in a.attributes)s+=" "+c+'="'+(a.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+s+">"+a.content+"</"+a.tag+">"},!t.document)return t.addEventListener?(i.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var n=JSON.parse(e.data),r=n.language,a=n.code,o=n.immediateClose;t.postMessage(i.highlight(a,i.languages[r],r)),o&&t.close()}),!1),i):i;var h=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(h&&(i.filename=h.src,h.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var d=document.readyState;"loading"===d||"interactive"===d&&h&&h.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=n),void 0!==e&&(e.Prism=n)}));function Vp(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wp(t,e,n){return e=es(e),Ko(t,qp()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function qp(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(qp=function(){return!!t})()}Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},function(t){var e={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",i=RegExp(r+"-"+r),a={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":e,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":a}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":a}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Prism),Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,function(t){var e={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:e,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:e.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:e,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function r(t){for(var e={},r=0,i=(t=t.split(" ")).length;r<i;r++)e[t[r]]=n[t[r]];return e}e.inside.interpreted.inside.rest=r("macro inline replacement entity"),n["passthrough-block"].inside.rest=r("macro"),n["literal-block"].inside.rest=r("callout"),n.table.inside.rest=r("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),n["other-block"].inside.rest=r("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),n.title.inside.rest=r("macro inline replacement entity"),t.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))})),t.languages.adoc=t.languages.asciidoc}(Prism),function(t){function e(t,e){return t.replace(/<<(\d+)>>/g,(function(t,n){return"(?:"+e[+n]+")"}))}function n(t,n,r){return RegExp(e(t,n),r||"")}function r(t,e){for(var n=0;n<e;n++)t=t.replace(/<<self>>/g,(function(){return"(?:"+t+")"}));return t.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",a="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function c(t){return"\\b(?:"+t.trim().replace(/ /g,"|")+")\\b"}var l=c(a),u=RegExp(c(i+" "+a+" "+o+" "+s)),h=c(a+" "+o+" "+s),f=c(i+" "+a+" "+s),d=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),A=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,p=e(/<<0>>(?:\s*<<1>>)?/.source,[g,d]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[h,p]),b=/\[\s*(?:,\s*)*\]/.source,v=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,b]),y=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,A,b]),w=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),k=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,b]),C={keyword:u,punctuation:/[<>()?,.:[\]]/},x=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,T=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,k]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,p]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,f,g]),inside:C}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[A]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,m]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,d]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(d),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,p,g,k,u.source,A,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[p,A]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(k),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var B=E+"|"+x,_=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[B]),S=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),L=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,I=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,S]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[L,I]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[L]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[S]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var M=/:[^}\r\n]+/.source,O=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),D=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[O,M]),F=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[B]),2),N=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,M]);function P(e,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,M]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:P(D,O)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:P(N,F)}],char:{pattern:RegExp(x),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(Prism),Prism.languages.aspnet=Prism.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:Prism.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:Prism.languages.csharp}}}),Prism.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,Prism.languages.insertBefore("inside","punctuation",{directive:Prism.languages.aspnet.directive},Prism.languages.aspnet.tag.inside["attr-value"]),Prism.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),Prism.languages.insertBefore("aspnet",Prism.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:Prism.languages.csharp||{}}}),Prism.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/},Prism.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},Prism.languages.gawk=Prism.languages.awk,function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=t.languages.bash[i[o]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash}(Prism),function(t){var e=/%%?[~:\w]+%?|!\S+!/,n={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},r=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:r,parameter:n,variable:e,number:i,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:r,parameter:n,variable:e,number:i,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:r,parameter:n,variable:[e,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:r,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:e,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return e.source}));t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),Prism.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/},function(t){var e,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:e={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=e,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:i})}(Prism),Prism.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/},function(t){var e=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism),function(t){function e(t,e){return"___"+t.toUpperCase()+e+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,(function(t){if("function"==typeof a&&!a(t))return t;for(var i,s=o.length;-1!==n.code.indexOf(i=e(r,s));)++s;return o[s]=t,i})),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=t.languages[r];var i=0,a=Object.keys(n.tokenStack);!function o(s){for(var c=0;c<s.length&&!(i>=a.length);c++){var l=s[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var u=a[i],h=n.tokenStack[u],f="string"==typeof l?l:l.content,d=e(r,u),A=f.indexOf(d);if(A>-1){++i;var g=f.substring(0,A),p=new t.Token(r,t.tokenize(h,n.grammar),"language-"+r,h),m=f.substring(A+d.length),b=[];g&&b.push.apply(b,o([g])),b.push(p),m&&b.push.apply(b,o([m])),"string"==typeof l?s.splice.apply(s,[c,1].concat(b)):l.content=b}}else l.content&&o(l.content)}return s}(n.tokens)}}}})}(Prism),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var e=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=t.languages["markup-templating"];t.hooks.add("before-tokenize",(function(t){n.buildPlaceholders(t,"django",e)})),t.hooks.add("after-tokenize",(function(t){n.tokenizePlaceholders(t,"django")})),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",(function(t){n.buildPlaceholders(t,"jinja2",e)})),t.hooks.add("after-tokenize",(function(t){n.tokenizePlaceholders(t,"jinja2")}))}(Prism),Prism.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},Prism.languages["dns-zone"]=Prism.languages["dns-zone-file"],function(t){var e=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,(function(){return e})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,(function(){return r})),a={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(t,e){return t=t.replace(/<OPT>/g,(function(){return i})).replace(/<SP>/g,(function(){return n})),RegExp(t,e)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[a,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker}(Prism),function(t){for(var e=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)e=e.replace(/<expr>/g,(function(){return e}));e=e.replace(/<expr>/g,/[^\s\S]/.source);var r={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,(function(){return e}))),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,(function(){return e}))),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};r.string[1].inside.interpolation.inside.rest=r,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}}},t.hooks.add("before-tokenize",(function(n){var r=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,(function(){return e})),"gi");t.languages["markup-templating"].buildPlaceholders(n,"ftl",r)})),t.hooks.add("after-tokenize",(function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"ftl")}))}(Prism),Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},Prism.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},Prism.languages.ld=Prism.languages["linker-script"],Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],Prism.languages["go-mod"]=Prism.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/},Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,Prism.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+"(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},Prism.languages.url=Prism.languages.uri,function(t){function e(t){return RegExp("(^(?:"+t+"):[ \t]*(?![ \t]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:e(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:e(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:e(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:e(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n,r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function o(t){var e=t.replace(/^[a-z]+\//,"");return"(?:"+t+"|"+("\\w+/(?:[\\w.-]+\\+)+"+e+"(?![+\\w.-])")+")"}for(var s in i)if(i[s]){n=n||{};var c=a[s]?o(s):s;n[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[s]}}n&&t.languages.insertBefore("http","header",n)}(Prism),Prism.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/},function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",(function(e){if(/<\?/.test(e.code)){t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),t.hooks.add("after-tokenize",(function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")}))}(Prism),function(t){var e=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(e,"addSupport",{value:function(e,n){"string"==typeof e&&(e=[e]),e.forEach((function(e){!function(e,n){var r="doc-comment",i=t.languages[e];if(i){var a=i[r];if(!a){var o={};o[r]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},a=(i=t.languages.insertBefore(e,"comment",o))[r]}if(a instanceof RegExp&&(a=i[r]={pattern:a}),Array.isArray(a))for(var s=0,c=a.length;s<c;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),n(a[s]);else n(a)}}(e,(function(t){t.inside||(t.inside={}),t.inside.rest=n}))}))}}),e.addSupport(["java","javascript","php"],e)}(Prism),Prism.languages.scala=Prism.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),Prism.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:Prism.languages.scala}}},string:/[\s\S]+/}}}),delete Prism.languages.scala["class-name"],delete Prism.languages.scala.function,delete Prism.languages.scala.constant,function(t){var e=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,r=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,(function(){return n}));t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+r+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:e,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:e,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(Prism),Prism.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}},function(t){var e=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+e.source+")?|"+e.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(t,e){e=(e||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return t}));return RegExp(n,e)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+i+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(t){return t=t.replace(/<inner>/g,(function(){return e})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(e){["url","bold","italic","strike","code-snippet"].forEach((function(n){e!==n&&(t.languages.markdown[e].inside.content.inside[n]=t.languages.markdown[n])}))})),t.hooks.add("after-tokenize",(function(t){"markdown"!==t.language&&"md"!==t.language||function t(e){if(e&&"string"!=typeof e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if("code"===i.type){var a=i.content[1],o=i.content[3];if(a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content){var s=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());o.alias?"string"==typeof o.alias?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}else t(i.content)}}(t.tokens)})),t.hooks.add("wrap",(function(e){if("code-block"===e.type){for(var n="",r=0,i=e.classes.length;r<i;r++){var a=e.classes[r],l=/language-(.+)/.exec(a);if(l){n=l[1];break}}var u=t.languages[n];if(u)e.content=t.highlight(function(t){var e=t.replace(o,"");return e=e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(t,e){var n;if("#"===(e=e.toLowerCase())[0])return n="x"===e[1]?parseInt(e.slice(2),16):Number(e.slice(1)),c(n);var r=s[e];return r||t})),e}(e.content),u,n);else if(n&&"none"!==n&&t.plugins.autoloader){var h="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());e.attributes.id=h,t.plugins.autoloader.loadLanguages(n,(function(){var e=document.getElementById(h);e&&(e.innerHTML=t.highlight(e.textContent,t.languages[n],n))}))}}}));var o=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(t){if("graphql"===t.language)for(var e=t.tokens.filter((function(t){return"string"!=typeof t&&"comment"!==t.type&&"scalar"!==t.type})),n=0;n<e.length;){var r=e[n++];if("keyword"===r.type&&"mutation"===r.content){var i=[];if(h(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var a=f(/^\($/,/^\)$/);if(-1===a)continue;for(;n<a;n++){var o=u(0);"variable"===o.type&&(d(o,"variable-input"),i.push(o.content))}n=a+1}if(h(["punctuation","property-query"])&&"{"===u(0).content&&(n++,d(u(0),"property-mutation"),i.length>0)){var s=f(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var l=e[c];"variable"===l.type&&i.indexOf(l.content)>=0&&d(l,"variable-input")}}}}function u(t){return e[n+t]}function h(t,e){e=e||0;for(var n=0;n<t.length;n++){var r=u(n+e);if(!r||r.type!==t[n])return!1}return!0}function f(t,r){for(var i=1,a=n;a<e.length;a++){var o=e[a],s=o.content;if("punctuation"===o.type&&"string"==typeof s)if(t.test(s))i++;else if(r.test(s)&&0===--i)return a}return-1}function d(t,e){var n=t.alias;n?Array.isArray(n)||(t.alias=n=[n]):t.alias=n=[],n.push(e)}})),Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){var e=t.languages.javascript["template-string"],n=e.pattern.source,r=e.inside.interpolation,i=r.inside["interpolation-punctuation"],a=r.pattern.source;function o(e,r){if(t.languages[e])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:e}}}}function s(t,e){return"___"+e.toUpperCase()+"_"+t+"___"}function c(e,n,r){var i={code:e,grammar:n,language:r};return t.hooks.run("before-tokenize",i),i.tokens=t.tokenize(i.code,i.grammar),t.hooks.run("after-tokenize",i),i.tokens}function l(e){var n={};n["interpolation-punctuation"]=i;var a=t.tokenize(e,n);if(3===a.length){var o=[1,1];o.push.apply(o,c(a[1],t.languages.javascript,"javascript")),a.splice.apply(a,o)}return new t.Token("interpolation",a,r.alias,e)}function u(e,n,r){var i=t.tokenize(e,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),o=0,u={},h=i.map((function(t){if("string"==typeof t)return t;for(var n,i=t.content;-1!==e.indexOf(n=s(o++,r)););return u[n]=i,n})).join(""),f=c(h,n,r),d=Object.keys(u);return o=0,function t(e){for(var n=0;n<e.length;n++){if(o>=d.length)return;var r=e[n];if("string"==typeof r||"string"==typeof r.content){var i=d[o],a="string"==typeof r?r:r.content,s=a.indexOf(i);if(-1!==s){++o;var c=a.substring(0,s),h=l(u[i]),f=a.substring(s+i.length),A=[];if(c&&A.push(c),A.push(h),f){var g=[f];t(g),A.push.apply(A,g)}"string"==typeof r?(e.splice.apply(e,[n,1].concat(A)),n+=A.length-1):r.content=A}}else{var p=r.content;Array.isArray(p)?t(p):t([p])}}}(f),new t.Token(r,f,"language-"+r,e)}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),e].filter(Boolean);var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function f(t){return"string"==typeof t?t:Array.isArray(t)?t.map(f).join(""):f(t.content)}t.hooks.add("after-tokenize",(function(e){e.language in h&&function e(n){for(var r=0,i=n.length;r<i;r++){var a=n[r];if("string"!=typeof a){var o=a.content;if(Array.isArray(o))if("template-string"===a.type){var s=o[1];if(3===o.length&&"string"!=typeof s&&"embedded-code"===s.type){var c=f(s),l=s.alias,h=Array.isArray(l)?l[0]:l,d=t.languages[h];if(!d)continue;o[1]=u(c,d,h)}}else e(o);else"string"!=typeof o&&e([o])}}}(e.tokens)}))}(Prism),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),function(t){var e=t.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:e,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:e.string,number:e.number,boolean:e.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:e,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(Prism),function(t){function e(t,e){return RegExp(t.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),e)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),t.languages.insertBefore("javascript","keyword",{imports:{pattern:e(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:e(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:e(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var i=n[r],a=t.languages.javascript[i];"RegExp"===t.util.type(a)&&(a=t.languages.javascript[i]={pattern:a});var o=a.inside||{};a.inside=o,o["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Prism),function(t){var e=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;t.languages.json5=t.languages.extend("json",{property:[{pattern:RegExp(e.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:e,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Prism),Prism.languages.jsonp=Prism.languages.extend("json",{punctuation:/[{}[\]();,.]/}),Prism.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/}),Prism.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}},function(t){var e=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:e,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:e,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex}(Prism),Prism.languages.less=Prism.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),Prism.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},Prism.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/},Prism.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/},function(t){var e=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],n="(?:"+(e=e.map((function(t){return t.replace("$","\\$")}))).join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"].join("|")+")\\b"),alias:"keyword"}})}(Prism),Prism.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/},function(t){var e=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:e}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:e}},punctuation:/[{};]/}}(Prism),Prism.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}},Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,function(t){var e=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,e].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,e].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,e+/\s*/.source+e].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(Prism),function(t){var e=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+e+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+e),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(Prism),Prism.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}}),function(t){var e=/\$\w+|%[a-z]+%/,n=/\[[^[\]]*\]/.source,r=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,i="(?:-+"+r+"-+|\\.+"+r+"\\.+|-+(?:"+n+"-*)?|"+n+"-+|\\.+(?:"+n+"\\.*)?|"+n+"\\.+)",a=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,o=/[[?]?[ox]?/.source+"(?:"+i+a+"|"+/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source+i+"(?:"+a+")?)"+/[ox]?[\]?]?/.source;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:e}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+o+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:e,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]}(Prism),Prism.languages.plsql=Prism.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),Prism.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}}),function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}}(Prism),Prism.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(t,e){return t=t.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(t,e)}i=a(i).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(t){return t?"string"==typeof t?t:"string"==typeof t.content?t.content:t.content.map(o).join(""):""},s=function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r],a=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var c=o(i);r<e.length-1&&("string"==typeof e[r+1]||"plain-text"===e[r+1].type)&&(c+=o(e[r+1]),e.splice(r+1,1)),r>0&&("string"==typeof e[r-1]||"plain-text"===e[r-1].type)&&(c=o(e[r-1])+c,e.splice(r-1,1),r--),e[r]=new t.Token("plain-text",c,null,c)}i.content&&"string"!=typeof i.content&&s(i.content)}};t.hooks.add("after-tokenize",(function(t){"jsx"!==t.language&&"tsx"!==t.language||s(t.tokens)}))}(Prism),function(t){var e=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",e),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var n=t.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var e={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:e,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(Prism),function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,(function(){return e}));e=e.replace(/<self>/g,(function(){return/[^\s\S]/.source})),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(t){var e=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,r={pattern:RegExp(e+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},a={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},s=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(e),greedy:!0},l=/[$%@.(){}\[\];,\\]/,u={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:u,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":r,punctuation:l,string:c},f={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},d={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},A={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},g={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},p=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,m={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,(function(){return p})),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,(function(){return p})),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:s,function:u,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:n,"numeric-constant":r,punctuation:l,string:c}},b={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,(function(){return e})),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":A,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,(function(){return e})),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:b,"submit-statement":g,"global-statements":A,number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,(function(){return e})),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:b,"submit-statement":g,"global-statements":A,number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":m,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:o,keyword:b,function:u,format:f,altformat:d,"global-statements":A,number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,(function(){return e})),"im"),lookbehind:!0,inside:h},"macro-keyword":a,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":a,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:l}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:s,number:n,"numeric-constant":r}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":m,comment:s,function:u,format:f,altformat:d,"numeric-constant":r,datetime:{pattern:RegExp(e+"(?:dt?|t)"),alias:"number"},string:c,step:o,keyword:b,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:l}}(Prism),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var e=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:e,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:e,operator:n,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism),Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss,function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(t){for(var e in t)t[e]=t[e].replace(/<[\w\s]+>/g,(function(e){return"(?:"+t[e].trim()+")"}));return t[e]}({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(Prism),function(t){var e=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,(function(){return e})),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(Prism),Prism.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/},Prism.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/},Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(t){t.inside.interpolation.inside=Prism.languages.swift})),function(t){var e={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:e,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+/[^\s\\]/.source+'|[ \t]+(?:(?![ \t"])|'+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:e,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}(Prism),function(t){var e=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function r(t,r){return RegExp(t.replace(/<MOD>/g,(function(){return"(?:"+e+")"})).replace(/<PAR>/g,(function(){return"(?:"+n+")"})),r||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},a=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:r(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:r(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:r(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:r(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:r(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:r(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:r(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:r(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:r(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:r(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:r(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:r(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:r(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:r(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:r(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:r(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:r(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:r(/(^")<MOD>+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:r(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:r(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:r(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=a.phrase.inside,s={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};a.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=o.inline.inside;c.bold.inside=s,c.italic.inside=s,c.inserted.inside=s,c.deleted.inside=s,c.span.inside=s;var l=o.table.inside;l.inline=s.inline,l.link=s.link,l.image=s.image,l.footnote=s.footnote,l.acronym=s.acronym,l.mark=s.mark}(Prism),Prism.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/},Prism.languages.vbnet=Prism.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/}),Prism.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/},Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/},Prism.languages.wiki=Prism.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:Prism.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),Prism.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:Prism.languages.markup.tag.inside}}}}),function(t){function e(e,n){t.languages[e]&&t.languages.insertBefore(e,"comment",{"doc-comment":n})}var n=t.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}};e("csharp",r),e("fsharp",r),e("vbnet",i)}(Prism),function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach((function(n){var r=e[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})}(Prism),Prism.languages.glsl=Prism.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/}),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var e=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,i=e.length;r<i;r++){var a=e[r];a="string"==typeof a?{filter:a,language:a}:a,t.languages[a.language]&&(n["filter-"+a.filter]={pattern:RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}",(function(){return a.filter}))),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[a.language,"language-"+a.language],inside:t.languages[a.language]}}})}t.languages.insertBefore("haml","filter",n)}(Prism),Prism.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},Prism.languages.pascal.asm.inside=Prism.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),Prism.languages.objectpascal=Prism.languages.pascal,function(t){var e=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:e}},builtin:e,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(Prism),Xp.manual=!0;var Yp={figure:"figure"},Jp=function(t){function e(t){var n;t.externals;var r,i=t.config;(ra(this,e),n=Wp(this,e,[{needCache:!0}]),e.inlineCodeCache={},n.codeCache={},n.customLang=[],n.customParser={},n.lineNumber=i.lineNumber,n.copyCode=i.copyCode,n.expandCode=i.expandCode,n.editCode=i.editCode,n.changeLang=i.changeLang,n.selfClosing=i.selfClosing,n.mermaid=i.mermaid,n.indentedCodeBlock=void 0===i.indentedCodeBlock||i.indentedCodeBlock,n.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,i&&i.customRenderer)&&(n.customLang=lA(r=Is(i.customRenderer)).call(r,(function(t){return t.toLowerCase()})),n.customParser=function(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=Vp(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=Vp(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}({},i.customRenderer));return n.customHighlighter=i.highlighter,n}return ss(e,t),Ho(e,[{key:"$codeCache",value:function(t,e){return t&&e&&(this.codeCache[t]=e),this.codeCache[t]?this.codeCache[t]:(this.codeCache.length>40&&(this.codeCache.length=0),!1)}},{key:"parseCustomLanguage",value:function(t,e,n){var r,i,a,o,s,c=this.customParser[t];if(!c||"function"!=typeof c.render)return!1;var l=c.render(e,n.sign,this.$engine,this.mermaid);if(!l)return!1;var u=Yp[c.constructor.TYPE]||"div";return hs(r=hs(i=hs(a=hs(o=hs(s="<".concat(u,' data-sign="')).call(s,n.sign,'" data-type="')).call(o,t,'" data-lines="')).call(a,n.lines,'">')).call(i,l,"</")).call(r,u,">")}},{key:"fillTag",value:function(t){var e=[];return lA(t).call(t,(function(t){if(!t)return"";for(var n=t;e.length;){var r,i=e.pop();n=hs(r="".concat(i)).call(r,n)}var a=n.match(/<span class="(.+?)">|<\/span>/g),o=0;if(!a)return n;for(;a.length;){var s=a.pop();/<\/span>/.test(s)?o+=1:o?o-=1:e.unshift(s.match(/<span class="(.+?)">/)[0])}for(var c=0;c<e.length;c++)n="".concat(n,"</span>");return n}))}},{key:"renderLineNumber",value:function(t){if(!this.lineNumber)return t;var e=t.split("\n");return e.pop(),e=this.fillTag(e),'<span class="code-line">'.concat(e.join('</span>\n<span class="code-line">'),"</span>")}},{key:"isInternalCustomLangCovered",value:function(t){var e;return-1!==Ef(e=this.customLang).call(e,t)}},{key:"computeLines",value:function(t,e,n){var r=e,i=this.getLineCount(t,r);return{sign:this.$engine.md5(t.replace(/^\n+/,"")+i),lines:i}}},{key:"appendMermaid",value:function(t,e){var n=t,r=e;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var i,a=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=hs(i="graph ".concat(a[1]||"TD","\n")).call(i,n),r="mermaid"}return/^seq$/i.test(r)&&!this.isInternalCustomLangCovered(r)&&(n="sequenceDiagram\n".concat(n),r="mermaid"),"mermaid"===r&&(n=n.replace(/(^[\s]*)stateDiagram-v2\n/,"$1stateDiagram\n")),[n,r]}},{key:"wrapCode",value:function(t,e){var n;return hs(n='<code class="language-'.concat(e,'">')).call(n,t,"</code>")}},{key:"renderCodeBlock",value:function(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A=t,g=e.toLowerCase();this.customHighlighter?A=this.customHighlighter(A,g):(g&&Xp.languages[g]||(g="javascript"),A=Xp.highlight(A,Xp.languages[g],g),A=this.renderLineNumber(A));var p=this.expandCode&&(null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)>10;return A=hs(a=hs(o=hs(s=hs(c=hs(l=hs(u=hs(h=hs(f=hs(d='<div\n data-sign="'.concat(n,'"\n data-type="codeBlock"\n data-lines="')).call(d,r,'" \n data-edit-code="')).call(f,this.editCode,'" \n data-copy-code="')).call(h,this.copyCode,'"\n data-expand-code="')).call(u,this.expandCode,'"\n data-change-lang="')).call(l,this.changeLang,'"\n data-lang="')).call(c,e,'"\n style="position:relative"\n class="')).call(s,p?"cherry-code-unExpand":"cherry-code-expand",'"\n >\n <pre class="language-')).call(o,g,'">')).call(a,this.wrapCode(A,g),"</pre>\n "),p&&(A+='<div class="cherry-mask-code-block">\n <div class="expand-btn ">\n <i class="ch-icon ch-icon-expand"></i>\n </div>\n </div>'),A+="</div>"}},{key:"$getIndentedCodeReg",value:function(){return new RegExp("(?:^|\\n\\s*\\n)(?: {4}|\\t)"+"([\\s\\S]+?)"+"(?=$|\\n( {0,3}[^ \\t\\n]|\\n[^ \\t\\n]))","g")}},{key:"$getIndentCodeBlock",value:function(t){var e=this;return this.indentedCodeBlock?this.$recoverCodeInIndent(t).replace(this.$getIndentedCodeReg(),(function(t,n){var r,i,a=(t.match(/\n/g)||[]).length,o=e.$engine.md5(t),s=hs(r=hs(i='<pre data-sign="'.concat(o,'" data-lines="')).call(i,a,'"><code>')).call(r,UA(n.replace(/\n( {4}|\t)/g,"\n")),"</code></pre>");return uA(t,e.pushCache(s,o,a))})):t}},{key:"$replaceCodeInIndent",value:function(t){return this.indentedCodeBlock?t.replace(this.$getIndentedCodeReg(),(function(t){return t.replace(/`/g,"~~~IndentCode")})):t}},{key:"$recoverCodeInIndent",value:function(t){return this.indentedCodeBlock?t.replace(this.$getIndentedCodeReg(),(function(t){return t.replace(/~~~IndentCode/g,"`")})):t}},{key:"$dealUnclosingCode",value:function(t){var e=t.match(/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)(?=$|\n)/g);if(!e||e.length<=0)return t;var n=!1,r=Qi(e).call(e,(function(t){return!1===n?(n=!0,!0):!/```[^`\s]+/.test(t)&&(n=!1,!0)}));if(r.length%2==1){var i,a=r[r.length-1].replace(/(`)[^`]+$/,"$1").replace(/\n+/,""),o=t.replace(/\n+$/,"").replace(/\n`{1,2}$/,"");return hs(i="".concat(o,"\n")).call(i,a,"\n")}return t}},{key:"beforeMakeHtml",value:function(t,e,n){var r=this,i=t;return(this.selfClosing||this.$engine.$cherry.options.engine.global.flowSessionContext)&&(i=this.$dealUnclosingCode(i)),i=(i=this.$replaceCodeInIndent(i)).replace(this.RULE.reg,(function(t,e,n,i,a,o){var s,c,l;function u(t){if(n){var e=new RegExp("^\n*",""),r=t.match(e)[0];t=r+n+t.replace(e,(function(t){return""}))}return t}var h=o,f=r.computeLines(t,e,o),d=f.sign,A=f.lines,g=r.$codeCache(d);if(g&&""!==g)return u(r.getCacheWithSpace(r.pushCache(g,d,A),t));h=(h=(h=r.$recoverCodeInIndent(h)).replace(/~D/g,"$")).replace(/~T/g,"~");var p=null!==(s=null==e||null===(c=e.match(/[ ]/g))||void 0===c?void 0:c.length)&&void 0!==s?s:0;if(p>0){var m=new RegExp("(^|\\n)[ ]{1,".concat(p,"}"),"g");h=h.replace(m,"$1")}if(n){var b=new RegExp("(^|\\n)".concat(n),"g");h=h.replace(b,"$1")}var v=mh(a).call(a);if(/^(math|katex|latex)$/i.test(v)&&!r.isInternalCustomLangCovered(v)){var y,w=t.match(/^\s*/g);return hs(y="".concat(w,"~D~D\n")).call(y,h,"~D~D")}var k=xf(r.appendMermaid(h,v),2);return h=k[0],v=k[1],-1!==Ef(l=r.customLang).call(l,v.toLowerCase())&&(g=r.parseCustomLanguage(v,h,{lines:A,sign:d}))&&""!==g?(r.$codeCache(d,g),r.getCacheWithSpace(r.pushCache(g,d,A),t)):(h=h.replace(/~X/g,"\\`"),g=(g=r.renderCodeBlock(h,v,d,A)).replace(/\\/g,"\\\\"),g=r.$codeCache(d,g),u(r.getCacheWithSpace(r.pushCache(g,d,A),t)))})),i=i.replace(Ld(!0),(function(t){var e;return lA(e=t.split("|")).call(e,(function(t){return r.makeInlineCode(t)})).join("|").replace(/`/g,"\\`")})),i=this.makeInlineCode(i),i=this.$getIndentCodeBlock(i)}},{key:"makeInlineCode",value:function(t){var n=this,r=t;return this.INLINE_CODE_REGEX.test(r)&&(r=(r=r.replace(/\\`/g,"~~not~inlineCode")).replace(this.INLINE_CODE_REGEX,(function(t,r,i){if("`"===mh(i).call(i))return t;var a=i.replace(/~~not~inlineCode/g,"\\`");a=(a=n.$replaceSpecialChar(a)).replace(/\\/g,"\\\\");var o="<code>".concat(UA(a),"</code>"),s=n.$engine.md5(o);return e.inlineCodeCache[s]=o,"~~CODE".concat(s,"$")})),r=r.replace(/~~not~inlineCode/g,"\\`")),r}},{key:"makeHtml",value:function(t){return t}},{key:"$replaceSpecialChar",value:function(t){var e=t.replace(/~Q/g,"\\~");return e=(e=(e=(e=e.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return Id()}},{key:"mounted",value:function(t){}}])}(VA);function Zp(t,e,n){return e=es(e),Ko(t,tm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function tm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(tm=function(){return!!t})()}cs(Jp,"HOOK_NAME","codeBlock"),cs(Jp,"inlineCodeCache",{});var em=function(t){function e(){return ra(this,e),Zp(this,e,arguments)}return ss(e,t),Ho(e,[{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){var e=t;return Is(Jp.inlineCodeCache).length>0&&(e=e.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(t,e){return Jp.inlineCodeCache[e]}))),e}},{key:"$cleanCache",value:function(){Jp.inlineCodeCache={}}},{key:"rule",value:function(){var t={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return t.reg=md(t,"g"),t}}])}(VA);cs(em,"HOOK_NAME","inlineCode");var nm=r((function(t){!function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],n=0,r=0;n<t.length;n++,r+=8)e[r>>>5]|=t[n]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},bytesToHex:function(t){for(var e=[],n=0;n<t.length;n++)e.push((t[n]>>>4).toString(16)),e.push((15&t[n]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(parseInt(t.substr(n,2),16));return e},bytesToBase64:function(t){for(var n=[],r=0;r<t.length;r+=3)for(var i=t[r]<<16|t[r+1]<<8|t[r+2],a=0;a<4;a++)8*r+6*a<=8*t.length?n.push(e.charAt(i>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r<t.length;i=++r%4)0!=i&&n.push((e.indexOf(t.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|e.indexOf(t.charAt(r))>>>6-2*i);return n}};t.exports=n}()})),rm={utf8:{stringToBytes:function(t){return rm.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(rm.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}},im=rm,am=function(t){return null!=t&&(om(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&om(t.slice(0,0))}(t)||!!t._isBuffer)};function om(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var sm=r((function(t){!function(){var e=nm,n=im.utf8,r=am,i=im.bin,a=function(t,o){t.constructor==String?t=o&&"binary"===o.encoding?i.stringToBytes(t):n.stringToBytes(t):r(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var s=e.bytesToWords(t),c=8*t.length,l=1732584193,u=-271733879,h=-1732584194,f=271733878,d=0;d<s.length;d++)s[d]=16711935&(s[d]<<8|s[d]>>>24)|4278255360&(s[d]<<24|s[d]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var A=a._ff,g=a._gg,p=a._hh,m=a._ii;for(d=0;d<s.length;d+=16){var b=l,v=u,y=h,w=f;l=A(l,u,h,f,s[d+0],7,-680876936),f=A(f,l,u,h,s[d+1],12,-389564586),h=A(h,f,l,u,s[d+2],17,606105819),u=A(u,h,f,l,s[d+3],22,-1044525330),l=A(l,u,h,f,s[d+4],7,-176418897),f=A(f,l,u,h,s[d+5],12,1200080426),h=A(h,f,l,u,s[d+6],17,-1473231341),u=A(u,h,f,l,s[d+7],22,-45705983),l=A(l,u,h,f,s[d+8],7,1770035416),f=A(f,l,u,h,s[d+9],12,-1958414417),h=A(h,f,l,u,s[d+10],17,-42063),u=A(u,h,f,l,s[d+11],22,-1990404162),l=A(l,u,h,f,s[d+12],7,1804603682),f=A(f,l,u,h,s[d+13],12,-40341101),h=A(h,f,l,u,s[d+14],17,-1502002290),l=g(l,u=A(u,h,f,l,s[d+15],22,1236535329),h,f,s[d+1],5,-165796510),f=g(f,l,u,h,s[d+6],9,-1069501632),h=g(h,f,l,u,s[d+11],14,643717713),u=g(u,h,f,l,s[d+0],20,-373897302),l=g(l,u,h,f,s[d+5],5,-701558691),f=g(f,l,u,h,s[d+10],9,38016083),h=g(h,f,l,u,s[d+15],14,-660478335),u=g(u,h,f,l,s[d+4],20,-405537848),l=g(l,u,h,f,s[d+9],5,568446438),f=g(f,l,u,h,s[d+14],9,-1019803690),h=g(h,f,l,u,s[d+3],14,-187363961),u=g(u,h,f,l,s[d+8],20,1163531501),l=g(l,u,h,f,s[d+13],5,-1444681467),f=g(f,l,u,h,s[d+2],9,-51403784),h=g(h,f,l,u,s[d+7],14,1735328473),l=p(l,u=g(u,h,f,l,s[d+12],20,-1926607734),h,f,s[d+5],4,-378558),f=p(f,l,u,h,s[d+8],11,-2022574463),h=p(h,f,l,u,s[d+11],16,1839030562),u=p(u,h,f,l,s[d+14],23,-35309556),l=p(l,u,h,f,s[d+1],4,-1530992060),f=p(f,l,u,h,s[d+4],11,1272893353),h=p(h,f,l,u,s[d+7],16,-155497632),u=p(u,h,f,l,s[d+10],23,-1094730640),l=p(l,u,h,f,s[d+13],4,681279174),f=p(f,l,u,h,s[d+0],11,-358537222),h=p(h,f,l,u,s[d+3],16,-722521979),u=p(u,h,f,l,s[d+6],23,76029189),l=p(l,u,h,f,s[d+9],4,-640364487),f=p(f,l,u,h,s[d+12],11,-421815835),h=p(h,f,l,u,s[d+15],16,530742520),l=m(l,u=p(u,h,f,l,s[d+2],23,-995338651),h,f,s[d+0],6,-198630844),f=m(f,l,u,h,s[d+7],10,1126891415),h=m(h,f,l,u,s[d+14],15,-1416354905),u=m(u,h,f,l,s[d+5],21,-57434055),l=m(l,u,h,f,s[d+12],6,1700485571),f=m(f,l,u,h,s[d+3],10,-1894986606),h=m(h,f,l,u,s[d+10],15,-1051523),u=m(u,h,f,l,s[d+1],21,-2054922799),l=m(l,u,h,f,s[d+8],6,1873313359),f=m(f,l,u,h,s[d+15],10,-30611744),h=m(h,f,l,u,s[d+6],15,-1560198380),u=m(u,h,f,l,s[d+13],21,1309151649),l=m(l,u,h,f,s[d+4],6,-145523070),f=m(f,l,u,h,s[d+11],10,-1120210379),h=m(h,f,l,u,s[d+2],15,718787259),u=m(u,h,f,l,s[d+9],21,-343485551),l=l+b>>>0,u=u+v>>>0,h=h+y>>>0,f=f+w>>>0}return e.endian([l,u,h,f])};a._ff=function(t,e,n,r,i,a,o){var s=t+(e&n|~e&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._gg=function(t,e,n,r,i,a,o){var s=t+(e&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._hh=function(t,e,n,r,i,a,o){var s=t+(e^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._ii=function(t,e,n,r,i,a,o){var s=t+(n^(e|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,n){if(null==t)throw new Error("Illegal argument "+t);var r=e.wordsToBytes(a(t,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):e.bytesToHex(r)}}()})),cm={},lm=/^cherry-inner:\/\/([0-9a-f]+)$/i;function um(t){return function(e,n){if(hm.isInnerLink(e)){var r=t(hm.get(e),n);return hm.replace(e,r)}return t(e,n)}}var hm=function(){function t(){ra(this,t)}return Ho(t,null,[{key:"isInnerLink",value:function(t){return lm.test(t)}},{key:"set",value:function(t){var e=sm(t);return cm[e]=t,"cherry-inner://".concat(e)}},{key:"get",value:function(t){var e,n=xf(null!==(e=t.match(lm))&&void 0!==e?e:[],2)[1];if(n)return cm[n]}},{key:"replace",value:function(t,e){var n,r=xf(null!==(n=t.match(lm))&&void 0!==n?n:[],2)[1];if(r)return cm[r]=e,t}},{key:"restoreAll",value:function(e){var n=e.replace(/cherry-inner:\/\/([0-9a-f]+)/gi,(function(e){return t.get(e)||e}));return n}},{key:"clear",value:function(){cm={}}}])}();function fm(t,e,n){return e=es(e),Ko(t,dm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function dm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(dm=function(){return!!t})()}var Am=function(t){function e(t){var n,r=t.config;return t.globalConfig,ra(this,e),(n=fm(this,e,[{config:r}])).target=r.target?'target="'.concat(r.target,'"'):r.openNewPage?'target="_blank"':"",n.rel=r.rel?'rel="'.concat(r.rel,'"'):"",n}return ss(e,t),Ho(e,[{key:"checkBrackets",value:function(t){for(var e=[],n="[".concat(t,"]"),r=function(t){return 1&Bf(n).call(n,0,t).match(/\\*$/)[0].length},i=n.length-1;n[i]&&(i!==n.length-1||!r(i));i--)if("]"!==n[i]||r(i)||e.push("]"),"["===n[i]&&!r(i)&&(e.pop(),!e.length))return{isValid:!0,coreText:Bf(n).call(n,i+1,n.length-1),extraLeadingChar:Bf(n).call(n,0,i)};return{isValid:!1,coreText:t,extraLeadingChar:""}}},{key:"toHtml",value:function(t,e,n,r,i,a,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return t;if("url"===s){var l,u=this.checkBrackets(n),h=u.isValid,f=u.coreText,d=u.extraLeadingChar;if(!h)return t;c=i&&""!==mh(i).call(i)?' title="'.concat(UA(i.replace(/["']/g,"")),'"'):"",o?c+=' target="'.concat(o.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(c+=" ".concat(this.target));var A,g,p,m,b=mh(r).call(r).replace(/~1D/g,"~D"),v=f.replace(/~1D/g,"~D");return jA(b)?(b=KA(b=this.$engine.$cherry.options.callback.urlProcessor(b,"link")),hs(A=hs(g=hs(p=hs(m="".concat(e+d,'<a href="')).call(m,hm.set(b),'" ')).call(p,this.rel," ")).call(g,c,">")).call(A,v,"</a>")):hs(l="".concat(e+d,"<span>")).call(l,n,"</span>")}return t}},{key:"toStdMarkdown",value:function(t){return t}},{key:"makeHtml",value:function(t){var e,n,r=t.replace(this.RULE.reg,(function(t){return t.replace(/~D/g,"~1D")}));bd()?r=r.replace(this.RULE.reg,fs(e=this.toHtml).call(e,this)):r=Tp(r,this.RULE.reg,fs(n=this.toHtml).call(n,this),!0,1);return r=r.replace(this.RULE.reg,(function(t){return t.replace(/~1D/g,"~D")})),r}},{key:"rule",value:function(){var t,e={begin:bd()?"((?<!\\\\))":"(^|[^\\\\])",content:["\\[([^\\n]*?)\\]","[ \\t]*",hs(t="".concat("(?:\\(((?:[^\\s()]*\\([^\\s()]*\\)[^\\s()]*)+|[^\\s)]+)(?:[ \\t]((?:\".*?\")|(?:'.*?')))?\\)|\\[(")).call(t,yd,")\\]")+")","(\\{target\\s*=\\s*(_blank|_parent|_self|_top)\\})?"].join(""),end:""};return e.reg=md(e,"g"),e}}])}(iA);function gm(t,e,n){return e=es(e),Ko(t,pm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function pm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(pm=function(){return!!t})()}cs(Am,"HOOK_NAME","link");var mm=function(t){function e(){var t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return ra(this,e),t=gm(this,e,[{config:n}]),n?(t.allowWhitespace=!!n.allowWhitespace,t):Ko(t)}return ss(e,t),Ho(e,[{key:"makeHtml",value:function(t,e){var n=function(t,n,r,i){var a,o,s,c=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),u=Rf("<strong>").call("<strong>",l),h=Rf("</strong>").call("</strong>",l);return"em"===c&&(u+="<em>",h="</em>".concat(h)),hs(a=hs(o=hs(s="".concat(n)).call(s,u)).call(o,e(i).html.replace(/_/g,"~U"))).call(a,h)},r=t;return r=(r=this.allowWhitespace?(r=(r=r.replace(/(^|\n[\s]*)(\*)([^\s*](?:.*?)(?:(?:\n.*?)*?))\*/g,n)).replace(/(^|\n[\s]*)(\*{2,})((?:.*?)(?:(?:\n.*?)*?))\2/g,n)).replace(/([^\n*\\\s][ ]*)(\*+)((?:.*?)(?:(?:\n.*?)*?))\2/g,n):r.replace(this.RULE.asterisk.reg,n)).replace(this.RULE.underscore.reg,(function(t,n,r,i,a,o){var s,c,l;if(""===mh(i).call(i))return t;var u=r.length%2==1?"em":"strong",h=Math.floor(r.length/2),f=Rf("<strong>").call("<strong>",h),d=Rf("</strong>").call("</strong>",h),A=e(i).html;return"em"===u&&(f+="<em>",d="</em>".concat(d)),hs(s=hs(c=hs(l="".concat(n)).call(l,f)).call(c,A)).call(s,d)})),r.replace(/~U/g,"_")}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config,e=!!t&&!!t.allowWhitespace,n=function(t,e){var n,r,i,a="[^".concat(e,"\\s]");return t?"(?:.*?)(?:(?:\\n.*?)*?)":hs(n=hs(r=hs(i="(".concat(a,"|")).call(i,a,"(.*?(\n")).call(r,a,".*)*)")).call(n,a,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(e,"*"),")"),end:"\\2"},i={begin:"(^|".concat(kd,")(_+)"),content:"(".concat(n(e,"_"),")"),end:"\\2(?=".concat(kd,"|$)")};return r.reg=md(r,"g"),i.reg=md(i,"g"),{asterisk:r,underscore:i}}}])}(iA);function bm(t,e,n){return e=es(e),Ko(t,vm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function vm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(vm=function(){return!!t})()}cs(mm,"HOOK_NAME","fontEmphasis");var ym=function(t){function e(t){var n;return ra(this,e),(n=bm(this,e)).initBrReg(t.globalConfig.classicBr),n}return ss(e,t),Ho(e,[{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,r,i){var a;if(n.isContainsCache(t,!0))return t;var o,s=function(t){var r,i,a,o,s,c;if(""===mh(t).call(t))return"";var l=e(t),u=l.sign,h=l.html,f="p";new RegExp("<(".concat(PA,")[^>]*>"),"i").test(h)&&(f="div");var d=n.getLineCount(t,t);return hs(r=hs(i=hs(a=hs(o=hs(s=hs(c="<".concat(f,' data-sign="')).call(c,u)).call(s,d,'" data-type="')).call(o,f,'" data-lines="')).call(a,d,'">')).call(i,n.$cleanParagraph(h),"</")).call(r,f,">")};return n.isContainsCache(i)?n.makeExcludingCached(hs(o="".concat(r)).call(o,i),s):s(hs(a="".concat(r)).call(a,i))})):t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",end:"(?=\\s*$|\\n\\n)",content:"([\\s\\S]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(VA);cs(ym,"HOOK_NAME","normalParagraph");var wm=function(t){return void 0!==t&&(Bt(t,"value")||Bt(t,"writable"))};Dn({target:"Reflect",stat:!0},{get:function t(e,n){var r,i,a=arguments.length<3?e:arguments[2];return ue(e)===a?e[n]:(r=ye.f(e,n))?wm(r)?r.value:void 0===r.get?void 0:ht(r.get,a):ft(i=Ea(e))?t(i,n,a):void 0}});var km=H.Reflect.get,Cm=ji;function xm(){var t;return xm="undefined"!=typeof Reflect&&km?qo(t=km).call(t):function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=es(t)););return t}(t,e);if(r){var i=Cm(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},xm.apply(null,arguments)}function Em(t,e,n){return e=es(e),Ko(t,Tm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Tm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Tm=function(){return!!t})()}var Bm="atx",_m="setext",Sm=/[\s\-_]/,Lm=/[A-Za-z]/,Im=/[0-9]/,Mm=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0};n.externals;var r=n.config;return ra(this,e),(t=Em(this,e,[{needCache:!0}])).strict=!r||!!r.strict,t.RULE=t.rule(),t.headerIDCache=[],t.headerIDCounter={},t.config=r||{},t}return ss(e,t),Ho(e,[{key:"$parseTitleText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof t?"":t.replace(/<.*?>/g,"").replace(/&#60;/g,"<").replace(/&#62;/g,">")}},{key:"$generateId",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.length,r="",i=0;i<n;i++){var a=t.charAt(i);if(Lm.test(a))r+=e?a.toLowerCase():a;else if(Im.test(a))r+=a;else if(Sm.test(a))r+=r.length<1||"-"!==r.charAt(r.length-1)?"-":"";else if(a.charCodeAt(0)>255)try{r+=encodeURIComponent(a)}catch(t){}}return r}},{key:"generateIDNoDup",value:function(t){var e,n=t.replace(/&#60;/g,"<").replace(/&#62;/g,">"),r=this.$generateId(n,!0),i=Ef(e=this.headerIDCache).call(e,r);if(-1!==i)this.headerIDCounter[i]+=1,r+="-".concat(this.headerIDCounter[i]+1);else{var a=this.headerIDCache.push(r);this.headerIDCounter[a-1]=1}return r}},{key:"$wrapHeader",value:function(t,e,n,r){var i,a,o,s,c,l,u,h=r(mh(t).call(t)),f=h.html,d=f.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==d&&(f=f.substring(0,d.index),u=xf(d,2)[1]);var A=this.$parseTitleText(f);if(!u){u=this.generateIDNoDup(A.replace(/~fn#([0-9]+)#/g,""))}var g="safe_".concat(u),p=this.$engine.md5(hs(i=hs(a=hs(o="".concat(e,"-")).call(o,h.sign,"-")).call(a,u,"-")).call(i,n));return{html:[hs(s=hs(c=hs(l="<h".concat(e,' id="')).call(l,g,'" data-sign="')).call(c,p,'" data-lines="')).call(s,n,'">'),this.$getAnchor(u),"".concat(f),"</h".concat(e,">")].join(""),sign:"".concat(p)}}},{key:"$getAnchor",value:function(t){return"none"===(this.config.anchorStyle||"default")?"":'<a class="anchor" href="#'.concat(t,'"></a>')}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.$engine.$cherry.options.engine.global.flowSessionContext&&(n=n.replace(/(\n\s*-{1,})\s*$/,"$1 ")),this.test(n,Bm)&&(n=n.replace(this.RULE[Bm].reg,(function(t,n,r,i){return""===mh(i).call(i)?t:e.getCacheWithSpace(e.pushCache(t),t,!0)}))),this.test(n,_m)&&(n=n.replace(this.RULE[_m].reg,(function(t,n,r){return""===mh(r).call(r)||e.isContainsCache(r)?t:e.getCacheWithSpace(e.pushCache(t),t,!0)}))),n}},{key:"makeHtml",value:function(t,e){var n=this,r=this.restoreCache(t);return this.test(r,Bm)&&(r=r.replace(this.RULE[Bm].reg,(function(t,r,i,a){var o=hA(r,n.getLineCount(t.replace(/^\n+/,""))),s=a.replace(/\s+#+\s*$/,""),c=n.$wrapHeader(s,i.length,o,e),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),t,!0)}))),this.test(r,_m)&&(r=r.replace(this.RULE[_m].reg,(function(t,r,i,a){if(n.isContainsCache(i))return t;var o=hA(r,n.getLineCount(t.replace(/^\n+/,""))),s="-"===a[0]?2:1,c=n.$wrapHeader(i,s,o,e),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),t,!0)}))),r}},{key:"afterMakeHtml",value:function(t){var n=xm(es(e.prototype),"afterMakeHtml",this).call(this,t);return this.headerIDCache=[],this.headerIDCounter={},n}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",content:["(?:\\h*","(.+)",")\\n","(?:\\h*","([=]+|[-]+)",")"].join(""),end:"(?=$|\\n)"};t.reg=md(t,"g",!0);var e={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(e.begin+="(?=\\h+)"),e.reg=md(e,"g",!0),{setext:t,atx:e}}}])}(VA);function Om(t,e,n){return e=es(e),Ko(t,Dm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Dm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Dm=function(){return!!t})()}cs(Mm,"HOOK_NAME","header");var Fm=function(t){function e(){return ra(this,e),Om(this,e,arguments)}return ss(e,t),Ho(e,[{key:"rule",value:function(){return{begin:"",content:"",end:"",reg:new RegExp("")}}},{key:"beforeMakeHtml",value:function(t){return t.replace(/\\\n/g,"\\ \n")}},{key:"afterMakeHtml",value:function(t){var e=t.replace(/~Q/g,"~");return e=(e=(e=(e=(e=e.replace(/~X/g,"`")).replace(/~Y/g,"!")).replace(/~Z/g,"#")).replace(/~&/g,"&")).replace(/~K/g,"/")}}])}(iA);cs(Fm,"HOOK_NAME","transfer");var Nm=TypeError,Pm="Reduce of empty array with no initial value",Rm=function(t){return function(e,n,r,i){var a=yt(e),o=Q(a),s=un(a);if(ut(n),0===s&&r<2)throw new Nm(Pm);var c=t?s-1:0,l=t?-1:1;if(r<2)for(;;){if(c in o){i=o[c],c+=l;break}if(c+=l,t?c<0:s<=c)throw new Nm(Pm)}for(;t?c>=0:s>c;c+=l)c in o&&(i=n(i,o[c],c,a));return i}},Qm={left:Rm(!1),right:Rm(!0)},Um="process"===x(j.process),$m=Qm.left,Hm=!Um&&Y>79&&Y<83||!Ms("reduce");Dn({target:"Array",proto:!0,forced:Hm},{reduce:function(t){var e=arguments.length;return $m(this,t,e,e>1?arguments[1]:void 0)}});var jm=Ni("Array","reduce"),Km=Array.prototype,zm=function(t){var e=t.reduce;return t===Km||rt(Km,t)&&e===Km.reduce?jm:e};function Gm(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xm(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=Gm(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=Gm(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}function Vm(t,e,n){return e=es(e),Ko(t,Wm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Wm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Wm=function(){return!!t})()}var qm="loose",Ym="strict",Jm=function(t){function e(t){var n,r=t.externals,i=t.config;ra(this,e),n=Vm(this,e,[{needCache:!0}]);var a=i.enableChart,o=i.selfClosing,s=i.chartRenderEngine,c=i.externals,l=i.chartEngineOptions,u=void 0===l?{}:l;if(n.chartRenderEngine=null,n.selfClosing=o,!0===a)try{n.chartRenderEngine=new s(Xm(Xm({},r&&c instanceof Array&&zm(c).call(c,(function(t,e){return delete u[e],Xm(Xm({},t),{},cs({},e,r[e]))}),{})),{},{renderer:"svg",width:500,height:300},u))}catch(t){console.warn(t)}return n}return ss(e,t),Ho(e,[{key:"$extendColumns",value:function(t,e){var n=e-t.length;return n<1?t:hs(t).call(t,Rf("&nbsp;|").call("&nbsp;|",n).split("|",n))}},{key:"$parseChartOptions",value:function(t){if(!this.chartRenderEngine)return null;var e=/^[ ]*:(\w+):(?:[ ]*{(.*?)}[ ]*)?$/;if(!e.test(t))return null;var n=xf(t.match(e),3),r=n[1],i=n[2];return{type:r,options:i?i.split(/\s*,\s*/):["x","y"]}}},{key:"$parseColumnAlignRules",value:function(t){var e=["U","L","R","C"];return{textAlignRules:lA(t).call(t,(function(t){var n=mh(t).call(t),r=0;return/^:/.test(n)&&(r+=1),/:$/.test(n)&&(r+=2),e[r]})),COLUMN_ALIGN_MAP:{L:"left",R:"right",C:"center"}}}},{key:"$parseTable",value:function(t,e,n){var r,i,a=this,o=0,s=lA(t).call(t,(function(t,e){var n=t.replace(/\\\|/g,"~CS").split("|");return""===n[0]&&n.shift(),""===n[n.length-1]&&n.pop(),1!==e&&(o=Math.max(o,n.length)),n})),c=this.$parseColumnAlignRules(s[1]),l=c.textAlignRules,u=c.COLUMN_ALIGN_MAP,h={header:[],rows:[],colLength:o,rowLength:s.length-2},f=this.$parseChartOptions(s[0][0]),d=this.$engine.md5(s[0][0]);f&&(s[0][0]="");var A=lA(r=this.$extendColumns(s[0],o)).call(r,(function(t,n){var r,i;h.header.push(t.replace(/~CS/g,"\\|"));var a=e(mh(r=t.replace(/~CS/g,"\\|")).call(r)).html;return hs(i="~CTH".concat(l[n]||"U"," ")).call(i,a," ~CTH$")})).join(""),g=zm(s).call(s,(function(t,n,r){var i;if(r<=1)return t;var s=r-2;h.rows[s]=[];var c=lA(i=a.$extendColumns(n,o)).call(i,(function(t,n){var r,i;h.rows[s].push(t.replace(/~CS/g,"\\|"));var a=e(mh(r=t.replace(/~CS/g,"\\|")).call(r)).html;return hs(i="~CTD".concat(l[n]||"U"," ")).call(i,a," ~CTD$")}));return t.push("~CTR".concat(c.join(""),"~CTR$")),t}),[]).join(""),p=this.$renderTable(u,A,g,n);if(!f)return p;var m=this.chartRenderEngine.render(f.type,f.options,h),b='<figure class="cherry-table-figure">'.concat(m,"</figure>"),v=hs(i="".concat(p.sign)).call(i,d);return{html:p.html.replace(/(^<div .*?>)/,"$1".concat(b)).replace(/(^<div .*? data-sign=")[^"]+?"/,"$1".concat(v,'"')),sign:v}}},{key:"$testHeadEmpty",value:function(t){var e=t.replace(/&nbsp;/g,"").replace(/\s/g,"").replace(/(~CTH\$|~CTHU|~CTHL|~CTHR|~CTHC)/g,"");return(null==e?void 0:e.length)>0}},{key:"$renderTable",value:function(t,e,n,r){var i,a,o,s,c=this.$testHeadEmpty(e)?hs(i="~CTHD".concat(e,"~CTHD$~CTBD")).call(i,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),l=this.$engine.md5(c),u=c.replace(/~CTHD\$/g,"</thead>").replace(/~CTHD/g,"<thead>").replace(/~CTBD\$/g,"</tbody>").replace(/~CTBD/g,"</tbody>").replace(/~CTR\$/g,"</tr>").replace(/~CTR/g,"<tr>").replace(/[ ]?~CTH\$/g,"</th>").replace(/[ ]?~CTD\$/g,"</td>").replace(/~CT(D|H)(L|R|C|U)[ ]?/g,(function(e,n,r){var i="<t".concat(n);return i+="U"===r?">":' align="'.concat(t[r],'">')})).replace(/\\\|/g,"|");return{html:hs(a=hs(o=hs(s='<div class="cherry-table-container" data-sign="'.concat(l)).call(s,r,'" data-lines="')).call(o,r,'">\n <table class="cherry-table">')).call(a,u,"</table></div>"),sign:l}}},{key:"makeHtml",value:function(t,e){var n=this,r=t;return(this.$engine.$cherry.options.engine.global.flowSessionContext||this.selfClosing)&&/(^|^[^|][^\n]*\n|\n\n|\n[^|][^\n]*\n)\s*\|[^\n]+\n{0,1}[|:-\s]*\n*$/.test(r)&&(r="".concat(r.replace(/\n[|:-\s]*\n*$/,""),"\n|-|")),this.test(r,Ym)&&(r=r.replace(this.RULE[Ym].reg,(function(t,r){var i,a=n.getLineCount(t,r),o=lA(i=mh(t).call(t).split(/\n/)).call(i,(function(t){var e;return mh(e=String(t)).call(e)})),s=n.$parseTable(o,e,a),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,a),t)}))),this.test(r,qm)&&(r=r.replace(this.RULE[qm].reg,(function(t,r){var i,a=n.getLineCount(t,r),o=lA(i=mh(t).call(t).split(/\n/)).call(i,(function(t){var e;return mh(e=String(t)).call(e)})),s=n.$parseTable(o,e,a),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,a),t)}))),r}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){return Ld()}}])}(VA);function Zm(){return"object"===("undefined"==typeof window?"undefined":Ro(window))}function tb(t,e,n){return e=es(e),Ko(t,eb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function eb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(eb=function(){return!!t})()}cs(Jm,"HOOK_NAME","table");var nb=function(t){function e(t){var n;return ra(this,e),(n=tb(this,e,[{needCache:!0}])).classicBr=dA("classicBr")?AA():t.globalConfig.classicBr,n}return ss(e,t),Ho(e,[{key:"beforeMakeHtml",value:function(t){var e=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,n,r){var i,a;if(0===r)return t;var o,s,c=null!==(i=null===(a=n.match(/\n/g))||void 0===a?void 0:a.length)&&void 0!==i?i:0,l="br".concat(c),u="";Zm()?u=e.classicBr?hs(o='<span data-sign="'.concat(l,'" data-type="br" data-lines="')).call(o,c,'"></span>'):hs(s='<p data-sign="'.concat(l,'" data-type="br" data-lines="')).call(s,c,'">&nbsp;</p>'):u=e.classicBr?"":"<br/>";var h=e.pushCache(u,l,c);return"\n\n".concat(h,"\n")})):t}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return t.reg=md(t,"g",!0),t}}])}(VA);function rb(t,e,n){return e=es(e),Ko(t,ib()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function ib(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(ib=function(){return!!t})()}cs(nb,"HOOK_NAME","br");var ab=function(t){function e(){return ra(this,e),rb(this,e,[{needCache:!0}])}return ss(e,t),Ho(e,[{key:"beforeMakeHtml",value:function(t){var e=this;return t.replace(this.RULE.reg,(function(t,n){var r,i=(n.match(/\n/g)||[]).length+1,a="hr".concat(i);return uA(t,e.pushCache(hs(r='<hr data-sign="'.concat(a,'" data-lines="')).call(r,i,'" />'),a))}))}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)[ ]*",end:"(?=$|\\n)",content:"((?:-[ \\t]*){3,}|(?:\\*[ \\t]*){3,}|(?:_[ \\t]*){3,})"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(VA);cs(ab,"HOOK_NAME","hr");var ob={processExtendAttributesInAlt:function(t){var e=t.match(/#([0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto)/g);if(!e)return"";var n="",r=xf(e,2),i=r[0],a=r[1];return i&&(n=' width="'.concat(i.replace(/[ #]*/g,""),'"')),a&&(n+=' height="'.concat(a.replace(/[ #]*/g,""),'"')),n},processExtendStyleInAlt:function(t){var e=this.$getAlignment(t),n="",r=t.match(/#(border|shadow|radius|B|S|R)/g);if(r)for(var i=0;i<r.length;i++)switch(r[i]){case"#border":case"#B":e+="border:1px solid #888888;padding: 2px;box-sizing: border-box;",n+=" cherry-img-border";break;case"#shadow":case"#S":e+="box-shadow:0 2px 15px -5px rgb(0 0 0 / 50%);",n+=" cherry-img-shadow";break;case"#radius":case"#R":e+="border-radius: 15px;",n+=" cherry-img-radius"}return{extendStyles:e,extendClasses:n}},$getAlignment:function(t){var e=t.match(/#(center|right|left|float-right|float-left)/i);if(!e)return"";switch(xf(e,2)[1]){case"center":return"transform:translateX(-50%);margin-left:50%;display:block;";case"right":return"transform:translateX(-100%);margin-left:100%;margin-right:-100%;display:block;";case"left":return"transform:translateX(0);margin-left:0;display:block;";case"float-right":return"float:right;transform:translateX(0);margin-left:0;display:block;";case"float-left":return"float:left;transform:translateX(0);margin-left:0;display:block;"}}},sb=ob;function cb(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function lb(t,e,n){return e=es(e),Ko(t,ub()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function ub(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(ub=function(){return!!t})()}var hb=function(t){function e(t){var n,r=t.config;return t.globalConfig,ra(this,e),(n=lb(this,e,[null])).config=r,n.extendMedia={tag:["video","audio"]},n.RULE=n.rule(n.extendMedia),n}return ss(e,t),Ho(e,[{key:"replaceToHtml",value:function(t,e,n,r,i,a,o){var s=void 0===i?"ref":"url",c="";if("ref"===s)return e;if("url"===s){var l,u,h,f,d,A,g,p,m=sb.processExtendAttributesInAlt(r),b=sb.processExtendStyleInAlt(r),v=b.extendStyles,y=b.extendClasses;v&&(v=' style="'.concat(v,'" ')),y&&(y=' class="'.concat(y,'" ')),c=a&&""!==mh(a).call(a)?' title="'.concat($A(a),'"'):"",o&&(c+=' poster="'.concat(KA(o),'"'));var w=this.$engine.$cherry.options.callback.urlProcessor(i,t),k=hs(l=hs(u=hs(h=hs(f=hs(d=hs(A=hs(g="<".concat(t,' src="')).call(g,hm.set(KA(w)),'"')).call(A,c," ")).call(d,m," ")).call(f,v," ")).call(h,y,' controls="controls">')).call(u,$A(r||""),"</")).call(l,t,">");return hs(p="".concat(n)).call(p,this.config.videoWrapper?this.config.videoWrapper(i,t,k):k)}return e}},{key:"toHtml",value:function(t,e,n,r,i,a,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return t;if("url"===s){var l,u,h,f,d,A,g,p,m=sb.processExtendAttributesInAlt(n),b=sb.processExtendStyleInAlt(n),v=b.extendStyles,y=b.extendClasses;v&&(v=' style="'.concat(v,'" ')),y&&(y=' class="'.concat(y,'" ')),c=i&&""!==mh(i).call(i)?' title="'.concat($A(i.replace(/["']/g,"")),'"'):"";var w,k="src",C=this.$engine.$cherry.options;if(C.callback&&C.callback.beforeImageMounted){var x=C.callback.beforeImageMounted(k,r);k=x.srcProp||k,w=x.src||r}var E=o?o.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&amp;"):"";return hs(l=hs(u=hs(h=hs(f=hs(d=hs(A=hs(g=hs(p="".concat(e,"<img ")).call(p,k,'="')).call(g,hm.set(KA(this.$engine.$cherry.options.callback.urlProcessor(w,"image"))),'" ')).call(A,m," ")).call(d,v," ")).call(f,y,' alt="')).call(h,$A(n||""),'"')).call(u,c," ")).call(l,E,"/>")}return t}},{key:"toMediaHtml",value:function(t,e,n,r,i,a,o,s,c){return/(video|audio)/.test(n)?this.replaceToHtml(n,t,e,r,i,a,c):t}},{key:"makeHtml",value:function(t){var e,n,r,i,a=t;this.test(a)&&(a=bd()?a.replace(this.RULE.reg,fs(e=this.toHtml).call(e,this)):Tp(a,this.RULE.reg,fs(n=this.toHtml).call(n,this),!0,1));this.testMedia(a)&&(a=bd()?a.replace(this.RULE.regExtend,fs(r=this.toMediaHtml).call(r,this)):Tp(a,this.RULE.regExtend,fs(i=this.toMediaHtml).call(i,this),!0,1));return a}},{key:"testMedia",value:function(t){return this.RULE.regExtend&&this.RULE.regExtend.test(t)}},{key:"rule",value:function(t){var e,n={begin:bd()?"((?<!\\\\))!":"(^|[^\\\\])!",content:["\\[([^\\n]*?)\\]","[ \\t]*",hs(e="".concat('(?:\\(((?:[^\\s()]*\\([^\\s()]*\\)[^\\s()]*)+|(?:[^"][^\\s]+?))(?:[ \\t]((?:".*?")|(?:\'.*?\')))?\\)|\\[(')).call(e,yd,")\\]")+")"].join(""),end:"({[^{}]+?})?"};if(t){var r=function(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=cb(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=cb(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}({},n);r.begin=bd()?"((?<!\\\\))!(".concat(t.tag.join("|"),")"):"(^|[^\\\\])!(".concat(t.tag.join("|"),")"),r.end="({poster=(.*)})?",n.regExtend=md(r,"g")}return n.reg=md(n,"g"),n}}])}(iA);function fb(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function db(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=fb(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=fb(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}function Ab(t,e,n){return e=es(e),Ko(t,gb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function gb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(gb=function(){return!!t})()}cs(hb,"HOOK_NAME","image");function pb(t){var e;if("object"!==Ro(t)&&Is(t).length<1)return"";var n=[""];return Qs(e=Is(t)).call(e,(function(e){var r;n.push(hs(r="".concat(e,'="')).call(r,t[e],'"'))})),n.join(" ")}function mb(t,e){for(var n=/^(\t|[ ])/,r=t;n.test(r);)e.space+="\t"===r[0]?4:1,r=r.replace(n,"");return r}function bb(t,e){var n=/^((([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]*?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/;return n.test(t)?t.replace(n,(function(t,n,r,i,a){return e.type=r.search(/[*+-]/g)>-1?"ul":"ol",e.listStyle=function(t){return/^[a-z]/.test(t)?"lower-greek":/^[一二三四五六七八九十]/.test(t)?"cjk-ideographic":/^I/.test(t)?"upper-roman":/^\+/.test(t)?"circle":/^\*/.test(t)?"square":"default"}(r),e.start=Number(r.replace(".",""))?Number(r.replace(".","")):1,a})):(e.type="blank",t)}var vb=Ho((function t(){ra(this,t),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),yb=function(t){function e(t){var n,r=t.config;return ra(this,e),(n=Ab(this,e,[{needCache:!0}])).config=r||{},n.tree=[],n.emptyLines=0,n.indentSpace=Math.max(n.config.indentSpace,2),n}return ss(e,t),Ho(e,[{key:"addNode",value:function(t,e,n,r){"blank"===t.type?this.tree[r].strs.push(t.strs[0]):(this.tree[n].children.push(e),this.tree[e]=db(db({},t),{},{parent:n}))}},{key:"buildTree",value:function(t,e){var n=t.split("\n");this.tree=[],n.unshift("");for(var r=t.match(/\n*$/g)[0].length,i=0;i<n.length-r;i++){var a=new vb;if(n[i]=mb(n[i],a),n[i]=bb(n[i],a),a.strs.push(e(n[i]).html),a.index=i,0!==i){for(var o=i-1;!this.tree[o];)o-=1;if("blank"===a.type)this.addNode(a,i,this.tree[o].parent,o);else{for(;!this.tree[o]||this.tree[o].space>a.space;)o-=1;var s=a.space,c=this.tree[o].space;s<c+this.indentSpace?this.config.listNested&&this.tree[o].type!==a.type?this.addNode(a,i,o):this.addNode(a,i,this.tree[o].parent):s<c+this.indentSpace+4?this.addNode(a,i,o):(a.type="blank",this.addNode(a,i,this.tree[o].parent,o))}}else a.space=-2,this.tree.push(a)}}},{key:"renderSubTree",value:function(t,e,n){var r,i,a,o=this,s=0,c={},l=zm(e).call(e,(function(e,n){var r,i,a,c=o.tree[n],l={class:"cherry-list-item"},u="<p>".concat(c.strs.join("<br>"),"</p>");c.lines+=o.getLineCount(c.strs.join("\n"));var h=c.children.length?o.renderTree(n):"";t.lines+=c.lines,s+=c.lines;return/<span class="ch-icon ch-icon-(square|check)"><\/span>/.test(u)&&(l.class+=" check-list-item"),hs(r=hs(i=hs(a="".concat(e,"<li")).call(a,pb(l),">")).call(i,u)).call(r,h,"</li>")}),"");return void 0===t.parent&&(c["data-lines"]=0===t.index?s+this.emptyLines:s,c["data-sign"]=this.sign),e[0]&&"ol"===n&&(c.start=this.tree[e[0]].start),c.class="cherry-list__".concat(this.tree[e[0]].listStyle),hs(r=hs(i=hs(a="<".concat(n)).call(a,pb(c),">")).call(i,l,"</")).call(r,n,">")}},{key:"renderTree",value:function(t){var e=this,n=0,r=this.tree[t],i=r.children;return zm(i).call(i,(function(t,a,o){if(0===o)return t;if(e.tree[i[o]].type===e.tree[i[o-1]].type)return t;var s=e.renderSubTree(r,Bf(i).call(i,n,o),e.tree[i[o-1]].type);return n=o,t+s}),"")+(i.length?this.renderSubTree(r,Bf(i).call(i,n,i.length),this.tree[i[i.length-1]].type):"")}},{key:"toHtml",value:function(t,e){var n,r;this.emptyLines=null!==(n=null===(r=t.match(/^\n\n/))||void 0===r?void 0:r.length)&&void 0!==n?n:0;var i=t.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(t){return t.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(t,e,n){var r,i=/\s/.test(n)?'<span class="ch-icon ch-icon-square"></span>':'<span class="ch-icon ch-icon-check"></span>';return hs(r="".concat(e)).call(r,i)}))}(i),e);var a=this.renderTree(0);return this.pushCache(a,this.sign,this.$getLineNum(t))}},{key:"$getLineNum",value:function(t){var e,n,r,i,a=null!==(e=null===(n=t.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==e?e:0;return null!==(r=null===(i=t.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0+a}},{key:"makeHtml",value:function(t,e){var n=this,r="".concat(t,"~0");return this.test(r)&&(r=r.replace(this.RULE.reg,(function(t){return n.getCacheWithSpace(n.checkCache(t,e,n.$getLineNum(t)),t)}))),r=r.replace(/~0$/g,"")}},{key:"rule",value:function(){var t={begin:"(?:^|\n)(\n*)(([ ]{0,3}([*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)",content:"([^\\r]+?)",end:"(~0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)))"};return t.reg=new RegExp(t.begin+t.content+t.end,"gm"),t}}])}(VA);function wb(t,e,n){return e=es(e),Ko(t,kb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function kb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(kb=function(){return!!t})()}cs(yb,"HOOK_NAME","list");var Cb=function(t){function e(){return ra(this,e),wb(this,e,[{needCache:!0}])}return ss(e,t),Ho(e,[{key:"handleMatch",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,e,r){var i,a,o,s=n.getLineCount(t,e),c=n.$engine.md5(t),l=n.testHasCache(c);if(!1!==l)return n.getCacheWithSpace(l,t);var u=hs(i=hs(a='<blockquote data-sign="'.concat(c,"_")).call(a,s,'" data-lines="')).call(i,s,'">'),h=r.split(/\n</),f="";h.length>1&&(f="\n<".concat(Bf(h).call(h,1).join("\n<")));var d=h[0].replace(/^([ \t]*>)/gm,"");return u+=n.$engine.makeHtmlForBlockquote(d),u+="</blockquote>",hs(o="".concat(n.getCacheWithSpace(n.pushCache(u,c,s),t))).call(o,f)}))}},{key:"makeHtml",value:function(t,e){return this.handleMatch(t,e)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\s*)",content:["(",">(?:.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))(?:>*.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))*(?:>*.+?)","|",">(?:.+?)",")"].join(""),end:"(?=(\\n)|$)"};return t.reg=md(t,"g"),t}}])}(VA);function xb(t,e,n){return e=es(e),Ko(t,Eb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Eb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Eb=function(){return!!t})()}cs(Cb,"HOOK_NAME","blockquote");var Tb=function(t){function e(t){var n,r=t.config;return t.globalConfig,ra(this,e),(n=xb(this,e,[{config:r}])).enableShortLink=!!r.enableShortLink,n.shortLinkLength=r.shortLinkLength,n.target=r.target?'target="'.concat(r.target,'"'):r.openNewPage?'target="_blank"':"",n.rel=r.rel?'rel="'.concat(r.rel,'"'):"",n}return ss(e,t),Ho(e,[{key:"isLinkInHtmlAttribute",value:function(t,e,n){for(var r,i=new RegExp(["<","([a-zA-Z][a-zA-Z0-9-]*)","(",["\\s+[a-zA-Z_:][a-zA-Z0-9_.:-]*","(",["\\s*=\\s*","(",["([^\\s\"'=<>`]+)","('[^']*')",'("[^"]*")'].join("|"),")"].join(""),")?"].join(""),")*","\\s*[/]?>"].join(""),"g");null!==(r=i.exec(t))&&!(r.index>e+n);)if(r.index<e&&r.index+r[0].length>=e+n)return!0;return!1}},{key:"isLinkInATag",value:function(t,e,n){for(var r,i=/<a.*>[^<]*<\/a>/g;null!==(r=i.exec(t))&&!(r.index>e+n);)if(r.index<e&&r.index+r[0].length>=e+n)return!0;return!1}},{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)&&(Cd.test(t)||Ed.test(t))?t.replace(this.RULE.reg,(function(t,e,r,i,a,o,s){var c,l,u;if(n.isLinkInHtmlAttribute(s,o,r.length+i.length)||n.isLinkInATag(s,o,r.length+i.length))return t;var h=r.toLowerCase(),f="",d="",A=!0;if(("<"!==e&&"&#60;"!==e||">"!==a&&"&#62;"!==a)&&(f=e,d=a,A=!1),""===mh(i).call(i)||!A&&""===h&&!/www\./.test(i))return t;switch(h){case"javascript:":return t;case"mailto:":var g,p,m,b,v,y;return xd.test(i)?hs(g=hs(p=hs(m=hs(b=hs(v="".concat(f,'<a href="')).call(v,KA(hs(y="".concat(h)).call(y,i)),'" ')).call(b,n.target," ")).call(m,n.rel,">")).call(p,$A(i),"</a>")).call(g,d):t;case"":var w,k,C,x,E,T,B,_,S,L;if(f===d||!A)return xd.test(i)?hs(w=hs(k=hs(C=hs(x=hs(E="".concat(f,'<a href="mailto:')).call(E,KA(i),'" ')).call(x,n.target," ")).call(C,n.rel,">")).call(k,$A(i),"</a>")).call(w,d):Bd.test(i)?hs(T=hs(B="".concat(f)).call(B,n.renderLink("//".concat(i),i))).call(T,d):t;if(A)return xd.test(i)?hs(_=hs(S=hs(L='<a href="mailto:'.concat(KA(i),'" ')).call(L,n.target," ")).call(S,n.rel,">")).call(_,$A(i),"</a>"):_d.test(i)||Bd.test(i)?n.renderLink(i):t;default:return _d.test(i)?hs(c=hs(l="".concat(f)).call(l,n.renderLink(hs(u="".concat(h)).call(u,i)))).call(c,d):t}return t})):t}},{key:"rule",value:function(){var t,e={begin:"(<?)",content:["((?:[a-z][a-z0-9+.-]{1,31}:)?)",hs(t="((?:".concat(Td.source,")|(?:")).call(t,Cd.source,"))")].join(""),end:"(>?)"};return e.reg=md(e,"ig"),e}},{key:"renderLink",value:function(t,n){var r,i,a,o,s=n;if("string"!=typeof s)if(this.enableShortLink){var c,l=t.replace(/^https?:\/\//i,"");s=hs(c="".concat(l.substring(0,this.shortLinkLength))).call(c,l.length>this.shortLinkLength?"...":"")}else s=t;var u=KA(this.$engine.$cherry.options.callback.urlProcessor(t,"autolink")),h=$A(s),f=Qi(r=[this.target,this.rel]).call(r,Boolean).join(" ");return hs(i=hs(a=hs(o='<a href="'.concat(e.escapePreservedSymbol(u),'" title="')).call(o,e.escapePreservedSymbol($A(t)),'" ')).call(a,f,">")).call(i,e.escapePreservedSymbol(h),"</a>")}}])}(iA);function Bb(){var t,e,n,r;Zm()&&(this.katex=null!==(t=null===(e=this.externals)||void 0===e?void 0:e.katex)&&void 0!==t?t:window.katex,this.MathJax=null!==(n=null===(r=this.externals)||void 0===r?void 0:r.MathJax)&&void 0!==n?n:window.MathJax)}cs(Tb,"HOOK_NAME","autoLink"),cs(Tb,"escapePreservedSymbol",(function(t){return t.replace(/_/g,"&#x5f;").replace(/\*/g,"&#x2a;")}));var _b=["&","<",">",'"',"'"],Sb=function(t){var e=t.replace(new RegExp(wd,"g"),(function(t){return-1!==Ef(_b).call(_b,t)?UA(t):"\\".concat(t)}));return e};function Lb(t,e,n){return e=es(e),Ko(t,Ib()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Ib(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Ib=function(){return!!t})()}var Mb=function(t){function e(t){var n,r,i=t.config;return ra(this,e),cs(r=Lb(this,e,[{needCache:!0}]),"engine","MathJax"),cs(r,"katex",void 0),cs(r,"MathJax",void 0),r.engine=Zm()?null!==(n=i.engine)&&void 0!==n?n:"MathJax":"node",r}return ss(e,t),Ho(e,[{key:"toHtml",value:function(t,e,n,r){var i;fs(Bb).call(Bb,this)("engine");var a=t.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),o=e.replace(/^[ \f\r\t\v]*\n/,""),s=this.$engine.md5(t),c=this.getLineCount(a,o);/\n/.test(e)||(c-=1),/\n\s*$/.test(t)||(c-=1),c=c>0?c:0;var l="";if("katex"===this.engine){var u,h,f=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0});l=hs(u=hs(h='<div data-sign="'.concat(s,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(h,c,'">')).call(u,f,"</div>")}else if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var d,A,g=Jf(this.MathJax.tex2svg(r),!0);l=hs(d=hs(A='<div data-sign="'.concat(s,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(A,c,'">')).call(d,g,"</div>")}else{var p,m;l=hs(p=hs(m='<div data-sign="'.concat(s,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(m,c,'">$$')).call(p,Sb(r),"$$</div>")}return n+this.getCacheWithSpace(this.pushCache(l,s,c),t)}},{key:"beforeMakeHtml",value:function(t){var e,n;return bd()?t.replace(this.RULE.reg,fs(n=this.toHtml).call(n,this)):Tp(t,this.RULE.reg,fs(e=this.toHtml).call(e,this),!0,1)}},{key:"makeHtml",value:function(t){return t}},{key:"rule",value:function(){var t={begin:bd()?"(\\s*)((?<!\\\\))~D~D\\s*":"(\\s*)(^|[^\\\\])~D~D\\s*",content:"([\\w\\W]*?)",end:"(\\s*)~D~D(?:\\s{0,1})"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(VA);function Ob(t,e,n){return e=es(e),Ko(t,Db()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Db(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Db=function(){return!!t})()}cs(Mb,"HOOK_NAME","mathBlock");var Fb=function(t){function e(t){var n,r,i=t.config;return ra(this,e),cs(r=Ob(this,e,[{needCache:!0}]),"engine","MathJax"),cs(r,"katex",void 0),cs(r,"MathJax",void 0),r.engine=Zm()?null!==(n=i.engine)&&void 0!==n?n:"MathJax":"node",r}return ss(e,t),Ho(e,[{key:"toHtml",value:function(t,e,n){var r,i;if(!n)return t;fs(Bb).call(Bb,this)("engine");var a=n.match(/\n/g),o=a?a.length+2:2,s=this.$engine.md5(t),c="";if("katex"===this.engine&&null!==(r=this.katex)&&void 0!==r&&r.renderToString){var l,u,h=this.katex.renderToString(n,{throwOnError:!1});c=hs(l=hs(u="".concat(e,'<span class="Cherry-InlineMath" data-type="mathBlock" data-lines="')).call(u,o,'">')).call(l,h,"</span>")}else if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var f,d,A=Jf(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0);c=hs(f=hs(d="".concat(e,'<span class="Cherry-InlineMath" data-type="mathBlock" data-lines="')).call(d,o,'">')).call(f,A,"</span>")}else{var g,p;c=hs(g=hs(p="".concat(e,'<span class="Cherry-InlineMath" data-type="mathBlock"\n data-lines="')).call(p,o,'">$')).call(g,Sb(n),"$</span>")}return this.pushCache(c,VA.IN_PARAGRAPH_CACHE_KEY_PREFIX+s)}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return n=n.replace(Ld(!0),(function(t){var n;return lA(n=t.split("|")).call(n,(function(t){return e.makeInlineMath(t)})).join("|").replace(/\\~D/g,"~D").replace(/~D/g,"\\~D")})),this.makeInlineMath(n)}},{key:"makeInlineMath",value:function(t){var e,n;return this.test(t)?bd()?t.replace(this.RULE.reg,fs(n=this.toHtml).call(n,this)):Tp(t,this.RULE.reg,fs(e=this.toHtml).call(e,this),!0,1):t}},{key:"makeHtml",value:function(t){return t}},{key:"rule",value:function(){var t={begin:bd()?"((?<!\\\\))~D\\n?":"(^|[^\\\\])~D\\n?",content:"(.*?)\\n?",end:"~D"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(VA);cs(Fb,"HOOK_NAME","inlineMath");var Nb=function(t){for(var e=yt(this),n=un(e),r=arguments.length,i=ln(r>1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,o=void 0===a?n:ln(a,n);o>i;)e[i++]=t;return e};Dn({target:"Array",proto:!0},{fill:Nb}),Wa();var Pb=Ni("Array","fill"),Rb=Array.prototype,Qb=function(t){var e=t.fill;return t===Rb||rt(Rb,t)&&e===Rb.fill?Pb:e};function Ub(t,e,n){return e=es(e),Ko(t,$b()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function $b(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return($b=function(){return!!t})()}function Hb(t){return t}var jb={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:Hb,showAutoNumber:!1},Kb='<p data-sign="empty-toc" data-lines="1">&nbsp;</p>',zb=function(t){function e(t){var n,r;t.externals;var i=t.config;return ra(this,e),cs(r=Ub(this,e,[{needCache:!0}]),"tocStyle","nested"),cs(r,"tocNodeClass","toc-li"),cs(r,"tocContainerClass","toc"),cs(r,"tocTitleClass","toc-title"),cs(r,"linkProcessor",Hb),cs(r,"baseLevel",1),cs(r,"isFirstTocToken",!0),cs(r,"allowMultiToc",!1),cs(r,"showAutoNumber",!1),Qs(n=Is(jb)).call(n,(function(t){r[t]=i[t]||jb[t]})),r}return ss(e,t),Ho(e,[{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n,"extend")&&(n=n.replace(this.RULE.extend.reg,(function(t,n,r){var i;if(!e.allowMultiToc&&!e.isFirstTocToken)return hs(i="\n".concat(n)).call(i,Kb);var a=e.pushCache(t);return e.isFirstTocToken=!1,uA(t,a)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(t,n,r){var i;return e.allowMultiToc||e.isFirstTocToken?(e.isFirstTocToken=!1,uA(t,e.pushCache(t))):hs(i="\n".concat(n)).call(i,Kb)}))),n}},{key:"makeHtml",value:function(t){return t}},{key:"$makeLevel",value:function(t){for(var e="",n=this.baseLevel;n<t;n++)e+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";return e}},{key:"$makeTocItem",value:function(t,e){var n,r,i,a,o,s,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l="";e&&(l=this.$makeLevel(t.level));var u=this.linkProcessor("#".concat(t.id).replace(/safe_/g,""));return hs(n=hs(r=hs(i=hs(a=hs(o=hs(s='<li class="'.concat(this.tocNodeClass)).call(s,this.showAutoNumber?" toc-li-".concat(t.level):"",'">\n ')).call(o,l,'<a href="')).call(a,u,'" class="level-')).call(i,t.level,'" target="_self">')).call(r,t.text,"</a>")).call(n,c?"</li>":"")}},{key:"$makePlainToc",value:function(t){var e=this,n=lA(t).call(t,(function(t){return e.$makeTocItem(t,!0)}));return n.join("")}},{key:"$makeNestedToc",value:function(t){var e,n,r=this,i=0,a=Qb(e=new Array(7)).call(e,!1),o=Qb(n=new Array(7)).call(n,!1),s="";Qs(t).call(t,(function(t){var e=t.level;if(0===i){for(var n=e;n>=r.baseLevel;n--)s+="<ul>",o[n]=!0;return s+=r.$makeTocItem(t,!1,!1),a[e]=!0,void(i=e)}if(e<i){for(var c=i;c>=e;c--)a[c]&&(s+="</li>",a[c]=!1),o[c]&&c>e&&(s+="</ul>",o[c]=!1);a[e]=!0,s+=r.$makeTocItem(t,!1,!1),i=e}else if(e===i)a[i]&&(s+="</li>"),s+=r.$makeTocItem(t,!1,!1),a[e]=!0,o[e]=!0;else{for(var l=i+1;l<=e;l++)s+="<ul>",o[l]=!0;a[e]=!0,s+=r.$makeTocItem(t,!1,!1),i=e}}));for(var c=i;c>=this.baseLevel;c--)a[c]&&(s+="</li>",a[c]=!1),o[c]&&(s+="</ul>",o[c]=!1);return s}},{key:"$makeToc",value:function(t,e,n){var r,i,a,o,s,c=hA(n,1),l=hs(r=hs(i=hs(a=hs(o='<div class="'.concat(this.tocContainerClass)).call(o,this.showAutoNumber?" auto-num-toc":"",'"\n data-sign="')).call(a,e,"-")).call(i,c,'" data-lines="')).call(r,c,'">');return l+=hs(s='<p class="'.concat(this.tocTitleClass,'">')).call(s,this.$locale.toc,"</p>"),t.length<=0?"":(this.baseLevel=Math.min.apply(Math,kp(lA(t).call(t,(function(t){return t.level})))),"nested"===this.tocStyle?l+=this.$makeNestedToc(t):l+=this.$makePlainToc(t),l+="</div>")}},{key:"afterMakeHtml",value:function(t){var n=this,r=xm(es(e.prototype),"afterMakeHtml",this).call(this,t),i=[],a="";return r.replace(/<h([1-6])[^>]*? id="([^"]+?)"[^>]*?>(?:<a[^/]+?\/a>|)(.+?)<\/h\1>/g,(function(t,e,n,r){var o,s=r.replace(/~fn#[0-9]+#/g,"");i.push({level:+e,id:n,text:s}),a+=hs(o="".concat(e)).call(o,n)})),a=this.$engine.md5(a),r=r.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/,(function(t){return t.replace(/(\]\]|\]|】】)([<~])/,"$1\n$2")})),r=(r=r.replace(this.RULE.extend.reg,(function(t,e){return n.$makeToc(i,a,e)}))).replace(this.RULE.standard.reg,(function(t,e){return n.$makeToc(i,a,e)})),this.isFirstTocToken=!0,r}},{key:"test",value:function(t,e){return!!this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*((?:【【|\\[\\[)(?:toc|TOC)(?:\\]\\]|】】))[ ]*"};t.reg=new RegExp(t.begin+t.content+t.end,"g");var e={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*(\\[(?:toc|TOC)\\])[ ]*"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),{extend:t,standard:e}}}])}(VA);function Gb(t,e,n){return e=es(e),Ko(t,Xb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Xb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Xb=function(){return!!t})()}cs(zb,"HOOK_NAME","toc");var Vb=function(t){function e(t){var n;return t.externals,t.config,ra(this,e),(n=Gb(this,e)).footnoteCache={},n.footnoteMap={},n.footnote=[],n}return ss(e,t),Ho(e,[{key:"$cleanCache",value:function(){this.footnoteCache={},this.footnoteMap={},this.footnote=[]}},{key:"pushFootnoteCache",value:function(t,e){this.footnoteCache[t]=e}},{key:"getFootnoteCache",value:function(t){return this.footnoteCache[t]||null}},{key:"pushFootNote",value:function(t,e){var n,r,i,a,o,s;if(this.footnoteMap[t])return this.footnoteMap[t];var c=this.footnote.length+1,l={};l.fn=hs(n=hs(r=hs(i='<sup><a href="#fn:'.concat(c,'" id="fnref:')).call(i,c,'" title="')).call(r,t,'" class="footnote">[')).call(n,c,"]</a></sup>"),l.fnref=hs(a=hs(o=hs(s='<a href="#fnref:'.concat(c,'" id="fn:')).call(s,c,'" title="')).call(o,t,'" class="footnote-ref">[')).call(a,c,"]</a>"),l.num=c,l.note=mh(e).call(e),this.footnote.push(l);var u="\0~fn#".concat(c-1,"#\0");return this.footnoteMap[t]=u,u}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var t,e=this.getFootNote();if(e.length<=0)return"";var n=lA(e).call(e,(function(t){var e;return hs(e='<div class="one-footnote">\n'.concat(t.fnref)).call(e,t.note,"\n</div>")})).join(""),r=this.$engine.md5(n);return n=hs(t='<div class="footnote" data-sign="'.concat(r,'" data-lines="0"><div class="footnote-title">脚注</div>')).call(t,n,"</div>")}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n)&&(n=n.replace(this.RULE.reg,(function(t,n,r,i){return e.pushFootnoteCache(r,i),(t.match(/\n/g)||[]).join("")})),n=n.replace(/\[\^([^\]]+?)\](?!:)/g,(function(t,n){var r=e.getFootnoteCache(n);return r?e.pushFootNote(n,r):t})),n+=this.formatFootNote()),n}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){var e=this.getFootNote();return t.replace(/\0~fn#([0-9]+)#\0/g,(function(t,n){return e[n].fn}))}},{key:"rule",value:function(){var t={begin:"(^|\\n)[ \t]*",content:["\\[\\^([^\\]]+?)\\]:\\h*","([\\s\\S]+?)"].join(""),end:"(?=\\s*$|\\n\\n)"};return t.reg=md(t,"g",!0),t}}])}(VA);function Wb(t,e,n){return e=es(e),Ko(t,qb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function qb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(qb=function(){return!!t})()}cs(Vb,"HOOK_NAME","footnote");var Yb=function(t){function e(t){var n;return t.externals,t.config,ra(this,e),(n=Wb(this,e)).commentCache={},n}return ss(e,t),Ho(e,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(t,e){var n,r=Cp(e.split(/[ ]+/g)),i=r[0],a=Bf(r).call(r,1),o=hm.set(i);this.commentCache["".concat(t).toLowerCase()]=hs(n=[o]).call(n,kp(a)).join(" ")}},{key:"getCommentReferenceCache",value:function(t){return this.commentCache["".concat(t).toLowerCase()]||null}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;if(this.test(n)){n=n.replace(this.RULE.reg,(function(t,n,r,i){var a;return e.pushCommentReferenceCache(r,i),(null!==(a=t.match(/\n/g))&&void 0!==a?a:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(t,n,r){var i,a,o=e.getCommentReferenceCache(r);return o?n?hs(a="".concat(n,"(")).call(a,o,")"):hs(i="[".concat(r,"](")).call(i,o,")"):t})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){return hm.restoreAll(t)}},{key:"rule",value:function(){var t={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return t.reg=md(t,"g",!0),t}}])}(VA);cs(Yb,"HOOK_NAME","commentReference");var Jb=Mr.some,Zb=Ms("some");Dn({target:"Array",proto:!0,forced:!Zb},{some:function(t){return Jb(this,t,arguments.length>1?arguments[1]:void 0)}});var tv=Ni("Array","some"),ev=Array.prototype,nv=function(t){var e=t.some;return t===ev||rt(ev,t)&&e===ev.some?tv:e},rv=r((function(t,e){t.exports=function(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:a,seal:o,create:s}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;a||(a=function(t){return t}),o||(o=function(t){return t}),c||(c=function(t,e,n){return t.apply(e,n)}),l||(l=function(t,e){return new t(...e)});const u=k(Array.prototype.forEach),h=k(Array.prototype.pop),f=k(Array.prototype.push),d=k(String.prototype.toLowerCase),A=k(String.prototype.toString),g=k(String.prototype.match),p=k(String.prototype.replace),m=k(String.prototype.indexOf),b=k(String.prototype.trim),v=k(Object.prototype.hasOwnProperty),y=k(RegExp.prototype.test),w=C(TypeError);function k(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return c(t,e,r)}}function C(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return l(t,n)}}function x(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;e&&e(t,null);let a=r.length;for(;a--;){let e=r[a];if("string"==typeof e){const t=i(e);t!==e&&(n(r)||(r[a]=t),e=t)}t[e]=!0}return t}function E(t){for(let e=0;e<t.length;e++)v(t,e)||(t[e]=null);return t}function T(e){const n=s(null);for(const[r,i]of t(e))v(e,r)&&(Array.isArray(i)?n[r]=E(i):i&&"object"==typeof i&&i.constructor===Object?n[r]=T(i):n[r]=i);return n}function B(t,e){for(;null!==t;){const n=i(t,e);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}t=r(t)}function n(){return null}return n}const _=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),S=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),O=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=a(["#text"]),F=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),N=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),R=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Q=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=o(/<%[\w\W]*|[\w\W]*%>/gm),$=o(/\${[\w\W]*}/gm),H=o(/^data-[\-\w.\u00B7-\uFFFF]/),j=o(/^aria-[\-\w]+$/),K=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=o(/^(?:\w+script|data):/i),G=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=o(/^html$/i),V=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var W=Object.freeze({__proto__:null,MUSTACHE_EXPR:Q,ERB_EXPR:U,TMPLIT_EXPR:$,DATA_ATTR:H,ARIA_ATTR:j,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:G,DOCTYPE_NAME:X,CUSTOM_ELEMENT:V});const q={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Y=function(){return"undefined"==typeof window?null:window},J=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();const n=t=>Z(t);if(n.version="3.1.5",n.removed=[],!e||!e.document||e.document.nodeType!==q.document)return n.isSupported=!1,n;let{document:r}=e;const i=r,o=i.currentScript,{DocumentFragment:c,HTMLTemplateElement:l,Node:k,Element:C,NodeFilter:E,NamedNodeMap:Q=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:U,DOMParser:$,trustedTypes:H}=e,j=C.prototype,z=B(j,"cloneNode"),G=B(j,"nextSibling"),V=B(j,"childNodes"),tt=B(j,"parentNode");if("function"==typeof l){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let et,nt="";const{implementation:rt,createNodeIterator:it,createDocumentFragment:at,getElementsByTagName:ot}=r,{importNode:st}=i;let ct={};n.isSupported="function"==typeof t&&"function"==typeof tt&&rt&&void 0!==rt.createHTMLDocument;const{MUSTACHE_EXPR:lt,ERB_EXPR:ut,TMPLIT_EXPR:ht,DATA_ATTR:ft,ARIA_ATTR:dt,IS_SCRIPT_OR_DATA:At,ATTR_WHITESPACE:gt,CUSTOM_ELEMENT:pt}=W;let{IS_ALLOWED_URI:mt}=W,bt=null;const vt=x({},[..._,...S,...L,...M,...D]);let yt=null;const wt=x({},[...F,...N,...P,...R]);let kt=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ct=null,xt=null,Et=!0,Tt=!0,Bt=!1,_t=!0,St=!1,Lt=!0,It=!1,Mt=!1,Ot=!1,Dt=!1,Ft=!1,Nt=!1,Pt=!0,Rt=!1;const Qt="user-content-";let Ut=!0,$t=!1,Ht={},jt=null;const Kt=x({},["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 zt=null;const Gt=x({},["audio","video","img","source","image","track"]);let Xt=null;const Vt=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wt="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xhtml";let Jt=Yt,Zt=!1,te=null;const ee=x({},[Wt,qt,Yt],A);let ne=null;const re=["application/xhtml+xml","text/html"],ie="text/html";let ae=null,oe=null;const se=r.createElement("form"),ce=function(t){return t instanceof RegExp||t instanceof Function},le=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!oe||oe!==t){if(t&&"object"==typeof t||(t={}),t=T(t),ne=-1===re.indexOf(t.PARSER_MEDIA_TYPE)?ie:t.PARSER_MEDIA_TYPE,ae="application/xhtml+xml"===ne?A:d,bt=v(t,"ALLOWED_TAGS")?x({},t.ALLOWED_TAGS,ae):vt,yt=v(t,"ALLOWED_ATTR")?x({},t.ALLOWED_ATTR,ae):wt,te=v(t,"ALLOWED_NAMESPACES")?x({},t.ALLOWED_NAMESPACES,A):ee,Xt=v(t,"ADD_URI_SAFE_ATTR")?x(T(Vt),t.ADD_URI_SAFE_ATTR,ae):Vt,zt=v(t,"ADD_DATA_URI_TAGS")?x(T(Gt),t.ADD_DATA_URI_TAGS,ae):Gt,jt=v(t,"FORBID_CONTENTS")?x({},t.FORBID_CONTENTS,ae):Kt,Ct=v(t,"FORBID_TAGS")?x({},t.FORBID_TAGS,ae):{},xt=v(t,"FORBID_ATTR")?x({},t.FORBID_ATTR,ae):{},Ht=!!v(t,"USE_PROFILES")&&t.USE_PROFILES,Et=!1!==t.ALLOW_ARIA_ATTR,Tt=!1!==t.ALLOW_DATA_ATTR,Bt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,_t=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,St=t.SAFE_FOR_TEMPLATES||!1,Lt=!1!==t.SAFE_FOR_XML,It=t.WHOLE_DOCUMENT||!1,Dt=t.RETURN_DOM||!1,Ft=t.RETURN_DOM_FRAGMENT||!1,Nt=t.RETURN_TRUSTED_TYPE||!1,Ot=t.FORCE_BODY||!1,Pt=!1!==t.SANITIZE_DOM,Rt=t.SANITIZE_NAMED_PROPS||!1,Ut=!1!==t.KEEP_CONTENT,$t=t.IN_PLACE||!1,mt=t.ALLOWED_URI_REGEXP||K,Jt=t.NAMESPACE||Yt,kt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ce(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(kt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ce(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(kt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(kt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),St&&(Tt=!1),Ft&&(Dt=!0),Ht&&(bt=x({},D),yt=[],!0===Ht.html&&(x(bt,_),x(yt,F)),!0===Ht.svg&&(x(bt,S),x(yt,N),x(yt,R)),!0===Ht.svgFilters&&(x(bt,L),x(yt,N),x(yt,R)),!0===Ht.mathMl&&(x(bt,M),x(yt,P),x(yt,R))),t.ADD_TAGS&&(bt===vt&&(bt=T(bt)),x(bt,t.ADD_TAGS,ae)),t.ADD_ATTR&&(yt===wt&&(yt=T(yt)),x(yt,t.ADD_ATTR,ae)),t.ADD_URI_SAFE_ATTR&&x(Xt,t.ADD_URI_SAFE_ATTR,ae),t.FORBID_CONTENTS&&(jt===Kt&&(jt=T(jt)),x(jt,t.FORBID_CONTENTS,ae)),Ut&&(bt["#text"]=!0),It&&x(bt,["html","head","body"]),bt.table&&(x(bt,["tbody"]),delete Ct.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');et=t.TRUSTED_TYPES_POLICY,nt=et.createHTML("")}else void 0===et&&(et=J(H,o)),null!==et&&"string"==typeof nt&&(nt=et.createHTML(""));a&&a(t),oe=t}},ue=x({},["mi","mo","mn","ms","mtext"]),he=x({},["foreignobject","annotation-xml"]),fe=x({},["title","style","font","a","script"]),de=x({},[...S,...L,...I]),Ae=x({},[...M,...O]),ge=function(t){let e=tt(t);e&&e.tagName||(e={namespaceURI:Jt,tagName:"template"});const n=d(t.tagName),r=d(e.tagName);return!!te[t.namespaceURI]&&(t.namespaceURI===qt?e.namespaceURI===Yt?"svg"===n:e.namespaceURI===Wt?"svg"===n&&("annotation-xml"===r||ue[r]):Boolean(de[n]):t.namespaceURI===Wt?e.namespaceURI===Yt?"math"===n:e.namespaceURI===qt?"math"===n&&he[r]:Boolean(Ae[n]):t.namespaceURI===Yt?!(e.namespaceURI===qt&&!he[r])&&!(e.namespaceURI===Wt&&!ue[r])&&!Ae[n]&&(fe[n]||!de[n]):!("application/xhtml+xml"!==ne||!te[t.namespaceURI]))},pe=function(t){f(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},me=function(t,e){try{f(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){f(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!yt[t])if(Dt||Ft)try{pe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},be=function(t){let e=null,n=null;if(Ot)t="<remove></remove>"+t;else{const e=g(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ne&&Jt===Yt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const i=et?et.createHTML(t):t;if(Jt===Yt)try{e=(new $).parseFromString(i,ne)}catch(t){}if(!e||!e.documentElement){e=rt.createDocument(Jt,"template",null);try{e.documentElement.innerHTML=Zt?nt:i}catch(t){}}const a=e.body||e.documentElement;return t&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Jt===Yt?ot.call(e,It?"html":"body")[0]:It?e.documentElement:a},ve=function(t){return it.call(t.ownerDocument||t,t,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},ye=function(t){return t instanceof U&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof Q)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},we=function(t){return"function"==typeof k&&t instanceof k},ke=function(t,e,r){ct[t]&&u(ct[t],(t=>{t.call(n,e,r,oe)}))},Ce=function(t){let e=null;if(ke("beforeSanitizeElements",t,null),ye(t))return pe(t),!0;const r=ae(t.nodeName);if(ke("uponSanitizeElement",t,{tagName:r,allowedTags:bt}),t.hasChildNodes()&&!we(t.firstElementChild)&&y(/<[/\w]/g,t.innerHTML)&&y(/<[/\w]/g,t.textContent))return pe(t),!0;if(t.nodeType===q.progressingInstruction)return pe(t),!0;if(Lt&&t.nodeType===q.comment&&y(/<[/\w]/g,t.data))return pe(t),!0;if(!bt[r]||Ct[r]){if(!Ct[r]&&Ee(r)){if(kt.tagNameCheck instanceof RegExp&&y(kt.tagNameCheck,r))return!1;if(kt.tagNameCheck instanceof Function&&kt.tagNameCheck(r))return!1}if(Ut&&!jt[r]){const e=tt(t)||t.parentNode,n=V(t)||t.childNodes;if(n&&e)for(let r=n.length-1;r>=0;--r){const i=z(n[r],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,G(t))}}return pe(t),!0}return t instanceof C&&!ge(t)?(pe(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!y(/<\/no(script|embed|frames)/i,t.innerHTML)?(St&&t.nodeType===q.text&&(e=t.textContent,u([lt,ut,ht],(t=>{e=p(e,t," ")})),t.textContent!==e&&(f(n.removed,{element:t.cloneNode()}),t.textContent=e)),ke("afterSanitizeElements",t,null),!1):(pe(t),!0)},xe=function(t,e,n){if(Pt&&("id"===e||"name"===e)&&(n in r||n in se))return!1;if(Tt&&!xt[e]&&y(ft,e));else if(Et&&y(dt,e));else if(!yt[e]||xt[e]){if(!(Ee(t)&&(kt.tagNameCheck instanceof RegExp&&y(kt.tagNameCheck,t)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(t))&&(kt.attributeNameCheck instanceof RegExp&&y(kt.attributeNameCheck,e)||kt.attributeNameCheck instanceof Function&&kt.attributeNameCheck(e))||"is"===e&&kt.allowCustomizedBuiltInElements&&(kt.tagNameCheck instanceof RegExp&&y(kt.tagNameCheck,n)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(n))))return!1}else if(Xt[e]);else if(y(mt,p(n,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==m(n,"data:")||!zt[t])if(Bt&&!y(At,p(n,gt,"")));else if(n)return!1;return!0},Ee=function(t){return"annotation-xml"!==t&&g(t,pt)},Te=function(t){ke("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:yt};let i=e.length;for(;i--;){const a=e[i],{name:o,namespaceURI:s,value:c}=a,l=ae(o);let f="value"===o?c:b(c);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,ke("uponSanitizeAttribute",t,r),f=r.attrValue,r.forceKeepAttr)continue;if(me(o,t),!r.keepAttr)continue;if(!_t&&y(/\/>/i,f)){me(o,t);continue}if(Lt&&y(/((--!?|])>)|<\/(style|title)/i,f)){me(o,t);continue}St&&u([lt,ut,ht],(t=>{f=p(f,t," ")}));const d=ae(t.nodeName);if(xe(d,l,f)){if(!Rt||"id"!==l&&"name"!==l||(me(o,t),f=Qt+f),et&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(s);else switch(H.getAttributeType(d,l)){case"TrustedHTML":f=et.createHTML(f);break;case"TrustedScriptURL":f=et.createScriptURL(f)}try{s?t.setAttributeNS(s,o,f):t.setAttribute(o,f),ye(t)?pe(t):h(n.removed)}catch(t){}}}ke("afterSanitizeAttributes",t,null)},Be=function t(e){let n=null;const r=ve(e);for(ke("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)ke("uponSanitizeShadowNode",n,null),Ce(n)||(n.content instanceof c&&t(n.content),Te(n));ke("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,o=null,s=null;if(Zt=!t,Zt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!we(t)){if("function"!=typeof t.toString)throw w("toString is not a function");if("string"!=typeof(t=t.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Mt||le(e),n.removed=[],"string"==typeof t&&($t=!1),$t){if(t.nodeName){const e=ae(t.nodeName);if(!bt[e]||Ct[e])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof k)r=be("\x3c!----\x3e"),a=r.ownerDocument.importNode(t,!0),a.nodeType===q.element&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Dt&&!St&&!It&&-1===t.indexOf("<"))return et&&Nt?et.createHTML(t):t;if(r=be(t),!r)return Dt?null:Nt?nt:""}r&&Ot&&pe(r.firstChild);const l=ve($t?t:r);for(;o=l.nextNode();)Ce(o)||(o.content instanceof c&&Be(o.content),Te(o));if($t)return t;if(Dt){if(Ft)for(s=at.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(yt.shadowroot||yt.shadowrootmode)&&(s=st.call(i,s,!0)),s}let h=It?r.outerHTML:r.innerHTML;return It&&bt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&y(X,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),St&&u([lt,ut,ht],(t=>{h=p(h,t," ")})),et&&Nt?et.createHTML(h):h},n.setConfig=function(){le(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Mt=!0},n.clearConfig=function(){oe=null,Mt=!1},n.isValidAttribute=function(t,e,n){oe||le({});const r=ae(t),i=ae(e);return xe(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(ct[t]=ct[t]||[],f(ct[t],e))},n.removeHook=function(t){if(ct[t])return h(ct[t])},n.removeHooks=function(t){ct[t]&&(ct[t]=[])},n.removeAllHooks=function(){ct={}},n}var tt=Z();return tt}()})),iv=rv(window);function av(t,e,n){return e=es(e),Ko(t,ov()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function ov(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(ov=function(){return!!t})()}var sv=["href","src"];iv.addHook("afterSanitizeAttributes",(function(t){Qs(sv).call(sv,(function(e){if(t.hasAttribute(e)){var n=t.getAttribute(e);t.setAttribute(e,n.replace(/\\/g,"%5c"))}}))}));var cv=function(t){function e(t){var n,r=t.config;return ra(this,e),(n=av(this,e,[{needCache:!0}])).filterStyle=r.filterStyle||!1,n}return ss(e,t),Ho(e,[{key:"isAutoLinkTag",value:function(t){var e=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return nv(e).call(e,(function(e){return e.test(t)}))}},{key:"isHtmlComment",value:function(t){return/^<!--.*?-->$/.test(t)}},{key:"beforeMakeHtml",value:function(t,e){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=t;return r=function(t){if("string"!=typeof t)return"";var e=t.replace(/&(\w+);?/g,(function(t,e){return-1===Ef(t).call(t,";")||-1===Ef(DA).call(DA,e.toLowerCase())?t.replace(/&/g,"&amp;"):t}));return e=e.replace(/&#(?!x)(\d*);?/gi,(function(t,e){return FA(e)||-1===Ef(t).call(t,";")||e.lenth>7||!NA(e)?t.replace(/&/g,"&amp;"):t})),e=e.replace(/&#x([0-9a-f]*);?/gi,(function(t,e){if(FA(e))return t.replace(/&/g,"&amp;");var n="0x".concat(e),r=Ff(n,16);return isNaN(r)||-1===Ef(t).call(t,";")||e.lenth>6||!NA(n)?t.replace(/&/g,"&amp;"):t})),e}(r=HA(r)),r=(r=(r=r.replace(/<[/]?(.*?)>/g,(function(t,e){return QA.test(e)||n.isAutoLinkTag(t)||n.isHtmlComment(t)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(e)?t.replace(/</g,"$#60;").replace(/>/g,"$#62;"):t.replace(/</g,"&#60;").replace(/>/g,"&#62;")}))).replace(/<(?=\/?(\w|\n|$))/g,"&#60;")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">"),this.filterStyle&&(r=(r=r.replace(/<([^/][^>]+?) style="[^>\n]+?"([^>\n]*)>/gi,"<$1$2>")).replace(/<([^/][^>]+?) style='[^>\n]+?'([^>\n]*)>/gi,"<$1$2>")),r}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){var e=t,n={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]};if(!1!==this.htmlWhiteListAppend){var r;if(n.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(e=e.replace(/<style(>| [^>]*>).*?<\/style>/gi,(function(t){return t.replace(/<br>/gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=hs(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,e=e.replace(/<iframe(>| [^>]*>).*?<\/iframe>/gi,(function(t){return t.replace(/<br>/gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return e=e.replace(/<script(>| [^>]*>).*?<\/script>/gi,(function(t){return t.replace(/<br>/gi,"")})),e}return Zm()||(n.FORBID_ATTR=["data-sign","data-lines"]),iv.sanitize(e,n)}}])}(VA);cs(cv,"HOOK_NAME","htmlBlock");var lv={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function uv(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function hv(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=uv(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=uv(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}function fv(t,e,n){return e=es(e),Ko(t,dv()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function dv(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(dv=function(){return!!t})()}function Av(){for(var t=[],e=0,n="",r=0,i=arguments.length;r!==i;++r){var a=+(r<0||arguments.length<=r?void 0:arguments[r]);if(!(a<1114111&&a>>>0===a))throw new RangeError("Invalid code point: ".concat(a));a<=65535?e=t.push(a):(a-=65536,e=t.push(55296+(a>>10),a%1024+56320)),e>=16383&&(n+=String.fromCharCode.apply(null,t),t.length=0)}return n+String.fromCharCode.apply(null,t)}var gv=function(t){function e(){var t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;if(ra(this,e),(t=fv(this,e,[{config:n}])).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:hv({},lv)},"object"!==Ro(n))return Ko(t);var r=n.useUnicode,i=n.customResourceURL,a=n.customRenderer,o=n.upperCase;return t.options.useUnicode="boolean"==typeof r?r:t.options.useUnicode,t.options.upperCase="boolean"==typeof o?o:t.options.upperCase,!1===r&&"string"==typeof i&&(t.options.resourceURL=i),"function"==typeof a&&(t.options.customHandled=!0,t.options.customRenderer=a),t}return ss(e,t),Ho(e,[{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,e){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(e);var i=n.options.emojis[e];if("string"!=typeof i)return t;if(n.options.useUnicode){var a,o=lA(a=i.split("-")).call(a,(function(t){return"0x".concat(t)}));return Av.apply(void 0,kp(o))}n.options.upperCase&&(i=i.toUpperCase());var s=n.options.resourceURL.replace(/\$\{code\}/g,i);return hs(r='<img class="emoji" src="'.concat(s,'" alt="')).call(r,$A(e),'" />')})):t}},{key:"rule",value:function(){var t={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return t.reg=md(t,"g"),t}}])}(iA);function pv(t,e,n){return e=es(e),Ko(t,mv()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function mv(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(mv=function(){return!!t})()}cs(gv,"HOOK_NAME","emoji");var bv=function(t){function e(){return ra(this,e),pv(this,e,arguments)}return ss(e,t),Ho(e,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,'$1<span style="text-decoration: underline;">$2</span>$3'):t}},{key:"rule",value:function(){var t={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(iA);function vv(t,e,n){return e=es(e),Ko(t,yv()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function yv(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(yv=function(){return!!t})()}cs(bv,"HOOK_NAME","underline");var wv=function(t){function e(){return ra(this,e),vv(this,e,arguments)}return ss(e,t),Ho(e,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1<mark>$2</mark>$3"):t}},{key:"rule",value:function(){var t={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(iA);cs(wv,"HOOK_NAME","highLight");var kv=fn.includes,Cv=u((function(){return!Array(1).includes()}));Dn({target:"Array",proto:!0,forced:Cv},{includes:function(t){return kv(this,t,arguments.length>1?arguments[1]:void 0)}}),Wa();var xv=Ni("Array","includes"),Ev=w("".indexOf);Dn({target:"String",proto:!0,forced:!Hh("includes")},{includes:function(t){return!!~Ev(xr(U(this)),xr($h(t)),arguments.length>1?arguments[1]:void 0)}});var Tv=Ni("String","includes"),Bv=xv,_v=Tv,Sv=Array.prototype,Lv=String.prototype,Iv=function(t){var e=t.includes;return t===Sv||rt(Sv,t)&&e===Sv.includes?Bv:"string"==typeof t||t===Lv||rt(Lv,t)&&e===Lv.includes?_v:e};var Mv=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var Ov=function(t){return"symbol"==typeof t||ml(t)&&"[object Symbol]"==fc(t)},Dv=rc?rc.prototype:void 0,Fv=Dv?Dv.toString:void 0;var Nv=function t(e){if("string"==typeof e)return e;if(xl(e))return Mv(e,t)+"";if(Ov(e))return Fv?Fv.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};var Pv=function(t){return null==t?"":Nv(t)},Rv=/[\\^$.*+?()[\]{}|]/g,Qv=RegExp(Rv.source);var Uv,$v=function(t){return(t=Pv(t))&&Qv.test(t)?t.replace(Rv,"\\$&"):t},Hv=["javascript","typescript","html","css","shell","python","golang","java","c","c++","c#","php","ruby","swift","kotlin","scala","rust","dart","elixir","haskell","lua","perl","r","sql","xml","svg","adoc","asciidoc","asm6502","aspnet","atom","awk","bash","basic","batch","c","clike","cmake","context","cpp","cs","csharp","css","csv","dart","diff","django","dns-zone","dns-zone-file","docker","dockerfile","dotnet","extend","ftl","git","glsl","go","go-mod","go-module","graphql","haml","html","http","ini","insertBefore","java","javadoc","javadoclike","javascript","javastacktrace","jinja2","js","jsdoc","json","json5","jsonp","jsstacktrace","jsx","latex","less","linker-script","lua","makefile","markdown","markup","markup-templating","mathml","matlab","md","mermaid","mongodb","nasm","nginx","nsis","objc","objectivec","objectpascal","pascal","perl","php","phpdoc","plain","plaintext","plant-uml","plsql","powershell","properties","protobuf","py","python","r","rb","regex","rss","ruby","rust","sas","sass","scala","scheme","scss","sh-session","shell","shell-session","shellsession","smali","splunk-spl","sql","ssml","svg","swift","systemd","tex","text","textile","ts","tsx","txt","typescript","uri","url","vb","vba","vbnet","vim","visual-basic","wasm","webmanifest","wiki","xml","yaml","yml"],jv=Qi(Hv).call(Hv,(function(t,e){return Ef(Hv).call(Hv,t)===e}));function Kv(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return zv(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zv(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function zv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Gv,Xv,Vv="/·¥、:“”【】()《》`".concat("#"),Wv=[{icon:"h1",label:"H1 Heading",keyword:"head1",value:"# "},{icon:"h2",label:"H2 Heading",keyword:"head2",value:"## "},{icon:"h3",label:"H3 Heading",keyword:"head3",value:"### "},{icon:"table",label:"Table",keyword:"table",value:"| Header | Header | Header |\n| --- | --- | --- |\n| Content | Content | Content |\n"},{icon:"code",label:"Code",keyword:"code",value:"```\n\n```\n"},{icon:"link",label:"Link",keyword:"link",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"checklist",label:"Checklist",keyword:"checklist",value:"- [ ] item\n- [x] item"},{icon:"tips",label:"Panel",keyword:"panel tips info warning danger success",value:"::: primary title\ncontent\n:::\n"},{icon:"insertFlow",label:"Detail",keyword:"detail",value:"+++ 点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容\n+++\n"}],qv=[{icon:"FullWidth",label:"`",keyword:"···",value:"`"},{icon:"FullWidth",label:"$",keyword:"¥",value:"$"},{icon:"FullWidth",label:"/",keyword:"、",value:"/"},{icon:"FullWidth",label:"\\",keyword:"、",value:"\\"},{icon:"FullWidth",label:'"',keyword:"“",value:'"'},{icon:"FullWidth",label:'"',keyword:"”",value:'"'},{icon:"FullWidth",label:"[",keyword:"【",value:"["},{icon:"FullWidth",label:"]",keyword:"】",value:"]"},{icon:"FullWidth",label:"(",keyword:"(",value:"("},{icon:"FullWidth",label:")",keyword:")",value:")"},{icon:"FullWidth",label:"<",keyword:"《",value:"<"},{icon:"FullWidth",label:">",keyword:"》",value:">"}],Yv=[{icon:"FullWidth",label:"[]",keyword:"【】",value:"[]",goLeft:1},{icon:"FullWidth",label:"【】",keyword:"【",value:"【】",goLeft:1},{icon:"link",label:"Link",keyword:"【】",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"<>",keyword:"《》",value:"<>",goLeft:1},{icon:"FullWidth",label:"《》",keyword:"《》",value:"《》",goLeft:1},{icon:"FullWidth",label:'""',keyword:"“”",value:'""',goLeft:1},{icon:"FullWidth",label:"“”",keyword:"“”",value:"”“",goLeft:1},{icon:"FullWidth",label:"inlineCode",keyword:"`",value:"``",goLeft:1},{icon:"FullWidth",label:"codeBlock",keyword:"`",value:"```\n\n```\n",goTop:2}],Jv=(Gv=lA(jv).call(jv,(function(t){return{icon:"FullWidth",label:t,keyword:"```",value:"```".concat(t,"\n\n```\n"),goTop:2,exactMatch:!0}})),Xv=[],Qs(jv).call(jv,(function(t){var e,n="",r=Kv(t);try{for(r.s();!(e=r.n()).done;)n+=e.value,Xv.push({icon:"FullWidth",label:t,keyword:"```".concat(n),value:"```".concat(t,"\n\n```\n"),goTop:2,exactMatch:!0})}catch(t){r.e(t)}finally{r.f()}})),hs(Gv).call(Gv,Xv)),Zv=hs(Uv=hs(qv).call(qv,Yv)).call(Uv,Jv);var ty=function(){return"CodeMirror.Pass"};function ey(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return ny(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ny(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ry(t,e,n){return e=es(e),Ko(t,iy()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function iy(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(iy=function(){return!!t})()}var ay=function(t){function e(t){var n,r=t.config,i=t.cherry;return ra(this,e),(n=ry(this,e,[{needCache:!0}])).config=r,n.$cherry=i,n.suggesterPanel=new oy(i),n.inited||n.initConfig(n.config),n.RULE=n.rule(),n}return ss(e,t),Ho(e,[{key:"afterInit",value:function(t){Zm()&&"function"==typeof t&&t()}},{key:"initConfig",value:function(t){var e=this,n=t.suggester;this.suggester={};var r,i=[],a=this,o=ey(Vv);try{var s=function(){var t=r.value;i.push({keyword:t,suggestList:function(e,n){var r=e.toLowerCase(),i=function(t,e){var n,r,i,a=hs(n=[]).call(n,Wv),o=hs(r=[]).call(r,Zv);return Qs(a).call(a,(function(t){t.label=e[t.label]||t.label})),Qs(o).call(o,(function(t){t.label=e[t.label]||t.label})),("/"===t[0]||"、"===t[0]||Iv("#").call("#",t[0]))&&Qs(a).call(a,(function(e){e.keyword="".concat(t[0],e.keyword)})),Qi(i=hs(o).call(o,a)).call(i,(function(e){var n;return Vh(n=e.keyword).call(n,t[0])}))}(t,a.$locale);if(/^\s$/.test(r))n(!1);else{var o=r.replace(/\s+/g,"").replace(new RegExp("^".concat(t),"g"),"").replace(/^[#]+/,"#").replace(/^[/]+/,"/").split("").join(".*?"),s=new RegExp("^.*?".concat(o,".*?$"),"i"),c=Qi(i).call(i,(function(t){return t.exactMatch?!r||t.keyword===r:!r||s.test(t.keyword)}));n(0!==c.length&&c)}},echo:function(){return""}})};for(o.s();!(r=o.n()).done;)s()}catch(t){o.e(t)}finally{o.f()}n=n?hs(i).call(i,n):i,Qs(n).call(n,(function(t){t.suggestList?(t.keyword||(t.keyword="@"),e.suggester[t.keyword]=t):console.warn("[cherry-suggester]: the suggestList of config is missing.")})),this.suggesterPanel.hasEditor()&&(this.suggesterPanel.editor=null),this.inited=!0}},{key:"makeHtml",value:function(t){var e,n;if(!this.RULE.reg)return t;if(!this.suggesterPanel.hasEditor()&&Zm()){var r=this.$engine.$cherry.editor;this.suggesterPanel.setEditor(r),this.suggesterPanel.setSuggester(this.suggester),this.suggesterPanel.bindEvent()}return bd()?t.replace(this.RULE.reg,fs(n=this.toHtml).call(n,this)):Tp(t,this.RULE.reg,fs(e=this.toHtml).call(e,this),!0,1)}},{key:"toHtml",value:function(t,e,n,r){var i,a,o,s,c;return r?(null===(a=this.suggester[n])||void 0===a||null===(o=a.echo)||void 0===o?void 0:o.call(this,r))||hs(s=hs(c="".concat(e,'<span class="cherry-suggestion">')).call(c,n)).call(s,r,"</span>"):!1===(null===(i=this.suggester[n])||void 0===i?void 0:i.echo)?"".concat(e):this.suggester[n]?r?e+r:"".concat(e):e+r}},{key:"rule",value:function(){var t,e,n,r,i,a,o,s=this;if(null===(t=this.config)||void 0===t||!t.suggester||Is(null===(e=this.config)||void 0===e?void 0:e.suggester).length<=0)return{};sd(this.config.suggester)?i=lA(a=this.config.suggester).call(a,(function(t){return t.keyword||""})):i=lA(o=Is(this.config.suggester)).call(o,(function(t){return s.config.suggester[t].keyword||""}));var c=lA(i).call(i,(function(t){return $v(t)})).join("|");return{reg:new RegExp(hs(n=hs(r="".concat(bd()?"((?<!\\\\))[ ]":"(^|[^\\\\])[ ]","(")).call(r,c,")(([^")).call(n,c,"\\s])+)"),"g")}}},{key:"mounted",value:function(){if(!this.suggesterPanel.hasEditor()&&Zm()){var t=this.$engine.$cherry.editor;this.suggesterPanel.setEditor(t),this.suggesterPanel.setSuggester(this.suggester),this.suggesterPanel.bindEvent()}}}])}(iA);cs(ay,"HOOK_NAME","suggester");var oy=function(){return Ho((function t(e){ra(this,t),cs(this,"panelWrap",'<div class="cherry-suggester-panel"></div>'),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={},this.$cherry=e}),[{key:"tryCreatePanel",value:function(){!this.$suggesterPanel&&Zm()&&document&&(this.$cherry.wrapperDom.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=this.$cherry.wrapperDom.querySelector(".cherry-suggester-panel"))}},{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(t){this.editor=t}},{key:"setSuggester",value:function(t){this.suggesterConfig=t}},{key:"bindEvent",value:function(){var t=this;if(this.editor.options.showSuggestList){var e=!1;this.editor.editor.on("change",(function(n,r){e=!0,t.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){e=!0,t.enableRelate()&&t.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){e||t.stopRelate(),e=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];Qs(r).call(r,(function(e){if("function"==typeof n[e]){var r=n[e];n[e]=function(e){if(t.cursorMove){var n=r.call(e,e);if(n)return n}}}else if(n[e]){if("string"==typeof n[e]){var i=n[e];n[e]=function(e){t.cursorMove&&t.editor.editor.execCommand(i)}}}else n[e]=function(){if(t.cursorMove)return ty()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(e,n){t.searchCache&&t.relocatePanel(t.editor.editor)})),this.onClickPanelItem()}}},{key:"onClickPanelItem",value:function(){var t=this;this.tryCreatePanel(),this.$suggesterPanel.addEventListener("click",(function(e){var n=function(t,e){var n,r=-1;return Qs(n=t.childNodes).call(n,(function(t,n){return t===e?r=n:""})),r}(t.$suggesterPanel,e.target);n>-1&&t.pasteSelectResult(n),t.stopRelate()}),!1)}},{key:"showSuggesterPanel",value:function(t){var e=t.left,n=t.top,r=t.items;this.tryCreatePanel(),!this.$suggesterPanel&&Zm()&&(this.$cherry.wrapperDom.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=this.$cherry.wrapperDom.querySelector(".cherry-suggester-panel")),this.updatePanel(r),this.$suggesterPanel.style.left="".concat(e,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hideSuggesterPanel",value:function(){this.tryCreatePanel(),this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(t){var e=this;this.tryCreatePanel();var n=lA(t).call(t,(function(t,n){if("object"===Ro(t)&&null!==t){var r,i=t.label;if(null!=t&&t.icon)i=hs(r='<i class="ch-icon ch-icon-'.concat(t.icon,'"></i>')).call(r,i);return e.renderPanelItem(i,!1)}return e.renderPanelItem(t,!1)})).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,t)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:sd(n)&&n.length>0?Qs(n).call(n,(function(t){e.$suggesterPanel.appendChild(t)})):"object"===Ro(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(t,e){return e?'<div class="cherry-suggester-panel__item cherry-suggester-panel__item--selected">'.concat(t,"</div>"):'<div class="cherry-suggester-panel__item">'.concat(t,"</div>")}},{key:"createDom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=mh(t).call(t);var e=document.createDocumentFragment();return lA(Array.prototype).call(this.template.childNodes,(function(t,n){e.appendChild(t)})),e}},{key:"relocatePanel",value:function(t){var e=this.$cherry.wrapperDom.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(e||(e=this.$cherry.wrapperDom.querySelector(".CodeMirror-selected")),!e)return!1;var n=this.$cherry.wrapperDom.getBoundingClientRect(),r=e.getBoundingClientRect(),i=r.top+r.height+5-n.top,a=r.left-n.left;this.showSuggesterPanel({left:a,top:i,items:this.optionList})}},{key:"getCursorPos",value:function(t){var e=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!e)return null;var n=t.getCursor(),r=t.lineInfo(n.line).handle.height,i=e.getBoundingClientRect(),a=i.top+r;return{left:i.left,top:a}}},{key:"startRelate",value:function(t,e,n){this.cursorFrom=n,this.keyword=e,this.searchCache=!0,this.relocatePanel(t)}},{key:"stopRelate",value:function(){this.hideSuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[]}},{key:"pasteSelectResult",value:function(t,e){if(this.cursorTo&&this.cursorTo!==this.cursorFrom||(this.cursorTo=JSON.parse(Zu(this.cursorFrom))),this.cursorTo){this.cursorTo.ch+=1;var n=this.cursorFrom,r=this.cursorTo;if(this.optionList[t]){var i="";if("object"===Ro(this.optionList[t])&&null!==this.optionList[t]&&"string"==typeof this.optionList[t].value)i=this.optionList[t].value;else if("object"===Ro(this.optionList[t])&&null!==this.optionList[t]&&"function"==typeof this.optionList[t].value)i=this.optionList[t].value();else{var a;i=hs(a=" ".concat(this.keyword)).call(a,this.optionList[t]," ")}if(i&&this.editor.editor.replaceRange(i,n,r),this.optionList[t].goLeft){var o=this.editor.editor.getCursor();this.editor.editor.setCursor(o.line,o.ch-this.optionList[t].goLeft)}if(this.optionList[t].goTop){var s=this.editor.editor.getCursor();this.editor.editor.setCursor(s.line-this.optionList[t].goTop,s.ch)}if(this.optionList[t].selection){var c=this.editor.editor.getCursor().line,l=this.editor.editor.getCursor().ch;this.editor.editor.setSelection({line:c,ch:l-this.optionList[t].selection.from},{line:c,ch:l-this.optionList[t].selection.to})}}}}},{key:"findSelectedItemIndex",value:function(){return Xd(Array.prototype).call(this.$suggesterPanel.childNodes,(function(t){return t.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(t,e){var n=this,r=e.text,i=e.from,a=e.to,o=e.origin,s=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[s]&&this.startRelate(t,s,i),this.enableRelate()&&(s||"+delete"===o)){var c;if(this.cursorTo=a,s)this.searchKeyCache.push(s);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(c=this.suggesterConfig[this.keyword])||void 0===c?void 0:c.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(t){!1!==t?(n.optionList=t&&t.length?t:[],n.updatePanel(n.optionList)):n.stopRelate()}))}}},{key:"onKeyDown",value:function(t,e){var n,r=this;if(this.tryCreatePanel(),!this.$suggesterPanel)return!1;var i=e.keyCode;if(Iv(n=[38,40]).call(n,i)){if(0===this.optionList.length)return void ks((function(){r.stopRelate()}),0);this.cursorMove=!1;var a=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected")||this.$suggesterPanel.querySelector(".cherry-suggester-panel__item:last-child"),o=null;38!==i||a.previousElementSibling?40!==i||a.nextElementSibling?38===i?o=a.previousElementSibling:40===i&&(o=a.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,a.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected");var s=this.$suggesterPanel.offsetHeight,c=this.$suggesterPanel.scrollTop,l=c+s,u=o.offsetTop,h=o.offsetHeight;(u<c||u+h>l)&&(this.$suggesterPanel.scrollTop=u-s/2)}else if(13===i){var f=this.findSelectedItemIndex();f>=0&&(e.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(f,e),t.focus()),ks((function(){r.stopRelate()}),0)}else 27!==i&&37!==i&&39!==i||(e.stopPropagation(),t.focus(),ks((function(){r.stopRelate()}),0))}}])}();function sy(t,e,n){return e=es(e),Ko(t,cy()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function cy(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(cy=function(){return!!t})()}var ly=function(t){function e(){return ra(this,e),sy(this,e,arguments)}return ss(e,t),Ho(e,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1<ruby>$2<rt>$3</rt></ruby>$4"):t}},{key:"rule",value:function(){var t={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(iA);function uy(t,e,n){return e=es(e),Ko(t,hy()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function hy(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(hy=function(){return!!t})()}cs(ly,"HOOK_NAME","ruby");var fy=function(t){function e(t){var n;return ra(this,e),(n=uy(this,e,[{needCache:!0}])).initBrReg(t.globalConfig.classicBr),n}return ss(e,t),Ho(e,[{key:"makeHtml",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i,a){var o,s,c,l,u,h=n.getLineCount(t,r),f=n.$engine.md5(t),d=n.testHasCache(f);if(!1!==d)return uA(t,d);var A=n.$getPanelInfo(i,a,e),g=A.title,p=A.body,m=A.appendStyle,b=A.className;return uA(t,n.pushCache(hs(o=hs(s=hs(c=hs(l=hs(u='<div class="'.concat(b,'" data-sign="')).call(u,f,'" data-lines="')).call(l,h,'" ')).call(c,m,">")).call(s,g)).call(o,p,"</div>"),f,h))}))}},{key:"$getClassByType",value:function(t){return/(left|right|center)/i.test(t)?"cherry-text-align cherry-text-align__".concat(t):"cherry-panel cherry-panel__".concat(t)}},{key:"$getPanelInfo",value:function(t,e,n){var r,i=this,a={type:this.$getTargetType(t),title:n(this.$getTitle(t)).html,body:e,appendStyle:"",className:""};a.className=this.$getClassByType(a.type),/(left|right|center)/i.test(a.type)&&(a.appendStyle='style="text-align:'.concat(a.type,';"')),a.title=hs(r='<div class="cherry-panel--title '.concat(a.title?"cherry-panel--title__not-empty":"",'">')).call(r,a.title,"</div>");var o=function(t){var e,r;if(""===mh(t).call(t))return"";var a=n(t).html,o="p";return new RegExp("<(".concat(PA,")[^>]*>"),"i").test(a)&&(o="div"),hs(e=hs(r="<".concat(o,">")).call(r,i.$cleanParagraph(a),"</")).call(e,o,">")},s="";return s=this.isContainsCache(a.body)?this.makeExcludingCached(a.body,o):o(a.body),a.body='<div class="cherry-panel--body">'.concat(s,"</div>"),a}},{key:"$getTitle",value:function(t){var e=mh(t).call(t);return/\s/.test(e)?e.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(t){var e=/\s/.test(mh(t).call(t))?mh(t).call(t).replace(/\s.*$/,""):t;switch(mh(e).call(e).toLowerCase()){case"primary":case"p":default:return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left"}}},{key:"rule",value:function(){return Od()}}])}(VA);function dy(t,e,n){return e=es(e),Ko(t,Ay()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Ay(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Ay=function(){return!!t})()}cs(fy,"HOOK_NAME","panel");var gy=function(t){function e(){return ra(this,e),dy(this,e,[{needCache:!0}])}return ss(e,t),Ho(e,[{key:"makeHtml",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i,a,o){var s,c,l,u=n.getLineCount(t,r),h=n.$engine.md5(t),f=n.testHasCache(h);if(!1!==f)return uA(t,f);var d=n.$getDetailInfo(i,a,o,e),A=d.type,g=d.html;return uA(t,n.pushCache(hs(s=hs(c=hs(l='<div class="cherry-detail cherry-detail__'.concat(A,'" data-sign="')).call(l,h,'" data-lines="')).call(c,u,'" >')).call(s,g,"</div>"),h,u))}))}},{key:"$getDetailInfo",value:function(t,e,n,r){var i=this,a=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",o=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),s="-"===t,c=e,l="";return"multiple"===a?Qs(o).call(o,(function(t){if(/^\s*\+\+/.test(t))return s=/^\s*\+\+-/.test(t),c=t.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;l+=i.$getDetailHtml(s,c,t,r)})):l=this.$getDetailHtml(s,c,n,r),{type:a,html:l}}},{key:"$getDetailHtml",value:function(t,e,n,r){var i=this,a="<details ".concat(t?"open":"",">"),o=function(t){var e,n;if(""===mh(t).call(t))return"";var a=r(t).html,o="p";return new RegExp("<(".concat(PA,")[^>]*>"),"i").test(a)&&(o="div"),hs(e=hs(n="<".concat(o,">")).call(n,i.$cleanParagraph(a),"</")).call(e,o,">")};a+="<summary>".concat(r(e).html,"</summary>");var s="";return s=this.isContainsCache(n)?this.makeExcludingCached(n,o):o(n),a+='<div class="cherry-detail-body">'.concat(s,"</div>"),a+="</details>"}},{key:"rule",value:function(){return Dd()}}])}(VA);function py(t,e,n){return e=es(e),Ko(t,my()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function my(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(my=function(){return!!t})()}cs(gy,"HOOK_NAME","detail");var by=function(t){function e(t){return ra(this,e),py(this,e,[{needCache:!0}])}return ss(e,t),Ho(e,[{key:"beforeMakeHtml",value:function(t){var e=this;return t.replace(this.RULE.reg,(function(t,n){var r,i,a,o,s=null!==(r=null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0,c="fontMatter".concat(s);n.replace(/(?:^|\n)\s*(font-size|fontSize): ([0-9a-zA-Z]+)(\n|$)/,(function(t,n,r){return e.$engine.$cherry.previewer.getDom().style.fontSize=r,t}));var l=/^\s*{/.test(n)?n.replace(/\n/g,""):n.replace(/\n/g,";"),u=hs(a=hs(o='<p data-sign="'.concat(c,'" data-type="frontMatter" data-lines="')).call(o,s,'" data-content="')).call(a,l,'"></p>'),h=e.pushCache(u,c,s);return"".concat(h,"\n")}))}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"^\\s*-{3,}[^\\n]*\\n",end:"\\n-{3,}[^\\n]*\\n",content:"([\\s\\S]+?)"};return t.reg=md(t,"g",!0),t}}])}(VA);cs(by,"HOOK_NAME","frontMatter");var vy=[by,Jp,em,Mb,Fb,cv,Vb,Yb,Fm,nb,Jm,Cb,zb,Mm,ab,yb,gy,fy,ym,gv,hb,Am,Tb,mm,Mp,Sp,Fp,Gp,jp,ly,Up,bv,wv,ay],yy=function(){return Ho((function t(e,n){ra(this,t),this.$cherry=n,na(this,"_cherry",{get:function(){return id.warn("`_engine._cherry` is deprecated. Use `$engine.$cherry` instead."),this.$cherry}}),this.initMath(e),this.$configInit(e),this.hookCenter=new yp(vy,e,n),this.hooks=this.hookCenter.getHookList(),this.md5Cache={},this.md5StrMap={},this.cachedBigData={},this.markdownParams=e,this.currentStrMd5=[],this.globalConfig=e.engine.global,this.htmlWhiteListAppend=this.globalConfig.htmlWhiteList}),[{key:"initMath",value:function(t){var e=t.externals,n=t.engine.syntax,r=n.mathBlock.plugins;if(Zm()&&(n.mathBlock.src||n.inlineMath.src||n.mathBlock.engine||n.inlineMath.engine)&&!e.MathJax&&!window.MathJax){!function(t){if(Zm()){var e=t?["input/asciimath","[tex]/noerrors","[tex]/cancel","[tex]/color","[tex]/boldsymbol","ui/safe"]:["ui/safe"];window.MathJax={startup:{elements:[".Cherry-Math",".Cherry-InlineMath"],typeset:!0},tex:{inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],tags:"ams",packages:{"[+]":["noerrors","cancel","color"]},macros:{bm:["{\\boldsymbol{#1}}",1]}},options:{skipHtmlTags:["script","noscript","style","textarea","pre","code","a"],ignoreHtmlClass:"tex2jax_ignore",processHtmlClass:"tex2jax_process",enableMenu:!1},loader:{load:e}}}}(r);var i=document.createElement("script");i.src=n.mathBlock.src?n.mathBlock.src:n.inlineMath.src,i.async=!0,i.src&&document.head.appendChild(i)}}},{key:"$configInit",value:function(t){if(t.hooksConfig&&hp(t.hooksConfig.hooksList,Array))for(var e=0;e<t.hooksConfig.hooksList.length;e++){var n=t.hooksConfig.hooksList[e];try{"sentence"===n.getType()&&fp(n,iA),"paragraph"===n.getType()&&fp(n,VA),dp(n),vy.push(n)}catch(t){throw new Error("the hook does not correctly inherit")}}}},{key:"$beforeMakeHtml",value:function(t){var e=t.replace(/~/g,"~T");if(e=(e=(e=e.replace(/\$/g,"~D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n"),(this.$cherry.options.engine.syntax.fontEmphasis.selfClosing||this.$cherry.options.engine.global.flowSessionContext)&&/(^|\n)[^\n]*\*{1,3}[^\n]+$/.test(e)&&e.match(/(^|\n)([^\n]+)$/)){for(var n=e.match(/(^|\n)([^\n]+)$/)[2].split(/(\*{1,3})/g),r=[],i=0;i<n.length;i++)if(/\*{1,3}/.test(n[i])){var a=n[i];r.length<=0?r.push(a):r[r.length-1]===a?r.pop():r.push(a)}1===r.length&&(e=e.replace(/(\*{1,3})(\s*)([^*\n]+?)$/,"$1$2$3$2$1")),2===r.length&&(e=e.replace(/(\*{1,3})(\s*)([^*\n]+?)\*{0,2}$/,"$1$2$3$2$1"))}return"\n"!==e[e.length-1]&&(e+="\n"),e=this.$fireHookAction(e,"sentence","beforeMakeHtml"),e=this.$fireHookAction(e,"paragraph","beforeMakeHtml")}},{key:"$afterMakeHtml",value:function(t){var e=this.$fireHookAction(t,"paragraph","afterMakeHtml");return e=(e=(e=(e=e.replace(/~D/g,"$")).replace(/~T/g,"~")).replace(/\\<\//g,"\\ </")).replace(new RegExp("\\\\(".concat(wd,")"),"g"),(function(t,e){return"&"===e?t:UA(e)})).replace(/\\&(?!(amp|lt|gt|quot|apos);)/,(function(){return"&amp;"})),e=(e=e.replace(/\\ <\//g,"\\</")).replace(/id="safe_(?=.*?")/g,'id="'),e=hm.restoreAll(e)}},{key:"$dealSentenceByCache",value:function(t){var e=this;return this.$checkCache(t,(function(t){return e.$dealSentence(t)}))}},{key:"$dealSentence",value:function(t){var e;return this.$fireHookAction(t,"sentence","makeHtml",fs(e=this.$dealSentenceByCache).call(e,this))}},{key:"$fireHookAction",value:function(t,e,n,r){var i=this,a=t,o="afterMakeHtml"===n?"reduceRight":"reduce";if(!this.hooks&&!this.hooks[e]&&!this.hooks[e][o])return a;try{a=this.hooks[e][o]((function(t,e){return e.$engine||(e.$engine=i,na(e,"_engine",{get:function(){return id.warn("`this._engine` is deprecated. Use `this.$engine` instead."),this.$engine}})),e[n]?e[n](t,r,i.markdownParams):t}),a)}catch(t){throw new Ap(t)}return a}},{key:"md5",value:function(t){return this.md5StrMap[t]||(this.md5StrMap[t]=sm(t)),this.md5StrMap[t]}},{key:"$checkCache",value:function(t,e){var n=this.md5(t);return void 0===this.md5Cache[n]&&(this.md5Cache[n]=e(t)),{sign:n,html:this.md5Cache[n]}}},{key:"$dealParagraph",value:function(t){var e;return this.$fireHookAction(t,"paragraph","makeHtml",fs(e=this.$dealSentenceByCache).call(e,this))}},{key:"$cacheBigData",value:function(t){var e=this,n=t.replace(Fd,(function(t,n,r){var i,a="bigDataBegin".concat(e.md5(r),"bigDataEnd");return e.cachedBigData[a]=r,hs(i="".concat(n)).call(i,a,")")}));return n=n.replace(Nd,(function(t,n,r){var i,a="bigDataBegin".concat(e.md5(r),"bigDataEnd");return e.cachedBigData[a]=r,hs(i="".concat(n)).call(i,a,"}")})),n}},{key:"$deCacheBigData",value:function(t){var e=this;return t.replace(/bigDataBegin[^\n]+?bigDataEnd/g,(function(t){return e.cachedBigData[t]}))}},{key:"makeHtml",value:function(t){var e=this.$cacheBigData(t);return e=this.$beforeMakeHtml(e),e=this.$dealParagraph(e),e=this.$afterMakeHtml(e),this.$fireHookAction(e,"paragraph","$cleanCache"),e=this.$deCacheBigData(e)}},{key:"makeHtmlForBlockquote",value:function(t){var e=t;return e=this.$dealParagraph(e),e=this.$fireHookAction(e,"paragraph","afterMakeHtml")}},{key:"mounted",value:function(){this.$fireHookAction("","sentence","mounted"),this.$fireHookAction("","paragraph","mounted")}},{key:"makeMarkdown",value:function(t){return Uf.run(t)}}])}(),wy=Array.isArray,ky=Object.prototype.toString,Cy=wy||function(t){return"[object Array]"===ky.call(t)};var xy="2",Ey=function(t){return t&&"VirtualNode"===t.type&&t.version===xy};var Ty=function(t){return t&&"Widget"===t.type};var By=function(t){return t&&"Thunk"===t.type};var _y=function(t){return t&&("function"==typeof t.hook&&!t.hasOwnProperty("hook")||"function"==typeof t.unhook&&!t.hasOwnProperty("unhook"))};var Sy=My,Ly={},Iy=[];function My(t,e,n,r,i){this.tagName=t,this.properties=e||Ly,this.children=n||Iy,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof i?i:null;var a,o=n&&n.length||0,s=0,c=!1,l=!1,u=!1;for(var h in e)if(e.hasOwnProperty(h)){var f=e[h];_y(f)&&f.unhook&&(a||(a={}),a[h]=f)}for(var d=0;d<o;d++){var A=n[d];Ey(A)?(s+=A.count||0,!c&&A.hasWidgets&&(c=!0),!l&&A.hasThunks&&(l=!0),u||!A.hooks&&!A.descendantHooks||(u=!0)):!c&&Ty(A)?"function"==typeof A.destroy&&(c=!0):!l&&By(A)&&(l=!0)}this.count=o+s,this.hasWidgets=c,this.hasThunks=l,this.hooks=a,this.descendantHooks=u}My.prototype.version=xy,My.prototype.type="VirtualNode";var Oy=Dy;function Dy(t){this.text=String(t)}Dy.prototype.version=xy,Dy.prototype.type="VirtualText";var Fy=function(t){return t&&"VirtualText"===t.type&&t.version===xy};var Ny=function(t){var e,n=String.prototype.split,r=/()??/.exec("")[1]===t;return e=function(e,i,a){if("[object RegExp]"!==Object.prototype.toString.call(i))return n.call(e,i,a);var o,s,c,l,u=[],h=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),f=0;i=new RegExp(i.source,h+"g");for(e+="",r||(o=new RegExp("^"+i.source+"$(?!\\s)",h)),a=a===t?-1>>>0:a>>>0;(s=i.exec(e))&&!((c=s.index+s[0].length)>f&&(u.push(e.slice(f,s.index)),!r&&s.length>1&&s[0].replace(o,(function(){for(var e=1;e<arguments.length-2;e++)arguments[e]===t&&(s[e]=t)})),s.length>1&&s.index<e.length&&Array.prototype.push.apply(u,s.slice(1)),l=s[0].length,f=c,u.length>=a));)i.lastIndex===s.index&&i.lastIndex++;return f===e.length?!l&&i.test("")||u.push(""):u.push(e.slice(f)),u.length>a?u.slice(0,a):u},e}(),Py=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,Ry=/^\.|#/,Qy=function(t,e){if(!t)return"DIV";var n,r,i,a,o=!e.hasOwnProperty("id"),s=Ny(t,Py),c=null;Ry.test(s[1])&&(c="DIV");for(a=0;a<s.length;a++)(r=s[a])&&(i=r.charAt(0),c?"."===i?(n=n||[]).push(r.substring(1,r.length)):"#"===i&&o&&(e.id=r.substring(1,r.length)):c=r);n&&(e.className&&n.push(e.className),e.className=n.join(" "));return e.namespace?c:c.toUpperCase()};var Uy=$y;function $y(t){if(!(this instanceof $y))return new $y(t);this.value=t}$y.prototype.hook=function(t,e){t[e]!==this.value&&(t[e]=this.value)};var Hy="undefined"!=typeof window?window:void 0!==e?e:{},jy=function(t,e){if(t in Hy)return Hy[t];return Hy[t]=e,e};var Ky=function(t,e,n){var r="__INDIVIDUAL_ONE_VERSION_"+t,i=r+"_ENFORCE_SINGLETON",a=jy(i,e);if(a!==e)throw new Error("Can only have one copy of "+t+".\nYou already have version "+a+" installed.\nThis means you cannot install version "+e);return jy(r,n)};Ky("ev-store","7");var zy="__EV_STORE_KEY@7",Gy=function(t){var e=t[zy];e||(e=t[zy]={});return e};var Xy=Vy;function Vy(t){if(!(this instanceof Vy))return new Vy(t);this.value=t}Vy.prototype.hook=function(t,e){Gy(t)[e.substr(3)]=this.value},Vy.prototype.unhook=function(t,e){Gy(t)[e.substr(3)]=void 0};var Wy=function(t,e,n){var r,i,a,o,s=[];!n&&function(t){return"string"==typeof t||Cy(t)||Yy(t)}(e)&&(n=e,i={});r=Qy(t,i=i||e||{}),i.hasOwnProperty("key")&&(a=i.key,i.key=void 0);i.hasOwnProperty("namespace")&&(o=i.namespace,i.namespace=void 0);"INPUT"!==r||o||!i.hasOwnProperty("value")||void 0===i.value||_y(i.value)||(i.value=Uy(i.value));(function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if(_y(n))continue;"ev-"===e.substr(0,3)&&(t[e]=Xy(n))}})(i),null!=n&&qy(n,s,r,i);return new Sy(r,i,s,a,o)};function qy(t,e,n,r){if("string"==typeof t)e.push(new Oy(t));else if("number"==typeof t)e.push(new Oy(String(t)));else if(Yy(t))e.push(t);else{if(!Cy(t)){if(null==t)return;throw function(t){var e=new Error;return e.type="virtual-hyperscript.unexpected.virtual-element",e.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+Jy(t.foreignObject)+".\nThe parent vnode is:\n"+Jy(t.parentVnode),e.foreignObject=t.foreignObject,e.parentVnode=t.parentVnode,e}({foreignObject:t,parentVnode:{tagName:n,properties:r}})}for(var i=0;i<t.length;i++)qy(t[i],e,n,r)}}function Yy(t){return Ey(t)||Fy(t)||Ty(t)||By(t)}function Jy(t){try{return JSON.stringify(t,null," ")}catch(e){return String(t)}}var Zy=Wy;ew.NONE=0,ew.VTEXT=1,ew.VNODE=2,ew.WIDGET=3,ew.PROPS=4,ew.ORDER=5,ew.INSERT=6,ew.REMOVE=7,ew.THUNK=8;var tw=ew;function ew(t,e,n){this.type=Number(t),this.vNode=e,this.patch=n}ew.prototype.version=xy,ew.prototype.type="VirtualPatch";var nw=function(t,e){var n=t,r=e;By(e)&&(r=rw(e,t));By(t)&&(n=rw(t,null));return{a:n,b:r}};function rw(t,e){var n=t.vnode;if(n||(n=t.vnode=t.render(e)),!(Ey(n)||Fy(n)||Ty(n)))throw new Error("thunk did not return a valid node");return n}var iw=function(t){return"object"==typeof t&&null!==t},aw=function t(e,n){var r;for(var i in e){i in n||((r=r||{})[i]=void 0);var a=e[i],o=n[i];if(a!==o)if(iw(a)&&iw(o))if(ow(o)!==ow(a))(r=r||{})[i]=o;else if(_y(o))(r=r||{})[i]=o;else{var s=t(a,o);s&&((r=r||{})[i]=s)}else(r=r||{})[i]=o}for(var c in n)c in e||((r=r||{})[c]=n[c]);return r};function ow(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}function sw(t,e){var n={a:t};return cw(t,e,n,0),n}function cw(t,e,n,r){if(t!==e){var i=n[r],a=!1;if(By(t)||By(e))hw(t,e,n,r);else if(null==e)Ty(t)||(lw(t,n,r),i=n[r]),i=gw(i,new tw(tw.REMOVE,t,e));else if(Ey(e))if(Ey(t))if(t.tagName===e.tagName&&t.namespace===e.namespace&&t.key===e.key){var o=aw(t.properties,e.properties);o&&(i=gw(i,new tw(tw.PROPS,t,o))),i=function(t,e,n,r,i){for(var a=t.children,o=function(t,e){var n=Aw(e),r=n.keys,i=n.free;if(i.length===e.length)return{children:e,moves:null};var a=Aw(t),o=a.keys;if(a.free.length===t.length)return{children:e,moves:null};for(var s=[],c=0,l=i.length,u=0,h=0;h<t.length;h++){var f,d=t[h];d.key?r.hasOwnProperty(d.key)?(f=r[d.key],s.push(e[f])):(f=h-u++,s.push(null)):c<l?(f=i[c++],s.push(e[f])):(f=h-u++,s.push(null))}for(var A=c>=i.length?e.length:i[c],g=0;g<e.length;g++){var p=e[g];p.key?o.hasOwnProperty(p.key)||s.push(p):g>=A&&s.push(p)}for(var m,b=s.slice(),v=0,y=[],w=[],k=0;k<e.length;){var C=e[k];for(m=b[v];null===m&&b.length;)y.push(dw(b,v,null)),m=b[v];m&&m.key===C.key?(v++,k++):C.key?(m&&m.key&&r[m.key]!==k+1?(y.push(dw(b,v,m.key)),(m=b[v])&&m.key===C.key?v++:w.push({key:C.key,to:k})):w.push({key:C.key,to:k}),k++):m&&m.key&&y.push(dw(b,v,m.key))}for(;v<b.length;)m=b[v],y.push(dw(b,v,m&&m.key));if(y.length===u&&!w.length)return{children:s,moves:null};return{children:s,moves:{removes:y,inserts:w}}}(a,e.children),s=o.children,c=a.length,l=s.length,u=c>l?c:l,h=0;h<u;h++){var f=a[h],d=s[h];i+=1,f?cw(f,d,n,i):d&&(r=gw(r,new tw(tw.INSERT,null,d))),Ey(f)&&f.count&&(i+=f.count)}o.moves&&(r=gw(r,new tw(tw.ORDER,t,o.moves)));return r}(t,e,n,i,r)}else i=gw(i,new tw(tw.VNODE,t,e)),a=!0;else i=gw(i,new tw(tw.VNODE,t,e)),a=!0;else Fy(e)?Fy(t)?t.text!==e.text&&(i=gw(i,new tw(tw.VTEXT,t,e))):(i=gw(i,new tw(tw.VTEXT,t,e)),a=!0):Ty(e)&&(Ty(t)||(a=!0),i=gw(i,new tw(tw.WIDGET,t,e)));i&&(n[r]=i),a&&lw(t,n,r)}}function lw(t,e,n){fw(t,e,n),uw(t,e,n)}function uw(t,e,n){if(Ty(t))"function"==typeof t.destroy&&(e[n]=gw(e[n],new tw(tw.REMOVE,t,null)));else if(Ey(t)&&(t.hasWidgets||t.hasThunks))for(var r=t.children,i=r.length,a=0;a<i;a++){var o=r[a];uw(o,e,n+=1),Ey(o)&&o.count&&(n+=o.count)}else By(t)&&hw(t,null,e,n)}function hw(t,e,n,r){var i=nw(t,e),a=sw(i.a,i.b);(function(t){for(var e in t)if("a"!==e)return!0;return!1})(a)&&(n[r]=new tw(tw.THUNK,null,a))}function fw(t,e,n){if(Ey(t)){if(t.hooks&&(e[n]=gw(e[n],new tw(tw.PROPS,t,function(t){var e={};for(var n in t)e[n]=void 0;return e}(t.hooks)))),t.descendantHooks||t.hasThunks)for(var r=t.children,i=r.length,a=0;a<i;a++){var o=r[a];fw(o,e,n+=1),Ey(o)&&o.count&&(n+=o.count)}}else By(t)&&hw(t,null,e,n)}function dw(t,e,n){return t.splice(e,1),{from:e,key:n}}function Aw(t){for(var e={},n=[],r=t.length,i=0;i<r;i++){var a=t[i];a.key?e[a.key]=i:n.push(i)}return{keys:e,free:n}}function gw(t,e){return t?(Cy(t)?t.push(e):t=[t,e],t):e}var pw,mw,bw=sw,vw=(pw=Object.freeze({__proto__:null,default:{}}))&&pw.default||pw,yw=void 0!==e?e:"undefined"!=typeof window?window:{};"undefined"!=typeof document?mw=document:(mw=yw["__GLOBAL_DOCUMENT_CACHE@4"])||(mw=yw["__GLOBAL_DOCUMENT_CACHE@4"]=vw);var ww=mw,kw=function(t,e,n){for(var r in e){var i=e[r];void 0===i?Cw(t,r,i,n):_y(i)?(Cw(t,r,i,n),i.hook&&i.hook(t,r,n?n[r]:void 0)):iw(i)?xw(t,e,n,r,i):t[r]=i}};function Cw(t,e,n,r){if(r){var i=r[e];if(_y(i))i.unhook&&i.unhook(t,e,n);else if("attributes"===e)for(var a in i)t.removeAttribute(a);else if("style"===e)for(var o in i)t.style[o]="";else t[e]="string"==typeof i?"":null}}function xw(t,e,n,r,i){var a=n?n[r]:void 0;if("attributes"!==r)if(a&&iw(a)&&Ew(a)!==Ew(i))t[r]=i;else{iw(t[r])||(t[r]={});var o="style"===r?"":void 0;for(var s in i){var c=i[s];t[r][s]=void 0===c?o:c}}else for(var l in i){var u=i[l];void 0===u?t.removeAttribute(l):t.setAttribute(l,u)}}function Ew(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}var Tw=function t(e,n){var r=n&&n.document||ww,i=n?n.warn:null;if(e=nw(e).a,Ty(e))return e.init();if(Fy(e))return r.createTextNode(e.text);if(!Ey(e))return i&&i("Item is not a valid virtual dom node",e),null;var a=null===e.namespace?r.createElement(e.tagName):r.createElementNS(e.namespace,e.tagName),o=e.properties;kw(a,o);for(var s=e.children,c=0;c<s.length;c++){var l=t(s[c],n);l&&a.appendChild(l)}return a};var Bw={},_w=function(t,e,n,r){return n&&0!==n.length?(n.sort(Iw),Sw(t,e,n,r,0)):{}};function Sw(t,e,n,r,i){if(r=r||{},t){Lw(n,i,i)&&(r[i]=t);var a=e.children;if(a)for(var o=t.childNodes,s=0;s<e.children.length;s++){i+=1;var c=a[s]||Bw,l=i+(c.count||0);Lw(n,i,l)&&Sw(o[s],c,n,r,i),i=l}}return r}function Lw(t,e,n){if(0===t.length)return!1;for(var r,i,a=0,o=t.length-1;a<=o;){if(i=t[r=(o+a)/2|0],a===o)return i>=e&&i<=n;if(i<e)a=r+1;else{if(!(i>n))return!0;o=r-1}}return!1}function Iw(t,e){return t>e?1:-1}var Mw=function(t,e){if(Ty(t)&&Ty(e))return"name"in t&&"name"in e?t.id===e.id:t.init===e.init;return!1};var Ow=function(t,e,n){var r=t.type,i=t.vNode,a=t.patch;switch(r){case tw.REMOVE:return function(t,e){var n=t.parentNode;n&&n.removeChild(t);return Dw(t,e),null}(e,i);case tw.INSERT:return function(t,e,n){var r=n.render(e,n);t&&t.appendChild(r);return t}(e,a,n);case tw.VTEXT:return function(t,e,n,r){var i;if(3===t.nodeType)t.replaceData(0,t.length,n.text),i=t;else{var a=t.parentNode;i=r.render(n,r),a&&i!==t&&a.replaceChild(i,t)}return i}(e,0,a,n);case tw.WIDGET:return function(t,e,n,r){var i,a=Mw(e,n);i=a?n.update(e,t)||t:r.render(n,r);var o=t.parentNode;o&&i!==t&&o.replaceChild(i,t);a||Dw(t,e);return i}(e,i,a,n);case tw.VNODE:return function(t,e,n,r){var i=t.parentNode,a=r.render(n,r);i&&a!==t&&i.replaceChild(a,t);return a}(e,0,a,n);case tw.ORDER:return function(t,e){for(var n,r,i,a=t.childNodes,o={},s=0;s<e.removes.length;s++)n=a[(r=e.removes[s]).from],r.key&&(o[r.key]=n),t.removeChild(n);for(var c=a.length,l=0;l<e.inserts.length;l++)n=o[(i=e.inserts[l]).key],t.insertBefore(n,i.to>=c++?null:a[i.to])}(e,a),e;case tw.PROPS:return kw(e,a,i.properties),e;case tw.THUNK:return function(t,e){t&&e&&t!==e&&t.parentNode&&t.parentNode.replaceChild(e,t);return e}(e,n.patch(e,a,n));default:return e}};function Dw(t,e){"function"==typeof e.destroy&&Ty(e)&&e.destroy(t)}var Fw=function t(e,n,r){return(r=r||{}).patch=r.patch&&r.patch!==t?r.patch:Nw,r.render=r.render||Tw,r.patch(e,n,r)};function Nw(t,e,n){var r=function(t){var e=[];for(var n in t)"a"!==n&&e.push(Number(n));return e}(e);if(0===r.length)return t;var i=_w(t,e.a,r),a=t.ownerDocument;n.document||a===ww||(n.document=a);for(var o=0;o<r.length;o++){var s=r[o];t=Pw(t,i[s],e[s],n)}return t}function Pw(t,e,n,r){if(!e)return t;var i;if(Cy(n))for(var a=0;a<n.length;a++)i=Ow(n[a],e,r),e===t&&(t=i);else i=Ow(n,e,r),e===t&&(t=i);return t}var Rw=Fw,Qw=function(){return Ho((function t(e,n,r){ra(this,t),this.options={newObj:e,oldObj:n,getElement:r}}),[{key:"doDiff",value:function(){var t=this.findSnakes(this.options.newObj,this.options.oldObj);return this.assembleResult(t,this.options.newObj,this.options.oldObj)}},{key:"getElement",value:function(t,e){return"function"==typeof this.options.getElement?this.options.getElement(t,e):t[e]}},{key:"findSnakes",value:function(t,e){for(var n=t.length||0,r=e.length||0,i=n+r,a={1:0},o={0:{1:0}},s=0;s<=i;s++){for(var c={},l=-s;l<=s;l+=2){for(var u=l===-s||l!==s&&a[l-1]<a[l+1],h=a[u?l+1:l-1],f=u?h:h+1,d=f,A=f-l;d<r&&A<n&&this.getElement(e,d)===this.getElement(t,A);)d+=1,A+=1;if(a[l]=d,c[l]=d,d>=r&&A>=n)return o[s]=c,this.$backtraceSnakes(o,n,r,s)}o[s]=c}return[]}},{key:"$backtraceSnakes",value:function(t,e,n,r){for(var i=[],a={x:n,y:e},o=r;o>0;o--){var s=t[o],c=t[o-1],l=a.x-a.y,u=s[l],h=l===-o||l!==o&&c[l+1]>c[l-1],f=h?l+1:l-1,d=c[f],A=d-f,g=h?d:d+1;i.unshift({xStart:d,xMid:g,xEnd:u}),a.x=d,a.y=A}return i}},{key:"assembleResult",value:function(t,e,n){var r,i=this,a="color: gray",o="",s=[],c=0,l=[],u={},h={},f={};return Qs(t).call(t,(function(t,r){var d=t.xStart;if(0===r&&0!==t.xStart)for(var A=0;A<t.xStart;A++)o+="%c".concat(i.getElement(n,A),", "),s.push(a),c+=1;t.xMid-t.xStart==1?(u={type:"delete",oldIndex:t.xStart,newIndex:0},"delete"===h.type&&h.oldIndex===u.oldIndex-1&&(f=f?h:f),l.push(u),h=u,o+="%c".concat(i.getElement(n,t.xStart),", "),s.push("color: red"),d=t.xMid):(u={type:"insert",oldIndex:t.xStart,newIndex:c},"delete"===h.type&&h.oldIndex===u.oldIndex-1?(l.pop(),u={type:"update",oldIndex:(f=f?h:f).oldIndex,newIndex:c},s.push("color: blue")):s.push("color: green"),f={},l.push(u),h=u,o+="%c".concat(i.getElement(e,c),", "),c+=1);for(var g=0;g<t.xEnd-d;g++)o+="%c".concat(i.getElement(n,d+g),", "),s.push(a),c+=1})),id.log.apply(id,hs(r=[o]).call(r,s)),l}}])}(),Uw=Object.getOwnPropertyDescriptor,$w=Ft("iterator"),Hw=!u((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),n.delete("a",2),n.delete("b",void 0),!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b")||!e.size&&gt||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[$w]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),jw=Math.floor,Kw=function(t,e){var n=t.length;if(n<8)for(var r,i,a=1;a<n;){for(i=a,r=t[a];i&&e(t[i-1],r)>0;)t[i]=t[--i];i!==a++&&(t[i]=r)}else for(var o=jw(n/2),s=Kw(Te(t,0,o),e),c=Kw(Te(t,o),e),l=s.length,u=c.length,h=0,f=0;h<l||f<u;)t[h+f]=h<l&&f<u?e(s[h],c[f])<=0?s[h++]:c[f++]:h<l?s[h++]:c[f++];return t},zw=function(t){if(!$t)return j[t];var e=Uw(j,t);return e&&e.value},Gw=Hw,Xw=Kw,Vw=Ft("iterator"),Ww="URLSearchParams",qw=Ww+"Iterator",Yw=Ir.set,Jw=Ir.getterFor(Ww),Zw=Ir.getterFor(qw),tk=zw("fetch"),ek=zw("Request"),nk=zw("Headers"),rk=ek&&ek.prototype,ik=nk&&nk.prototype,ak=j.RegExp,ok=j.TypeError,sk=j.decodeURIComponent,ck=j.encodeURIComponent,lk=w("".charAt),uk=w([].join),hk=w([].push),fk=w("".replace),dk=w([].shift),Ak=w([].splice),gk=w("".split),pk=w("".slice),mk=/\+/g,bk=Array(4),vk=function(t){return bk[t-1]||(bk[t-1]=ak("((?:%[\\da-f]{2}){"+t+"})","gi"))},yk=function(t){try{return sk(t)}catch(e){return t}},wk=function(t){var e=fk(t,mk," "),n=4;try{return sk(e)}catch(t){for(;n;)e=fk(e,vk(n--),yk);return e}},kk=/[!'()~]|%20/g,Ck={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},xk=function(t){return Ck[t]},Ek=function(t){return fk(ck(t),kk,xk)},Tk=Ua((function(t,e){Yw(this,{type:qw,target:Jw(t).entries,index:0,kind:e})}),Ww,(function(){var t=Zw(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,Ya(void 0,!0);var r=e[n];switch(t.kind){case"keys":return Ya(r.key,!1);case"values":return Ya(r.value,!1)}return Ya([r.key,r.value],!1)}),!0),Bk=function(t){this.entries=[],this.url=null,void 0!==t&&(ft(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===lk(t,0)?pk(t,1):t:xr(t)))};Bk.prototype={type:Ww,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,a,o,s,c=this.entries,l=kh(t);if(l)for(n=(e=Th(t,l)).next;!(r=ht(n,e)).done;){if(a=(i=Th(ue(r.value))).next,(o=ht(a,i)).done||(s=ht(a,i)).done||!ht(a,i).done)throw new ok("Expected sequence with length 2");hk(c,{key:xr(o.value),value:xr(s.value)})}else for(var u in t)Bt(t,u)&&hk(c,{key:u,value:xr(t[u])})},parseQuery:function(t){if(t)for(var e,n,r=this.entries,i=gk(t,"&"),a=0;a<i.length;)(e=i[a++]).length&&(n=gk(e,"="),hk(r,{key:wk(dk(n)),value:wk(uk(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],hk(n,Ek(t.key)+"="+Ek(t.value));return uk(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var _k=function(){cg(this,Sk);var t=Yw(this,new Bk(arguments.length>0?arguments[0]:void 0));$t||(this.size=t.entries.length)},Sk=_k.prototype;if(Ag(Sk,{append:function(t,e){var n=Jw(this);ps(arguments.length,2),hk(n.entries,{key:xr(t),value:xr(e)}),$t||this.length++,n.updateURL()},delete:function(t){for(var e=Jw(this),n=ps(arguments.length,1),r=e.entries,i=xr(t),a=n<2?void 0:arguments[1],o=void 0===a?a:xr(a),s=0;s<r.length;){var c=r[s];if(c.key!==i||void 0!==o&&c.value!==o)s++;else if(Ak(r,s,1),void 0!==o)break}$t||(this.size=r.length),e.updateURL()},get:function(t){var e=Jw(this).entries;ps(arguments.length,1);for(var n=xr(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){var e=Jw(this).entries;ps(arguments.length,1);for(var n=xr(t),r=[],i=0;i<e.length;i++)e[i].key===n&&hk(r,e[i].value);return r},has:function(t){for(var e=Jw(this).entries,n=ps(arguments.length,1),r=xr(t),i=n<2?void 0:arguments[1],a=void 0===i?i:xr(i),o=0;o<e.length;){var s=e[o++];if(s.key===r&&(void 0===a||s.value===a))return!0}return!1},set:function(t,e){var n=Jw(this);ps(arguments.length,1);for(var r,i=n.entries,a=!1,o=xr(t),s=xr(e),c=0;c<i.length;c++)(r=i[c]).key===o&&(a?Ak(i,c--,1):(a=!0,r.value=s));a||hk(i,{key:o,value:s}),$t||(this.size=i.length),n.updateURL()},sort:function(){var t=Jw(this);Xw(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=Jw(this).entries,r=ke(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new Tk(this,"keys")},values:function(){return new Tk(this,"values")},entries:function(){return new Tk(this,"entries")}},{enumerable:!0}),ir(Sk,Vw,Sk.entries,{name:"entries"}),ir(Sk,"toString",(function(){return Jw(this).serialize()}),{enumerable:!0}),$t&&Br(Sk,"size",{get:function(){return Jw(this).entries.length},configurable:!0,enumerable:!0}),Lr(_k,Ww),Dn({global:!0,constructor:!0,forced:!Gw},{URLSearchParams:_k}),!Gw&&$(nk)){var Lk=w(ik.has),Ik=w(ik.set),Mk=function(t){if(ft(t)){var e,n=t.body;if(Ue(n)===Ww)return e=t.headers?new nk(t.headers):new nk,Lk(e,"content-type")||Ik(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Pn(t,{body:zt(0,xr(n)),headers:zt(0,e)})}return t};if($(tk)&&Dn({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return tk(t,arguments.length>1?Mk(arguments[1]):{})}}),$(ek)){var Ok=function(t){return cg(this,rk),new ek(t,arguments.length>1?Mk(arguments[1]):{})};rk.constructor=Ok,Ok.prototype=rk,Dn({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ok})}}var Dk,Fk={URLSearchParams:_k,getState:Jw},Nk=2147483647,Pk=/[^\0-\u007E]/,Rk=/[.\u3002\uFF0E\uFF61]/g,Qk="Overflow: input needs wider integers to process",Uk=RangeError,$k=w(Rk.exec),Hk=Math.floor,jk=String.fromCharCode,Kk=w("".charCodeAt),zk=w([].join),Gk=w([].push),Xk=w("".replace),Vk=w("".split),Wk=w("".toLowerCase),qk=function(t){return t+22+75*(t<26)},Yk=function(t,e,n){var r=0;for(t=n?Hk(t/700):t>>1,t+=Hk(t/e);t>455;)t=Hk(t/35),r+=36;return Hk(r+36*t/(t+38))},Jk=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=Kk(t,n++);if(i>=55296&&i<=56319&&n<r){var a=Kk(t,n++);56320==(64512&a)?Gk(e,((1023&i)<<10)+(1023&a)+65536):(Gk(e,i),n--)}else Gk(e,i)}return e}(t);var n,r,i=t.length,a=128,o=0,s=72;for(n=0;n<t.length;n++)(r=t[n])<128&&Gk(e,jk(r));var c=e.length,l=c;for(c&&Gk(e,"-");l<i;){var u=Nk;for(n=0;n<t.length;n++)(r=t[n])>=a&&r<u&&(u=r);var h=l+1;if(u-a>Hk((Nk-o)/h))throw new Uk(Qk);for(o+=(u-a)*h,a=u,n=0;n<t.length;n++){if((r=t[n])<a&&++o>Nk)throw new Uk(Qk);if(r===a){for(var f=o,d=36;;){var A=d<=s?1:d>=s+26?26:d-s;if(f<A)break;var g=f-A,p=36-A;Gk(e,jk(qk(A+g%p))),f=Hk(g/p),d+=36}Gk(e,jk(qk(f))),s=Yk(o,h,l===c),o=0,l++}}o++,a++}return zk(e,"")},Zk=function(t){var e,n,r=[],i=Vk(Xk(Wk(t),Rk,"."),".");for(e=0;e<i.length;e++)n=i[e],Gk(r,$k(Pk,n)?"xn--"+Jk(n):n);return zk(r,".")},tC=Lo.codeAt,eC=Ir.set,nC=Ir.getterFor("URL"),rC=Fk.URLSearchParams,iC=Fk.getState,aC=j.URL,oC=j.TypeError,sC=j.parseInt,cC=Math.floor,lC=Math.pow,uC=w("".charAt),hC=w(/./.exec),fC=w([].join),dC=w(1..toString),AC=w([].pop),gC=w([].push),pC=w("".replace),mC=w([].shift),bC=w("".split),vC=w("".slice),yC=w("".toLowerCase),wC=w([].unshift),kC="Invalid scheme",CC="Invalid host",xC="Invalid port",EC=/[a-z]/i,TC=/[\d+-.a-z]/i,BC=/\d/,_C=/^0x/i,SC=/^[0-7]+$/,LC=/^\d+$/,IC=/^[\da-f]+$/i,MC=/[\0\t\n\r #%/:<>?@[\\\]^|]/,OC=/[\0\t\n\r #/:<>?@[\\\]^|]/,DC=/^[\u0000-\u0020]+/,FC=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,NC=/[\t\n\r]/g,PC=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)wC(e,t%256),t=cC(t/256);return fC(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,a=0;a<8;a++)0!==t[a]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=dC(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},RC={},QC=Bs({},RC,{" ":1,'"':1,"<":1,">":1,"`":1}),UC=Bs({},QC,{"#":1,"?":1,"{":1,"}":1}),$C=Bs({},UC,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),HC=function(t,e){var n=tC(t,0);return n>32&&n<127&&!Bt(e,t)?t:encodeURIComponent(t)},jC={ftp:21,file:null,http:80,https:443,ws:80,wss:443},KC=function(t,e){var n;return 2===t.length&&hC(EC,uC(t,0))&&(":"===(n=uC(t,1))||!e&&"|"===n)},zC=function(t){var e;return t.length>1&&KC(vC(t,0,2))&&(2===t.length||"/"===(e=uC(t,2))||"\\"===e||"?"===e||"#"===e)},GC=function(t){return"."===t||"%2e"===yC(t)},XC={},VC={},WC={},qC={},YC={},JC={},ZC={},tx={},ex={},nx={},rx={},ix={},ax={},ox={},sx={},cx={},lx={},ux={},hx={},fx={},dx={},Ax=function(t,e,n){var r,i,a,o=xr(t);if(e){if(i=this.parse(o))throw new oC(i);this.searchParams=null}else{if(void 0!==n&&(r=new Ax(n,!0)),i=this.parse(o,null,r))throw new oC(i);(a=iC(new rC)).bindURL(this),this.searchParams=a}};Ax.prototype={type:"URL",parse:function(t,e,n){var r,i,a,o,s,c=this,l=e||XC,u=0,h="",f=!1,d=!1,A=!1;for(t=xr(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=pC(t,DC,""),t=pC(t,FC,"$1")),t=pC(t,NC,""),r=Mh(t);u<=r.length;){switch(i=r[u],l){case XC:if(!i||!hC(EC,i)){if(e)return kC;l=WC;continue}h+=yC(i),l=VC;break;case VC:if(i&&(hC(TC,i)||"+"===i||"-"===i||"."===i))h+=yC(i);else{if(":"!==i){if(e)return kC;h="",l=WC,u=0;continue}if(e&&(c.isSpecial()!==Bt(jC,h)||"file"===h&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&jC[c.scheme]===c.port&&(c.port=null));h="","file"===c.scheme?l=ox:c.isSpecial()&&n&&n.scheme===c.scheme?l=qC:c.isSpecial()?l=tx:"/"===r[u+1]?(l=YC,u++):(c.cannotBeABaseURL=!0,gC(c.path,""),l=hx)}break;case WC:if(!n||n.cannotBeABaseURL&&"#"!==i)return kC;if(n.cannotBeABaseURL&&"#"===i){c.scheme=n.scheme,c.path=Te(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=dx;break}l="file"===n.scheme?ox:JC;continue;case qC:if("/"!==i||"/"!==r[u+1]){l=JC;continue}l=ex,u++;break;case YC:if("/"===i){l=nx;break}l=ux;continue;case JC:if(c.scheme=n.scheme,i===Dk)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Te(n.path),c.query=n.query;else if("/"===i||"\\"===i&&c.isSpecial())l=ZC;else if("?"===i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Te(n.path),c.query="",l=fx;else{if("#"!==i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Te(n.path),c.path.length--,l=ux;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Te(n.path),c.query=n.query,c.fragment="",l=dx}break;case ZC:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=ux;continue}l=nx}else l=ex;break;case tx:if(l=ex,"/"!==i||"/"!==uC(h,u+1))continue;u++;break;case ex:if("/"!==i&&"\\"!==i){l=nx;continue}break;case nx:if("@"===i){f&&(h="%40"+h),f=!0,a=Mh(h);for(var g=0;g<a.length;g++){var p=a[g];if(":"!==p||A){var m=HC(p,$C);A?c.password+=m:c.username+=m}else A=!0}h=""}else if(i===Dk||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()){if(f&&""===h)return"Invalid authority";u-=Mh(h).length+1,h="",l=rx}else h+=i;break;case rx:case ix:if(e&&"file"===c.scheme){l=cx;continue}if(":"!==i||d){if(i===Dk||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()){if(c.isSpecial()&&""===h)return CC;if(e&&""===h&&(c.includesCredentials()||null!==c.port))return;if(o=c.parseHost(h))return o;if(h="",l=lx,e)return;continue}"["===i?d=!0:"]"===i&&(d=!1),h+=i}else{if(""===h)return CC;if(o=c.parseHost(h))return o;if(h="",l=ax,e===ix)return}break;case ax:if(!hC(BC,i)){if(i===Dk||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()||e){if(""!==h){var b=sC(h,10);if(b>65535)return xC;c.port=c.isSpecial()&&b===jC[c.scheme]?null:b,h=""}if(e)return;l=lx;continue}return xC}h+=i;break;case ox:if(c.scheme="file","/"===i||"\\"===i)l=sx;else{if(!n||"file"!==n.scheme){l=ux;continue}switch(i){case Dk:c.host=n.host,c.path=Te(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=Te(n.path),c.query="",l=fx;break;case"#":c.host=n.host,c.path=Te(n.path),c.query=n.query,c.fragment="",l=dx;break;default:zC(fC(Te(r,u),""))||(c.host=n.host,c.path=Te(n.path),c.shortenPath()),l=ux;continue}}break;case sx:if("/"===i||"\\"===i){l=cx;break}n&&"file"===n.scheme&&!zC(fC(Te(r,u),""))&&(KC(n.path[0],!0)?gC(c.path,n.path[0]):c.host=n.host),l=ux;continue;case cx:if(i===Dk||"/"===i||"\\"===i||"?"===i||"#"===i){if(!e&&KC(h))l=ux;else if(""===h){if(c.host="",e)return;l=lx}else{if(o=c.parseHost(h))return o;if("localhost"===c.host&&(c.host=""),e)return;h="",l=lx}continue}h+=i;break;case lx:if(c.isSpecial()){if(l=ux,"/"!==i&&"\\"!==i)continue}else if(e||"?"!==i)if(e||"#"!==i){if(i!==Dk&&(l=ux,"/"!==i))continue}else c.fragment="",l=dx;else c.query="",l=fx;break;case ux:if(i===Dk||"/"===i||"\\"===i&&c.isSpecial()||!e&&("?"===i||"#"===i)){if(".."===(s=yC(s=h))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||gC(c.path,"")):GC(h)?"/"===i||"\\"===i&&c.isSpecial()||gC(c.path,""):("file"===c.scheme&&!c.path.length&&KC(h)&&(c.host&&(c.host=""),h=uC(h,0)+":"),gC(c.path,h)),h="","file"===c.scheme&&(i===Dk||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)mC(c.path);"?"===i?(c.query="",l=fx):"#"===i&&(c.fragment="",l=dx)}else h+=HC(i,UC);break;case hx:"?"===i?(c.query="",l=fx):"#"===i?(c.fragment="",l=dx):i!==Dk&&(c.path[0]+=HC(i,RC));break;case fx:e||"#"!==i?i!==Dk&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":HC(i,RC)):(c.fragment="",l=dx);break;case dx:i!==Dk&&(c.fragment+=HC(i,QC))}u++}},parseHost:function(t){var e,n,r;if("["===uC(t,0)){if("]"!==uC(t,t.length-1))return CC;if(e=function(t){var e,n,r,i,a,o,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,h=0,f=function(){return uC(t,h)};if(":"===f()){if(":"!==uC(t,1))return;h+=2,u=++l}for(;f();){if(8===l)return;if(":"!==f()){for(e=n=0;n<4&&hC(IC,f());)e=16*e+sC(f(),16),h++,n++;if("."===f()){if(0===n)return;if(h-=n,l>6)return;for(r=0;f();){if(i=null,r>0){if(!("."===f()&&r<4))return;h++}if(!hC(BC,f()))return;for(;hC(BC,f());){if(a=sC(f(),10),null===i)i=a;else{if(0===i)return;i=10*i+a}if(i>255)return;h++}c[l]=256*c[l]+i,2!=++r&&4!==r||l++}if(4!==r)return;break}if(":"===f()){if(h++,!f())return}else if(f())return;c[l++]=e}else{if(null!==u)return;h++,u=++l}}if(null!==u)for(o=l-u,l=7;0!==l&&o>0;)s=c[l],c[l--]=c[u+o-1],c[u+--o]=s;else if(8!==l)return;return c}(vC(t,1,-1)),!e)return CC;this.host=e}else if(this.isSpecial()){if(t=Zk(t),hC(MC,t))return CC;if(e=function(t){var e,n,r,i,a,o,s,c=bC(t,".");if(c.length&&""===c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(n=[],r=0;r<e;r++){if(""===(i=c[r]))return t;if(a=10,i.length>1&&"0"===uC(i,0)&&(a=hC(_C,i)?16:8,i=vC(i,8===a?1:2)),""===i)o=0;else{if(!hC(10===a?LC:8===a?SC:IC,i))return t;o=sC(i,a)}gC(n,o)}for(r=0;r<e;r++)if(o=n[r],r===e-1){if(o>=lC(256,5-e))return null}else if(o>255)return null;for(s=AC(n),r=0;r<n.length;r++)s+=n[r]*lC(256,3-r);return s}(t),null===e)return CC;this.host=e}else{if(hC(OC,t))return CC;for(e="",n=Mh(t),r=0;r<n.length;r++)e+=HC(n[r],RC);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return Bt(jC,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&KC(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,i=t.host,a=t.port,o=t.path,s=t.query,c=t.fragment,l=e+":";return null!==i?(l+="//",t.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=PC(i),null!==a&&(l+=":"+a)):"file"===e&&(l+="//"),l+=t.cannotBeABaseURL?o[0]:o.length?"/"+fC(o,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(t){var e=this.parse(t);if(e)throw new oC(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new gx(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+PC(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(xr(t)+":",XC)},getUsername:function(){return this.username},setUsername:function(t){var e=Mh(xr(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=HC(e[n],$C)}},getPassword:function(){return this.password},setPassword:function(t){var e=Mh(xr(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=HC(e[n],$C)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?PC(t):PC(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,rx)},getHostname:function(){var t=this.host;return null===t?"":PC(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,ix)},getPort:function(){var t=this.port;return null===t?"":xr(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=xr(t))?this.port=null:this.parse(t,ax))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+fC(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,lx))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=xr(t))?this.query=null:("?"===uC(t,0)&&(t=vC(t,1)),this.query="",this.parse(t,fx)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=xr(t))?("#"===uC(t,0)&&(t=vC(t,1)),this.fragment="",this.parse(t,dx)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var gx=function(t){var e=cg(this,px),n=ps(arguments.length,1)>1?arguments[1]:void 0,r=eC(e,new Ax(t,!1,n));$t||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},px=gx.prototype,mx=function(t,e){return{get:function(){return nC(this)[t]()},set:e&&function(t){return nC(this)[e](t)},configurable:!0,enumerable:!0}};if($t&&(Br(px,"href",mx("serialize","setHref")),Br(px,"origin",mx("getOrigin")),Br(px,"protocol",mx("getProtocol","setProtocol")),Br(px,"username",mx("getUsername","setUsername")),Br(px,"password",mx("getPassword","setPassword")),Br(px,"host",mx("getHost","setHost")),Br(px,"hostname",mx("getHostname","setHostname")),Br(px,"port",mx("getPort","setPort")),Br(px,"pathname",mx("getPathname","setPathname")),Br(px,"search",mx("getSearch","setSearch")),Br(px,"searchParams",mx("getSearchParams")),Br(px,"hash",mx("getHash","setHash"))),ir(px,"toJSON",(function(){return nC(this).serialize()}),{enumerable:!0}),ir(px,"toString",(function(){return nC(this).serialize()}),{enumerable:!0}),aC){var bx=aC.createObjectURL,vx=aC.revokeObjectURL;bx&&ir(gx,"createObjectURL",ke(bx,aC)),vx&&ir(gx,"revokeObjectURL",ke(vx,aC))}Lr(gx,"URL"),Dn({global:!0,constructor:!0,forced:!Gw,sham:!$t},{URL:gx});var yx=nt("URL"),wx=Gw&&u((function(){yx.canParse()})),kx=u((function(){return 1!==yx.canParse.length}));Dn({target:"URL",stat:!0,forced:!wx||kx},{canParse:function(t){var e=ps(arguments.length,1),n=xr(t),r=e<2||void 0===arguments[1]?void 0:xr(arguments[1]);try{return!!new yx(n,r)}catch(t){return!1}}});var Cx=nt("URL");Dn({target:"URL",stat:!0,forced:!Gw},{parse:function(t){var e=ps(arguments.length,1),n=xr(t),r=e<2||void 0===arguments[1]?void 0:xr(arguments[1]);try{return new Cx(n,r)}catch(t){return null}}});var xx=H.URL,Ex=r((function(t,e){t.exports=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};function r(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function o(t){try{c(r.next(t))}catch(t){a(t)}}function s(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){t.done?n(t.value):i(t.value).then(o,s)}c((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function a(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||e)}for(var o=function(){function t(t,e,n,r){this.left=t,this.top=e,this.width=n,this.height=r}return t.prototype.add=function(e,n,r,i){return new t(this.left+e,this.top+n,this.width+r,this.height+i)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var r=Array.from(n).find((function(t){return 0!==t.width}));return r?new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),s=function(t,e){return o.fromClientRect(t,e.getBoundingClientRect())},c=function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),i=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new o(0,0,r,i)},l=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=t.charCodeAt(n++);56320==(64512&a)?e.push(((1023&i)<<10)+(1023&a)+65536):(e.push(i),n--)}else e.push(i)}return e},u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],i=-1,a="";++i<n;){var o=t[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<h.length;d++)f[h.charCodeAt(d)]=d;for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<A.length;p++)g[A.charCodeAt(p)]=p;for(var m=function(t){var e,n,r,i,a,o=.75*t.length,s=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),u=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<s;e+=4)n=g[t.charCodeAt(e)],r=g[t.charCodeAt(e+1)],i=g[t.charCodeAt(e+2)],a=g[t.charCodeAt(e+3)],u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return l},b=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},v=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},y=5,w=11,k=2,C=65536>>y,x=(1<<y)-1,E=C+(1024>>y)+32,T=65536>>w,B=(1<<w-y)-1,_=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},S=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},L=function(t,e){var n=m(t),r=Array.isArray(n)?v(n):new Uint32Array(n),i=Array.isArray(n)?b(n):new Uint16Array(n),a=24,o=_(i,a/2,r[4]/2),s=2===r[5]?_(i,(a+r[4])/2):S(r,Math.ceil((a+r[4])/4));return new I(r[0],r[1],r[2],r[3],o,s)},I=function(){function t(t,e,n,r,i,a){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>y])<<k)+(t&x),this.data[e];if(t<=65535)return e=((e=this.index[C+(t-55296>>y)])<<k)+(t&x),this.data[e];if(t<this.highStart)return e=E-T+(t>>w),e=this.index[e],e+=t>>y&B,e=((e=this.index[e])<<k)+(t&x),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O="undefined"==typeof Uint8Array?[]:new Uint8Array(256),D=0;D<M.length;D++)O[M.charCodeAt(D)]=D;var F=50,N=1,P=2,R=3,Q=4,U=5,$=7,H=8,j=9,K=10,z=11,G=12,X=13,V=14,W=15,q=16,Y=17,J=18,Z=19,tt=20,et=21,nt=22,rt=23,it=24,at=25,ot=26,st=27,ct=28,lt=29,ut=30,ht=31,ft=32,dt=33,At=34,gt=35,pt=36,mt=37,bt=38,vt=39,yt=40,wt=41,kt=42,Ct=43,xt=[9001,65288],Et="!",Tt="×",Bt="÷",_t=L("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),St=[ut,pt],Lt=[N,P,R,U],It=[K,H],Mt=[st,ot],Ot=Lt.concat(It),Dt=[bt,vt,yt,At,gt],Ft=[W,X],Nt=function(t,e){void 0===e&&(e="strict");var n=[],r=[],i=[];return t.forEach((function(t,a){var o=_t.get(t);if(o>F?(i.push(!0),o-=F):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(a),n.push(q);if(o===Q||o===z){if(0===a)return r.push(a),n.push(ut);var s=n[a-1];return-1===Ot.indexOf(s)?(r.push(r[a-1]),n.push(s)):(r.push(a),n.push(ut))}return r.push(a),o===ht?n.push("strict"===e?et:mt):o===kt||o===lt?n.push(ut):o===Ct?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(mt):n.push(ut):void n.push(o)})),[r,n,i]},Pt=function(t,e,n,r){var i=r[n];if(Array.isArray(t)?-1!==t.indexOf(i):t===i)for(var a=n;a<=r.length;){if((c=r[++a])===e)return!0;if(c!==K)break}if(i===K)for(a=n;a>0;){var o=r[--a];if(Array.isArray(t)?-1!==t.indexOf(o):t===o)for(var s=n;s<=r.length;){var c;if((c=r[++s])===e)return!0;if(c!==K)break}if(o!==K)break}return!1},Rt=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r!==K)return r;n--}return 0},Qt=function(t,e,n,r,i){if(0===n[r])return Tt;var a=r-1;if(Array.isArray(i)&&!0===i[a])return Tt;var o=a-1,s=a+1,c=e[a],l=o>=0?e[o]:0,u=e[s];if(c===P&&u===R)return Tt;if(-1!==Lt.indexOf(c))return Et;if(-1!==Lt.indexOf(u))return Tt;if(-1!==It.indexOf(u))return Tt;if(Rt(a,e)===H)return Bt;if(_t.get(t[a])===z)return Tt;if((c===ft||c===dt)&&_t.get(t[s])===z)return Tt;if(c===$||u===$)return Tt;if(c===j)return Tt;if(-1===[K,X,W].indexOf(c)&&u===j)return Tt;if(-1!==[Y,J,Z,it,ct].indexOf(u))return Tt;if(Rt(a,e)===nt)return Tt;if(Pt(rt,nt,a,e))return Tt;if(Pt([Y,J],et,a,e))return Tt;if(Pt(G,G,a,e))return Tt;if(c===K)return Bt;if(c===rt||u===rt)return Tt;if(u===q||c===q)return Bt;if(-1!==[X,W,et].indexOf(u)||c===V)return Tt;if(l===pt&&-1!==Ft.indexOf(c))return Tt;if(c===ct&&u===pt)return Tt;if(u===tt)return Tt;if(-1!==St.indexOf(u)&&c===at||-1!==St.indexOf(c)&&u===at)return Tt;if(c===st&&-1!==[mt,ft,dt].indexOf(u)||-1!==[mt,ft,dt].indexOf(c)&&u===ot)return Tt;if(-1!==St.indexOf(c)&&-1!==Mt.indexOf(u)||-1!==Mt.indexOf(c)&&-1!==St.indexOf(u))return Tt;if(-1!==[st,ot].indexOf(c)&&(u===at||-1!==[nt,W].indexOf(u)&&e[s+1]===at)||-1!==[nt,W].indexOf(c)&&u===at||c===at&&-1!==[at,ct,it].indexOf(u))return Tt;if(-1!==[at,ct,it,Y,J].indexOf(u))for(var h=a;h>=0;){if((f=e[h])===at)return Tt;if(-1===[ct,it].indexOf(f))break;h--}if(-1!==[st,ot].indexOf(u))for(h=-1!==[Y,J].indexOf(c)?o:a;h>=0;){var f;if((f=e[h])===at)return Tt;if(-1===[ct,it].indexOf(f))break;h--}if(bt===c&&-1!==[bt,vt,At,gt].indexOf(u)||-1!==[vt,At].indexOf(c)&&-1!==[vt,yt].indexOf(u)||-1!==[yt,gt].indexOf(c)&&u===yt)return Tt;if(-1!==Dt.indexOf(c)&&-1!==[tt,ot].indexOf(u)||-1!==Dt.indexOf(u)&&c===st)return Tt;if(-1!==St.indexOf(c)&&-1!==St.indexOf(u))return Tt;if(c===it&&-1!==St.indexOf(u))return Tt;if(-1!==St.concat(at).indexOf(c)&&u===nt&&-1===xt.indexOf(t[s])||-1!==St.concat(at).indexOf(u)&&c===J)return Tt;if(c===wt&&u===wt){for(var d=n[a],A=1;d>0&&e[--d]===wt;)A++;if(A%2!=0)return Tt}return c===ft&&u===dt?Tt:Bt},Ut=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=Nt(t,e.lineBreak),r=n[0],i=n[1],a=n[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map((function(t){return-1!==[at,ut,kt].indexOf(t)?mt:t})));var o="keep-all"===e.wordBreak?a.map((function(e,n){return e&&t[n]>=19968&&t[n]<=40959})):void 0;return[r,i,o]},$t=function(){function t(t,e,n,r){this.codePoints=t,this.required=e===Et,this.start=n,this.end=r}return t.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),Ht=function(t,e){var n=l(t),r=Ut(n,e),i=r[0],a=r[1],o=r[2],s=n.length,c=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var t=Tt;u<s&&(t=Qt(n,a,i,++u,o))===Tt;);if(t!==Tt||u===s){var e=new $t(n,t,c,u);return c=u,{value:e,done:!1}}return{done:!0,value:null}}}},jt=1,Kt=2,zt=4,Gt=8,Xt=10,Vt=47,Wt=92,qt=9,Yt=32,Jt=34,Zt=61,te=35,ee=36,ne=37,re=39,ie=40,ae=41,oe=95,se=45,ce=33,le=60,ue=62,he=64,fe=91,de=93,Ae=61,ge=123,pe=63,me=125,be=124,ve=126,ye=128,we=65533,ke=42,Ce=43,xe=44,Ee=58,Te=59,Be=46,_e=0,Se=8,Le=11,Ie=14,Me=31,Oe=127,De=-1,Fe=48,Ne=97,Pe=101,Re=102,Qe=117,Ue=122,$e=65,He=69,je=70,Ke=85,ze=90,Ge=function(t){return t>=Fe&&t<=57},Xe=function(t){return t>=55296&&t<=57343},Ve=function(t){return Ge(t)||t>=$e&&t<=je||t>=Ne&&t<=Re},We=function(t){return t>=Ne&&t<=Ue},qe=function(t){return t>=$e&&t<=ze},Ye=function(t){return We(t)||qe(t)},Je=function(t){return t>=ye},Ze=function(t){return t===Xt||t===qt||t===Yt},tn=function(t){return Ye(t)||Je(t)||t===oe},en=function(t){return tn(t)||Ge(t)||t===se},nn=function(t){return t>=_e&&t<=Se||t===Le||t>=Ie&&t<=Me||t===Oe},rn=function(t,e){return t===Wt&&e!==Xt},an=function(t,e,n){return t===se?tn(e)||rn(e,n):!!tn(t)||!(t!==Wt||!rn(t,e))},on=function(t,e,n){return t===Ce||t===se?!!Ge(e)||e===Be&&Ge(n):Ge(t===Be?e:t)},sn=function(t){var e=0,n=1;t[e]!==Ce&&t[e]!==se||(t[e]===se&&(n=-1),e++);for(var r=[];Ge(t[e]);)r.push(t[e++]);var i=r.length?parseInt(u.apply(void 0,r),10):0;t[e]===Be&&e++;for(var a=[];Ge(t[e]);)a.push(t[e++]);var o=a.length,s=o?parseInt(u.apply(void 0,a),10):0;t[e]!==He&&t[e]!==Pe||e++;var c=1;t[e]!==Ce&&t[e]!==se||(t[e]===se&&(c=-1),e++);for(var l=[];Ge(t[e]);)l.push(t[e++]);var h=l.length?parseInt(u.apply(void 0,l),10):0;return n*(i+s*Math.pow(10,-o))*Math.pow(10,c*h)},cn={type:2},ln={type:3},un={type:4},hn={type:13},fn={type:8},dn={type:21},An={type:9},gn={type:10},pn={type:11},mn={type:12},bn={type:14},vn={type:23},yn={type:1},wn={type:25},kn={type:24},Cn={type:26},xn={type:27},En={type:28},Tn={type:29},Bn={type:31},_n={type:32},Sn=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(l(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==_n;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Jt:return this.consumeStringToken(Jt);case te:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(en(e)||rn(n,r)){var i=an(e,n,r)?Kt:jt;return{type:5,value:this.consumeName(),flags:i}}break;case ee:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),hn;break;case re:return this.consumeStringToken(re);case ie:return cn;case ae:return ln;case ke:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),bn;break;case Ce:if(on(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case xe:return un;case se:var a=t,o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(on(a,o,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(an(a,o,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(o===se&&s===ue)return this.consumeCodePoint(),this.consumeCodePoint(),kn;break;case Be:if(on(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Vt:if(this.peekCodePoint(0)===ke)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===ke&&(c=this.consumeCodePoint())===Vt)return this.consumeToken();if(c===De)return this.consumeToken()}break;case Ee:return Cn;case Te:return xn;case le:if(this.peekCodePoint(0)===ce&&this.peekCodePoint(1)===se&&this.peekCodePoint(2)===se)return this.consumeCodePoint(),this.consumeCodePoint(),wn;break;case he:var l=this.peekCodePoint(0),h=this.peekCodePoint(1),f=this.peekCodePoint(2);if(an(l,h,f))return{type:7,value:this.consumeName()};break;case fe:return En;case Wt:if(rn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case de:return Tn;case Ae:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),fn;break;case ge:return pn;case me:return mn;case Qe:case Ke:var d=this.peekCodePoint(0),A=this.peekCodePoint(1);return d!==Ce||!Ve(A)&&A!==pe||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case be:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),An;if(this.peekCodePoint(0)===be)return this.consumeCodePoint(),dn;break;case ve:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),gn;break;case De:return _n}return Ze(t)?(this.consumeWhiteSpace(),Bn):Ge(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):tn(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:u(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();Ve(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;e===pe&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(u.apply(void 0,t.map((function(t){return t===pe?Fe:t}))),16),end:parseInt(u.apply(void 0,t.map((function(t){return t===pe?je:t}))),16)};var r=parseInt(u.apply(void 0,t),16);if(this.peekCodePoint(0)===se&&Ve(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var i=[];Ve(e)&&i.length<6;)i.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(u.apply(void 0,i),16)}}return{type:30,start:r,end:r}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&this.peekCodePoint(0)===ie?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ie?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===De)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===re||e===Jt){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===De||this.peekCodePoint(0)===ae)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),vn)}for(;;){var r=this.consumeCodePoint();if(r===De||r===ae)return{type:22,value:u.apply(void 0,t)};if(Ze(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===De||this.peekCodePoint(0)===ae?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,t)}):(this.consumeBadUrlRemnants(),vn);if(r===Jt||r===re||r===ie||nn(r))return this.consumeBadUrlRemnants(),vn;if(r===Wt){if(!rn(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),vn;t.push(this.consumeEscapedCodePoint())}else t.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;Ze(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===ae||t===De)return;rn(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e=5e4,n="";t>0;){var r=Math.min(e,t);n+=u.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(t){for(var e="",n=0;;){var r=this._value[n];if(r===De||void 0===r||r===t)return{type:0,value:e+=this.consumeStringSlice(n)};if(r===Xt)return this._value.splice(0,n),yn;if(r===Wt){var i=this._value[n+1];i!==De&&void 0!==i&&(i===Xt?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):rn(r,i)&&(e+=this.consumeStringSlice(n),e+=u(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=zt,n=this.peekCodePoint(0);for(n!==Ce&&n!==se||t.push(this.consumeCodePoint());Ge(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Be&&Ge(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gt;Ge(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===He||n===Pe)&&((r===Ce||r===se)&&Ge(i)||Ge(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gt;Ge(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[sn(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);return an(r,i,a)?{type:15,number:e,flags:n,unit:this.consumeName()}:r===ne?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Ve(t)){for(var e=u(t);Ve(this.peekCodePoint(0))&&e.length<6;)e+=u(this.consumeCodePoint());Ze(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||Xe(n)||n>1114111?we:n}return t===De?we:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(en(e))t+=u(e);else{if(!rn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=u(this.consumeEscapedCodePoint())}}},t}(),Ln=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new Sn;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(32===n.type||Qn(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?_n:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),In=function(t){return 15===t.type},Mn=function(t){return 17===t.type},On=function(t){return 20===t.type},Dn=function(t){return 0===t.type},Fn=function(t,e){return On(t)&&t.value===e},Nn=function(t){return 31!==t.type},Pn=function(t){return 31!==t.type&&4!==t.type},Rn=function(t){var e=[],n=[];return t.forEach((function(t){if(4===t.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}31!==t.type&&n.push(t)})),n.length&&e.push(n),e},Qn=function(t,e){return 11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type},Un=function(t){return 17===t.type||15===t.type},$n=function(t){return 16===t.type||Un(t)},Hn=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},jn={type:17,number:0,flags:zt},Kn={type:16,number:50,flags:zt},zn={type:16,number:100,flags:zt},Gn=function(t,e,n){var r=t[0],i=t[1];return[Xn(r,e),Xn(void 0!==i?i:r,n)]},Xn=function(t,e){if(16===t.type)return t.number/100*e;if(In(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},Vn="deg",Wn="grad",qn="rad",Yn="turn",Jn={name:"angle",parse:function(t,e){if(15===e.type)switch(e.unit){case Vn:return Math.PI*e.number/180;case Wn:return Math.PI/200*e.number;case qn:return e.number;case Yn:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},Zn=function(t){return 15===t.type&&(t.unit===Vn||t.unit===Wn||t.unit===qn||t.unit===Yn)},tr=function(t){switch(t.filter(On).map((function(t){return t.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[jn,jn];case"to top":case"bottom":return er(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[jn,zn];case"to right":case"left":return er(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zn,zn];case"to bottom":case"top":return er(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zn,jn];case"to left":case"right":return er(270)}return 0},er=function(t){return Math.PI*t/180},nr={name:"color",parse:function(t,e){if(18===e.type){var n=ur[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return ar(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(4===e.value.length){r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);var o=e.value.substring(3,4);return ar(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),ar(parseInt(r,16),parseInt(i,16),parseInt(a,16),1);if(8===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8),ar(parseInt(r,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}if(20===e.type){var s=fr[e.value.toUpperCase()];if(void 0!==s)return s}return fr.TRANSPARENT}},rr=function(t){return!(255&t)},ir=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+r+","+n+","+e/255+")":"rgb("+i+","+r+","+n+")"},ar=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(255*r))>>>0},or=function(t,e){if(17===t.type)return t.number;if(16===t.type){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},sr=function(t,e){var n=e.filter(Pn);if(3===n.length){var r=n.map(or),i=r[0],a=r[1],o=r[2];return ar(i,a,o,1)}if(4===n.length){var s=n.map(or),c=(i=s[0],a=s[1],o=s[2],s[3]);return ar(i,a,o,c)}return 0};function cr(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var lr=function(t,e){var n=e.filter(Pn),r=n[0],i=n[1],a=n[2],o=n[3],s=(17===r.type?er(r.number):Jn.parse(t,r))/(2*Math.PI),c=$n(i)?i.number/100:0,l=$n(a)?a.number/100:0,u=void 0!==o&&$n(o)?Xn(o,1):1;if(0===c)return ar(255*l,255*l,255*l,1);var h=l<=.5?l*(c+1):l+c-l*c,f=2*l-h,d=cr(f,h,s+1/3),A=cr(f,h,s),g=cr(f,h,s-1/3);return ar(255*d,255*A,255*g,u)},ur={hsl:lr,hsla:lr,rgb:sr,rgba:sr},hr=function(t,e){return nr.parse(t,Ln.create(e).parseComponentValue())},fr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},dr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(On(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ar={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gr=function(t,e){var n=nr.parse(t,e[0]),r=e[1];return r&&$n(r)?{color:n,stop:r}:{color:n,stop:null}},pr=function(t,e){var n=t[0],r=t[t.length-1];null===n.stop&&(n.stop=jn),null===r.stop&&(r.stop=zn);for(var i=[],a=0,o=0;o<t.length;o++){var s=t[o].stop;if(null!==s){var c=Xn(s,e);c>a?i.push(c):i.push(a),a=c}else i.push(null)}var l=null;for(o=0;o<i.length;o++){var u=i[o];if(null===u)null===l&&(l=o);else if(null!==l){for(var h=o-l,f=(u-i[l-1])/(h+1),d=1;d<=h;d++)i[l+d-1]=f*d;l=null}}return t.map((function(t,n){return{color:t.color,stop:Math.max(Math.min(1,i[n]/e),0)}}))},mr=function(t,e,n){var r=e/2,i=n/2,a=Xn(t[0],e)-r,o=i-Xn(t[1],n);return(Math.atan2(o,a)+2*Math.PI)%(2*Math.PI)},br=function(t,e,n){var r="number"==typeof t?t:mr(t,e,n),i=Math.abs(e*Math.sin(r))+Math.abs(n*Math.cos(r)),a=e/2,o=n/2,s=i/2,c=Math.sin(r-Math.PI/2)*s,l=Math.cos(r-Math.PI/2)*s;return[i,a-l,a+l,o-c,o+c]},vr=function(t,e){return Math.sqrt(t*t+e*e)},yr=function(t,e,n,r,i){return[[0,0],[0,e],[t,0],[t,e]].reduce((function(t,e){var a=e[0],o=e[1],s=vr(n-a,r-o);return(i?s<t.optimumDistance:s>t.optimumDistance)?{optimumCorner:e,optimumDistance:s}:t}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},wr=function(t,e,n,r,i){var a=0,o=0;switch(t.size){case 0:0===t.shape?a=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(a=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===t.shape)a=o=Math.min(vr(e,n),vr(e,n-i),vr(e-r,n),vr(e-r,n-i));else if(1===t.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(e),Math.abs(e-r)),c=yr(r,i,e,n,!0),l=c[0],u=c[1];o=s*(a=vr(l-e,(u-n)/s))}break;case 1:0===t.shape?a=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(a=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===t.shape)a=o=Math.max(vr(e,n),vr(e,n-i),vr(e-r,n),vr(e-r,n-i));else if(1===t.shape){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(e),Math.abs(e-r));var h=yr(r,i,e,n,!1);l=h[0],u=h[1],o=s*(a=vr(l-e,(u-n)/s))}}return Array.isArray(t.size)&&(a=Xn(t.size[0],r),o=2===t.size.length?Xn(t.size[1],i):a),[a,o]},kr=function(t,e){var n=er(180),r=[];return Rn(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&"to"===a.value)return void(n=tr(e));if(Zn(a))return void(n=Jn.parse(t,a))}var o=gr(t,e);r.push(o)})),{angle:n,stops:r,type:1}},Cr=function(t,e){var n=er(180),r=[];return Rn(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(n=tr(e));if(Zn(a))return void(n=(Jn.parse(t,a)+er(270))%er(360))}var o=gr(t,e);r.push(o)})),{angle:n,stops:r,type:1}},xr=function(t,e){var n=er(180),r=[],i=1,a=0,o=3,s=[];return Rn(e).forEach((function(e,n){var a=e[0];if(0===n){if(On(a)&&"linear"===a.value)return void(i=1);if(On(a)&&"radial"===a.value)return void(i=2)}if(18===a.type)if("from"===a.name){var o=nr.parse(t,a.values[0]);r.push({stop:jn,color:o})}else if("to"===a.name)o=nr.parse(t,a.values[0]),r.push({stop:zn,color:o});else if("color-stop"===a.name){var s=a.values.filter(Pn);if(2===s.length){o=nr.parse(t,s[1]);var c=s[0];Mn(c)&&r.push({stop:{type:16,number:100*c.number,flags:c.flags},color:o})}}})),1===i?{angle:(n+er(180))%er(360),stops:r,type:i}:{size:o,shape:a,stops:r,position:s,type:i}},Er="closest-side",Tr="farthest-side",Br="closest-corner",_r="farthest-corner",Sr="circle",Lr="ellipse",Ir="cover",Mr="contain",Or=function(t,e){var n=0,r=3,i=[],a=[];return Rn(e).forEach((function(e,o){var s=!0;if(0===o){var c=!1;s=e.reduce((function(t,e){if(c)if(On(e))switch(e.value){case"center":return a.push(Kn),t;case"top":case"left":return a.push(jn),t;case"right":case"bottom":return a.push(zn),t}else($n(e)||Un(e))&&a.push(e);else if(On(e))switch(e.value){case Sr:return n=0,!1;case Lr:return n=1,!1;case"at":return c=!0,!1;case Er:return r=0,!1;case Ir:case Tr:return r=1,!1;case Mr:case Br:return r=2,!1;case _r:return r=3,!1}else if(Un(e)||$n(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)}if(s){var l=gr(t,e);i.push(l)}})),{size:r,shape:n,stops:i,position:a,type:2}},Dr=function(t,e){var n=0,r=3,i=[],a=[];return Rn(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(t,e){if(On(e))switch(e.value){case"center":return a.push(Kn),!1;case"top":case"left":return a.push(jn),!1;case"right":case"bottom":return a.push(zn),!1}else if($n(e)||Un(e))return a.push(e),!1;return t}),s):1===o&&(s=e.reduce((function(t,e){if(On(e))switch(e.value){case Sr:return n=0,!1;case Lr:return n=1,!1;case Mr:case Er:return r=0,!1;case Tr:return r=1,!1;case Br:return r=2,!1;case Ir:case _r:return r=3,!1}else if(Un(e)||$n(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)),s){var c=gr(t,e);i.push(c)}})),{size:r,shape:n,stops:i,position:a,type:2}},Fr=function(t){return 1===t.type},Nr=function(t){return 2===t.type},Pr={name:"image",parse:function(t,e){if(22===e.type){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(18===e.type){var r=Ur[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function Rr(t){return!(20===t.type&&"none"===t.value||18===t.type&&!Ur[t.name])}var Qr,Ur={"linear-gradient":kr,"-moz-linear-gradient":Cr,"-ms-linear-gradient":Cr,"-o-linear-gradient":Cr,"-webkit-linear-gradient":Cr,"radial-gradient":Or,"-moz-radial-gradient":Dr,"-ms-radial-gradient":Dr,"-o-radial-gradient":Dr,"-webkit-radial-gradient":Dr,"-webkit-gradient":xr},$r={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e.filter((function(t){return Pn(t)&&Rr(t)})).map((function(e){return Pr.parse(t,e)}))}},Hr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(On(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},jr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Rn(e).map((function(t){return t.filter($n)})).map(Hn)}},Kr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Rn(e).map((function(t){return t.filter(On).map((function(t){return t.value})).join(" ")})).map(zr)}},zr=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(Qr||(Qr={}));var Gr,Xr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Rn(e).map((function(t){return t.filter(Vr)}))}},Vr=function(t){return On(t)||$n(t)},Wr=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},qr=Wr("top"),Yr=Wr("right"),Jr=Wr("bottom"),Zr=Wr("left"),ti=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return Hn(e.filter($n))}}},ei=ti("top-left"),ni=ti("top-right"),ri=ti("bottom-right"),ii=ti("bottom-left"),ai=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},oi=ai("top"),si=ai("right"),ci=ai("bottom"),li=ai("left"),ui=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return In(e)?e.number:0}}},hi=ui("top"),fi=ui("right"),di=ui("bottom"),Ai=ui("left"),gi={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pi={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){return"rtl"===e?1:0}},mi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(On).reduce((function(t,e){return t|bi(e.value)}),0)}},bi=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vi={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},yi={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(Gr||(Gr={}));var wi,ki={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"strict"===e?Gr.STRICT:Gr.NORMAL}},Ci={name:"line-height",initialValue:"normal",prefix:!1,type:4},xi=function(t,e){return On(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:$n(t)?Xn(t,e):e},Ei={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Pr.parse(t,e)}},Ti={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){return"inside"===e?0:1}},Bi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},_i=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Si=_i("top"),Li=_i("right"),Ii=_i("bottom"),Mi=_i("left"),Oi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(On).map((function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Di={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"break-word"===e?"break-word":"normal"}},Fi=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Ni=Fi("top"),Pi=Fi("right"),Ri=Fi("bottom"),Qi=Fi("left"),Ui={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},$i={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Hi={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Fn(e[0],"none")?[]:Rn(e).map((function(e){for(var n={color:fr.TRANSPARENT,offsetX:jn,offsetY:jn,blur:jn},r=0,i=0;i<e.length;i++){var a=e[i];Un(a)?(0===r?n.offsetX=a:1===r?n.offsetY=a:n.blur=a,r++):n.color=nr.parse(t,a)}return n}))}},ji={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ki={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var n=Xi[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},zi=function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number}));return 6===e.length?e:null},Gi=function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number})),n=e[0],r=e[1];e[2],e[3];var i=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],16===e.length?[n,r,i,a,o,s]:null},Xi={matrix:zi,matrix3d:Gi},Vi={type:16,number:50,flags:zt},Wi=[Vi,Vi],qi={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter($n);return 2!==n.length?Wi:[n[0],n[1]]}},Yi={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(wi||(wi={}));for(var Ji={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return wi.BREAK_ALL;case"keep-all":return wi.KEEP_ALL;default:return wi.NORMAL}}},Zi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(20===e.type)return{auto:!0,order:0};if(Mn(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},ta={name:"time",parse:function(t,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},ea={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Mn(e)?e.number:1}},na={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ra={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(On).map((function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(t){return 0!==t}))}},ia={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],r=[];return e.forEach((function(t){switch(t.type){case 20:case 0:n.push(t.value);break;case 17:n.push(t.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}})),n.length&&r.push(n.join(" ")),r.map((function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"}))}},aa={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},oa={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){return Mn(e)?e.number:On(e)&&"bold"===e.value?700:400}},sa={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(On).map((function(t){return t.value}))}},ca={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},la=function(t,e){return!!(t&e)},ua={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e}},ha={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],i=e.filter(Nn),a=0;a<i.length;a++){var o=i[a],s=i[a+1];if(20===o.type){var c=s&&Mn(s)?s.number:1;r.push({counter:o.value,increment:c})}}return r}},fa={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return[];for(var n=[],r=e.filter(Nn),i=0;i<r.length;i++){var a=r[i],o=r[i+1];if(On(a)&&"none"!==a.value){var s=o&&Mn(o)?o.number:0;n.push({counter:a.value,reset:s})}}return n}},da={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(In).map((function(e){return ta.parse(t,e)}))}},Aa={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;var r=[],i=e.filter(Dn);if(i.length%2!=0)return null;for(var a=0;a<i.length;a+=2){var o=i[a].value,s=i[a+1].value;r.push({open:o,close:s})}return r}},ga=function(t,e,n){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?n?r.open:r.close:""},pa={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Fn(e[0],"none")?[]:Rn(e).map((function(e){for(var n={color:255,offsetX:jn,offsetY:jn,blur:jn,spread:jn,inset:!1},r=0,i=0;i<e.length;i++){var a=e[i];Fn(a,"inset")?n.inset=!0:Un(a)?(0===r?n.offsetX=a:1===r?n.offsetY=a:2===r?n.blur=a:n.spread=a,r++):n.color=nr.parse(t,a)}return n}))}},ma={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[0,1,2],r=[];return e.filter(On).forEach((function(t){switch(t.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2)}})),n.forEach((function(t){-1===r.indexOf(t)&&r.push(t)})),r}},ba={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},va={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return In(e)?e.number:0}},ya=function(){function t(t,e){var n,r;this.animationDuration=Ca(t,da,e.animationDuration),this.backgroundClip=Ca(t,dr,e.backgroundClip),this.backgroundColor=Ca(t,Ar,e.backgroundColor),this.backgroundImage=Ca(t,$r,e.backgroundImage),this.backgroundOrigin=Ca(t,Hr,e.backgroundOrigin),this.backgroundPosition=Ca(t,jr,e.backgroundPosition),this.backgroundRepeat=Ca(t,Kr,e.backgroundRepeat),this.backgroundSize=Ca(t,Xr,e.backgroundSize),this.borderTopColor=Ca(t,qr,e.borderTopColor),this.borderRightColor=Ca(t,Yr,e.borderRightColor),this.borderBottomColor=Ca(t,Jr,e.borderBottomColor),this.borderLeftColor=Ca(t,Zr,e.borderLeftColor),this.borderTopLeftRadius=Ca(t,ei,e.borderTopLeftRadius),this.borderTopRightRadius=Ca(t,ni,e.borderTopRightRadius),this.borderBottomRightRadius=Ca(t,ri,e.borderBottomRightRadius),this.borderBottomLeftRadius=Ca(t,ii,e.borderBottomLeftRadius),this.borderTopStyle=Ca(t,oi,e.borderTopStyle),this.borderRightStyle=Ca(t,si,e.borderRightStyle),this.borderBottomStyle=Ca(t,ci,e.borderBottomStyle),this.borderLeftStyle=Ca(t,li,e.borderLeftStyle),this.borderTopWidth=Ca(t,hi,e.borderTopWidth),this.borderRightWidth=Ca(t,fi,e.borderRightWidth),this.borderBottomWidth=Ca(t,di,e.borderBottomWidth),this.borderLeftWidth=Ca(t,Ai,e.borderLeftWidth),this.boxShadow=Ca(t,pa,e.boxShadow),this.color=Ca(t,gi,e.color),this.direction=Ca(t,pi,e.direction),this.display=Ca(t,mi,e.display),this.float=Ca(t,vi,e.cssFloat),this.fontFamily=Ca(t,ia,e.fontFamily),this.fontSize=Ca(t,aa,e.fontSize),this.fontStyle=Ca(t,ca,e.fontStyle),this.fontVariant=Ca(t,sa,e.fontVariant),this.fontWeight=Ca(t,oa,e.fontWeight),this.letterSpacing=Ca(t,yi,e.letterSpacing),this.lineBreak=Ca(t,ki,e.lineBreak),this.lineHeight=Ca(t,Ci,e.lineHeight),this.listStyleImage=Ca(t,Ei,e.listStyleImage),this.listStylePosition=Ca(t,Ti,e.listStylePosition),this.listStyleType=Ca(t,Bi,e.listStyleType),this.marginTop=Ca(t,Si,e.marginTop),this.marginRight=Ca(t,Li,e.marginRight),this.marginBottom=Ca(t,Ii,e.marginBottom),this.marginLeft=Ca(t,Mi,e.marginLeft),this.opacity=Ca(t,ea,e.opacity);var i=Ca(t,Oi,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Ca(t,Di,e.overflowWrap),this.paddingTop=Ca(t,Ni,e.paddingTop),this.paddingRight=Ca(t,Pi,e.paddingRight),this.paddingBottom=Ca(t,Ri,e.paddingBottom),this.paddingLeft=Ca(t,Qi,e.paddingLeft),this.paintOrder=Ca(t,ma,e.paintOrder),this.position=Ca(t,$i,e.position),this.textAlign=Ca(t,Ui,e.textAlign),this.textDecorationColor=Ca(t,na,null!==(n=e.textDecorationColor)&&void 0!==n?n:e.color),this.textDecorationLine=Ca(t,ra,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=Ca(t,Hi,e.textShadow),this.textTransform=Ca(t,ji,e.textTransform),this.transform=Ca(t,Ki,e.transform),this.transformOrigin=Ca(t,qi,e.transformOrigin),this.visibility=Ca(t,Yi,e.visibility),this.webkitTextStrokeColor=Ca(t,ba,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ca(t,va,e.webkitTextStrokeWidth),this.wordBreak=Ca(t,Ji,e.wordBreak),this.zIndex=Ca(t,Zi,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return rr(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return la(this.display,4)||la(this.display,33554432)||la(this.display,268435456)||la(this.display,536870912)||la(this.display,67108864)||la(this.display,134217728)},t}(),wa=function(){function t(t,e){this.content=Ca(t,ua,e.content),this.quotes=Ca(t,Aa,e.quotes)}return t}(),ka=function(){function t(t,e){this.counterIncrement=Ca(t,ha,e.counterIncrement),this.counterReset=Ca(t,fa,e.counterReset)}return t}(),Ca=function(t,e,n){var r=new Sn,i=null!=n?n.toString():e.initialValue;r.write(i);var a=new Ln(r.read());switch(e.type){case 2:var o=a.parseComponentValue();return e.parse(t,On(o)?o.value:e.initialValue);case 0:return e.parse(t,a.parseComponentValue());case 1:return e.parse(t,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return Jn.parse(t,a.parseComponentValue());case"color":return nr.parse(t,a.parseComponentValue());case"image":return Pr.parse(t,a.parseComponentValue());case"length":var s=a.parseComponentValue();return Un(s)?s:jn;case"length-percentage":var c=a.parseComponentValue();return $n(c)?c:jn;case"time":return ta.parse(t,a.parseComponentValue())}}},xa="data-html2canvas-debug",Ea=function(t){switch(t.getAttribute(xa)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ta=function(t,e){var n=Ea(t);return 1===n||e===n},Ba=function(){function t(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Ta(e,3),this.styles=new ya(t,window.getComputedStyle(e,null)),gs(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=s(this.context,e),Ta(e,4)&&(this.flags|=16)}return t}(),_a="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",La="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ia=0;Ia<Sa.length;Ia++)La[Sa.charCodeAt(Ia)]=Ia;for(var Ma=function(t){var e,n,r,i,a,o=.75*t.length,s=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),u=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<s;e+=4)n=La[t.charCodeAt(e)],r=La[t.charCodeAt(e+1)],i=La[t.charCodeAt(e+2)],a=La[t.charCodeAt(e+3)],u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return l},Oa=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},Da=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},Fa=5,Na=11,Pa=2,Ra=65536>>Fa,Qa=(1<<Fa)-1,Ua=Ra+(1024>>Fa)+32,$a=65536>>Na,Ha=(1<<Na-Fa)-1,ja=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},Ka=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},za=function(t,e){var n=Ma(t),r=Array.isArray(n)?Da(n):new Uint32Array(n),i=Array.isArray(n)?Oa(n):new Uint16Array(n),a=24,o=ja(i,a/2,r[4]/2),s=2===r[5]?ja(i,(a+r[4])/2):Ka(r,Math.ceil((a+r[4])/4));return new Ga(r[0],r[1],r[2],r[3],o,s)},Ga=function(){function t(t,e,n,r,i,a){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>Fa])<<Pa)+(t&Qa),this.data[e];if(t<=65535)return e=((e=this.index[Ra+(t-55296>>Fa)])<<Pa)+(t&Qa),this.data[e];if(t<this.highStart)return e=Ua-$a+(t>>Na),e=this.index[e],e+=t>>Fa&Ha,e=((e=this.index[e])<<Pa)+(t&Qa),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Va="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Wa=0;Wa<Xa.length;Wa++)Va[Xa.charCodeAt(Wa)]=Wa;var qa,Ya=1,Ja=2,Za=3,to=4,eo=5,no=7,ro=8,io=9,ao=10,oo=11,so=12,co=13,lo=14,uo=15,ho=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=t.charCodeAt(n++);56320==(64512&a)?e.push(((1023&i)<<10)+(1023&a)+65536):(e.push(i),n--)}else e.push(i)}return e},fo=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],i=-1,a="";++i<n;){var o=t[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},Ao=za(_a),go="×",po="÷",mo=function(t){return Ao.get(t)},bo=function(t,e,n){var r=n-2,i=e[r],a=e[n-1],o=e[n];if(a===Ja&&o===Za)return go;if(a===Ja||a===Za||a===to)return po;if(o===Ja||o===Za||o===to)return po;if(a===ro&&-1!==[ro,io,oo,so].indexOf(o))return go;if(!(a!==oo&&a!==io||o!==io&&o!==ao))return go;if((a===so||a===ao)&&o===ao)return go;if(o===co||o===eo)return go;if(o===no)return go;if(a===Ya)return go;if(a===co&&o===lo){for(;i===eo;)i=e[--r];if(i===lo)return go}if(a===uo&&o===uo){for(var s=0;i===uo;)s++,i=e[--r];if(s%2==0)return go}return po},vo=function(t){var e=ho(t),n=e.length,r=0,i=0,a=e.map(mo);return{next:function(){if(r>=n)return{done:!0,value:null};for(var t=go;r<n&&(t=bo(e,a,++r))===go;);if(t!==go||r===n){var o=fo.apply(null,e.slice(i,r));return i=r,{value:o,done:!1}}return{done:!0,value:null}}}},yo=function(t){for(var e,n=vo(t),r=[];!(e=n.next()).done;)e.value&&r.push(e.value.slice());return r},wo=function(t){var e=123;if(t.createRange){var n=t.createRange();if(n.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=e+"px",r.style.display="block",t.body.appendChild(r),n.selectNode(r);var i=n.getBoundingClientRect(),a=Math.round(i.height);if(t.body.removeChild(r),a===e)return!0}}return!1},ko=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,i=l(r.data).map((function(t){return u(t)})),a=0,o={},s=i.every((function(t,e){n.setStart(r,a),n.setEnd(r,a+t.length);var i=n.getBoundingClientRect();a+=t.length;var s=i.x>o.x||i.y>o.y;return o=i,0===e||s}));return t.body.removeChild(e),s},Co=function(){return void 0!==(new Image).crossOrigin},xo=function(){return"string"==typeof(new XMLHttpRequest).responseType},Eo=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),n.toDataURL()}catch(t){return!1}return!0},To=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Bo=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,a=e.toDataURL();i.src=a;var o=_o(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),So(o).then((function(e){r.drawImage(e,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var o=t.createElement("div");return o.style.backgroundImage="url("+a+")",o.style.height=n+"px",To(i)?So(_o(n,n,0,0,o)):Promise.reject(!1)})).then((function(t){return r.drawImage(t,0,0),To(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},_o=function(t,e,n,r,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},So=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Lo={get SUPPORT_RANGE_BOUNDS(){var t=wo(document);return Object.defineProperty(Lo,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Lo.SUPPORT_RANGE_BOUNDS&&ko(document);return Object.defineProperty(Lo,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Eo(document);return Object.defineProperty(Lo,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?Bo(document):Promise.resolve(!1);return Object.defineProperty(Lo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=Co();return Object.defineProperty(Lo,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=xo();return Object.defineProperty(Lo,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Lo,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Lo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Io=function(){function t(t,e){this.text=t,this.bounds=e}return t}(),Mo=function(t,e,n,r){var i=Po(e,n),a=[],s=0;return i.forEach((function(e){if(n.textDecorationLine.length||e.trim().length>0)if(Lo.SUPPORT_RANGE_BOUNDS){var i=Do(r,s,e.length).getClientRects();if(i.length>1){var c=Fo(e),l=0;c.forEach((function(e){a.push(new Io(e,o.fromDOMRectList(t,Do(r,l+s,e.length).getClientRects()))),l+=e.length}))}else a.push(new Io(e,o.fromDOMRectList(t,i)))}else{var u=r.splitText(e.length);a.push(new Io(e,Oo(t,r))),r=u}else Lo.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));s+=e.length})),a},Oo=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(r,e);var a=s(t,r);return r.firstChild&&i.replaceChild(r.firstChild,r),a}}return o.EMPTY},Do=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(t,e),i.setEnd(t,e+n),i},Fo=function(t){if(Lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map((function(t){return t.segment}))}return yo(t)},No=function(t,e){if(Lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map((function(t){return t.segment}))}return Qo(t,e)},Po=function(t,e){return 0!==e.letterSpacing?Fo(t):No(t,e)},Ro=[32,160,4961,65792,65793,4153,4241],Qo=function(t,e){for(var n,r=Ht(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),i=[],a=function(){if(n.value){var t=n.value.slice(),e=l(t),r="";e.forEach((function(t){-1===Ro.indexOf(t)?r+=u(t):(r.length&&i.push(r),i.push(u(t)),r="")})),r.length&&i.push(r)}};!(n=r.next()).done;)a();return i},Uo=function(){function t(t,e,n){this.text=$o(e.data,n.textTransform),this.textBounds=Mo(t,this.text,n,e)}return t}(),$o=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(Ho,jo);case 2:return t.toUpperCase();default:return t}},Ho=/(^|\s|:|-|\(|\))([a-z])/g,jo=function(t,e,n){return t.length>0?e+n.toUpperCase():t},Ko=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return e(n,t),n}(Ba),zo=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e(n,t),n}(Ba),Go=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,a=s(e,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(n,t),n}(Ba),Xo=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(Ba),Vo=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return e(n,t),n}(Ba),Wo=[{type:15,flags:0,unit:"px",number:3}],qo=[{type:16,flags:0,number:50}],Yo=function(t){return t.width>t.height?new o(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new o(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},Jo=function(t){var e=t.type===es?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e},Zo="checkbox",ts="radio",es="password",ns=707406591,rs=function(t){function n(e,n){var r=t.call(this,e,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=Jo(n),r.type!==Zo&&r.type!==ts||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=Yo(r.bounds)),r.type){case Zo:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Wo;break;case ts:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=qo}return r}return e(n,t),n}(Ba),is=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return e(n,t),n}(Ba),as=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(Ba),os=function(t){function n(e,n){var r=t.call(this,e,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=us(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?hr(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):fr.TRANSPARENT,a=n.contentWindow.document.body?hr(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):fr.TRANSPARENT;r.backgroundColor=rr(i)?rr(a)?r.styles.backgroundColor:a:i}}catch(t){}return r}return e(n,t),n}(Ba),ss=["OL","UL","MENU"],cs=function(t,e,n,r){for(var i=e.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,ds(i)&&i.data.trim().length>0)n.textNodes.push(new Uo(t,i,n.styles));else if(As(i))if(Is(i)&&i.assignedNodes)i.assignedNodes().forEach((function(e){return cs(t,e,n,r)}));else{var o=ls(t,i);o.styles.isVisible()&&(hs(i,o,r)?o.flags|=4:fs(o.styles)&&(o.flags|=2),-1!==ss.indexOf(i.tagName)&&(o.flags|=8),n.elements.push(o),i.slot,i.shadowRoot?cs(t,i.shadowRoot,o,r):Ss(i)||ws(i)||Ls(i)||cs(t,i,o,r))}},ls=function(t,e){return Es(e)?new Ko(t,e):Cs(e)?new zo(t,e):ws(e)?new Go(t,e):ms(e)?new Xo(t,e):bs(e)?new Vo(t,e):vs(e)?new rs(t,e):Ls(e)?new is(t,e):Ss(e)?new as(t,e):Ts(e)?new os(t,e):new Ba(t,e)},us=function(t,e){var n=ls(t,e);return n.flags|=4,cs(t,e,n,n),n},hs=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||ks(t)&&n.styles.isTransparent()},fs=function(t){return t.isPositioned()||t.isFloating()},ds=function(t){return t.nodeType===Node.TEXT_NODE},As=function(t){return t.nodeType===Node.ELEMENT_NODE},gs=function(t){return As(t)&&void 0!==t.style&&!ps(t)},ps=function(t){return"object"==typeof t.className},ms=function(t){return"LI"===t.tagName},bs=function(t){return"OL"===t.tagName},vs=function(t){return"INPUT"===t.tagName},ys=function(t){return"HTML"===t.tagName},ws=function(t){return"svg"===t.tagName},ks=function(t){return"BODY"===t.tagName},Cs=function(t){return"CANVAS"===t.tagName},xs=function(t){return"VIDEO"===t.tagName},Es=function(t){return"IMG"===t.tagName},Ts=function(t){return"IFRAME"===t.tagName},Bs=function(t){return"STYLE"===t.tagName},_s=function(t){return"SCRIPT"===t.tagName},Ss=function(t){return"TEXTAREA"===t.tagName},Ls=function(t){return"SELECT"===t.tagName},Is=function(t){return"SLOT"===t.tagName},Ms=function(t){return t.tagName.indexOf("-")>0},Os=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,r=t.counterReset,i=!0;null!==n&&n.forEach((function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=t.increment)}));var a=[];return i&&r.forEach((function(t){var n=e.counters[t.counter];a.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)})),a},t}(),Ds={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Fs={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ns={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ps={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Rs=function(t,e,n,r,i,a){return t<e||t>n?Ys(t,i,a.length>0):r.integers.reduce((function(e,n,i){for(;t>=n;)t-=n,e+=r.values[i];return e}),"")+a},Qs=function(t,e,n,r){var i="";do{n||t--,i=r(t)+i,t/=e}while(t*e>=e);return i},Us=function(t,e,n,r,i){var a=n-e+1;return(t<0?"-":"")+(Qs(Math.abs(t),a,r,(function(t){return u(Math.floor(t%a)+e)}))+i)},$s=function(t,e,n){void 0===n&&(n=". ");var r=e.length;return Qs(Math.abs(t),r,!1,(function(t){return e[Math.floor(t%r)]}))+n},Hs=1,js=2,Ks=4,zs=8,Gs=function(t,e,n,r,i,a){if(t<-9999||t>9999)return Ys(t,4,i.length>0);var o=Math.abs(t),s=i;if(0===o)return e[0]+s;for(var c=0;o>0&&c<=4;c++){var l=o%10;0===l&&la(a,Hs)&&""!==s?s=e[l]+s:l>1||1===l&&0===c||1===l&&1===c&&la(a,js)||1===l&&1===c&&la(a,Ks)&&t>100||1===l&&c>1&&la(a,zs)?s=e[l]+(c>0?n[c-1]:"")+s:1===l&&c>0&&(s=n[c-1]+s),o=Math.floor(o/10)}return(t<0?r:"")+s},Xs="十百千萬",Vs="拾佰仟萬",Ws="マイナス",qs="마이너스",Ys=function(t,e,n){var r=n?". ":"",i=n?"、":"",a=n?", ":"",o=n?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Us(t,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return $s(t,"〇一二三四五六七八九",i);case 6:return Rs(t,1,3999,Ds,3,r).toLowerCase();case 7:return Rs(t,1,3999,Ds,3,r);case 8:return Us(t,945,969,!1,r);case 9:return Us(t,97,122,!1,r);case 10:return Us(t,65,90,!1,r);case 11:return Us(t,1632,1641,!0,r);case 12:case 49:return Rs(t,1,9999,Fs,3,r);case 35:return Rs(t,1,9999,Fs,3,r).toLowerCase();case 13:return Us(t,2534,2543,!0,r);case 14:case 30:return Us(t,6112,6121,!0,r);case 15:return $s(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return $s(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Gs(t,"零一二三四五六七八九",Xs,"負",i,js|Ks|zs);case 47:return Gs(t,"零壹貳參肆伍陸柒捌玖",Vs,"負",i,Hs|js|Ks|zs);case 42:return Gs(t,"零一二三四五六七八九",Xs,"负",i,js|Ks|zs);case 41:return Gs(t,"零壹贰叁肆伍陆柒捌玖",Vs,"负",i,Hs|js|Ks|zs);case 26:return Gs(t,"〇一二三四五六七八九","十百千万",Ws,i,0);case 25:return Gs(t,"零壱弐参四伍六七八九","拾百千万",Ws,i,Hs|js|Ks);case 31:return Gs(t,"영일이삼사오육칠팔구","십백천만",qs,a,Hs|js|Ks);case 33:return Gs(t,"零一二三四五六七八九","十百千萬",qs,a,0);case 32:return Gs(t,"零壹貳參四五六七八九","拾百千",qs,a,Hs|js|Ks);case 18:return Us(t,2406,2415,!0,r);case 20:return Rs(t,1,19999,Ps,3,r);case 21:return Us(t,2790,2799,!0,r);case 22:return Us(t,2662,2671,!0,r);case 22:return Rs(t,1,10999,Ns,3,r);case 23:return $s(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return $s(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Us(t,3302,3311,!0,r);case 28:return $s(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return $s(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Us(t,3792,3801,!0,r);case 37:return Us(t,6160,6169,!0,r);case 38:return Us(t,4160,4169,!0,r);case 39:return Us(t,2918,2927,!0,r);case 40:return Us(t,1776,1785,!0,r);case 43:return Us(t,3046,3055,!0,r);case 44:return Us(t,3174,3183,!0,r);case 45:return Us(t,3664,3673,!0,r);case 46:return Us(t,3872,3881,!0,r);default:return Us(t,48,57,!0,r)}},Js="data-html2canvas-ignore",Zs=function(){function t(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new Os,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var n=this,a=ec(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,c=a.contentWindow,l=c.document,u=ic(a).then((function(){return r(n,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(lc),c&&(c.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||c.scrollY===e.top&&c.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-e.left,c.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,rc(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof t?[2,Promise.resolve().then((function(){return t(l,n)})).then((function(){return a}))]:[2,a]}}))}))}));return l.open(),l.write(sc(document.doctype)+"<html></html>"),cc(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},t.prototype.createElementClone=function(t){if(Ta(t,2),Cs(t))return this.createCanvasClone(t);if(xs(t))return this.createVideoClone(t);if(Bs(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Es(e)&&(Es(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Ms(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return oc(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t}),""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var r=t.cloneNode(!1);try{r.width=t.width,r.height=t.height;var i=t.getContext("2d"),a=r.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}a.drawImage(t,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return r},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}var r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r},t.prototype.appendChildNode=function(t,e,n){As(e)&&(_s(e)||e.hasAttribute(Js)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&As(e)&&Bs(e)||t.appendChild(this.cloneNode(e,n))},t.prototype.cloneChildNodes=function(t,e,n){for(var r=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(As(i)&&Is(i)&&"function"==typeof i.assignedNodes){var a=i.assignedNodes();a.length&&a.forEach((function(t){return r.appendChildNode(e,t,n)}))}else this.appendChildNode(e,i,n)},t.prototype.cloneNode=function(t,e){if(ds(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&As(t)&&(gs(t)||ps(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var i=n.getComputedStyle(t),a=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&gs(r)&&(this.clonedReferenceElement=r),ks(r)&&gc(r);var s=this.counters.parse(new ka(this.context,i)),c=this.resolvePseudoContent(t,r,a,qa.BEFORE);Ms(t)&&(e=!0),xs(t)||this.cloneChildNodes(t,r,e),c&&r.insertBefore(c,r.firstChild);var l=this.resolvePseudoContent(t,r,o,qa.AFTER);return l&&r.appendChild(l),this.counters.pop(s),(i&&(this.options.copyStyles||ps(t))&&!Ts(t)||e)&&oc(i,r),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(Ss(t)||Ls(t))&&(Ss(r)||Ls(r))&&(r.value=t.value),r}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,r){var i=this;if(n){var a=n.content,o=e.ownerDocument;if(o&&a&&"none"!==a&&"-moz-alt-content"!==a&&"none"!==n.display){this.counters.parse(new ka(this.context,n));var s=new wa(this.context,n),c=o.createElement("html2canvaspseudoelement");oc(n,c),s.content.forEach((function(e){if(0===e.type)c.appendChild(o.createTextNode(e.value));else if(22===e.type){var n=o.createElement("img");n.src=e.value,n.style.opacity="1",c.appendChild(n)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(On);r.length&&c.appendChild(o.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var a=e.values.filter(Pn),l=a[0],u=a[1];if(l&&On(l)){var h=i.counters.getCounterValue(l.value),f=u&&On(u)?Bi.parse(i.context,u.value):3;c.appendChild(o.createTextNode(Ys(h,f,!1)))}}else if("counters"===e.name){var d=e.values.filter(Pn),A=(l=d[0],d[1]);if(u=d[2],l&&On(l)){var g=i.counters.getCounterValues(l.value),p=u&&On(u)?Bi.parse(i.context,u.value):3,m=A&&0===A.type?A.value:"",b=g.map((function(t){return Ys(t,p,!1)})).join(m);c.appendChild(o.createTextNode(b))}}}else if(20===e.type)switch(e.value){case"open-quote":c.appendChild(o.createTextNode(ga(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(ga(s.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(e.value))}})),c.className=fc+" "+dc;var l=r===qa.BEFORE?" "+fc:" "+dc;return ps(e)?e.className.baseValue+=l:e.className+=l,c}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(qa||(qa={}));var tc,ec=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(Js,"true"),t.body.appendChild(n),n},nc=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},rc=function(t){return Promise.all([].slice.call(t.images,0).map(nc))},ic=function(t){return new Promise((function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var n=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),e(t))}),50)}}))},ac=["all","d","content"],oc=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);-1===ac.indexOf(r)&&e.style.setProperty(r,t.getPropertyValue(r))}return e},sc=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},cc=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},lc=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},uc=":before",hc=":after",fc="___html2canvas___pseudoelement_before",dc="___html2canvas___pseudoelement_after",Ac='{\n content: "" !important;\n display: none !important;\n}',gc=function(t){pc(t,"."+fc+uc+Ac+"\n ."+dc+hc+Ac)},pc=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},mc=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),bc=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:Ec(t)||kc(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o=this;return i(this,(function(i){switch(i.label){case 0:return e=mc.isSameOrigin(t),n=!Cc(t)&&!0===this._options.useCORS&&Lo.SUPPORT_CORS_IMAGES&&!e,r=!Cc(t)&&!e&&!Ec(t)&&"string"==typeof this._options.proxy&&Lo.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||Cc(t)||Ec(t)||r||n?(a=t,r?[4,this.proxy(a)]:[3,2]):[2];case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,(xc(a)||n)&&(r.crossOrigin="anonymous"),r.src=a,!0===r.complete&&setTimeout((function(){return t(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise((function(i,a){var o=Lo.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)i(s.response);else{var t=new FileReader;t.addEventListener("load",(function(){return i(t.result)}),!1),t.addEventListener("error",(function(t){return a(t)}),!1),t.readAsDataURL(s.response)}else a("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=a;var c=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+c+"url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var l=e._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return a("Timed out ("+l+"ms) proxying "+r)}}s.send()}))},t}(),vc=/^data:image\/svg\+xml/i,yc=/^data:image\/.*;base64,/i,wc=/^data:image\/.*/i,kc=function(t){return Lo.SUPPORT_SVG_DRAWING||!Tc(t)},Cc=function(t){return wc.test(t)},xc=function(t){return yc.test(t)},Ec=function(t){return"blob"===t.substr(0,4)},Tc=function(t){return"svg"===t.substr(-3).toLowerCase()||vc.test(t)},Bc=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),_c=function(t,e,n){return new Bc(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},Sc=function(){function t(t,e,n,r){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,n){var r=_c(this.start,this.startControl,e),i=_c(this.startControl,this.endControl,e),a=_c(this.endControl,this.end,e),o=_c(r,i,e),s=_c(i,a,e),c=_c(o,s,e);return n?new t(this.start,r,o,c):new t(c,s,a,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Lc=function(t){return 1===t.type},Ic=function(){function t(t){var e=t.styles,n=t.bounds,r=Gn(e.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=Gn(e.borderTopRightRadius,n.width,n.height),s=o[0],c=o[1],l=Gn(e.borderBottomRightRadius,n.width,n.height),u=l[0],h=l[1],f=Gn(e.borderBottomLeftRadius,n.width,n.height),d=f[0],A=f[1],g=[];g.push((i+s)/n.width),g.push((d+u)/n.width),g.push((a+A)/n.height),g.push((c+h)/n.height);var p=Math.max.apply(Math,g);p>1&&(i/=p,a/=p,s/=p,c/=p,u/=p,h/=p,d/=p,A/=p);var m=n.width-s,b=n.height-h,v=n.width-u,y=n.height-A,w=e.borderTopWidth,k=e.borderRightWidth,C=e.borderBottomWidth,x=e.borderLeftWidth,E=Xn(e.paddingTop,t.bounds.width),T=Xn(e.paddingRight,t.bounds.width),B=Xn(e.paddingBottom,t.bounds.width),_=Xn(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Mc(n.left+x/3,n.top+w/3,i-x/3,a-w/3,tc.TOP_LEFT):new Bc(n.left+x/3,n.top+w/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Mc(n.left+m,n.top+w/3,s-k/3,c-w/3,tc.TOP_RIGHT):new Bc(n.left+n.width-k/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=u>0||h>0?Mc(n.left+v,n.top+b,u-k/3,h-C/3,tc.BOTTOM_RIGHT):new Bc(n.left+n.width-k/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=d>0||A>0?Mc(n.left+x/3,n.top+y,d-x/3,A-C/3,tc.BOTTOM_LEFT):new Bc(n.left+x/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Mc(n.left+2*x/3,n.top+2*w/3,i-2*x/3,a-2*w/3,tc.TOP_LEFT):new Bc(n.left+2*x/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Mc(n.left+m,n.top+2*w/3,s-2*k/3,c-2*w/3,tc.TOP_RIGHT):new Bc(n.left+n.width-2*k/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=u>0||h>0?Mc(n.left+v,n.top+b,u-2*k/3,h-2*C/3,tc.BOTTOM_RIGHT):new Bc(n.left+n.width-2*k/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=d>0||A>0?Mc(n.left+2*x/3,n.top+y,d-2*x/3,A-2*C/3,tc.BOTTOM_LEFT):new Bc(n.left+2*x/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=i>0||a>0?Mc(n.left+x/2,n.top+w/2,i-x/2,a-w/2,tc.TOP_LEFT):new Bc(n.left+x/2,n.top+w/2),this.topRightBorderStroke=i>0||a>0?Mc(n.left+m,n.top+w/2,s-k/2,c-w/2,tc.TOP_RIGHT):new Bc(n.left+n.width-k/2,n.top+w/2),this.bottomRightBorderStroke=u>0||h>0?Mc(n.left+v,n.top+b,u-k/2,h-C/2,tc.BOTTOM_RIGHT):new Bc(n.left+n.width-k/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=d>0||A>0?Mc(n.left+x/2,n.top+y,d-x/2,A-C/2,tc.BOTTOM_LEFT):new Bc(n.left+x/2,n.top+n.height-C/2),this.topLeftBorderBox=i>0||a>0?Mc(n.left,n.top,i,a,tc.TOP_LEFT):new Bc(n.left,n.top),this.topRightBorderBox=s>0||c>0?Mc(n.left+m,n.top,s,c,tc.TOP_RIGHT):new Bc(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||h>0?Mc(n.left+v,n.top+b,u,h,tc.BOTTOM_RIGHT):new Bc(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||A>0?Mc(n.left,n.top+y,d,A,tc.BOTTOM_LEFT):new Bc(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?Mc(n.left+x,n.top+w,Math.max(0,i-x),Math.max(0,a-w),tc.TOP_LEFT):new Bc(n.left+x,n.top+w),this.topRightPaddingBox=s>0||c>0?Mc(n.left+Math.min(m,n.width-k),n.top+w,m>n.width+k?0:Math.max(0,s-k),Math.max(0,c-w),tc.TOP_RIGHT):new Bc(n.left+n.width-k,n.top+w),this.bottomRightPaddingBox=u>0||h>0?Mc(n.left+Math.min(v,n.width-x),n.top+Math.min(b,n.height-C),Math.max(0,u-k),Math.max(0,h-C),tc.BOTTOM_RIGHT):new Bc(n.left+n.width-k,n.top+n.height-C),this.bottomLeftPaddingBox=d>0||A>0?Mc(n.left+x,n.top+Math.min(y,n.height-C),Math.max(0,d-x),Math.max(0,A-C),tc.BOTTOM_LEFT):new Bc(n.left+x,n.top+n.height-C),this.topLeftContentBox=i>0||a>0?Mc(n.left+x+_,n.top+w+E,Math.max(0,i-(x+_)),Math.max(0,a-(w+E)),tc.TOP_LEFT):new Bc(n.left+x+_,n.top+w+E),this.topRightContentBox=s>0||c>0?Mc(n.left+Math.min(m,n.width+x+_),n.top+w+E,m>n.width+x+_?0:s-x+_,c-(w+E),tc.TOP_RIGHT):new Bc(n.left+n.width-(k+T),n.top+w+E),this.bottomRightContentBox=u>0||h>0?Mc(n.left+Math.min(v,n.width-(x+_)),n.top+Math.min(b,n.height+w+E),Math.max(0,u-(k+T)),h-(C+B),tc.BOTTOM_RIGHT):new Bc(n.left+n.width-(k+T),n.top+n.height-(C+B)),this.bottomLeftContentBox=d>0||A>0?Mc(n.left+x+_,n.top+y,Math.max(0,d-(x+_)),A-(C+B),tc.BOTTOM_LEFT):new Bc(n.left+x+_,n.top+n.height-(C+B))}return t}();!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(tc||(tc={}));var Mc=function(t,e,n,r,i){var a=(Math.sqrt(2)-1)/3*4,o=n*a,s=r*a,c=t+n,l=e+r;switch(i){case tc.TOP_LEFT:return new Sc(new Bc(t,l),new Bc(t,l-s),new Bc(c-o,e),new Bc(c,e));case tc.TOP_RIGHT:return new Sc(new Bc(t,e),new Bc(t+o,e),new Bc(c,l-s),new Bc(c,l));case tc.BOTTOM_RIGHT:return new Sc(new Bc(c,e),new Bc(c,e+s),new Bc(t+o,l),new Bc(t,l));case tc.BOTTOM_LEFT:default:return new Sc(new Bc(c,l),new Bc(c-o,l),new Bc(t,e+s),new Bc(t,e))}},Oc=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Dc=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Fc=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Nc=function(){function t(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Pc=function(){function t(t,e){this.path=t,this.target=e,this.type=1}return t}(),Rc=function(){function t(t){this.opacity=t,this.type=2,this.target=6}return t}(),Qc=function(t){return 0===t.type},Uc=function(t){return 1===t.type},$c=function(t){return 2===t.type},Hc=function(t,e){return t.length===e.length&&t.some((function(t,n){return t===e[n]}))},jc=function(t,e,n,r,i){return t.map((function(t,a){switch(a){case 0:return t.add(e,n);case 1:return t.add(e+r,n);case 2:return t.add(e+r,n+i);case 3:return t.add(e,n+i)}return t}))},Kc=function(){function t(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),zc=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Ic(this.container),this.container.styles.opacity<1&&this.effects.push(new Rc(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Nc(n,r,i))}if(0!==this.container.styles.overflowX){var a=Oc(this.curves),o=Fc(this.curves);Hc(a,o)?this.effects.push(new Pc(a,6)):(this.effects.push(new Pc(a,2)),this.effects.push(new Pc(o,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter((function(t){return!Uc(t)}));if(e||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),e=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var a=Oc(n.curves),o=Fc(n.curves);Hc(a,o)||r.unshift(new Pc(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter((function(e){return la(e.target,t)}))},t}(),Gc=function(t,e,n,r){t.container.elements.forEach((function(i){var a=la(i.flags,4),o=la(i.flags,2),s=new zc(i,t);la(i.styles.display,2048)&&r.push(s);var c=la(i.flags,8)?[]:r;if(a||o){var l=a||i.styles.isPositioned()?n:e,u=new Kc(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var h=i.styles.zIndex.order;if(h<0){var f=0;l.negativeZIndex.some((function(t,e){return h>t.element.container.styles.zIndex.order?(f=e,!1):f>0})),l.negativeZIndex.splice(f,0,u)}else if(h>0){var d=0;l.positiveZIndex.some((function(t,e){return h>=t.element.container.styles.zIndex.order?(d=e+1,!1):d>0})),l.positiveZIndex.splice(d,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);Gc(s,u,a?u:n,c)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),Gc(s,e,n,c);la(i.flags,8)&&Xc(i,c)}))},Xc=function(t,e){for(var n=t instanceof Vo?t.start:1,r=t instanceof Vo&&t.reversed,i=0;i<e.length;i++){var a=e[i];a.container instanceof Xo&&"number"==typeof a.container.value&&0!==a.container.value&&(n=a.container.value),a.listValue=Ys(n,a.container.styles.listStyleType,!0),n+=r?-1:1}},Vc=function(t){var e=new zc(t,null),n=new Kc(e),r=[];return Gc(e,n,n,r),Xc(e.container,r),n},Wc=function(t,e){switch(e){case 0:return tl(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return tl(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return tl(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return tl(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},qc=function(t,e){switch(e){case 0:return tl(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return tl(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return tl(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return tl(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},Yc=function(t,e){switch(e){case 0:return tl(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return tl(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return tl(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return tl(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},Jc=function(t,e){switch(e){case 0:return Zc(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Zc(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Zc(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return Zc(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Zc=function(t,e){var n=[];return Lc(t)?n.push(t.subdivide(.5,!1)):n.push(t),Lc(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},tl=function(t,e,n,r){var i=[];return Lc(t)?i.push(t.subdivide(.5,!1)):i.push(t),Lc(n)?i.push(n.subdivide(.5,!0)):i.push(n),Lc(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Lc(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},el=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},nl=function(t){var e=t.styles,n=t.bounds,r=Xn(e.paddingLeft,n.width),i=Xn(e.paddingRight,n.width),a=Xn(e.paddingTop,n.width),o=Xn(e.paddingBottom,n.width);return n.add(r+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+i),-(e.borderTopWidth+e.borderBottomWidth+a+o))},rl=function(t,e){return 0===t?e.bounds:2===t?nl(e):el(e)},il=function(t,e){return 0===t?e.bounds:2===t?nl(e):el(e)},al=function(t,e,n){var r=rl(ll(t.styles.backgroundOrigin,e),t),i=il(ll(t.styles.backgroundClip,e),t),a=cl(ll(t.styles.backgroundSize,e),n,r),o=a[0],s=a[1],c=Gn(ll(t.styles.backgroundPosition,e),r.width-o,r.height-s);return[ul(ll(t.styles.backgroundRepeat,e),c,a,r,i),Math.round(r.left+c[0]),Math.round(r.top+c[1]),o,s]},ol=function(t){return On(t)&&t.value===Qr.AUTO},sl=function(t){return"number"==typeof t},cl=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=t[0],s=t[1];if(!o)return[0,0];if($n(o)&&s&&$n(s))return[Xn(o,n.width),Xn(s,n.height)];var c=sl(a);if(On(o)&&(o.value===Qr.CONTAIN||o.value===Qr.COVER))return sl(a)?n.width/n.height<a!=(o.value===Qr.COVER)?[n.width,n.width/a]:[n.height*a,n.height]:[n.width,n.height];var l=sl(r),u=sl(i),h=l||u;if(ol(o)&&(!s||ol(s)))return l&&u?[r,i]:c||h?h&&c?[l?r:i*a,u?i:r/a]:[l?r:n.width,u?i:n.height]:[n.width,n.height];if(c){var f=0,d=0;return $n(o)?f=Xn(o,n.width):$n(s)&&(d=Xn(s,n.height)),ol(o)?f=d*a:s&&!ol(s)||(d=f/a),[f,d]}var A=null,g=null;if($n(o)?A=Xn(o,n.width):s&&$n(s)&&(g=Xn(s,n.height)),null===A||s&&!ol(s)||(g=l&&u?A/r*i:n.height),null!==g&&ol(o)&&(A=l&&u?g/i*r:n.width),null!==A&&null!==g)return[A,g];throw new Error("Unable to calculate background-size for element")},ll=function(t,e){var n=t[e];return void 0===n?t[0]:n},ul=function(t,e,n,r,i){var a=e[0],o=e[1],s=n[0],c=n[1];switch(t){case 2:return[new Bc(Math.round(r.left),Math.round(r.top+o)),new Bc(Math.round(r.left+r.width),Math.round(r.top+o)),new Bc(Math.round(r.left+r.width),Math.round(c+r.top+o)),new Bc(Math.round(r.left),Math.round(c+r.top+o))];case 3:return[new Bc(Math.round(r.left+a),Math.round(r.top)),new Bc(Math.round(r.left+a+s),Math.round(r.top)),new Bc(Math.round(r.left+a+s),Math.round(r.height+r.top)),new Bc(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new Bc(Math.round(r.left+a),Math.round(r.top+o)),new Bc(Math.round(r.left+a+s),Math.round(r.top+o)),new Bc(Math.round(r.left+a+s),Math.round(r.top+o+c)),new Bc(Math.round(r.left+a),Math.round(r.top+o+c))];default:return[new Bc(Math.round(i.left),Math.round(i.top)),new Bc(Math.round(i.left+i.width),Math.round(i.top)),new Bc(Math.round(i.left+i.width),Math.round(i.height+i.top)),new Bc(Math.round(i.left),Math.round(i.height+i.top))]}},hl="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",fl="Hidden Text",dl=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",a.appendChild(n),r.src=hl,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(fl)),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(fl)),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return a.removeChild(n),{baseline:o,middle:s}},t.prototype.getMetrics=function(t,e){var n=t+" "+e;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},t}(),Al=function(){function t(t,e){this.context=t,this.options=e}return t}(),gl=1e4,pl=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new dl(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return e(n,t),n.prototype.applyEffects=function(t){for(var e=this;this._activeEffects.length;)this.popEffect();t.forEach((function(t){return e.applyEffect(t)}))},n.prototype.applyEffect=function(t){this.ctx.save(),$c(t)&&(this.ctx.globalAlpha=t.opacity),Qc(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Uc(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return t.element.container.styles.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},n.prototype.renderNode=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return la(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},n.prototype.renderTextWithLetterSpacing=function(t,e,n){var r=this;0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n):Fo(t.text).reduce((function(e,i){return r.ctx.fillText(i,e,t.bounds.top+n),e+r.ctx.measureText(i).width}),t.bounds.left)},n.prototype.createFontStyle=function(t){var e=t.fontVariant.filter((function(t){return"normal"===t||"small-caps"===t})).join(""),n=wl(t.fontFamily).join(", "),r=In(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(t,e){return r(this,void 0,void 0,(function(){var n,r,a,o,s,c,l,u,h=this;return i(this,(function(i){return n=this.createFontStyle(e),r=n[0],a=n[1],o=n[2],this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(a,o),c=s.baseline,l=s.middle,u=e.paintOrder,t.textBounds.forEach((function(t){u.forEach((function(n){switch(n){case 0:h.ctx.fillStyle=ir(e.color),h.renderTextWithLetterSpacing(t,e.letterSpacing,c);var r=e.textShadow;r.length&&t.text.trim().length&&(r.slice(0).reverse().forEach((function(n){h.ctx.shadowColor=ir(n.color),h.ctx.shadowOffsetX=n.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=n.offsetY.number*h.options.scale,h.ctx.shadowBlur=n.blur.number,h.renderTextWithLetterSpacing(t,e.letterSpacing,c)})),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),e.textDecorationLine.length&&(h.ctx.fillStyle=ir(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:h.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+c),t.bounds.width,1);break;case 2:h.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:h.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+l),t.bounds.width,1)}})));break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(h.ctx.strokeStyle=ir(e.webkitTextStrokeColor),h.ctx.lineWidth=e.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+c)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter"}}))})),[2]}))}))},n.prototype.renderReplacedElement=function(t,e,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var r=nl(t),i=Fc(e);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,(function(){var e,r,a,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(t.getEffects(4)),e=t.container,r=t.curves,a=e.styles,s=0,c=e.textNodes,i.label=1;case 1:return s<c.length?(l=c[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:i.sent(),i.label=3;case 3:return s++,[3,1];case 4:if(!(e instanceof Ko))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return b=i.sent(),this.renderReplacedElement(e,r,b),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof zo&&this.renderReplacedElement(e,r,e.canvas),!(e instanceof Go))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return b=i.sent(),this.renderReplacedElement(e,r,b),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof os&&e.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:u=i.sent(),e.width&&e.height&&this.ctx.drawImage(u,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),i.label=14;case 14:if(e instanceof rs&&(h=Math.min(e.bounds.width,e.bounds.height),e.type===Zo?e.checked&&(this.ctx.save(),this.path([new Bc(e.bounds.left+.39363*h,e.bounds.top+.79*h),new Bc(e.bounds.left+.16*h,e.bounds.top+.5549*h),new Bc(e.bounds.left+.27347*h,e.bounds.top+.44071*h),new Bc(e.bounds.left+.39694*h,e.bounds.top+.5649*h),new Bc(e.bounds.left+.72983*h,e.bounds.top+.23*h),new Bc(e.bounds.left+.84*h,e.bounds.top+.34085*h),new Bc(e.bounds.left+.39363*h,e.bounds.top+.79*h)]),this.ctx.fillStyle=ir(ns),this.ctx.fill(),this.ctx.restore()):e.type===ts&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+h/2,e.bounds.top+h/2,h/4,0,2*Math.PI,!0),this.ctx.fillStyle=ir(ns),this.ctx.fill(),this.ctx.restore())),ml(e)&&e.value.length){switch(f=this.createFontStyle(a),y=f[0],d=f[1],A=this.fontMetrics.getMetrics(y,d).baseline,this.ctx.font=y,this.ctx.fillStyle=ir(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=vl(e.styles.textAlign),w=nl(e),g=0,e.styles.textAlign){case 1:g+=w.width/2;break;case 2:g+=w.width}p=w.add(g,0,0,-w.height/2+1),this.ctx.save(),this.path([new Bc(w.left,w.top),new Bc(w.left+w.width,w.top),new Bc(w.left+w.width,w.top+w.height),new Bc(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Io(e.value,p),a.letterSpacing,A),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!la(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(0!==(m=e.styles.listStyleImage).type)return[3,18];b=void 0,v=m.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return b=i.sent(),this.ctx.drawImage(b,e.bounds.left-(b.width+10),e.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:t.listValue&&-1!==e.styles.listStyleType&&(y=this.createFontStyle(a)[0],this.ctx.font=y,this.ctx.fillStyle=ir(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new o(e.bounds.left,e.bounds.top+Xn(e.styles.paddingTop,e.bounds.width),e.bounds.width,xi(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Io(t.listValue,w),a.letterSpacing,xi(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}}))}))},n.prototype.renderStackContent=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o,s,c,l,u,h,f,d,A,g,p;return i(this,(function(i){switch(i.label){case 0:return la(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:i.sent(),e=0,n=t.negativeZIndex,i.label=2;case 2:return e<n.length?(p=n[e],[4,this.renderStack(p)]):[3,5];case 3:i.sent(),i.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:i.sent(),r=0,a=t.nonInlineLevel,i.label=7;case 7:return r<a.length?(p=a[r],[4,this.renderNode(p)]):[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:o=0,s=t.nonPositionedFloats,i.label=11;case 11:return o<s.length?(p=s[o],[4,this.renderStack(p)]):[3,14];case 12:i.sent(),i.label=13;case 13:return o++,[3,11];case 14:c=0,l=t.nonPositionedInlineLevel,i.label=15;case 15:return c<l.length?(p=l[c],[4,this.renderStack(p)]):[3,18];case 16:i.sent(),i.label=17;case 17:return c++,[3,15];case 18:u=0,h=t.inlineLevel,i.label=19;case 19:return u<h.length?(p=h[u],[4,this.renderNode(p)]):[3,22];case 20:i.sent(),i.label=21;case 21:return u++,[3,19];case 22:f=0,d=t.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return f<d.length?(p=d[f],[4,this.renderStack(p)]):[3,26];case 24:i.sent(),i.label=25;case 25:return f++,[3,23];case 26:A=0,g=t.positiveZIndex,i.label=27;case 27:return A<g.length?(p=g[A],[4,this.renderStack(p)]):[3,30];case 28:i.sent(),i.label=29;case 29:return A++,[3,27];case 30:return[2]}}))}))},n.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},n.prototype.formatPath=function(t){var e=this;t.forEach((function(t,n){var r=Lc(t)?t.start:t;0===n?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),Lc(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}))},n.prototype.renderRepeat=function(t,e,n,r){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(t,e,n){var r;if(t.width===e&&t.height===n)return t;var i=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return i.width=Math.max(1,e),i.height=Math.max(1,n),i.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,n),i},n.prototype.renderBackgroundImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o,s;return i(this,(function(c){switch(c.label){case 0:e=t.styles.backgroundImage.length-1,n=function(n){var a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S,L,I,M,O,D,F;return i(this,(function(i){switch(i.label){case 0:if(0!==n.type)return[3,5];a=void 0,o=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return a=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return a&&(s=al(t,e,[a.width,a.height,a.width/a.height]),y=s[0],T=s[1],B=s[2],C=s[3],x=s[4],b=r.ctx.createPattern(r.resizeImage(a,C,x),"repeat"),r.renderRepeat(y,b,T,B)),[3,6];case 5:Fr(n)?(c=al(t,e,[null,null,null]),y=c[0],T=c[1],B=c[2],C=c[3],x=c[4],l=br(n.angle,C,x),u=l[0],h=l[1],f=l[2],d=l[3],A=l[4],(g=document.createElement("canvas")).width=C,g.height=x,p=g.getContext("2d"),m=p.createLinearGradient(h,d,f,A),pr(n.stops,u).forEach((function(t){return m.addColorStop(t.stop,ir(t.color))})),p.fillStyle=m,p.fillRect(0,0,C,x),C>0&&x>0&&(b=r.ctx.createPattern(g,"repeat"),r.renderRepeat(y,b,T,B))):Nr(n)&&(v=al(t,e,[null,null,null]),y=v[0],w=v[1],k=v[2],C=v[3],x=v[4],E=0===n.position.length?[Kn]:n.position,T=Xn(E[0],C),B=Xn(E[E.length-1],x),_=wr(n,T,B,C,x),S=_[0],L=_[1],S>0&&L>0&&(I=r.ctx.createRadialGradient(w+T,k+B,0,w+T,k+B,S),pr(n.stops,2*S).forEach((function(t){return I.addColorStop(t.stop,ir(t.color))})),r.path(y),r.ctx.fillStyle=I,S!==L?(M=t.bounds.left+.5*t.bounds.width,O=t.bounds.top+.5*t.bounds.height,F=1/(D=L/S),r.ctx.save(),r.ctx.translate(M,O),r.ctx.transform(1,0,0,D,0,0),r.ctx.translate(-M,-O),r.ctx.fillRect(w,F*(k-O)+O,C,x*F),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return e--,[2]}}))},r=this,a=0,o=t.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return a<o.length?(s=o[a],[5,n(s)]):[3,4];case 2:c.sent(),c.label=3;case 3:return a++,[3,1];case 4:return[2]}}))}))},n.prototype.renderSolidBorder=function(t,e,n){return r(this,void 0,void 0,(function(){return i(this,(function(r){return this.path(Wc(n,e)),this.ctx.fillStyle=ir(t),this.ctx.fill(),[2]}))}))},n.prototype.renderDoubleBorder=function(t,e,n,a){return r(this,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return e<3?[4,this.renderSolidBorder(t,n,a)]:[3,2];case 1:return i.sent(),[2];case 2:return r=qc(a,n),this.path(r),this.ctx.fillStyle=ir(t),this.ctx.fill(),o=Yc(a,n),this.path(o),this.ctx.fill(),[2]}}))}))},n.prototype.renderNodeBackgroundAndBorders=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o,s,c,l,u=this;return i(this,(function(i){switch(i.label){case 0:return this.applyEffects(t.getEffects(2)),e=t.container.styles,n=!rr(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],a=bl(ll(e.backgroundClip,0),t.curves),n||e.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),rr(e.backgroundColor)||(this.ctx.fillStyle=ir(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){u.ctx.save();var n=Oc(t.curves),r=e.inset?0:gl,i=jc(n,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(u.path(n),u.ctx.clip(),u.mask(i)):(u.mask(n),u.ctx.clip(),u.path(i)),u.ctx.shadowOffsetX=e.offsetX.number+r,u.ctx.shadowOffsetY=e.offsetY.number,u.ctx.shadowColor=ir(e.color),u.ctx.shadowBlur=e.blur.number,u.ctx.fillStyle=e.inset?ir(e.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()})),i.label=2;case 2:o=0,s=0,c=r,i.label=3;case 3:return s<c.length?0!==(l=c[s]).style&&!rr(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,2)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,t.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,t.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(t,e,n,a,o){return r(this,void 0,void 0,(function(){var r,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;return i(this,(function(i){return this.ctx.save(),r=Jc(a,n),s=Wc(a,n),2===o&&(this.path(s),this.ctx.clip()),Lc(s[0])?(c=s[0].start.x,l=s[0].start.y):(c=s[0].x,l=s[0].y),Lc(s[1])?(u=s[1].end.x,h=s[1].end.y):(u=s[1].x,h=s[1].y),f=0===n||2===n?Math.abs(c-u):Math.abs(l-h),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(s.slice(0,2)),d=e<3?3*e:2*e,A=e<3?2*e:e,3===o&&(d=e,A=e),g=!0,f<=2*d?g=!1:f<=2*d+A?(d*=p=f/(2*d+A),A*=p):(m=Math.floor((f+A)/(d+A)),b=(f-m*d)/(m-1),A=(v=(f-(m+1)*d)/m)<=0||Math.abs(A-b)<Math.abs(A-v)?b:v),g&&(3===o?this.ctx.setLineDash([0,d+A]):this.ctx.setLineDash([d,A])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=ir(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(Lc(s[0])&&(y=s[3],w=s[0],this.ctx.beginPath(),this.formatPath([new Bc(y.end.x,y.end.y),new Bc(w.start.x,w.start.y)]),this.ctx.stroke()),Lc(s[1])&&(y=s[1],w=s[2],this.ctx.beginPath(),this.formatPath([new Bc(y.end.x,y.end.y),new Bc(w.start.x,w.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},n.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ir(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=Vc(t),[4,this.renderStack(e)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},n}(Al),ml=function(t){return t instanceof as||t instanceof is||t instanceof rs&&t.type!==ts&&t.type!==Zo},bl=function(t,e){switch(t){case 0:return Oc(e);case 2:return Dc(e);default:return Fc(e)}},vl=function(t){switch(t){case 1:return"center";case 2:return"right";default:return"left"}},yl=["-apple-system","system-ui"],wl=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter((function(t){return-1===yl.indexOf(t)})):t},kl=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return e(n,t),n.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return e=_o(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Cl(e)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ir(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},n}(Al),Cl=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},xl=function(){function t(t){var e=t.id,n=t.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,a([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,a([this.id,this.getTime()+"ms"],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,a([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,a([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.instances={},t}(),El=function(){function t(e,n){var r;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new xl({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new bc(this,e)}return t.instanceCount=1,t}(),Tl=function(t,e){return void 0===e&&(e={}),Bl(t,e)};"undefined"!=typeof window&&mc.setContext(window);var Bl=function(t,e){return r(void 0,void 0,void 0,(function(){var r,a,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S,L,I,M,O,D,F,N,P,R,Q,U,$,H,j,K;return i(this,(function(i){switch(i.label){case 0:if(!t||"object"!=typeof t)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=t.ownerDocument))throw new Error("Element is not attached to a Document");if(!(a=r.defaultView))throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(_=e.allowTaint)&&void 0!==_&&_,imageTimeout:null!==(S=e.imageTimeout)&&void 0!==S?S:15e3,proxy:e.proxy,useCORS:null!==(L=e.useCORS)&&void 0!==L&&L},u=n({logging:null===(I=e.logging)||void 0===I||I,cache:e.cache},l),h={windowWidth:null!==(M=e.windowWidth)&&void 0!==M?M:a.innerWidth,windowHeight:null!==(O=e.windowHeight)&&void 0!==O?O:a.innerHeight,scrollX:null!==(D=e.scrollX)&&void 0!==D?D:a.pageXOffset,scrollY:null!==(F=e.scrollY)&&void 0!==F?F:a.pageYOffset},f=new o(h.scrollX,h.scrollY,h.windowWidth,h.windowHeight),d=new El(u,f),A=null!==(N=e.foreignObjectRendering)&&void 0!==N&&N,g={allowTaint:null!==(P=e.allowTaint)&&void 0!==P&&P,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:A,copyStyles:A},d.logger.debug("Starting document clone with size "+f.width+"x"+f.height+" scrolled to "+-f.left+","+-f.top),p=new Zs(d,t,g),(m=p.clonedReferenceElement)?[4,p.toIFrame(r,f)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return b=i.sent(),v=ks(m)||ys(m)?c(m.ownerDocument):s(d,m),y=v.width,w=v.height,k=v.left,C=v.top,x=_l(d,m,e.backgroundColor),E={canvas:e.canvas,backgroundColor:x,scale:null!==(Q=null!==(R=e.scale)&&void 0!==R?R:a.devicePixelRatio)&&void 0!==Q?Q:1,x:(null!==(U=e.x)&&void 0!==U?U:0)+k,y:(null!==($=e.y)&&void 0!==$?$:0)+C,width:null!==(H=e.width)&&void 0!==H?H:Math.ceil(y),height:null!==(j=e.height)&&void 0!==j?j:Math.ceil(w)},A?(d.logger.debug("Document cloned, using foreign object rendering"),[4,new kl(d,E).render(m)]):[3,3];case 2:return T=i.sent(),[3,5];case 3:return d.logger.debug("Document cloned, element located at "+k+","+C+" with size "+y+"x"+w+" using computed rendering"),d.logger.debug("Starting DOM parsing"),B=us(d,m),x===B.styles.backgroundColor&&(B.styles.backgroundColor=fr.TRANSPARENT),d.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),[4,new pl(d,E).render(B)];case 4:T=i.sent(),i.label=5;case 5:return(null===(K=e.removeContainer)||void 0===K||K)&&(Zs.destroy(b)||d.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),d.logger.debug("Finished rendering"),[2,T]}}))}))},_l=function(t,e,n){var r=e.ownerDocument,i=r.documentElement?hr(t,getComputedStyle(r.documentElement).backgroundColor):fr.TRANSPARENT,a=r.body?hr(t,getComputedStyle(r.body).backgroundColor):fr.TRANSPARENT,o="string"==typeof n?hr(t,n):null===n?fr.TRANSPARENT:4294967295;return e===r.documentElement?rr(i)?rr(a)?o:a:i:o};return Tl}()})),Tx=function(t,e){var n=t.cloneNode(!0);n.className=n.className.replace("cherry-previewer--hidden",""),n.style.width="100%";var r=n.querySelectorAll("mjx-assistive-mml");Qs(r).call(r,(function(t){t instanceof HTMLElement&&t.style.setProperty("visibility","hidden")}));var i=document.createElement("div");i.appendChild(n);var a=function(){var t,e=[];return Qs(t=Nh(document.body.children)).call(t,(function(t,n){e[n]=t.style.display,t.style.display="none"})),e}();document.body.appendChild(i);var o=document.body.style.overflow;document.body.style.overflow="visible",e(n,(function(){i.remove(),function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Qs(t=Nh(document.body.children)).call(t,(function(t,n){void 0!==e[n]&&(t.style.display=e[n])}))}(a),document.body.style.overflow=o}))};function Bx(t,e){Tx(t,(function(t,n){window.scrollTo(0,0),Ex(t,{allowTaint:!0,height:t.clientHeight,width:t.clientWidth,scrollY:0,scrollX:0}).then((function(t){!function(t,e){var n=document.createElement("a");n.style.display="none",n.href=t,n.download="".concat(e,".png"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}(t.toDataURL("image/jpeg"),e),n()}))}))}var _x=Kt.f,Sx=w(_x),Lx=w([].push),Ix=$t&&u((function(){var t=Object.create(null);return t[2]=2,!Sx(t,2)})),Mx=function(t){return function(e){for(var n,r=Gt(e),i=bn(r),a=Ix&&null===Ea(r),o=i.length,s=0,c=[];o>s;)n=i[s++],$t&&!(a?n in r:Sx(r,n))||Lx(c,t?[n,r[n]]:r[n]);return c}},Ox={entries:Mx(!0),values:Mx(!1)},Dx=Ox.values;Dn({target:"Object",stat:!0},{values:function(t){return Dx(t)}});var Fx=H.Object.values,Nx=Ox.entries;Dn({target:"Object",stat:!0},{entries:function(t){return Nx(t)}});var Px=H.Object.entries,Rx={mouseResize:{},getImgPosition:function(){var t=this.img.getBoundingClientRect(),e=this.previewerDom.parentNode.getBoundingClientRect(),n=Wf(this.img.style.padding)||0;return{bottom:t.bottom-e.bottom,top:t.top-e.top+1.5*n,height:t.height,width:t.width,right:t.right-e.right,left:t.left-e.left+1.5*n,x:t.x-e.x,y:t.y-e.y}},initBubbleButtons:function(){var t=this.getImgPosition();return{points:{arr:["leftTop","leftBottom","rightTop","rightBottom","leftMiddle","middleBottom","middleTop","rightMiddle"],arrInfo:{leftTop:{name:"20",left:0,top:0},leftBottom:{name:"00",left:0,top:0},rightTop:{name:"22",left:0,top:0},rightBottom:{name:"02",left:0,top:0},leftMiddle:{name:"10",left:0,top:0},middleBottom:{name:"01",left:0,top:0},middleTop:{name:"21",left:0,top:0},rightMiddle:{name:"12",left:0,top:0}}},imgSrc:this.img.src,style:{width:this.img.width,height:this.img.height,left:t.left-1,top:t.top-1,marginTop:0,marginLeft:0},scrollTop:this.previewerDom.scrollTop,position:t}},showBubble:function(t,e,n){this.$isResizing()||(this.img=t,this.previewerDom=n,this.container=e,this.buts=this.initBubbleButtons(),this.drawBubbleButs())},emit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t){case"mousedown":return this.resizeBegin(e);case"mouseup":return this.resizeStop(e);case"mousemove":return this.resizeWorking(e);case"scroll":return this.dealScroll(e);case"remove":return this.remove();case"previewUpdate":return this.previewUpdate(e)}},previewUpdate:function(t){this.$isResizing()||(this.remove(),t())},drawBubbleButs:function(){var t,e=this;return this.butsLayout||(this.butsLayout=this.container,this.butsImg=document.createElement("div"),this.butsImg.className="cherry-previewer-img-size-handler__background",this.butsImg.style.backgroundImage="url(".concat(this.buts.imgSrc,")"),this.butsLayout.appendChild(this.butsImg),this.butsPoints={},Qs(t=Is(this.buts.points.arr)).call(t,(function(t){var n=e.buts.points.arr[t],r=document.createElement("div");r.className=["cherry-previewer-img-size-handler__points","cherry-previewer-img-size-handler__points-".concat(n)].join(" "),r.dataset.name=n,e.butsLayout.appendChild(r),e.butsPoints["pints-".concat(n)]=r}))),this.updateBubbleButs()},remove:function(){this.butsLayout=!1},updateBubbleButs:function(){var t,e,n=this;this.$updatePointsInfo(),Qs(t=Is(this.buts.style)).call(t,(function(t){n.butsLayout.style[t]="".concat(n.buts.style[t],"px")})),Qs(e=Is(this.buts.points.arr)).call(e,(function(t){var e=n.buts.points.arr[t];n.butsPoints["pints-".concat(e)].style.top="".concat(n.buts.points.arrInfo[e].top,"px"),n.butsPoints["pints-".concat(e)].style.left="".concat(n.buts.points.arrInfo[e].left,"px")}))},$updatePointsInfo:function(){var t,e=this,n=this.buts.style.width,r=this.buts.style.height,i=this.$getPointsInfo(n,r);Qs(t=Is(this.buts.points.arr)).call(t,(function(t){var n=e.buts.points.arr[t];e.buts.points.arrInfo[n].left!==i[n].left&&(e.buts.points.arrInfo[n].left=i[n].left),e.buts.points.arrInfo[n].top!==i[n].top&&(e.buts.points.arrInfo[n].top=i[n].top)}))},$getPointsInfo:function(t,e){return{leftTop:{left:0,top:0},leftBottom:{left:0,top:e},rightTop:{left:t,top:0},rightBottom:{left:t,top:e},leftMiddle:{left:0,top:e/2},middleBottom:{left:t/2,top:e},middleTop:{left:t/2,top:0},rightMiddle:{left:t,top:e/2}}},$isResizing:function(){return this.mouseResize.resize},dealScroll:function(t){var e=this.getImgPosition();this.butsLayout.style.marginTop!==e.top-this.buts.position.top&&(this.butsLayout.style.marginTop="".concat(e.top-this.buts.position.top,"px"),this.buts.style.marginTop="".concat(e.top-this.buts.position.top,"px")),this.butsLayout.style.marginLeft!==e.left-this.buts.position.left&&(this.butsLayout.style.marginLeft="".concat(e.left-this.buts.position.left,"px"),this.buts.style.marginLeft="".concat(e.left-this.buts.position.left,"px"))},initMouse:function(){return{left:0,top:0,resize:!1,name:""}},resizeBegin:function(t){var e=t.target;if(!e.classList.contains("cherry-previewer-img-size-handler__points"))return!1;this.mouseResize.left=t.clientX,this.mouseResize.top=t.clientY,this.mouseResize.resize=!0,this.mouseResize.name=e.getAttribute("data-name"),this.previewerDom.classList.add("doing-resize-img")},resizeStop:function(t,e,n,r){if(!this.$isResizing())return!1;this.img.style.width="".concat(this.buts.style.width,"px"),this.img.style.height="".concat(this.buts.style.height,"px"),this.buts.style.marginTop=0,this.buts.style.marginLeft=0,this.updateBubbleButs(),this.mouseResize.resize=!1,this.previewerDom.classList.remove("doing-resize-img"),this.change()},resizeWorking:function(t,e){if(this.$isResizing()){var n=t.clientX-this.mouseResize.left,r=t.clientY-this.mouseResize.top,i={};switch(this.mouseResize.name){case"leftTop":case"leftBottom":case"leftMiddle":i=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width-i.changeX,"leftMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height-i.changeY);break;case"rightTop":case"rightBottom":case"rightMiddle":i=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width+i.changeX,"rightMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height+i.changeY);break;case"middleTop":i=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height-i.changeY;break;case"middleBottom":i=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height+i.changeY}this.updateBubbleButs(),this.change()}},change:function(){this.emitChange(this.img,{width:this.buts.style.width,height:this.buts.style.height})},bindChange:function(t){this.emitChange=t},$getChange:function(t,e,n){var r={changeX:0,changeY:0};if("y"===n)r.changeY=e,r.changeX=e*this.buts.position.width/this.buts.position.height;else r.changeX=t,r.changeY=t*this.buts.position.height/this.buts.position.width;return r}},Qx=Rx,Ux=Mr.every,$x=Ms("every");Dn({target:"Array",proto:!0,forced:!$x},{every:function(t){return Ux(this,t,arguments.length>1?arguments[1]:void 0)}});var Hx=Ni("Array","every"),jx=Array.prototype,Kx=function(t){var e=t.every;return t===jx||rt(jx,t)&&e===jx.every?Hx:e},zx=function(t,e,n,r,i,a,o,s){for(var c,l,u=i,h=0,f=!!o&&ke(o,s);h<r;)h in n&&(c=f?f(n[h],h,e):n[h],a>0&&pr(c)?(l=un(c),u=zx(t,e,c,l,u,a-1)-1):(sa(u+1),t[u]=c),u++),h++;return u},Gx=zx;Dn({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=yt(this),n=un(e),r=yr(e,0);return r.length=Gx(r,e,e,n,0,void 0===t?1:rn(t)),r}}),Wa();var Xx=Ni("Array","flat"),Vx=Array.prototype,Wx=function(t){var e=t.flat;return t===Vx||rt(Vx,t)&&e===Vx.flat?Xx:e},qx=function(){return Ho((function t(e,n,r,i,a,o,s){ra(this,t),cs(this,"tableEditor",{info:{},tableCodes:[],editorDom:{}}),this.trigger=e,this.target=n,this.previewerDom=i,this.container=r,this.codeMirror=a,this.$initReg(),this.$findTableInEditor(),this.tableElement=o,this.$cherry=s}),[{key:"emit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(t){case"keyup":return"click"===this.trigger&&this.$onInputChange(e);case"remove":return this.$remove();case"scroll":case"previewUpdate":return this.$refreshPosition();case"mousedown":return;case"mouseup":return"click"===this.trigger&&this.$tryRemoveMe(e,n)}}},{key:"$tryRemoveMe",value:function(t,e){/textarea/i.test(t.target.tagName)||(this.$remove(),e())}},{key:"$getPosition",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tableEditor.info.tdNode).getBoundingClientRect(),e=this.previewerDom.parentNode.getBoundingClientRect();return{top:t.top-e.top,height:t.height,width:t.width,left:t.left-e.left,maxHeight:e.height}}},{key:"setStyle",value:function(t,e,n){t.getBoundingClientRect()[e]!==n&&(t.style[e]=n)}},{key:"$setInputOffset",value:function(){var t=this.$getPosition(),e=this.tableEditor.editorDom.inputDiv;this.setStyle(e,"width","".concat(t.width,"px")),this.setStyle(e,"height","".concat(t.height,"px")),this.setStyle(e,"top","".concat(t.top,"px")),this.setStyle(e,"left","".concat(t.left,"px"));var n=t.top>=0&&t.top+t.height<=t.maxHeight;this.setStyle(e,"display",n?"":"none")}},{key:"$setSymbolOffset",value:function(){var t,e=this,n=this.tableEditor.editorDom.symbolContainer,r=this.tableEditor.info,i=r.tableNode,a=r.trNode,o=r.isTHead,s=this.$getPosition(i),c=this.$getPosition(a),l=this.$getPosition(),u=this.previewerDom.getBoundingClientRect();this.setStyle(this.container,"width","".concat(s.width,"px")),this.setStyle(this.container,"height","".concat(s.height,"px")),this.setStyle(this.container,"top","".concat(s.top,"px")),this.setStyle(this.container,"left","".concat(s.left,"px"));Qs(t=n.childNodes).call(t,(function(t){var n,r=t.dataset,i=r.index,a=r.type,h=r.dir,f=20,d=7;e.setStyle(t,{Row:["left","right"],Col:["top","bottom"]}[h][i],"-".concat(f,"px")),e.setStyle(t,"display","");var A={LastRow:function(){return e.setStyle(t,"top","".concat(c.top-s.top-d,"px"))},NextRow:function(){return e.setStyle(t,"top","".concat(c.top-s.top+c.height-d,"px"))},LastCol:function(){return e.setStyle(t,"left","".concat(l.left-s.left-d,"px"))},NextCol:function(){return e.setStyle(t,"left","".concat(l.left-s.left+l.width-d,"px"))}},g=hs(n="".concat(a)).call(n,h);A[g](),e.setStyle(t,"display",function(t){var e,n=t.getBoundingClientRect(),r={top:[u.top,u.top+u.height-n.height],left:[u.left,u.left+u.width-n.width]};return Kx(e=Px(r)).call(e,(function(t){var e=xf(t,2),r=e[0],i=xf(e[1],2),a=i[0],o=i[1];return n[r]>=a&&n[r]<=o}))}(t)?"":"none"),o&&"LastRow"===g&&e.setStyle(t,"display","none")}))}},{key:"$refreshPosition",value:function(){"click"!==this.trigger?(this.$setSymbolOffset(),this.$setDeleteButtonPosition()):this.$setInputOffset()}},{key:"$remove",value:function(){this.tableEditor={info:{},tableCodes:[],editorDom:{}}}},{key:"$collectTableCode",value:function(){var t=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(t){return t.replace(/\|/g,".")})).replace(this.tableReg,(function(e){var n,r=e.replace(/^\n*/,""),i=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+e.match(/^\n*/)[0].length;t.push({code:r,offset:i})})),this.tableEditor.tableCodes=t}},{key:"$collectTableDom",value:function(){var t,e,n,r=Nh(this.previewerDom.querySelectorAll("table.cherry-table")),i=this.$getClosestNode(this.target,"TABLE");if(!1===i)return!1;var a=Qi(t=Nh(this.target.parentElement.childNodes)).call(t,(function(t){return"td"===t.tagName.toLowerCase()})).length;this.tableEditor.info={tableNode:i,tdNode:this.target,trNode:this.target.parentElement,tdIndex:Ef(e=Nh(this.target.parentElement.childNodes)).call(e,this.target),trIndex:Ef(n=Nh(this.target.parentElement.parentElement.childNodes)).call(n,this.target.parentElement),isTHead:"TBODY"!==this.target.parentElement.parentElement.tagName,totalTables:r.length,tableIndex:Ef(r).call(r,i),tableText:i.textContent.replace(/[\s]/g,""),columns:a}}},{key:"$setSelection",value:function(t){var e,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table",a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.tableEditor.tableCodes[t],s=this.codeMirror.getValue(),c=this.tableEditor.info,l=null!==(e=null===(n=Bf(s).call(s,0,o.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==e?e:0,u=this.$getTdOffset(o.code,c.isTHead,c.trIndex,c.tdIndex),h=u.preLine,f=u.preCh,d=u.plusCh,A=u.currentTd;if("table"===i){var g=l+o.code.match(/\n/g).length,p=o.code.match(/[^\n]+\n*$/)[0].length;this.tableEditor.info.selection=[{line:l,ch:0},{line:g,ch:p}]}else this.tableEditor.info.selection=[{line:l+h,ch:f},{line:l+h,ch:f+d}];a&&(r=this.codeMirror).setSelection.apply(r,kp(this.tableEditor.info.selection)),this.tableEditor.info.code=A}},{key:"$getTdOffset",value:function(t,e,n,r){for(var i=e?0:n+2,a=t.split(/\n/)[i].split(/\|/),o=/^\s*$/.test(a[0]),s=o?r+1:r,c=a[s],l=[],u=0;u<s;u++)l.push(a[u]);return{preLine:i,preCh:o?l.join("|").length+1:l.join("|").length,plusCh:c.length,currentTd:c}}},{key:"$findTableInEditor",value:function(){if(this.$collectTableDom(),this.$collectTableCode(),this.tableEditor.info.totalTables!==this.tableEditor.tableCodes.length)return!1;this.$setSelection(this.tableEditor.info.tableIndex,"td","click"===this.trigger)}},{key:"$initReg",value:function(){this.tableReg=this.tableReg?this.tableReg:Ld(!0),this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:Id().reg}},{key:"showBubble",value:function(){"click"!==this.trigger?(this.$drawSymbol(),this.$drawSortSymbol(),this.$drawDelete()):this.$drawEditor()}},{key:"$isEditing",value:function(){return this.tableEditor.editing}},{key:"$drawEditor",value:function(){var t=document.createElement("div");t.className="cherry-previewer-table-content-handler__input";var e=document.createElement("textarea");t.appendChild(e),this.tableEditor.editorDom.inputDiv=t,this.tableEditor.editorDom.inputDom=e,this.$updateEditorPosition(),this.container.appendChild(this.tableEditor.editorDom.inputDiv),this.tableEditor.editorDom.inputDom.value=this.tableEditor.info.code.replace(/<br>/g,"\n"),this.tableEditor.editorDom.inputDom.focus()}},{key:"$onInputChange",value:function(t){"TEXTAREA"===t.target.tagName&&this.codeMirror.replaceSelection(t.target.value.replace(/\n/g,"<br>"),"around")}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var t=getComputedStyle(this.tableEditor.info.tdNode);this.tableEditor.editorDom.inputDom.style.textAlign=t.textAlign||"left",this.tableEditor.editorDom.inputDom.style.fontSize=t.fontSize||"16px",this.tableEditor.editorDom.inputDom.style.fontFamily=t.fontFamily,this.tableEditor.editorDom.inputDom.style.lineHeight=t.lineHeight,this.tableEditor.editorDom.inputDom.style.padding=t.padding,/left/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),/right/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px"),/center/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px",this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),this.tableEditor.editorDom.inputDom.style.paddingBottom="0px"}},{key:"$getClosestNode",value:function(t,e){return t.tagName===e?t:"BODY"!==t.parentNode.tagName&&this.$getClosestNode(t.parentNode,e)}},{key:"$drawSymbol",value:function(){var t,e=this,n=["Last","Next"],r=["Row","Col"],i={Row:"Row",Col:"Col"},a=Wx(t=lA(r).call(r,(function(t,e){return lA(n).call(n,(function(t){return lA(r).call(r,(function(n){return["".concat(e),t,n]}))}))}))).call(t,2),o=document.createElement("ul");o.className="cherry-previewer-table-hover-handler-container",Qs(a).call(a,(function(t){var n=xf(t,3),r=n[0],a=n[1],s=n[2],c=document.createElement("li");c.setAttribute("data-index",r),c.setAttribute("data-type",a),c.setAttribute("data-dir",s),c.className="cherry-previewer-table-hover-handler__symbol",c.title=e.$cherry.locale["add".concat(i[s])],c.innerHTML="+",c.addEventListener("click",(function(t){var n,r=t.target;if(r instanceof HTMLElement){var i=r.dataset,a=i.type,o=i.dir;e[hs(n="$add".concat(a)).call(n,o)]()}})),o.appendChild(c)}),!0),this.tableEditor.editorDom.symbolContainer=o,this.container.appendChild(this.tableEditor.editorDom.symbolContainer),this.$setSymbolOffset()}},{key:"$drawSortSymbol",value:function(){var t=this,e=["RowLeft","RowRight","ColUp"],n=document.createElement("ul");n.className="cherry-previewer-table-hover-handler-sort-container",Qs(e).call(e,(function(e){var r=document.createElement("li");if(r.setAttribute("data-type",e),r.className="cherry-previewer-table-hover-handler__sort ch-icon",r.draggable=!0,Vh(e).call(e,"Row"))r.title=t.$cherry.locale.moveRow,r.classList.add("ch-icon-swap-vert"),r.addEventListener("mouseover",(function(){var e=t.tableEditor.info.tdNode;e.draggable=!0,e.parentNode.style.backgroundColor="rgb(206,226,248)"})),r.addEventListener("mouseleave",(function(){var e=t.tableEditor.info.tdNode;e.draggable=!1,e.parentNode.style.backgroundColor=""})),r.addEventListener("mousedown",(function(e){t.$setSelection(t.tableEditor.info.tableIndex,"table"),t.$dragLine()}));else{r.title=t.$cherry.locale.moveCol,r.classList.add("ch-icon-swap");var i=[];r.addEventListener("mouseover",(function(){var e,n,r,a=t.tableEditor.info.tdNode;a.draggable=!0;var o=Ef(e=Nh(a.parentNode.children)).call(e,a);Qs(n=lA(r=Nh(a.parentNode.parentNode.parentNode.children)).call(r,(function(t){return t.children}))).call(n,(function(t){var e;Qs(e=Nh(t)).call(e,(function(t){i.push(t)}))})),Qs(i).call(i,(function(t){return t.children[o].style.backgroundColor="rgb(206,226,248)"}))})),r.addEventListener("mouseleave",(function(){var e,n=t.tableEditor.info.tdNode;n.draggable=!1;var r=Ef(e=Nh(n.parentNode.children)).call(e,n);Qs(i).call(i,(function(t){return t.children[r].style.backgroundColor=""}))})),r.addEventListener("mousedown",(function(e){t.$setSelection(t.tableEditor.info.tableIndex,"table"),t.$dragCol()}))}n.appendChild(r)})),this.tableEditor.editorDom.sortContainer=n,this.container.appendChild(this.tableEditor.editorDom.sortContainer),this.$setSortSymbolsPosition()}},{key:"$setSortSymbolsPosition",value:function(){var t,e=this,n=this.tableEditor.editorDom.sortContainer,r=this.tableEditor.info,i=r.tableNode,a=r.tdNode,o=r.isTHead,s=this.$getPosition(i),c=this.$getPosition(a);this.setStyle(this.container,"width","".concat(s.width,"px")),this.setStyle(this.container,"height","".concat(s.height,"px")),this.setStyle(this.container,"top","".concat(s.top,"px")),this.setStyle(this.container,"left","".concat(s.left,"px")),Qs(t=n.childNodes).call(t,(function(t){var n=t.dataset.type;switch(n){case"RowLeft":e.setStyle(t,"top","".concat(c.top-s.top+c.height/2-t.offsetHeight/2,"px")),e.setStyle(t,"left","".concat(-t.offsetWidth/2,"px"));break;case"RowRight":e.setStyle(t,"top","".concat(c.top-s.top+c.height/2-t.offsetHeight/2,"px")),e.setStyle(t,"left","".concat(s.width-t.offsetWidth/2,"px"));break;case"ColUp":e.setStyle(t,"left","".concat(c.left-s.left+c.width/2-t.offsetWidth/2,"px")),e.setStyle(t,"top","".concat(-t.offsetHeight/2,"px"));break;case"ColDown":e.setStyle(t,"left","".concat(c.left-s.left+c.width/2-t.offsetWidth/2,"px")),e.setStyle(t,"top","".concat(s.height-t.offsetHeight/2,"px"))}o&&Vh(n).call(n,"Row")&&e.setStyle(t,"display","none")}))}},{key:"$addLastRow",value:function(){var t=xf(this.tableEditor.info.selection,1)[0].line,e="".concat(Rf("|").call("|",this.tableEditor.info.columns),"\n");this.codeMirror.replaceRange(e,{line:t,ch:0}),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"td")}},{key:"$addNextRow",value:function(){var t=xf(this.tableEditor.info.selection,2)[1].line,e="".concat(Rf("|").call("|",this.tableEditor.info.columns),"\n");this.codeMirror.replaceRange(e,{line:t+1,ch:0}),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"td")}},{key:"$addLastCol",value:function(){var t=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var e=this.codeMirror.getSelection().split("\n"),n=lA(e).call(e,(function(e,n){var r=e.split("|"),i=1===n?":-:":"";return eA(r).call(r,t.tableEditor.info.tdIndex+1,0,i),r.join("|")})),r=n.join("\n");this.codeMirror.replaceSelection(r),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}},{key:"$addNextCol",value:function(){var t=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var e=this.codeMirror.getSelection().split("\n"),n=lA(e).call(e,(function(e,n){var r=e.split("|"),i=1===n?":-:":"";return eA(r).call(r,t.tableEditor.info.tdIndex+2,0,i),r.join("|")})),r=n.join("\n");this.codeMirror.replaceSelection(r),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}},{key:"$highlightColumn",value:function(){var t=this.tableEditor.info,e=t.tableNode,n=t.tdIndex,r=e.rows;r[0].cells[n].style.borderTop="1px solid red",r[r.length-1].cells[n].style.borderBottom="1px solid red";for(var i=0;i<r.length;i++){var a=r[i].cells;a[n]&&(0===n?a[n].style.borderLeft="1px solid red":a[n-1].style.borderRight="1px solid red",a[n].style.borderRight="1px solid red")}}},{key:"$cancelHighlightColumn",value:function(){var t=this.tableEditor.info,e=t.tableNode,n=t.tdIndex;if(e)for(var r=e.rows,i=0;i<r.length;i++){var a=r[i].cells;a[n]&&(0!==n&&(a[n-1].style.border=""),a[n].style.border="")}}},{key:"$highlightRow",value:function(){this.$doHighlightRow("1px solid red")}},{key:"$cancelHighlightRow",value:function(){this.$doHighlightRow("")}},{key:"$doHighlightRow",value:function(){for(var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.tableEditor.info,r=n.trNode,i=n.tableNode,a=r.cells,o=(null===(t=r.previousElementSibling)||void 0===t?void 0:t.cells)||i.tHead.firstChild.cells,s=0;s<a.length;s++)o[s]&&(o[s].style.borderBottom=e),a[s].style.borderBottom=e;a[0].style.borderLeft=e,a[a.length-1].style.borderRight=e}},{key:"$drawDelete",value:function(){var t=this,e=["top","bottom","right"],n=lA(e).call(e,(function(t){return[t]})),r=document.createElement("div");r.className="cherry-previewer-table-hover-handler-delete-container",Qs(n).call(n,(function(e){var n=xf(e,1)[0],i=document.createElement("button");i.setAttribute("data-type",n),i.className="cherry-previewer-table-hover-handler__delete ch-icon ch-icon-cherry-table-delete",/(right|left)/.test(n)?(i.title=t.$cherry.locale.deleteRow,i.addEventListener("click",(function(){t.$deleteCurrentRow()})),i.addEventListener("mouseover",(function(){t.$highlightRow()})),i.addEventListener("mouseout",(function(){t.$cancelHighlightRow()}))):(i.title=t.$cherry.locale.deleteColumn,i.addEventListener("click",(function(){t.$deleteCurrentColumn()})),i.addEventListener("mouseover",(function(){t.$highlightColumn()})),i.addEventListener("mouseout",(function(){t.$cancelHighlightColumn()}))),r.appendChild(i)})),this.tableEditor.editorDom.deleteContainer=r,this.container.appendChild(this.tableEditor.editorDom.deleteContainer),this.$setDeleteButtonPosition()}},{key:"$setDeleteButtonPosition",value:function(){var t,e=this,n=this.tableEditor.editorDom.deleteContainer,r=this.tableEditor.info,i=r.tableNode,a=r.tdNode,o=r.isTHead,s=this.$getPosition(i),c=this.$getPosition(a);this.setStyle(this.container,"width","".concat(s.width,"px")),this.setStyle(this.container,"height","".concat(s.height,"px")),this.setStyle(this.container,"top","".concat(s.top,"px")),this.setStyle(this.container,"left","".concat(s.left,"px")),Qs(t=n.childNodes).call(t,(function(t){var n=t.dataset.type;/(right|left)/.test(n)?(o&&e.setStyle(t,"display","none"),e.setStyle(t,"top","".concat(c.top-s.top+c.height/2-t.offsetHeight/2,"px")),e.setStyle(t,"".concat(n),"-".concat(t.offsetWidth+5,"px"))):(e.setStyle(t,"".concat(n),"-".concat(20,"px")),e.setStyle(t,"left","".concat(c.left-s.left+c.width/2-t.offsetWidth/2,"px")))}))}},{key:"$deleteCurrentRow",value:function(){var t=this.tableEditor.info,e=t.tableIndex,n=t.trIndex;this.$setSelection(e,"table");var r=this.codeMirror.getSelection().split("\n");eA(r).call(r,n+2,1);var i=r.join("\n");this.codeMirror.replaceSelection(i)}},{key:"$deleteCurrentColumn",value:function(){var t=this.tableEditor.info,e=t.tableIndex,n=t.tdIndex;this.$setSelection(e,"table");var r=this.codeMirror.getSelection().split("\n"),i=lA(r).call(r,(function(t){var e;return Bf(e=t.split("|")).call(e,1,-1)}));Qs(i).call(i,(function(t){n>=0&&n<t.length&&eA(t).call(t,n,1)}));var a=lA(i).call(i,(function(t){return 0===t.length?"":"|".concat(t.join("|"),"|")})).join("\n");this.codeMirror.replaceSelection(a)}},{key:"$dragCol",value:function(){var t=this.tableEditor.info.tdIndex,e=this.target.parentElement,n=this.codeMirror.getSelection().split(/\n/),r=this.tableEditor.info.tdNode,i=this;function a(t){i.setStyle(t.target,"border","1px solid #dfe6ee")}function o(n){var r;n.preventDefault();var a=Ef(r=Nh(n.target.parentElement.childNodes)).call(r,n.target);i.$dragSymbol(n.target,t,a,"Col"),e.setAttribute("draggable",!1)}r.setAttribute("draggable",!0),e.addEventListener("dragleave",a),e.addEventListener("dragover",o),e.addEventListener("drop",(function(r){var s;r.preventDefault();var c=Ef(s=Nh(r.target.parentElement.childNodes)).call(s,r.target),l=lA(n).call(n,(function(e,n){var r,a,o=Bf(r=lA(a=e.split("|")).call(a,(function(t){return""===t?"CHERRY_MARKDOWN_PENDING_TEXT_FOR_EMPTY_CELL":t}))).call(r,1,-1);return"|".concat(i.$operateLines(t,c,o).join("|"),"|")})),u=l.join("\n").replace(/CHERRY_MARKDOWN_PENDING_TEXT_FOR_EMPTY_CELL/g,"");i.codeMirror.replaceSelection(u),i.setStyle(r.target,"border","1px solid #dfe6ee"),i.$findTableInEditor(),i.$setSelection(i.tableEditor.info.tableIndex,"table"),e.removeEventListener("dragleave",a),e.removeEventListener("dragover",o)}),{once:!0})}},{key:"$dragLine",value:function(){var t=this.tableEditor.info.trNode;t.setAttribute("draggable",!0),this.$setSelection(this.tableEditor.info.tableIndex,"table");var e=this.tableEditor.info.trIndex+2,n=t.parentElement,r=this.codeMirror.getSelection().split(/\n/),i=this;function a(t){i.setStyle(t.target.parentElement,"border","1px solid #dfe6ee")}function o(n){var r;n.preventDefault();var a=Ef(r=Nh(n.target.parentElement.parentElement.childNodes)).call(r,n.target.parentElement)+2;i.$dragSymbol(n.target,e,a,"Line"),t.setAttribute("draggable",!1)}n.addEventListener("dragleave",a),n.addEventListener("dragover",o),n.addEventListener("drop",(function(t){var s;t.preventDefault();var c=Ef(s=Nh(t.target.parentElement.parentElement.childNodes)).call(s,t.target.parentElement)+2,l=i.$operateLines(e,c,r).join("\n");i.codeMirror.replaceSelection(l),i.$findTableInEditor(),i.$setSelection(i.tableEditor.info.tableIndex,"table"),i.setStyle(t.target.parentElement,"border","1px solid #dfe6ee"),n.removeEventListener("dragleave",a),n.removeEventListener("dragover",o)}),{once:!0})}},{key:"$dragSymbol",value:function(t,e,n,r){var i=this.target;i!==t&&e!==n&&("TH"!==i.tagName&&"TD"!==i.tagName||"Col"!==r?"TD"===i.tagName&&"Line"===r&&(e<n?(this.setStyle(t.parentElement,"border","1px solid #dfe6ee"),this.setStyle(t.parentElement,"border-bottom","2px solid #6897bb")):e>n&&(this.setStyle(t.parentElement,"border","1px solid #dfe6ee"),this.setStyle(t.parentElement,"border-top","2px solid #6897bb"))):e<n?(this.setStyle(t,"border","1px solid #dfe6ee"),this.setStyle(t,"border-right","2px solid #6897bb")):e>n&&(this.setStyle(t,"border","1px solid #dfe6ee"),this.setStyle(t,"border-left","2px solid #6897bb")))}},{key:"$operateLines",value:function(t,e,n){if(t<e)eA(n).call(n,e+1,0,n[t]),eA(n).call(n,t,1);else if(t>e){var r=n[t];eA(n).call(n,t,1),eA(n).call(n,e,0,r)}return n}}])}(),Yx=Error,Jx=w("".replace),Zx=String(new Yx("zxcasd").stack),tE=/\n\s*at [^:]*:[^\n]*/,eE=tE.test(Zx),nE=!u((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",zt(1,7)),7!==t.stack)})),rE=function(t,e){if(eE&&"string"==typeof t&&!Yx.prepareStackTrace)for(;e--;)t=Jx(t,tE,"");return t},iE=nE,aE=Error.captureStackTrace,oE=function(t,e,n){for(var r=Xi(e),i=me.f,a=ye.f,o=0;o<r.length;o++){var s=r[o];Bt(t,s)||n&&Bt(n,s)||i(t,s,a(e,s))}},sE=function(t,e){ft(e)&&"cause"in e&&Ce(t,"cause",e.cause)},cE=function(t,e,n,r){iE&&(aE?aE(t,e):Ce(t,"stack",rE(n,r)))},lE=function(t,e){return void 0===t?arguments.length<2?"":e:xr(t)},uE=Ft("toStringTag"),hE=Error,fE=[].push,dE=function(t,e){var n,r=rt(AE,this);$a?n=$a(new hE,r?Ea(this):AE):(n=r?this:Pn(AE),Ce(n,uE,"Error")),void 0!==e&&Ce(n,"message",lE(e)),cE(n,dE,n.stack,1),arguments.length>2&&sE(n,arguments[2]);var i=[];return sg(t,fE,{that:i}),Ce(n,"errors",i),n};$a?$a(dE,hE):oE(dE,hE,{name:!0});var AE=dE.prototype=Pn(hE.prototype,{constructor:zt(1,dE),message:zt(1,""),name:zt(1,"AggregateError")});Dn({global:!0,constructor:!0,arity:2},{AggregateError:dE});var gE,pE,mE,bE,vE=Ft("species"),yE=/(?:ipad|iphone|ipod).*applewebkit/i.test(G),wE=j.setImmediate,kE=j.clearImmediate,CE=j.process,xE=j.Dispatch,EE=j.Function,TE=j.MessageChannel,BE=j.String,_E=0,SE={},LE="onreadystatechange";u((function(){gE=j.location}));var IE=function(t){if(Bt(SE,t)){var e=SE[t];delete SE[t],e()}},ME=function(t){return function(){IE(t)}},OE=function(t){IE(t.data)},DE=function(t){j.postMessage(BE(t),gE.protocol+"//"+gE.host)};wE&&kE||(wE=function(t){ps(arguments.length,1);var e=$(t)?t:EE(t),n=Te(arguments,1);return SE[++_E]=function(){ve(e,void 0,n)},pE(_E),_E},kE=function(t){delete SE[t]},Um?pE=function(t){CE.nextTick(ME(t))}:xE&&xE.now?pE=function(t){xE.now(ME(t))}:TE&&!yE?(bE=(mE=new TE).port2,mE.port1.onmessage=OE,pE=ke(bE.postMessage,bE)):j.addEventListener&&$(j.postMessage)&&!j.importScripts&&gE&&"file:"!==gE.protocol&&!u(DE)?(pE=DE,j.addEventListener("message",OE,!1)):pE=LE in Ht("script")?function(t){xn.appendChild(Ht("script"))[LE]=function(){xn.removeChild(this),IE(t)}}:function(t){setTimeout(ME(t),0)});var FE={set:wE,clear:kE},NE=function(){this.head=null,this.tail=null};NE.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var PE,RE,QE,UE,$E,HE=NE,jE=/ipad|iphone|ipod/i.test(G)&&"undefined"!=typeof Pebble,KE=/web0s(?!.*chrome)/i.test(G),zE=FE,GE=HE,XE=jE,VE=KE,WE=zE.set,qE=j.MutationObserver||j.WebKitMutationObserver,YE=j.document,JE=j.process,ZE=j.Promise,tT=zw("queueMicrotask");if(!tT){var eT=new GE,nT=function(){var t,e;for(Um&&(t=JE.domain)&&t.exit();e=eT.get();)try{e()}catch(t){throw eT.head&&PE(),t}t&&t.enter()};yE||Um||VE||!qE||!YE?!XE&&ZE&&ZE.resolve?((UE=ZE.resolve(void 0)).constructor=ZE,$E=ke(UE.then,UE),PE=function(){$E(nT)}):Um?PE=function(){JE.nextTick(nT)}:(WE=ke(WE,j),PE=function(){WE(nT)}):(RE=!0,QE=YE.createTextNode(""),new qE(nT).observe(QE,{characterData:!0}),PE=function(){QE.data=RE=!RE}),tT=function(t){eT.head||PE(),eT.add(t)}}var rT,iT,aT=tT,oT=j.Promise,sT="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,cT=!sT&&!Um&&"object"==typeof window&&"object"==typeof document,lT=oT,uT=cT,hT=lT&&lT.prototype,fT=Ft("species"),dT=!1,AT=$(j.PromiseRejectionEvent),gT=we("Promise",(function(){var t=$e(lT),e=t!==String(lT);if(!e&&66===Y)return!0;if(!hT.catch||!hT.finally)return!0;if(!Y||Y<51||!/native code/.test(t)){var n=new lT((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[fT]=r,!(dT=n.then((function(){}))instanceof r))return!0}return!e&&(uT||sT)&&!AT})),pT=TypeError,mT=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new pT("Bad Promise constructor");e=t,n=r})),this.resolve=ut(e),this.reject=ut(n)},bT=function(t,e){var n,r=ue(t).constructor;return void 0===r||P(n=ue(r)[vE])?e:Nn(n)},vT=aT,yT=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},wT=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},kT={CONSTRUCTOR:gT,REJECTION_EVENT:AT,SUBCLASSING:dT},CT={f:function(t){return new mT(t)}},xT=zE.set,ET="Promise",TT=kT.CONSTRUCTOR,BT=kT.REJECTION_EVENT,_T=Ir.getterFor(ET),ST=Ir.set,LT=lT&&lT.prototype,IT=lT,MT=LT,OT=j.TypeError,DT=j.document,FT=j.process,NT=CT.f,PT=NT,RT=!!(DT&&DT.createEvent&&j.dispatchEvent),QT="unhandledrejection",UT=function(t){var e;return!(!ft(t)||!$(e=t.then))&&e},$T=function(t,e){var n,r,i,a=e.value,o=1===e.state,s=o?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{s?(o||(2===e.rejection&&GT(e),e.rejection=1),!0===s?n=a:(u&&u.enter(),n=s(a),u&&(u.exit(),i=!0)),n===t.promise?l(new OT("Promise-chain cycle")):(r=UT(n))?ht(r,n,c,l):c(n)):l(a)}catch(t){u&&!i&&u.exit(),l(t)}},HT=function(t,e){t.notified||(t.notified=!0,vT((function(){for(var n,r=t.reactions;n=r.get();)$T(n,t);t.notified=!1,e&&!t.rejection&&KT(t)})))},jT=function(t,e,n){var r,i;RT?((r=DT.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),j.dispatchEvent(r)):r={promise:e,reason:n},!BT&&(i=j["on"+t])?i(r):t===QT&&yT("Unhandled promise rejection",n)},KT=function(t){ht(xT,j,(function(){var e,n=t.facade,r=t.value;if(zT(t)&&(e=wT((function(){Um?FT.emit("unhandledRejection",r,n):jT(QT,n,r)})),t.rejection=Um||zT(t)?2:1,e.error))throw e.value}))},zT=function(t){return 1!==t.rejection&&!t.parent},GT=function(t){ht(xT,j,(function(){var e=t.facade;Um?FT.emit("rejectionHandled",e):jT("rejectionhandled",e,t.value)}))},XT=function(t,e,n){return function(r){t(e,r,n)}},VT=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,HT(t,!0))},WT=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new OT("Promise can't be resolved itself");var r=UT(e);r?vT((function(){var n={done:!1};try{ht(r,e,XT(WT,n,t),XT(VT,n,t))}catch(e){VT(n,e,t)}})):(t.value=e,t.state=1,HT(t,!1))}catch(e){VT({done:!1},e,t)}}};TT&&(MT=(IT=function(t){cg(this,MT),ut(t),ht(rT,this);var e=_T(this);try{t(XT(WT,e),XT(VT,e))}catch(t){VT(e,t)}}).prototype,(rT=function(t){ST(this,{type:ET,done:!1,notified:!1,parent:!1,reactions:new GE,rejection:!1,state:0,value:void 0})}).prototype=ir(MT,"then",(function(t,e){var n=_T(this),r=NT(bT(this,IT));return n.parent=!0,r.ok=!$(t)||t,r.fail=$(e)&&e,r.domain=Um?FT.domain:void 0,0===n.state?n.reactions.add(r):vT((function(){$T(r,n)})),r.promise})),iT=function(){var t=new rT,e=_T(t);this.promise=t,this.resolve=XT(WT,e),this.reject=XT(VT,e)},CT.f=NT=function(t){return t===IT||undefined===t?new iT(t):PT(t)}),Dn({global:!0,constructor:!0,wrap:!0,forced:TT},{Promise:IT}),Lr(IT,ET,!1,!0),gg(ET);var qT=kT.CONSTRUCTOR||!Oh((function(t){lT.all(t).then(void 0,(function(){}))}));Dn({target:"Promise",stat:!0,forced:qT},{all:function(t){var e=this,n=CT.f(e),r=n.resolve,i=n.reject,a=wT((function(){var n=ut(e.resolve),a=[],o=0,s=1;sg(t,(function(t){var c=o++,l=!1;s++,ht(n,e,t).then((function(t){l||(l=!0,a[c]=t,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise}});var YT=kT.CONSTRUCTOR;lT&&lT.prototype;Dn({target:"Promise",proto:!0,forced:YT,real:!0},{catch:function(t){return this.then(void 0,t)}}),Dn({target:"Promise",stat:!0,forced:qT},{race:function(t){var e=this,n=CT.f(e),r=n.reject,i=wT((function(){var i=ut(e.resolve);sg(t,(function(t){ht(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}}),Dn({target:"Promise",stat:!0,forced:kT.CONSTRUCTOR},{reject:function(t){var e=CT.f(this);return(0,e.reject)(t),e.promise}});var JT=function(t,e){if(ue(t),ft(e)&&e.constructor===t)return e;var n=CT.f(t);return(0,n.resolve)(e),n.promise},ZT=kT.CONSTRUCTOR,tB=nt("Promise"),eB=!ZT;Dn({target:"Promise",stat:!0,forced:gt},{resolve:function(t){return JT(eB&&this===tB?lT:this,t)}}),Dn({target:"Promise",stat:!0,forced:qT},{allSettled:function(t){var e=this,n=CT.f(e),r=n.resolve,i=n.reject,a=wT((function(){var n=ut(e.resolve),i=[],a=0,o=1;sg(t,(function(t){var s=a++,c=!1;o++,ht(n,e,t).then((function(t){c||(c=!0,i[s]={status:"fulfilled",value:t},--o||r(i))}),(function(t){c||(c=!0,i[s]={status:"rejected",reason:t},--o||r(i))}))})),--o||r(i)}));return a.error&&i(a.value),n.promise}});var nB="No one promise resolved";Dn({target:"Promise",stat:!0,forced:qT},{any:function(t){var e=this,n=nt("AggregateError"),r=CT.f(e),i=r.resolve,a=r.reject,o=wT((function(){var r=ut(e.resolve),o=[],s=0,c=1,l=!1;sg(t,(function(t){var u=s++,h=!1;c++,ht(r,e,t).then((function(t){h||l||(l=!0,i(t))}),(function(t){h||l||(h=!0,o[u]=t,--c||a(new n(o,nB)))}))})),--c||a(new n(o,nB))}));return o.error&&a(o.value),r.promise}}),Dn({target:"Promise",stat:!0},{withResolvers:function(){var t=CT.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var rB=lT&&lT.prototype,iB=!!lT&&u((function(){rB.finally.call({then:function(){}},(function(){}))}));Dn({target:"Promise",proto:!0,real:!0,forced:iB},{finally:function(t){var e=bT(this,nt("Promise")),n=$(t);return this.then(n?function(n){return JT(e,t()).then((function(){return n}))}:t,n?function(n){return JT(e,t()).then((function(){throw n}))}:t)}});var aB=H.Promise,oB=aB;Dn({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=Te(arguments,1),n=CT.f(this),r=wT((function(){return ve(ut(t),void 0,e)}));return(r.error?n.reject:n.resolve)(r.value),n.promise}});var sB=oB,cB=sB;function lB(t,e,n,r,i,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):cB.resolve(c).then(r,i)}function uB(t){return function(){var e=this,n=arguments;return new cB((function(r,i){var a=t.apply(e,n);function o(t){lB(a,r,i,o,s,"next",t)}function s(t){lB(a,r,i,o,s,"throw",t)}o(void 0)}))}}var hB=r((function(t){function e(n){return t.exports=e="function"==typeof xo&&"symbol"==typeof No?function(t){return typeof t}:function(t){return t&&"function"==typeof xo&&t.constructor===xo&&t!==xo.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));n(hB);var fB=Rs,dB=w([].reverse),AB=[1,2];Dn({target:"Array",proto:!0,forced:String(AB)===String(AB.reverse())},{reverse:function(){return pr(this)&&(this.length=this.length),dB(this)}});var gB=Ni("Array","reverse"),pB=Array.prototype,mB=function(t){var e=t.reverse;return t===pB||rt(pB,t)&&e===pB.reverse?gB:e},bB=fB,vB=mB,yB=bf,wB=r((function(t){var e=hB.default;function n(){t.exports=n=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var r,i={},a=Object.prototype,o=a.hasOwnProperty,s=ia||function(t,e,n){t[e]=n.value},c="function"==typeof xo?xo:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",h=c.toStringTag||"@@toStringTag";function f(t,e,n){return ia(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(r){f=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=is(i.prototype),o=new M(r||[]);return s(a,"_invoke",{value:_(t,n,o)}),a}function A(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}i.wrap=d;var g="suspendedStart",p="suspendedYield",m="executing",b="completed",v={};function y(){}function w(){}function k(){}var C={};f(C,l,(function(){return this}));var x=Zo&&Zo(Zo(O([])));x&&x!==a&&o.call(x,l)&&(C=x);var E=k.prototype=y.prototype=is(C);function T(t){var e;bB(e=["next","throw","return"]).call(e,(function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function B(t,n){function r(i,a,s,c){var l=A(t[i],t,a);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==e(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):n.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,c)}))}c(l.arg)}var i;s(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,i){r(t,e,n,i)}))}return i=i?i.then(a,a):a()}})}function _(t,e,n){var i=g;return function(a,o){if(i===m)throw Error("Generator is already running");if(i===b){if("throw"===a)throw o;return{value:r,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===g)throw i=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=m;var l=A(t,e,n);if("normal"===l.type){if(i=n.done?b:p,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=b,n.method="throw",n.arg=l.arg)}}}function S(t,e){var n=e.method,i=t.iterator[n];if(i===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,S(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=A(i,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,v;var o=a.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function L(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),lf(e=this.tryEntries).call(e,n)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],bB(t).call(t,L,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function e(){for(;++i<t.length;)if(o.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=k,s(E,"constructor",{value:k,configurable:!0}),s(k,"constructor",{value:w,configurable:!0}),w.displayName=f(k,h,"GeneratorFunction"),i.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(t){return zo?zo(t,k):(t.__proto__=k,f(t,h,"GeneratorFunction")),t.prototype=is(E),t},i.awrap=function(t){return{__await:t}},T(B.prototype),f(B.prototype,u,(function(){return this})),i.AsyncIterator=B,i.async=function(t,e,n,r,a){void 0===a&&(a=sB);var o=new B(d(t,e,n,r),a);return i.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},T(E),f(E,h,"Generator"),f(E,l,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),i.keys=function(t){var e=Object(t),n=[];for(var r in e)lf(n).call(n,r);return vB(n).call(n),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},i.values=O,M.prototype={constructor:M,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,bB(e=this.tryEntries).call(e,I),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+yB(n).call(n,1))&&(this[n]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,i){return s.type="throw",s.arg=t,e.next=n,i&&(e.method="next",e.arg=r),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}},i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}));n(wB);var kB=wB(),CB=kB;try{regeneratorRuntime=kB}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=kB:Function("r","regeneratorRuntime = r")(kB)}var xB=CB;function EB(t){function e(e){e.clipboardData.setData("text/html",t),e.clipboardData.setData("text/plain",t),e.preventDefault()}document.addEventListener("copy",e),document.execCommand("copy"),document.removeEventListener("copy",e)}function TB(t){var e=document.createElement("input");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}function BB(t){return _B.apply(this,arguments)}function _B(){return _B=uB(xB.mark((function t(e){return xB.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(navigator.clipboard){t.next=3;break}return TB(e),t.abrupt("return");case 3:return t.next=5,navigator.clipboard.writeText(e);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)}))),_B.apply(this,arguments)}var SB=function(){return Ho((function t(e,n,r,i,a,o){ra(this,t),cs(this,"codeBlockEditor",{info:{},editorDom:{}}),this.trigger=e,this.target=n,this.previewerDom=i,this.container=r,this.codeMirror=a,this.$cherry=o.previewer.$cherry,this.parent=o,this.$initReg()}),[{key:"$initReg",value:function(){this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:Id().reg}},{key:"emit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(t){case"remove":return this.$remove();case"scroll":return this.$updateContainerPosition();case"previewUpdate":return this.$updateContainerPosition(),void(this.editing&&this.$setInputOffset());case"mouseup":return this.$tryRemoveMe(e,n)}}},{key:"$remove",value:function(){this.codeBlockEditor={info:{},codeBlockCodes:[],editorDom:{}}}},{key:"$tryRemoveMe",value:function(t,e){var n=this.codeBlockEditor.editorDom.inputDiv;this.editing&&n&&!n.contains(t.target)&&(this.editing=!1,this.$remove(),e())}},{key:"$findCodeInEditor",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$collectCodeBlockDom(),this.$collectCodeBlockCode(),t?this.$setLangSelection(this.codeBlockEditor.info.codeBlockIndex):this.$setBlockSelection(this.codeBlockEditor.info.codeBlockIndex)}},{key:"$collectCodeBlockDom",value:function(){var t=Nh(this.previewerDom.querySelectorAll('[data-type="codeBlock"]'));this.codeBlockEditor.info={codeBlockNode:this.target,codeBlockIndex:Ef(t).call(t,this.target)}}},{key:"$collectCodeBlockCode",value:function(){var t=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(e){var n,r=e.replace(/^\n*/,""),i=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+e.match(/^\n*/)[0].length;Vh(r).call(r,"```mermaid")||t.push({code:r,offset:i})})),this.codeBlockEditor.codeBlockCodes=t}},{key:"$setBlockSelection",value:function(t){var e,n,r,i,a=this.codeBlockEditor.codeBlockCodes[t],o=this.codeMirror.getValue(),s=null!==(e=null===(n=Bf(o).call(o,0,a.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==e?e:0,c=s+a.code.match(/\n/g).length,l=Bf(r=a.code).call(r,0,-3).match(/[^\n]+\n*$/)[0].length;this.codeBlockEditor.info.selection=[{line:c-1,ch:l},{line:s+1,ch:0}],(i=this.codeMirror).setSelection.apply(i,kp(this.codeBlockEditor.info.selection))}},{key:"$setLangSelection",value:function(t){var e,n,r,i,a=this.codeBlockEditor.codeBlockCodes[t],o=this.codeMirror.getValue(),s=null!==(e=null===(n=Bf(o).call(o,0,a.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==e?e:0,c=(null!==(r=a.code.match(/```\s*[^\n]+/)[0])&&void 0!==r?r:"```").length;this.codeBlockEditor.info.selection=[{line:s,ch:3},{line:s,ch:c}],(i=this.codeMirror).setSelection.apply(i,kp(this.codeBlockEditor.info.selection))}},{key:"showBubble",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$updateContainerPosition(),"hover"===this.trigger&&this.$showBtn(e),"click"===this.trigger&&this.$showContentEditor(),this.container.addEventListener("wheel",(function(e){e.stopPropagation(),e.preventDefault(),t.previewerDom.scrollTop+=e.deltaY/3}))}},{key:"$showContentEditor",value:function(){this.editing=!0,this.$findCodeInEditor(),this.$drawEditor()}},{key:"$showBtn",value:function(t){var e=this,n=this.target.dataset,r=n.changeLang,i=n.editCode,a=n.copyCode,o=n.lang,s=n.expandCode;if(this.container.innerHTML="","true"===r&&t){this.container.innerHTML=function(t){var e,n=lA(jv).call(jv,(function(e){var n,r;return t===e?hs(r='<option value="'.concat(e,'" selected="selected">')).call(r,e,"</option>"):hs(n='<option value="'.concat(e,'">')).call(n,e,"</option>")}));return hs(e='<select id="code-preview-lang-select" class="'.concat("cherry-code-preview-lang-select",'">\n <option value="" selected disabled hidden>Choose here</option>\n ')).call(e,n.join(""),"\n </select>")}(o);var c=this.container.querySelector("#code-preview-lang-select");this.changeLangDom=c,this.changeLangDom.addEventListener("change",(function(t){t.preventDefault(),t.stopPropagation(),e.parent.$removeAllPreviewerBubbles("click"),e.$changeLang(t.target.value||"")}))}if("true"===i&&t){var l=document.createElement("div");l.className="cherry-edit-code-block",l.innerHTML='<i class="ch-icon ch-icon-edit"></i>',this.container.appendChild(l),l.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.$expandCodeBlock(!0),e.$hideAllBtn(),e.parent.$removeAllPreviewerBubbles("click"),e.parent.showCodeBlockPreviewerBubbles("click",e.target)})),this.editDom=l}if("true"===a){var u=document.createElement("div");u.className="cherry-copy-code-block",u.innerHTML='<i class="ch-icon ch-icon-copy"></i>',this.container.appendChild(u),u.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.parent.$removeAllPreviewerBubbles("click"),e.$copyCodeBlock()})),this.copyDom=u}if("true"===s){var h=this.target.classList.contains("cherry-code-expand"),f=this.target.querySelector(".cherry-mask-code-block"),d=document.createElement("div");d.className="cherry-unExpand-code-block",d.innerHTML='<i class="ch-icon ch-icon-unExpand"></i>',h&&f||d.classList.add("hidden"),this.container.appendChild(d),d.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.parent.$removeAllPreviewerBubbles("click"),e.$expandCodeBlock(!1)})),this.unExpandDom=d}}},{key:"$hideAllBtn",value:function(){var t,e,n,r,i,a,o,s;null!==(t=this.changeLangDom)&&void 0!==t&&null!==(e=t.style)&&void 0!==e&&e.display&&(this.changeLangDom.style.display="none"),null!==(n=this.editDom)&&void 0!==n&&null!==(r=n.style)&&void 0!==r&&r.display&&(this.editDom.style.display="none"),null!==(i=this.copyDom)&&void 0!==i&&null!==(a=i.style)&&void 0!==a&&a.display&&(this.copyDom.style.display="none"),null!==(o=this.unExpandDom)&&void 0!==o&&null!==(s=o.style)&&void 0!==s&&s.display&&(this.unExpandDom.style.display="none")}},{key:"$changeLang",value:function(t){this.$findCodeInEditor(!0),this.codeMirror.replaceSelection(t,"around")}},{key:"$drawEditor",value:function(){var t=document.createElement("div");t.className="cherry-previewer-codeBlock-content-handler__input";var e=document.createElement("textarea");e.id="codeMirrorEditor",t.appendChild(e);var n=Wh.fromTextArea(e,{mode:"",theme:"default",scrollbarStyle:"null",lineNumbers:!0,autofocus:!0,lineWrapping:!0,cursorHeight:.85,indentUnit:4,tabSize:4,keyMap:"sublime"}),r=this.codeMirror;n.on("change",(function(){r.replaceSelection(n.getValue(),"around")})),this.codeBlockEditor.editorDom.inputDiv=t,this.codeBlockEditor.editorDom.inputDom=n,this.$updateEditorPosition(),this.container.appendChild(this.codeBlockEditor.editorDom.inputDiv),this.codeBlockEditor.editorDom.inputDom.focus(),this.codeBlockEditor.editorDom.inputDom.refresh(),n.setValue(this.codeMirror.getSelection())}},{key:"$expandCodeBlock",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.unExpandDom&&(this.target.classList.remove("cherry-code-unExpand"),this.target.classList.remove("cherry-code-expand"),this.unExpandDom.classList.remove("hidden"),t?this.target.classList.add("cherry-code-expand"):(this.unExpandDom.classList.add("hidden"),this.target.classList.add("cherry-code-unExpand")))}},{key:"$copyCodeBlock",value:function(){var t=this.target.querySelector("pre").innerText,e=this.$cherry.options.callback.onCopyCode({target:this.target},t);if(!1===e)return!1;var n=this.copyDom.querySelector("i.ch-icon-copy");n&&(n.className=n.className.replace("copy","ok"),ks((function(){n.className=n.className.replace("ok","copy")}),1e3)),EB(e)}},{key:"$updateContainerPosition",value:function(){this.codeBlockEditor.info.codeBlockNode=this.target;var t=this.$getPosition();this.setStyle(this.container,"width","".concat(t.width,"px")),this.setStyle(this.container,"top","".concat(t.top,"px")),this.setStyle(this.container,"left","".concat(t.left,"px"))}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var t=getComputedStyle(this.codeBlockEditor.info.codeBlockNode),e=this.codeBlockEditor.editorDom.inputDom.getWrapperElement();this.setStyle(e,"fontSize",t.fontSize||"16px"),this.setStyle(e,"fontFamily",t.fontFamily),this.setStyle(e,"lineHeight","1.8em"),this.setStyle(e,"zIndex","1")}},{key:"$setInputOffset",value:function(){var t=this.$getPosition(),e=this.codeBlockEditor.editorDom.inputDiv;this.setStyle(e,"width","".concat(t.width,"px")),this.setStyle(e,"height","".concat(t.height+10,"px"))}},{key:"setStyle",value:function(t,e,n){t.getBoundingClientRect()[e]!==n&&(t.style[e]=n)}},{key:"$getPosition",value:function(){var t=this.codeBlockEditor.info.codeBlockNode.getBoundingClientRect(),e=this.previewerDom.parentNode.getBoundingClientRect();return{top:t.top-e.top,height:t.height,width:t.width,left:t.left-e.left,maxHeight:e.height}}}])}(),LB=function(t,e,n){return Math.min(Math.max(t,e),n)},IB={open:function(){this.resetStyle(),this.dom.style.display="block",this.postMessage("ready?")},close:function(){this.dom.style.display="none"},postMessage:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null===(e=this.iframeDom)||void 0===e||null===(n=e.contentWindow)||void 0===n||n.postMessage({eventName:t,value:r},"*")},resetStyle:function(){var t=this.dom;t.style.left="10%",t.style.top="10%"},bindEvents:function(){this.bindClickEvents(),this.bindDNDEvents()},bindClickEvents:function(){var t=this;this.headCloseButton.addEventListener("click",(function(){t.close()})),this.footSureButton.addEventListener("click",(function(){t.postMessage("getData")}))},bindDNDEvents:function(){var t,e,n=this.dom,r=this.head,i=this.body,a=function(r){r.preventDefault();var i=LB(r.clientX-t,0,window.innerWidth-16),a=LB(r.clientY-e,0,window.innerHeight-16);n.style.left="".concat(i,"px"),n.style.top="".concat(a,"px")},o=function t(e){r.style.cursor="grab",i.style.pointerEvents=null,document.removeEventListener("mousemove",a),document.removeEventListener("mousemove",t)};r.addEventListener("mousedown",(function(s){s.target.classList.contains("cherry-dialog--close")||(t=s.clientX-n.offsetLeft,e=s.clientY-n.offsetTop,r.style.cursor="grabbing",i.style.pointerEvents="none",document.addEventListener("mousemove",a),document.addEventListener("mouseup",o))}))},draw:function(t,e,n){var r=this,i=t.iframeSrc,a=t.iframeStyle,o=t.title;if(this.onSubmit=n,this.onReady=e,this.dom)return new RegExp("".concat(i,"$"),"i").test(this.iframeDom.src)||(this.iframeDom.src=i),void this.open();window.addEventListener("message",(function(t){if(t.data&&t.data.eventName)switch(t.data.eventName){case"getData:success":r.onSubmit(t.data.value),r.close();case"ready":r.onReady()}})),this.iframeDom=Zf("iframe","cherry-dialog-iframe",{src:i,style:a}),this.dom=Zf("div","cherry-dialog",{style:["z-index:9999","display: block","position: absolute","top: 10%;left: 10%;width: 80%;height: 80%;","background-color: #FFF","box-shadow: 0px 50px 100px -12px rgba(0,0,0,.05),0px 30px 60px -30px rgba(0,0,0,.1)","border-radius: 6px","border: 1px solid #ddd;"].join(";")}),this.head=Zf("div","cherry-dialog--head",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","cursor: grab;"].join(";")}),this.body=Zf("div","cherry-dialog--body",{style:["position: absolute","bottom: 30px","top: 30px","left: 0","right: 0","overflow: hidden"].join(";")}),this.foot=Zf("div","cherry-dialog--foot",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","position: absolute","bottom: 0","left: 0","right: 0"].join(";")}),this.headTitle=Zf("span","cherry-dialog--title",{style:"user-select:none;"}),this.headCloseButton=Zf("i","cherry-dialog--close ch-icon ch-icon-close",{style:"float: right;font-size: 12px;cursor: pointer;"}),this.footSureButton=Zf("button","cherry-dialog--sure",{style:["float: right","cursor: pointer","margin: 3px","background-color: #4d90fe","color: #FFF","border: 1px solid #4d90fe","border-radius: 2px","padding: 2px 15px","user-select:none"].join(";")}),this.headCloseButton.title="关闭",this.footSureButton.textContent="确定",this.headTitle.textContent=o,this.head.appendChild(this.headTitle),this.head.appendChild(this.headCloseButton),this.foot.appendChild(this.footSureButton),this.body.appendChild(this.iframeDom),this.dom.appendChild(this.head),this.dom.appendChild(this.body),this.dom.appendChild(this.foot),this.bindEvents(),document.body.appendChild(this.dom)}};function MB(){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n={iframeSrc:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",iframeStyle:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",title:"draw.io"};IB.draw(n,(function(){IB.postMessage("setData",t)}),(function(t){e(t)}))}var OB=function(){return nc.Date.now()},DB=/\s/;var FB=function(t){for(var e=t.length;e--&&DB.test(t.charAt(e)););return e},NB=/^\s+/;var PB=function(t){return t?t.slice(0,FB(t)+1).replace(NB,""):t},RB=/^[-+]0x[0-9a-f]+$/i,QB=/^0b[01]+$/i,UB=/^0o[0-7]+$/i,$B=parseInt;var HB=function(t){if("number"==typeof t)return t;if(Ov(t))return NaN;if(dc(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=dc(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=PB(t);var n=QB.test(t);return n||UB.test(t)?$B(t.slice(2),n?2:8):RB.test(t)?NaN:+t},jB=Math.max,KB=Math.min;var zB=function(t,e,n){var r,i,a,o,s,c,l=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=r,a=i;return r=i=void 0,l=e,o=t.apply(a,n)}function A(t){var n=t-c;return void 0===c||n>=e||n<0||h&&t-l>=a}function g(){var t=OB();if(A(t))return p(t);s=setTimeout(g,function(t){var n=e-(t-c);return h?KB(n,a-(t-l)):n}(t))}function p(t){return s=void 0,f&&r?d(t):(r=i=void 0,o)}function m(){var t=OB(),n=A(t);if(r=arguments,i=this,c=t,n){if(void 0===s)return function(t){return l=t,s=setTimeout(g,e),u?d(t):o}(c);if(h)return clearTimeout(s),s=setTimeout(g,e),d(c)}return void 0===s&&(s=setTimeout(g,e)),o}return e=HB(e)||0,dc(n)&&(u=!!n.leading,a=(h="maxWait"in n)?jB(HB(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),m.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},m.flush=function(){return void 0===s?o:p(OB())},m};function GB(t,e){var n=document.createElement("a");n.href=t,n.download=e,n.click(),n.remove()}function XB(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("svg"!==e.format){var n=e.width,r=void 0===n?t.width.baseVal.value:n,i=e.height,a=void 0===i?t.height.baseVal.value:i,o=e.scale,s=void 0===o?5:o,c=e.quality,l=void 0===c?1:c,u=e.backgroundColor,h=void 0===u?"white":u,f=e.filename,d=void 0===f?"formula":f,A=e.format,g=void 0===A?"png":A,p=e.mimeType,m=void 0===p?"image/png":p,b=VB(t),v=document.createElement("canvas"),y=v.getContext("2d"),w=new Image;w.src="data:image/svg+xml;base64,".concat(btoa(unescape(encodeURIComponent(b)))),w.onload=function(){v.width=r*s,v.height=a*s,y.fillStyle=h,y.fillRect(0,0,v.width,v.height),y.drawImage(w,0,0,v.width,v.height),v.toBlob((function(t){var e,n=xx.createObjectURL(t);GB(n,hs(e="".concat(d,".")).call(e,g)),xx.revokeObjectURL(n)}),m,l)}}else{var k;!function(t,e){var n=VB(t),r=new Blob([n],{type:"image/svg+xml;charset=utf-8"}),i=xx.createObjectURL(r);GB(i,e),xx.revokeObjectURL(i)}(t,null!==(k=e.filename)&&void 0!==k?k:"formula.svg")}}function VB(t){return(new XMLSerializer).serializeToString(t)}var WB=function(){return Ho((function t(e,n,r,i,a){ra(this,t),cs(this,"bubbleContainer",null),this.trigger=e,this.target=n,this.container=r,this.previewerDom=i,this.editor=a}),[{key:"emit",value:function(t,e){switch(t){case"remove":case"scroll":return this.remove()}}},{key:"drawBubble",value:function(){var t,e,n,r=document.createElement("div");r.innerHTML='<div class="formula-utils-btn formula-utils-img">\n <button>输出图片</button>\n <div class="formula-utils-submenu formula-utils-img-submenu">\n <div class="formula-utils-submenu-btn formula-utils-img-svg">\n <button data-name="svg">svg</button>\n </div>\n <div class="formula-utils-submenu-btn formula-utils-img-png">\n <button data-name="png">png</button>\n </div>\n <div class="formula-utils-submenu-btn formula-utils-img-jpg">\n <button data-name="jpg">jpg</button>\n </div>\n </div>\n </div>\n <div class="formula-utils-btn formula-utils-code">\n <button>输出代码</button>\n <div class="formula-utils-submenu formula-utils-code-submenu">\n <div class="formula-utils-submenu-btn formula-utils-code-latex">\n <button data-name="latex">latex</button>\n </div>\n <div class="formula-utils-submenu-btn formula-utils-code-html">\n <button data-name="html">html</button>\n </div>\n <div class="formula-utils-submenu-btn formula-utils-code-svgcode">\n <button data-name="svgcode">svgcode</button>\n </div>\n </div>\n </div>\n <div class="formula-utils-btn formula-utils-word">\n <button>输出mathml</button>\n <div class="formula-utils-submenu formula-utils-word-submenu">\n <div class="formula-utils-submenu-btn formula-utils-word-mathml">\n <button data-name="mathml">mathml</button>\n </div>\n </div>\n </div>\n <div class="formula-utils-btn formula-utils-transfer">\n <button>转义</button>\n <div class="formula-utils-submenu formula-utils-transfer-submenu">\n <div class="formula-utils-submenu-btn formula-utils-transfer-backslash">\n <button data-name="\\">反斜杠</button>\n </div>\n <div class="formula-utils-submenu-btn formula-utils-transfer-dollar">\n <button data-name="$">$包裹</button>\n </div>\n <div class="formula-utils-submenu-btn formula-utils-transfer-double-dollar">\n <button data-name="$$">$$包裹</button>\n </div>\n </div>\n </div>',r.id="formula-utils-bubble-container",r.className=["formula-utils-bubble-container"].join(" "),this.bubbleContainer=r,null==this||null===(t=this.editor)||void 0===t||null===(e=t.$cherry)||void 0===e||null===(n=e.wrapperDom)||void 0===n||n.appendChild(r)}},{key:"showBubble",value:function(t,e){var n,r,i,a,o,s=null==this||null===(n=this.editor)||void 0===n||null===(r=n.$cherry)||void 0===r||null===(i=r.wrapperDom)||void 0===i||null===(a=i.children)||void 0===a?void 0:a.namedItem("formula-utils-bubble-container"),c=this.target.getBoundingClientRect();s instanceof HTMLElement?this.bubbleContainer=s:this.drawBubble(),this.bubbleContainer.style.display="flex",this.bubbleContainer.style.top="".concat(e||c.top,"px"),this.bubbleContainer.style.left="".concat(t||c.left,"px"),this.bubbleContainer.addEventListener("click",fs(o=this.bubbleClickHandler).call(o,this),{once:!0}),this.collectFormulaCode()}},{key:"collectFormulaCode",value:function(){var t=[];this.editor.editor.getValue().replace(/(\$+)\s*([\w\W]*?)\s*(\1)/g,(function(e,n,r,i,a){t.push({code:r,offset:a})})),this.formulaCode=t}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none")}},{key:"bubbleClickHandler",value:function(t){var e=this;t.preventDefault(),t.stopPropagation();var n=t.target;if(n instanceof HTMLButtonElement){var r=n.dataset.name,i=void 0===r?"":r;switch(i){case"svg":case"png":case"jpg":this.target instanceof SVGSVGElement&&XB(this.target,{format:i});break;case"html":case"svgcode":if(this.target instanceof SVGSVGElement)if("svgcode"===i)BB(VB(this.target));else{var a=this.target.parentElement.querySelector("math");a.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),BB(a.outerHTML)}break;case"\\":case"$":case"$$":case"latex":case"mathml":case"docx":var o=this.previewerDom.querySelectorAll("mjx-container"),s=-1;if(Qs(o).call(o,(function(t,n){t===e.target.parentElement&&(s=n)})),s>=0&&this.formulaCode[s]){var c=this.formulaCode[s].code;if("mathml"===i||"docx"===i){var l,u,h,f,d=ah(l=this.editor.$cherry.engine.hooks.paragraph).call(l,(function(t){return t instanceof Mb}));if(d&&"MathJax"===d.engine)null===(u=window.MathJax)||void 0===u||u.texReset(),null===(h=window.MathJax)||void 0===h||null===(f=h.tex2mmlPromise)||void 0===f||f.call(h,c,{display:!0}).then((function(t){"mathml"===i&&BB(t)}))}else if("latex"===i)BB(c);else if("$"===i){var A,g;BB(hs(A=hs(g="".concat(i)).call(g,c)).call(A,i))}else if("$$"===i){var p,m;BB(hs(p=hs(m="".concat(i,"\n")).call(m,c,"\n")).call(p,i))}else"\\"===i&&BB("\\".concat(c))}}}this.remove()}}])}(),qB=(ye.f,ie("".slice)),YB=Math.min,JB=Hh("endsWith");Dn({target:"String",proto:!0,forced:!JB},{endsWith:function(t){var e=xr(U(this));$h(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:YB(cn(n),r),a=xr(t);return qB(e,i-a.length,i)===a}});var ZB=Ni("String","endsWith"),t_=String.prototype,e_=function(t){var e=t.endsWith;return"string"==typeof t||t===t_||rt(t_,t)&&e===t_.endsWith?ZB:e},n_=function(){return Ho((function t(e,n,r,i,a){var o,s;ra(this,t),cs(this,"bubbleContainer",null),cs(this,"regList",Sd),cs(this,"range",[]),cs(this,"position",{line:0,ch:0}),cs(this,"input",!1),cs(this,"isCheckbox",!1),this.trigger=e,this.target=n,this.container=r,this.previewerDom=i,this.editor=a,this.insertLineBreak=!1,this.handleEditablesInputBinded=fs(o=this.handleEditablesInput).call(o,this),this.handleEditablesUnfocusBinded=fs(s=this.handleEditablesUnfocus).call(s,this),this.target.addEventListener("input",this.handleEditablesInputBinded,!1),this.target.addEventListener("focusout",this.handleEditablesUnfocusBinded,!1),this.setSelection()}),[{key:"emit",value:function(t,e){if("remove"===t)return this.remove()}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none",this.bubbleContainer.children[0]instanceof HTMLTextAreaElement&&(this.bubbleContainer.children[0].value="")),this.target.removeAttribute("contenteditable"),this.target.removeEventListener("input",this.handleEditablesInputBinded,!1),this.target.removeEventListener("focusout",this.handleEditablesUnfocusBinded,!1);var t=this.editor.editor.getCursor();this.editor.editor.setSelection(t,t)}},{key:"setSelection",value:function(){var t,e,n,r=this,i=Nh(this.previewerDom.querySelectorAll("li.cherry-list-item")),a=Xd(i).call(i,(function(t){return t===r.target.parentElement}));if(-1!==a){for(var o=null!==(t=null===(e=Rd(null==this?void 0:this.editor.editor.getValue()))||void 0===e?void 0:e.split("\n"))&&void 0!==t?t:[],s=0,c=-1,l=-1,u=[],h=0;h<o.length;h++){var f=o[h];if(!f||"/n"===f){if(u.length<=0)continue;break}var d=this.regList.exec(f);if(null!==d){if(u.length>0)break;var A=xf(d,5),g=A[1],p=A[2],m=A[3],b=A[4];s===a&&void 0!==g&&(c=h,u.push(b),l=Ef(f).call(f,b),null!=p&&e_(p).call(p,".")&&(l+=1),m&&(this.isCheckbox=!0)),s+=1}else u.length>0&&u.push(f)}var v={line:c,ch:l},y={line:c+u.length-1,ch:l+(null===(n=u[u.length-1])||void 0===n?void 0:n.length)};this.editor.editor.setSelection(v,y),this.range=[v,y],this.position=this.editor.editor.getCursor()}}},{key:"handleEditablesInput",value:function(t){this.input=!0,t.stopPropagation(),t.preventDefault(),t.target instanceof HTMLParagraphElement&&("insertParagraph"!==t.inputType&&"insertLineBreak"!==t.inputType||(this.insertLineBreak=!0,this.handleInsertLineBreak(t)))}},{key:"handleEditablesUnfocus",value:function(t){if(t.stopPropagation(),t.preventDefault(),t.target instanceof HTMLParagraphElement){if(this.input){if(!this.insertLineBreak){var e=this.isCheckbox?t.target.innerHTML.replace(/<span class="ch-icon ch-icon-(square|check)"><\/span>/,""):t.target.innerHTML,n=this.editor.$cherry.engine.makeMarkdown(e),r=xf(this.range,2),i=r[0],a=r[1];this.editor.editor.replaceRange(n,i,a)}this.isCheckbox=!1,this.input=!1,this.insertLineBreak=!1}this.remove()}}},{key:"handleInsertLineBreak",value:function(t){var e,n,r,i=[];"innerText"in t.target&&"string"==typeof t.target.innerText&&(i=t.target.innerText.split("\n"));var a,o,s=Cp(i),c=s[0],l=Bf(s).call(s,1),u=this.editor.editor.getCursor(),h=this.editor.editor.getLine(u.line),f=this.regList.exec(h),d="\n- ";null!==f&&(d=hs(a="\n".concat(f[1])).call(a,null===(o=f[2])||void 0===o?void 0:o.replace("[x]","[ ] ")));d+=null!==(e=null==l?void 0:l.join(""))&&void 0!==e?e:"",this.editor.editor.replaceRange(c,{line:u.line,ch:null!==(n=null===(r=f[2])||void 0===r?void 0:r.length)&&void 0!==n?n:0},{line:u.line,ch:h.length}),this.editor.editor.replaceRange(d,{line:u.line,ch:h.length}),this.editor.editor.setCursor({line:u.line+1,ch:d.length+1}),this.editor.editor.focus(),this.remove()}}])}(),r_=function(){return Ho((function t(e){ra(this,t),this.previewer=e,this.editor=e.editor,this.previewerDom=this.previewer.getDom(),this.$cherry=e.$cherry,this.bubble={},this.bubbleHandler={},this.init()}),[{key:"init",value:function(){var t,e,n,r=this;this.oldWrapperDomOverflow=this.previewer.$cherry.wrapperDom.style.overflow,this.previewerDom.addEventListener("click",fs(t=this.$onClick).call(t,this)),this.previewerDom.addEventListener("mouseover",fs(e=this.$onMouseOver).call(e,this)),document.addEventListener("mousedown",(function(t){var e;Qs(e=Fx(r.bubbleHandler)).call(e,(function(e){return e.emit("mousedown",t)}))})),document.addEventListener("mouseup",(function(t){var e;Qs(e=Fx(r.bubbleHandler)).call(e,(function(e){return e.emit("mouseup",t,(function(){return r.$removeAllPreviewerBubbles("click")}))}))})),document.addEventListener("mousemove",(function(t){var e;Qs(e=Fx(r.bubbleHandler)).call(e,(function(e){return e.emit("mousemove",t)}))})),document.addEventListener("keyup",(function(t){var e;Qs(e=Fx(r.bubbleHandler)).call(e,(function(e){return e.emit("keyup",t)}))})),this.previewerDom.addEventListener("scroll",(function(t){var e;Qs(e=Fx(r.bubbleHandler)).call(e,(function(e){return e.emit("scroll",t)}))}),!0),this.$cherry.$event.on("previewerClose",(function(){return r.$removeAllPreviewerBubbles()})),this.previewer.options.afterUpdateCallBack.push((function(){var t;Qs(t=Fx(r.bubbleHandler)).call(t,(function(t){return t.emit("previewUpdate",(function(){return r.$removeAllPreviewerBubbles()}))}))})),this.previewerDom.addEventListener("change",fs(n=this.$onChange).call(n,this)),this.removeHoverBubble=zB((function(){return r.$removeAllPreviewerBubbles("hover")}),400)}},{key:"isCherryCodeBlock",value:function(t){if(!1!==this.$getClosestNode(t,"BLOCKQUOTE"))return!1;if("DIV"===t.nodeName&&"codeBlock"===t.dataset.type)return t;var e=this.$getClosestNode(t,"DIV");return!1!==e&&("codeBlock"===e.dataset.type&&e)}},{key:"isCherryTable",value:function(t){var e=this.$getClosestNode(t,"DIV");return!1!==e&&(!(/simple-table/.test(e.className)||!/cherry-table-container/.test(e.className))&&(!1===this.$getClosestNode(t,"BLOCKQUOTE")&&e))}},{key:"$isEnableBubbleAndEditorShow",value:function(){return!!this.previewer.options.enablePreviewerBubble&&"hide"!==this.previewer.$cherry.getStatus().editor}},{key:"$onMouseOver",value:function(t){var e=t.target;if(e instanceof Element&&void 0!==e.tagName){switch(e.tagName){case"TD":case"TH":if(!this.$isEnableBubbleAndEditorShow())return;var n=this.isCherryTable(t.target);if(!1===n)return;return this.removeHoverBubble.cancel(),this.$removeAllPreviewerBubbles("hover"),void this.$showTablePreviewerBubbles("hover",t.target,n);case"PRE":case"CODE":case"SPAN":case"DIV":var r=this.isCherryCodeBlock(t.target);if(!1===r)return;return void this.showCodeBlockPreviewerBubbles("hover",r)}this.removeHoverBubble()}}},{key:"$onMouseOut",value:function(){this.previewer.options.enablePreviewerBubble&&this.previewer.$cherry.getStatus().editor}},{key:"$dealCheckboxClick",value:function(t){var e=this,n=t.target,r=Nh(this.previewerDom.querySelectorAll(".ch-icon-square, .ch-icon-check"));this.checkboxIdx=Ef(r).call(r,n);var i=Rd(this.editor.editor.getValue()).split("\n"),a=0,o=-1,s=-1;Qs(i).call(i,(function(t,n){var r=mh(t).call(t);(Vh(r).call(r,"- [ ]")||Vh(r).call(r,"- [x]"))&&(a===e.checkboxIdx&&(o=n,s=Ef(t).call(t,"- [")+3),a+=1)})),-1!==o&&(this.editor.editor.setSelection({line:o,ch:s},{line:o,ch:s+1}),this.editor.editor.replaceSelection(" "===this.editor.editor.getSelection()?"x":" ","around"))}},{key:"$onClick",value:function(t){var e,n=this,r=t.target;if(r instanceof Element)if(r instanceof HTMLImageElement&&"IMG"===r.tagName&&"drawio"===r.getAttribute("data-type")&&"show"===this.$cherry.status.editor){if(!this.beginChangeDrawioImg(r))return;var i=decodeURI(r.getAttribute("data-xml"));MB(this.previewer.$cherry.options.drawioIframeUrl,this.previewer.$cherry.options.drawioIframeStyle,i,(function(t){var e,r=t.xmlData,i=t.base64;n.editor.editor.replaceSelection(hs(e="(".concat(i,"){data-type=drawio data-xml=")).call(e,encodeURI(r),"}"),"around")}))}else{if("expand-btn "===r.className||"ch-icon ch-icon-expand"===r.className){var a,o,s=this.$getClosestNode(r,"DIV");s.parentNode.parentNode.classList.remove("cherry-code-unExpand"),s.parentNode.parentNode.classList.add("cherry-code-expand"),null!==(a=this.bubbleHandler)&&void 0!==a&&null!==(o=a.hover)&&void 0!==o&&o.unExpandDom&&this.bubbleHandler.hover.unExpandDom.classList.remove("hidden")}if(this.previewer.options.enablePreviewerBubble&&("ch-icon ch-icon-square"!==r.className&&"ch-icon ch-icon-check"!==r.className||this.$dealCheckboxClick(t),this.$removeAllPreviewerBubbles("click"),void 0!==r.tagName))switch(r.tagName){case"IMG":r instanceof HTMLImageElement&&this.$showImgPreviewerBubbles(r);break;case"TD":case"TH":if(r instanceof HTMLElement){var c=this.isCherryTable(r);if(!1===c)return;this.$showTablePreviewerBubbles("click",r,c)}break;case"svg":"MJX-CONTAINER"===(null==r||null===(e=r.parentElement)||void 0===e?void 0:e.tagName)&&this.$showFormulaPreviewerBubbles("click",r,{x:t.pageX,y:t.pageY});break;case"A":t.stopPropagation();break;case"P":r instanceof HTMLParagraphElement&&r.parentElement instanceof HTMLLIElement&&!1===this.$getClosestNode(r,"BLOCKQUOTE")&&(0!==r.children.length&&(t.preventDefault(),t.stopPropagation()),r.setAttribute("contenteditable","true"),r.focus(),this.$showListPreviewerBubbles("click",r))}}}},{key:"$onChange",value:function(t){}},{key:"$getClosestNode",value:function(t,e){return t.tagName===e?t:"BODY"!==t.parentNode.tagName&&this.$getClosestNode(t.parentNode,e)}},{key:"$removeAllPreviewerBubbles",value:function(){var t,e,n,r,i=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Qs(t=Qi(e=Px(this.bubble)).call(e,(function(t){var e=xf(t,1)[0];return!a||a===e}))).call(t,(function(t){var e=xf(t,2),n=e[0];e[1].remove(),delete i.bubble[n]})),Qs(n=Qi(r=Px(this.bubbleHandler)).call(r,(function(t){var e=xf(t,1)[0];return!a||a===e}))).call(n,(function(t){var e=xf(t,2),n=e[0];e[1].emit("remove"),delete i.bubbleHandler[n]})),Is(this.bubbleHandler).length<=0&&(this.previewer.$cherry.wrapperDom.style.overflow=this.oldWrapperDomOverflow||"")}},{key:"$showTablePreviewerBubbles",value:function(t,e,n){if(this.bubbleHandler[t]&&this.bubbleHandler[t].tableElement===n)this.bubbleHandler[t].showBubble();else{this.$createPreviewerBubbles(t,"click"===t?"table-content-handler":"table-hover-handler");var r=new qx(t,e,this.bubble[t],this.previewerDom,this.editor.editor,n,this.previewer.$cherry);r.showBubble(),this.bubbleHandler[t]=r}}},{key:"showCodeBlockPreviewerBubbles",value:function(t,e){if(this.bubbleHandler[t]&&this.bubbleHandler[t].target===e)this.removeHoverBubble.cancel();else{this.$removeAllPreviewerBubbles("hover"),this.$createPreviewerBubbles(t,"codeBlock-".concat(t,"-handler"));var n=new SB(t,e,this.bubble[t],this.previewerDom,this.editor.editor,this);n.showBubble(this.$isEnableBubbleAndEditorShow()),this.bubbleHandler[t]=n}}},{key:"$showImgPreviewerBubbles",value:function(t){var e;this.$createPreviewerBubbles();var n=Nh(this.previewerDom.querySelectorAll("img"));if(this.totalImgs=n.length,this.imgIndex=Ef(n).call(n,t),!this.beginChangeImgValue(t))return{emit:function(){}};Qx.showBubble(t,this.bubble.click,this.previewerDom),Qx.bindChange(fs(e=this.changeImgValue).call(e,this)),this.bubbleHandler.click=Qx}},{key:"$showFormulaPreviewerBubbles",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$createPreviewerBubbles(t,"formula-hover-handler");var r=new WB(t,e,this.bubble[t],this.previewerDom,this.editor);r.showBubble((null==n?void 0:n.x)||0,(null==n?void 0:n.y)||0),this.bubbleHandler[t]=r}},{key:"$showListPreviewerBubbles",value:function(t,e){this.$createPreviewerBubbles(t,"list-hover-handler");var n=new n_(t,e,this.bubble[t],this.previewerDom,this.editor);this.bubbleHandler[t]=n}},{key:"beginChangeDrawioImg",value:function(t){var e,n=Nh(this.previewerDom.querySelectorAll('img[data-type="drawio"]')),r=n.length,i=Ef(n).call(n,t),a=Rd(this.editor.editor.getValue()),o=a.match(Pd),s=o[i]?mh(e=o[i].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(e):"";if(o.length===r||t.getAttribute("src")===s)for(var c=a.split(Pd),l=0,u=0,h=0,f=0,d=0;d<c.length;d++){var A=c[d];if(A===o[f]){if(f===i)return h=u+A.length,u+=A.replace(/^(!\[[^\]]*])[^\n]*$/,"$1").length,this.editor.editor.setSelection({line:l,ch:u},{line:l,ch:h}),this.editor.dealSpecialWords(),!0;f+=1}else{var g,p;l+=null!==(g=null===(p=A.match(/\n/g))||void 0===p?void 0:p.length)&&void 0!==g?g:0,/\n/.test(A)?u=A.replace(/^[\w\W]*\n([^\n]*)$/,"$1").length:u+=A.length}}return!1}},{key:"beginChangeImgValue",value:function(t){var e,n=Rd(this.editor.editor.getValue()),r=t.getAttribute("src"),i=/(!\[[^\n]*?\]\([^)]+\))/g,a=n.match(i),o=a[this.imgIndex]?mh(e=a[this.imgIndex].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(e):"";if(a.length===this.totalImgs||r===o)for(var s=n.split(i),c=/^!\[.*?((?:#center|#right|#left|#float-right|#float-left|#border|#B|#shadow|#S|#radius|#R)+).*?\].*$/,l=0,u=0,h=0,f=0,d=0;d<s.length;d++){var A,g,p=s[d];if(p===a[f]){if(f===this.imgIndex)return this.imgAppend=!!c.test(p)&&p.replace(c,"$1"),h=(u+=p.replace(/^(!\[[^#\]]*).*$/,"$1").length)+p.replace(/^(!\[[^#\]]*)([^\]]*?)\].*$/,"$2").length,this.editor.editor.setSelection({line:l,ch:u},{line:l,ch:h}),!0;f+=1}l+=null!==(A=null===(g=p.match(/\n/g))||void 0===g?void 0:g.length)&&void 0!==A?A:0,/\n/.test(p)?u=p.replace(/^[\w\W]*\n([^\n]*)$/,"$1").length:u+=p.length}return!1}},{key:"changeImgValue",value:function(t,e){var n,r,i=this.imgAppend?" ".concat(this.imgAppend):"";this.editor.editor.replaceSelection(hs(n=hs(r="#".concat(Math.round(e.width),"px #")).call(r,Math.round(e.height),"px")).call(n,i),"around")}},{key:"$createPreviewerBubbles",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"click",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"img-size-handler";this.bubble[t]||(this.bubble[t]=document.createElement("div"),this.bubble[t].className="cherry-previewer-".concat(e),this.previewerDom.after(this.bubble[t]),"hover"===t&&(this.bubble[t].addEventListener("mouseover",this.removeHoverBubble.cancel),this.bubble[t].addEventListener("mouseout",this.removeHoverBubble)),this.previewer.$cherry.wrapperDom.style.overflow="hidden")}},{key:"$showBorderBubbles",value:function(){}},{key:"$showBtnBubbles",value:function(){}}])}(),i_=H.setInterval,a_=function(){return Ho((function t(e,n){ra(this,t),cs(this,"options",{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(t){},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}),Ss(this.options,e),this.previewer=n,this.srcLoadedList=[],this.srcFailLoadedList={},this.srcLoadingList=[],this.srcList=[],this.loadingImgNum=0,this.lastLoadAllNum=0,this.previewerDom=this.previewer.getDomContainer()}),[{key:"isLoaded",value:function(t){var e;return Iv(e=this.srcLoadedList).call(e,t)}},{key:"isLoading",value:function(t){var e;return Iv(e=this.srcLoadingList).call(e,t)}},{key:"loadFailed",value:function(t){this.srcFailLoadedList[t]=this.srcFailLoadedList[t]?this.srcFailLoadedList[t]+1:1}},{key:"isFailLoadedMax",value:function(t){return this.srcFailLoadedList[t]&&this.srcFailLoadedList[t]>this.options.maxTryTimesPerSrc}},{key:"isLoadedAllDone",value:function(){var t=this.previewerDom.querySelectorAll("img[data-src]"),e=this.srcLoadedList.length;return t.length<=0&&this.lastLoadAllNum<e&&(this.lastLoadAllNum=e,this.options.afterLoadAllImgCallback(),!0)}},{key:"loadOneImg",value:function(){for(var t,e,n,r=this,i=this.previewerDom.querySelectorAll("img[data-src]"),a=this.previewerDom.getBoundingClientRect(),o=a.height,s=a.top,c=o+s+100,l=null!==(t=null===(e=window)||void 0===e?void 0:e.innerHeight)&&void 0!==t?t:100,u=Math.min(c,l),h=s-30,f=this.options.autoLoadImgNum,d=function(){var t=i[A],e=t.getBoundingClientRect(),n=e.top>=h&&e.top<=u,a=r.srcList.length<f;if(!n&&!a)return 0;var o=t.getAttribute("data-src");if(!o)return 0;if((r.isLoaded(o)||r.isFailLoadedMax(o))&&(t.setAttribute("src",o),t.removeAttribute("data-src")),r.isLoading(o))return 0;if(r.loadingImgNum>=r.options.maxNumPerTime)return{v:!1};var s,c=r.options.beforeLoadOneImgCallback(t);if(void 0!==c&&!c)return r.loadFailed(o),0;o=null!==(s=t.getAttribute("data-src"))&&void 0!==s?s:o,r.loadingImgNum+=1,r.srcList.push(o),r.srcLoadingList.push(o),r.tryLoadOneImg(o,(function(){var e,n;t.setAttribute("src",o),t.removeAttribute("data-src"),r.srcLoadedList.push(o),r.loadingImgNum-=1,eA(e=r.srcLoadingList).call(e,Ef(n=r.srcLoadingList).call(n,o),1),r.options.afterLoadOneImgCallback(t),r.loadOneImg()}),(function(){var e,n;r.loadFailed(o),r.loadingImgNum-=1,eA(e=r.srcLoadingList).call(e,Ef(n=r.srcLoadingList).call(n,o),1),r.options.failLoadOneImgCallback(t),r.loadOneImg()}))},A=0;A<i.length;A++)if(0!==(n=d())&&n)return n.v;return!1}},{key:"tryLoadOneImg",value:function(t,e,n){var r=document.createElement("img");r.onload=function(){e(),r.remove()},r.onerror=function(){n(),r.remove()},r.setAttribute("src",t)}},{key:"doLazyLoad",value:function(){var t=this;if(!this.isRunning){this.isRunning=!0;var e=this.options.maxNumPerTime;!function n(){t.loadOneImg();for(var r=1;r<e;r++)t.loadOneImg();ks(n,200)}(),i_((function(){t.isLoadedAllDone()}),1e3)}}},{key:"changeDataSrc2Src",value:function(t){var e=this;return t.replace(/<img ([^>]*?)data-src="([^"]+)"([^>]*?)>/g,(function(t,n,r,i){var a,o;return hs(a=hs(o="<img ".concat(e.$removeSrc(n),' src="')).call(o,r,'" ')).call(a,e.$removeSrc(i),">").replace(/ {2,}/g," ")}))}},{key:"changeLoadedDataSrc2Src",value:function(t){var e=this;return t.replace(/<img ([^>]*?)data-src="([^"]+)"([^>]*?)>/g,(function(t,n,r,i){var a,o;return e.isLoaded(r)?hs(a=hs(o="<img ".concat(e.$removeSrc(n),' src="')).call(o,r,'" ')).call(a,e.$removeSrc(i),">").replace(/ {2,}/g," "):t}))}},{key:"$removeSrc",value:function(t){return" ".concat(t).replace(/^(.*?) src=".*?"(.*?$)/,"$1$2")}},{key:"changeSrc2DataSrc",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.options.loadingImgPath,i=this.options.noLoadImgNum,a=0;return t.replace(/<img ([^>]*?)src="([^"]+)"([^>]*?)>/g,(function(t,o,s,c){var l,u,h,f,d;if(/data-src="/.test(t)||!/ src="/.test(t)||i<0)return t;if(!1===n){if(a<i)return a+=1,t;if(e.isLoaded(s))return t}return r?hs(h=hs(f=hs(d="<img ".concat(o,'src="')).call(d,r,'" data-src="')).call(f,s,'"')).call(h,c,">"):hs(l=hs(u="<img ".concat(o,'data-src="')).call(u,s,'"')).call(l,c,">")}))}}])}(),o_=function(){},s_=function(){return Ho((function t(e){ra(this,t),cs(this,"applyingDomChanges",!1),cs(this,"syncScrollLockTimer",0),cs(this,"isMobilePreview",!1),this.options={previewerDom:document.createElement("div"),virtualDragLineDom:document.createElement("div"),editorMaskDom:document.createElement("div"),previewerMaskDom:document.createElement("div"),minBlockPercentage:.2,value:"",enablePreviewerBubble:!0,floatWhenClosePreviewer:!1,afterUpdateCallBack:[],isPreviewOnly:!1,previewerCache:{html:"",htmlChanged:!1,layout:{}},lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(t){},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}},Ss(this.options,e),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId(),this.animation={}}),[{key:"init",value:function(t){this.disableScrollListener=!1,this.bindScroll(),this.editor=t,this.bindDrag(),this.$initPreviewerBubble(),this.lazyLoadImg=new a_(this.options.lazyLoadImg,this),this.lazyLoadImg.doLazyLoad(),this.bindClick(),this.onMouseDown(),this.onSizeChange()}},{key:"onSizeChange",value:function(){var t=this;new ResizeObserver((function(){t.syncVirtualLayoutFromReal()})).observe(this.$cherry.wrapperDom)}},{key:"$initPreviewerBubble",value:function(){this.previewerBubble=new r_(this)}},{key:"getDomContainer",value:function(){return this.isMobilePreview?this.options.previewerDom.querySelector(".cherry-mobile-previewer-content"):this.options.previewerDom}},{key:"getDom",value:function(){return this.options.previewerDom}},{key:"getValue",value:function(){var t,e,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r="";if(r=this.isPreviewerHidden()?this.options.previewerCache.html:this.getDomContainer().innerHTML,r=this.lazyLoadImg.changeDataSrc2Src(r),!n||!this.$cherry.wrapperDom)return r;var i=this.$cherry.wrapperDom.getAttribute("data-inline-code-theme"),a=this.$cherry.wrapperDom.getAttribute("data-code-block-theme");return hs(t=hs(e='<div data-inline-code-theme="'.concat(i,'" data-code-block-theme="')).call(e,a,'">')).call(t,r,"</div>")}},{key:"isPreviewerHidden",value:function(){return this.options.previewerDom.classList.contains("cherry-previewer--hidden")}},{key:"isPreviewerFloat",value:function(){var t=this.$cherry.cherryDom.querySelector(".float-previewer-wrap");return this.$cherry.cherryDom.contains(t)}},{key:"isPreviewerNeedFloat",value:function(){return this.options.floatWhenClosePreviewer}},{key:"calculateRealLayout",value:function(t){var e=+(t/(this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width)).toFixed(3);e<this.options.minBlockPercentage?e=+this.options.minBlockPercentage.toFixed(3):e>1-this.options.minBlockPercentage&&(e=+(1-this.options.minBlockPercentage).toFixed(3));var n=+(1-e).toFixed(3);return{editorPercentage:"".concat(100*e,"%"),previewerPercentage:"".concat(100*n,"%")}}},{key:"setRealLayout",value:function(t,e){var n=t,r=e;n&&r||(n="50%",r="50%"),this.editor.options.editorDom.style.width=n,this.options.previewerDom.style.width=r,this.syncVirtualLayoutFromReal()}},{key:"syncVirtualLayoutFromReal",value:function(){var t=this.editor.options.editorDom.getBoundingClientRect(),e=this.options.previewerDom.getBoundingClientRect(),n=t.height,r=this.editor.options.editorDom.offsetTop,i=t.left,a=t.width,o=e.left?e.left-i:0,s=e.width||0,c=this.options,l=c.editorMaskDom,u=c.previewerMaskDom,h=c.virtualDragLineDom;this.$tryChangeValue(h,"top","".concat(r,"px")),this.$tryChangeValue(h,"left","".concat(o,"px")),this.$tryChangeValue(h,"bottom","0px"),this.$tryChangeValue(l,"height","".concat(n,"px")),this.$tryChangeValue(l,"top","".concat(r,"px")),this.$tryChangeValue(l,"left","0px"),this.$tryChangeValue(l,"width","".concat(a,"px")),this.$tryChangeValue(u,"height","".concat(n,"px")),this.$tryChangeValue(u,"top","".concat(r,"px")),this.$tryChangeValue(u,"left","".concat(o,"px")),this.$tryChangeValue(u,"width","".concat(s,"px"))}},{key:"$tryChangeValue",value:function(t,e,n){t.style[e]!==n&&(t.style[e]=n)}},{key:"calculateVirtualLayout",value:function(t,e){var n=this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width,r=t.toFixed(0),i=e-t;i<n*this.options.minBlockPercentage?i=+(n*this.options.minBlockPercentage).toFixed(0):i>n*(1-this.options.minBlockPercentage)&&(i=+(n*(1-this.options.minBlockPercentage)).toFixed(0));var a=n-i;return{startWidth:Ff(r,10),leftWidth:i,rightWidth:a}}},{key:"setVirtualLayout",value:function(t,e,n){var r=this.options,i=r.editorMaskDom,a=r.previewerMaskDom,o=r.virtualDragLineDom;i.style.left="".concat(0,"px"),i.style.width="".concat(e,"px"),o.style.left="".concat(0+e,"px"),a.style.left="".concat(0+e,"px"),a.style.width="".concat(n,"px")}},{key:"bindDrag",value:function(){var t,e=this,n=function(t){t&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():window.event.returnValue=!1;var n=e.editor.options.editorDom.getBoundingClientRect().left,r=t.clientX,i=e.calculateVirtualLayout(n,r);return e.setVirtualLayout(i.startWidth,i.leftWidth,i.rightWidth),!1},r=function t(r){r&&r.stopPropagation?r.stopPropagation():r.cancelBubble=!0,r.preventDefault?r.preventDefault():window.event.returnValue=!1;var i=e.editor.options.editorDom.getBoundingClientRect().left,a=r.clientX,o=e.calculateRealLayout(a-i);return e.setRealLayout(o.editorPercentage,o.previewerPercentage),e.editor.options.editorDom.classList.remove("no-select"),e.options.previewerDom.classList.remove("no-select"),e.options.editorMaskDom.classList.remove("cherry-editor-mask--show"),e.options.previewerMaskDom.classList.remove("cherry-previewer-mask--show"),e.options.virtualDragLineDom.classList.remove("cherry-drag--show"),e.editor.editor.refresh(),rd(document,"mousemove",n,!1),rd(document,"mouseup",t,!1),!1};nd(this.options.virtualDragLineDom,"mousedown",(function(t){t&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():window.event.returnValue=!1,e.syncVirtualLayoutFromReal();var i=e.editor.options.editorDom.getBoundingClientRect().left,a=t.clientX,o=e.calculateVirtualLayout(i,a);return e.setVirtualLayout(o.startWidth,o.leftWidth,o.rightWidth),e.options.virtualDragLineDom.classList.contains("cherry-drag--show")||(e.options.virtualDragLineDom.classList.add("cherry-drag--show"),e.options.editorMaskDom.classList.add("cherry-editor-mask--show"),e.options.previewerMaskDom.classList.add("cherry-previewer-mask--show"),e.options.previewerDom.classList.add("no-select"),e.editor.options.editorDom.classList.add("no-select"),nd(document,"mousemove",n,!1),nd(document,"mouseup",r,!1)),!1}),!1),nd(window,"resize",fs(t=this.syncVirtualLayoutFromReal).call(t,this),!1),this.setRealLayout()}},{key:"bindScroll",value:function(){var t=this,e=this.getDomContainer();o_=function(){if(t.applyingDomChanges)id.log(new Date,"sync scroll locked");else if(t.disableScrollListener)t.disableScrollListener=!1;else if(e.scrollTop<=0)t.editor.scrollToLineNum(0,0,1);else if(e.scrollTop+e.offsetHeight+10>e.scrollHeight)t.editor.scrollToLineNum(null);else{for(var n,r=e.getBoundingClientRect(),i={x:r.left+r.width/2,y:r.top+1},a=function(t,e){if("function"==typeof document.elementsFromPoint)return document.elementsFromPoint(t,e);if("function"==typeof document.msElementsFromPoint){var n=document.msElementsFromPoint(t,e);return null!==n?Nh(n):n}var r,i=[],a=[];do{var o=document.elementFromPoint(t,e);r!==o?(r=o,i.push(r),a.push(r.style.pointerEvents),r.style.pointerEvents="none"):r=null}while(r);return Qs(i).call(i,(function(t,e){t.style.pointerEvents=a[e]})),i}(i.x,i.y),o=0;o<a.length;o++)if(e.contains(a[o])){n=a[o];break}if(n&&n!==e){for(var s=n.closest("[data-sign]");s&&s.parentElement&&s.parentElement!==e;)s=s.parentElement.closest("[data-sign]");if(s){for(var c=0,l=s;l;)c+=+l.getAttribute("data-lines"),l=l.previousElementSibling;var u=getComputedStyle(s),h=Wf(u.marginTop),f=Wf(u.marginBottom),d=s.getBoundingClientRect(),A=d.height+h+f,g=d.y-h-r.y,p=+s.getAttribute("data-lines"),m=100*Math.abs(g)/A/100;return t.editor.scrollToLineNum(c-p,p,m)}}}},nd(e,"scroll",o_,!1),nd(e,"wheel",(function(){t.disableScrollListener=!1,cancelAnimationFrame(t.animation.timer),t.animation.timer=0}),!1)}},{key:"removeScroll",value:function(){rd(this.getDomContainer(),"scroll",o_,!1)}},{key:"$html2H",value:function(t){if(void 0===t)return Zy("span",{},[]);if(!t.tagName)return t.textContent;var e=t.tagName,n="true"===t.getAttribute("data-cm-atomic"),r=this.$getAttrsForH(t.attributes),i=[];if(!n&&t.childNodes&&t.childNodes.length>0)for(var a=0;a<t.childNodes.length;a++)i.push(this.$html2H(t.childNodes[a]));return Zy(e,r,i)}},{key:"$getAttrsForH",value:function(t){if(!t)return{};for(var e={dataset:{}},n=0;n<t.length;n++){var r,i=t[n].name,a=t[n].value;if(/^(width|height)$/i.test(i)&&isNaN(a))e.style=e.style?e.style:[],e.style.push(hs(r="".concat(i,":")).call(r,a));else/^(class|id|href|rel|target|src|title|controls|align|width|height|style|open|contenteditable)$/i.test(i)?"style"===(i="contenteditable"===(i="class"===i?"className":i)?"contentEditable":i)?(e.style=e.style?e.style:[],e.style.push(a)):e[i]="open"===i||a:("colspan"===i?i="colSpan":"rowspan"===i&&(i="rowSpan"),/^data-/i.test(i)?i=i.replace(/^data-/i,""):e[i]=a,e.dataset[i]=a)}return e.style&&(e.style={cssText:e.style.join(";")}),e}},{key:"$updateDom",value:function(t,e){var n=bw(this.$html2H(e),this.$html2H(t));return Rw(e,n)}},{key:"$testChild",value:function(t){return!t.parentNode||(!!t.parentNode.classList.contains("cherry-previewer")||!t.parentNode.getAttribute("data-sign")&&this.$testChild(t.parentNode))}},{key:"_testMaxIndex",value:function(t,e){if(!e)return!1;for(var n=0;n<e.length;n++)if(t<=e[n])return!0;return!1}},{key:"$getSignData",value:function(t){for(var e=t.querySelectorAll("[data-sign]"),n={list:[],signs:{}},r=0;r<e.length;r++)if(this.$testChild(e[r])){var i=e[r].getAttribute("data-sign");n.list.push({sign:i,dom:e[r]}),n.signs[i]||(n.signs[i]=[]),n.signs[i].push(r)}return n}},{key:"_hasNewSign",value:function(t,e,n){var r;return t.length>0&&(Qs(t).call(t,(function(t,i){var a;Bf(a=t.sign).call(a,0,12)===Bf(e).call(e,0,12)&&i>n&&(r={index:i>n?i:n,sign:e})})),r)}},{key:"$dealWithMyersDiffResult",value:function(t,e,n,r){var i=this;Qs(t).call(t,(function(t){switch(n[t.newIndex].dom&&(n[t.newIndex].dom.innerHTML=i.lazyLoadImg.changeLoadedDataSrc2Src(n[t.newIndex].dom.innerHTML)),t.type){case"delete":r.removeChild(e[t.oldIndex].dom);break;case"insert":e[t.oldIndex]?r.insertBefore(n[t.newIndex].dom,e[t.oldIndex].dom):r.appendChild(n[t.newIndex].dom);break;case"update":try{var a=!1;if("cherry-table-container"===n[t.newIndex].dom.className&&n[t.newIndex].dom.querySelector(".cherry-table-figure")&&e[t.oldIndex].dom.querySelector(".cherry-table-figure"))e[t.oldIndex].dom.querySelector(".cherry-table-figure").replaceWith(n[t.newIndex].dom.querySelector(".cherry-table-figure")),e[t.oldIndex].dom.dataset.sign=n[t.oldIndex].dom.dataset.sign,i.$updateDom(n[t.newIndex].dom.querySelector(".cherry-table"),e[t.oldIndex].dom.querySelector(".cherry-table")),a=!0;else if(n[t.newIndex].dom.querySelector("svg"))throw new Error;a||i.$updateDom(n[t.newIndex].dom,e[t.oldIndex].dom)}catch(i){r.insertBefore(n[t.newIndex].dom,e[t.oldIndex].dom),r.removeChild(e[t.oldIndex].dom)}}}))}},{key:"$dealUpdate",value:function(t,e,n){if(n.list!==e.list)if(n.list.length&&e.list.length){var r=new Qw(n.list,e.list,(function(t,e){return t[e].sign})).doDiff();id.log(r),this.$dealWithMyersDiffResult(r,e.list,n.list,t)}else if(n.list.length&&!e.list.length){var i;id.log("add all"),Qs(i=n.list).call(i,(function(e){t.appendChild(e.dom)}))}else if(!n.list.length&&e.list.length){var a;id.log("delete all"),Qs(a=e.list).call(a,(function(e){t.removeChild(e.dom)}))}}},{key:"refresh",value:function(t){this.getDomContainer().innerHTML=t}},{key:"update",value:function(t){var e=this,n=this.lazyLoadImg.changeSrc2DataSrc(t);if(this.isPreviewerHidden())this.doHtmlCache(n);else{window.clearTimeout(this.syncScrollLockTimer),this.applyingDomChanges=!0;var r=document.createElement("div"),i=this.getDomContainer();this.editor.selectAll&&(i.innerHTML=""),r.innerHTML=n;var a=this.$getSignData(r),o=this.$getSignData(i);try{this.$dealUpdate(i,o,a),this.afterUpdate()}finally{this.syncScrollLockTimer=ks((function(){e.applyingDomChanges=!1}),50)}}}},{key:"$dealEditAndPreviewOnly",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={editorPercentage:"0%",previewerPercentage:"100%"};e&&(n={editorPercentage:"100%",previewerPercentage:"0%"});var r=this.editor.options.editorDom.getBoundingClientRect().width,i=this.calculateRealLayout(r);this.options.previewerCache.layout=i,this.setRealLayout(n.editorPercentage,n.previewerPercentage),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden");var a=this.options.previewerDom,o=this.editor.options.editorDom;e?(a.classList.add("cherry-previewer--hidden"),o.classList.add("cherry-editor--full"),a.classList.remove("cherry-preview--full"),o.classList.remove("cherry-editor--hidden")):(a.classList.add("cherry-preview--full"),o.classList.add("cherry-editor--hidden"),a.classList.remove("cherry-previewer--hidden"),o.classList.remove("cherry-editor--full")),ks((function(){return t.editor.editor.refresh()}),0)}},{key:"previewOnly",value:function(){this.$dealEditAndPreviewOnly(!1),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),this.$cherry.$event.emit("previewerOpen"),this.$cherry.$event.emit("editorClose")}},{key:"editOnly",value:function(){this.$dealEditAndPreviewOnly(!0),this.cleanHtmlCache(),this.$cherry.$event.emit("previewerClose"),this.$cherry.$event.emit("editorOpen")}},{key:"floatPreviewer",value:function(){var t="100%",e="100%",n=this.editor.options.editorDom.getBoundingClientRect().width,r=this.calculateRealLayout(n);this.options.previewerCache.layout=r,this.setRealLayout(t,e),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden"),this.$cherry.createFloatPreviewer()}},{key:"recoverFloatPreviewer",value:function(){this.recoverPreviewer(!0),this.$cherry.clearFloatPreviewer()}},{key:"recoverPreviewer",value:function(){var t=this;this.options.previewerDom.classList.remove("cherry-previewer--hidden"),this.options.virtualDragLineDom.classList.remove("cherry-drag--hidden"),this.editor.options.editorDom.classList.remove("cherry-editor--full");var e=this.options.previewerCache.layout;this.setRealLayout(e.editorPercentage,e.previewerPercentage),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),this.$cherry.$event.emit("previewerOpen"),this.$cherry.$event.emit("editorOpen"),ks((function(){return t.editor.editor.refresh()}),0)}},{key:"doHtmlCache",value:function(t){this.options.previewerCache.html=t,this.options.previewerCache.htmlChanged=!0}},{key:"cleanHtmlCache",value:function(){this.options.previewerCache.html="",this.options.previewerCache.htmlChanged=!1,this.options.previewerCache.layout={}}},{key:"afterUpdate",value:function(){var t;lA(t=this.options.afterUpdateCallBack).call(t,(function(t){return t()})),void 0===this.highlightLineNum&&(this.highlightLineNum=0),this.highlightLine(this.highlightLineNum)}},{key:"registerAfterUpdate",value:function(t){if(sd(t)){var e;this.options.afterUpdateCallBack=hs(e=this.options.afterUpdateCallBack).call(e,t)}else{if(!t)throw new Error("[markdown error]: Previewer registerAfterUpdate params are undefined");this.options.afterUpdateCallBack.push(t)}}},{key:"$getTopByLineNum",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getDomContainer();if(null===t)return n.scrollHeight;for(var r="number"==typeof t?t:Ff(t,10),i=n.querySelectorAll("[data-sign]"),a=0,o=n.offsetTop,s=0;s<i.length;s++)if(i[s].parentNode===n){var c=Ff(i[s].getAttribute("data-lines"),10);if(!(a+c<r)){var l=Yf(i[s]),u=l.height,h=l.offsetTop-o,f=h+u*e;return c>1&&(f=h+(c-Math.abs(r-(a+c))-1)/c*u+u/c*e),f}a+=c}return n.scrollHeight}},{key:"highlightLine",value:function(t){var e,n,r,i,a,o=this.getDomContainer();if(Qs(e=o.querySelectorAll(".cherry-highlight-line")).call(e,(function(t){t.classList.remove("cherry-highlight-line")})),"show"===(null===(n=this.$cherry)||void 0===n||null===(r=n.status)||void 0===r?void 0:r.previewer)&&"show"===(null===(i=this.$cherry)||void 0===i||null===(a=i.status)||void 0===a?void 0:a.editor))for(var s=o.querySelectorAll("[data-sign]"),c=0,l=0;l<s.length;l++)if(s[l].parentNode===o){var u=Ff(s[l].getAttribute("data-lines"),10);if(!(c+u<t))return this.highlightLineNum=t,void s[l].classList.add("cherry-highlight-line");c+=u}}},{key:"scrollToLineNumWithOffset",value:function(t,e){var n=this.$getTopByLineNum(t)-e;this.$scrollAnimation(n),this.highlightLine(t)}},{key:"scrollToId",value:function(t){var e,n,r=this.getDomContainer(),i=this.getDomCanScroll(r),a=mh(e=t.replace(/^\s*#/,"")).call(e);a=/[%:]/.test(a)?a:encodeURIComponent(a);var o=null!==(n=r.querySelector('[id="'.concat(a,'"]')))&&void 0!==n&&n;if(!1===o)return!1;var s=0;s="HTML"===i.nodeName?i.scrollTop+o.getBoundingClientRect().y-20:i.scrollTop+o.getBoundingClientRect().y-i.getBoundingClientRect().y-20,i.scrollTo({top:s,left:0,behavior:"smooth"})}},{key:"$scrollAnimation",value:function(t){var e=this;if(this.animation.destinationTop=t,!this.animation.timer){this.animation.timer=requestAnimationFrame((function t(){var n=e.getDomContainer(),r=n.scrollTop,i=e.animation.destinationTop-r,a=Math.ceil(Math.min(Math.abs(i),Math.max(1,Math.abs(i)/(100/16.7))));if(0===i||r>=n.scrollHeight||a>Math.abs(i))return cancelAnimationFrame(e.animation.timer),void(e.animation.timer=0);e.disableScrollListener=!0,e.getDomContainer().scrollTo(null,r+i/Math.abs(i)*a),e.animation.timer=requestAnimationFrame(t)}))}}},{key:"scrollToLineNum",value:function(t,e){var n=this.$getTopByLineNum(t,e);this.$scrollAnimation(n)}},{key:"getDomCanScroll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getDomContainer();return t.scrollHeight>t.clientHeight||t.clientHeight<window.innerHeight?t:t.parentElement?"BODY"===t.nodeName?document.documentElement.scrollHeight>document.documentElement.clientHeight?document.documentElement:t:this.getDomCanScroll(t.parentElement):void 0}},{key:"scrollToHeadByIndex",value:function(t){var e,n=this.getDomContainer(),r=this.getDomCanScroll(n),i=null!==(e=n.querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8")[t])&&void 0!==e&&e,a=0;!1!==i&&(a="HTML"===r.nodeName?r.scrollTop+i.getBoundingClientRect().y-10:r.scrollTop+i.getBoundingClientRect().y-r.getBoundingClientRect().y-10,r.scrollTo({top:a,left:0,behavior:"smooth"}))}},{key:"bindClick",value:function(){var t=this;this.getDomContainer().addEventListener("click",(function(e){var n;if(t.$cherry.options.callback.onClickPreview){var r=t.$cherry.options.callback.onClickPreview(e);if(!1===r)return r}if(!1===(null===(n=t.$cherry.options.toolbars.toc)||void 0===n?void 0:n.updateLocationHash)){var i=e.target;if(i instanceof Element&&"A"===i.nodeName&&/level-\d+/.test(i.className)){var a,o=i.parentElement,s=Ef(a=Nh(o.parentElement.children)).call(a,o)-1;t.scrollToHeadByIndex(s),e.stopPropagation(),e.preventDefault()}if(i instanceof Element&&"A"===i.nodeName&&/(footnote|footnote-ref)/.test(i.className)){var c=i.getAttribute("href");t.scrollToId(c),e.stopPropagation(),e.preventDefault()}}}))}},{key:"onMouseDown",value:function(){var t=this;nd(this.getDomContainer(),"mousedown",(function(){ks((function(){t.$cherry.$event.emit("cleanAllSubMenus")}))}))}},{key:"export",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e;if(!e){var r=this.getDomContainer().innerText;n=/^\s*([^\s][^\n]*)\n/.test(r)?r.match(/^\s*([^\s][^\n]*)\n/)[1]:"cherry-export"}"pdf"===t?function(t,e){var n=document.title;document.title=e,Tx(t,(function(t,e){window.print(),e(),document.title=n}))}(this.getDomContainer(),n):"screenShot"===t||"img"===t?Bx(this.getDomContainer(),n):"markdown"===t?function(t,e){var n=new Blob([t],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=xx.createObjectURL(n),r.download="".concat(e,".md"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.$cherry.getMarkdown(),n):"html"===t&&function(t,e){var n=new Blob([t],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=xx.createObjectURL(n),r.download="".concat(e,".html"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.getValue(),n)}}])}();function c_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absolute",n=t.getBoundingClientRect();return"fixed"===e?n:"sidebar"===e?{left:l_.getTargetParentByButton(t).offsetLeft-130+n.width,top:t.offsetTop+n.height/2,width:n.width,height:n.height}:{left:t.offsetLeft,top:t.offsetTop,width:n.width,height:n.height}}var l_=function(){function t(e){var n,r,i;ra(this,t),cs(this,"_onClick",void 0),this.$cherry=e,this.bubbleMenu=!1,this.subMenu=null,this.$currentMenuOptions=e.$currentMenuOptions,this.name=null!==(n=null===(r=e.$currentMenuOptions)||void 0===r?void 0:r.name)&&void 0!==n?n:"","string"==typeof(null===(i=e.$currentMenuOptions)||void 0===i?void 0:i.icon)&&(this.iconName=e.$currentMenuOptions.icon),this.iconType=null,this.editor=e.editor,this.locale=e.locale,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.noIcon=!1,this.cacheOnce=!1,this.positionModel="absolute","function"==typeof this._onClick&&(id.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"),this.fire=this._onClick),this.shortcutKeyMap={}}return Ho(t,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(t,e){this.name=t,this.iconName=e,this.$currentMenuOptions={name:t,icon:e}}},{key:"setCacheOnce",value:function(t){this.cacheOnce=t}},{key:"getAndCleanCacheOnce",value:function(){this.updateMarkdown=!0;var t=this.cacheOnce;return this.cacheOnce=!1,t}},{key:"hasCacheOnce",value:function(){return!1!==this.cacheOnce}},{key:"createIconFontIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Zf("i","ch-icon ch-icon-".concat(t));return"string"==typeof(null==e?void 0:e.className)&&n.classList.add(e.className),n}},{key:"createSvgIcon",value:function(t){if("svg"!==t.type)throw new Error('except options.type is "svg", but get "${options.type}"');try{var e,n=null===(e=(new DOMParser).parseFromString(t.content,"image/svg+xml"))||void 0===e?void 0:e.lastElementChild;return t.iconStyle&&n.setAttribute("style",t.iconStyle),t.iconClassName&&n.setAttribute("class",t.iconClassName),n}catch(t){throw new Ap(t)}}},{key:"createImageIcon",value:function(t){if("image"!==t.type)throw new Error('except options.type is "image", but get "${options.type}"');return Zf("img","ch-icon".concat(t.iconClassName?" ".concat(t.iconClassName):""),{src:t.content,style:t.iconStyle})}},{key:"createBtn",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=Zf("span",t?"cherry-dropdown-item":"cherry-toolbar-button cherry-toolbar-".concat(this.iconName?this.iconName:this.name),{title:this.locale[this.name]||$A(this.name)});if(!this.noIcon){var n=null,r=this.$currentMenuOptions.icon;if("string"==typeof r)n=this.createIconFontIcon(this.iconName!==this.name?this.iconName:r),this.iconType="iconfont";else if(r instanceof HTMLElement)n=r,this.iconType="element";else if("object"===Ro(r)){var i=r.type;if("svg"===i)n=this.createSvgIcon(r),this.iconType="svg";else if("image"===i)n=this.createImageIcon(r),this.iconType="image";else{if("iconfont"!==i)throw new Error('except customIcon.type is "svg", "image", "iconfont", but get "'.concat(i,'"'));n=this.createIconFontIcon(r.content),this.iconType="iconfont"}}null!==n&&(n.classList.add("cherry-menu-".concat(this.name)),e.appendChild(n))}return(t||this.noIcon)&&(e.innerHTML+=this.locale[this.name]||$A(this.name)),t||this.dom||(this.dom=e),e}},{key:"createSubBtnByConfig",value:function(t){var e=t.name,n=t.iconName,r=t.icon,i=t.onclick,a=Zf("span","cherry-dropdown-item",{title:this.locale[e]||$A(e)});if(n){var o=Zf("i","ch-icon ch-icon-".concat(n));a.appendChild(o)}else if(r){var s=Zf("img","ch-icon",{src:r,style:"width: 16px; height: 16px; vertical-align: sub;"});a.appendChild(s)}return a.innerHTML+=this.locale[e]||$A(e),a.addEventListener("click",i,!1),a}},{key:"fire",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==t||t.stopPropagation(),"function"==typeof this.onClick){var r=this.editor.editor.getSelections();this.isSelections=r.length>1;var i=lA(r).call(r,(function(r,i,a){return e.onClick(r,n,t)||a[i]}));!this.bubbleMenu&&this.updateMarkdown&&(this.editor.editor.replaceSelections(i,"around"),this.editor.editor.focus(),this.$afterClick())}}},{key:"$getSelectionRange",value:function(){var t=this.editor.editor.listSelections()[0],e=t.anchor,n=t.head;return e.line===n.line&&e.ch>n.ch||e.line>n.line?{begin:n,end:e}:{begin:e,end:n}}},{key:"registerAfterClickCb",value:function(t){this.afterClickCb=t}},{key:"$afterClick",value:function(){"function"!=typeof this.afterClickCb||this.isSelections||(this.afterClickCb(),this.afterClickCb=null)}},{key:"setLessSelection",value:function(t,e){var n,r,i,a,o=this.editor.editor,s=this.$getSelectionRange(),c=s.begin,l=s.end,u={line:(null===(n=t.match(/\n/g))||void 0===n?void 0:n.length)>0?c.line+t.match(/\n/g).length:c.line,ch:(null===(r=t.match(/\n/g))||void 0===r?void 0:r.length)>0?t.replace(/^[\s\S]*?\n([^\n]*)$/,"$1").length:c.ch+t.length},h=(null===(i=e.match(/\n/g))||void 0===i?void 0:i.length)>0?l.line-e.match(/\n/g).length:l.line,f={line:h,ch:(null===(a=e.match(/\n/g))||void 0===a?void 0:a.length)>0?o.getLine(h).length:l.ch-e.length};o.setSelection(u,f)}},{key:"getMoreSelection",value:function(t,e,n){var r=this.editor.editor,i=this.$getSelectionRange(),a=i.begin,o=i.end,s=/\n/.test(t)?0:a.ch-t.length;s=s<0?0:s;var c,l=/\n/.test(t)?a.line-t.match(/\n/g).length:a.line,u={line:l=l<0?0:l,ch:s},h=o.line,f=o.ch;/\n/.test(e)?(h=o.line+e.match(/\n/g).length,f=null===(c=r.getLine(h))||void 0===c?void 0:c.length):f=r.getLine(o.line).length<o.ch+e.length?r.getLine(o.line).length:o.ch+e.length;var d={line:h,ch:f};r.setSelection(u,d),!1===n()&&r.setSelection(a,o)}},{key:"getSelection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"word",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.editor;if(this.isSelections)return t;if(t&&!n)return t;if("line"===e){var i=this.$getSelectionRange(),a=i.begin,o=i.end;return r.setSelection({line:a.line,ch:0},{line:o.line,ch:r.getLine(o.line).length}),r.getSelection()}if("word"===e){var s=r.findWordAt(r.getCursor()),c=s.anchor,l=s.head;return r.setSelection(c,l),r.getSelection()}}},{key:"bindSubClick",value:function(t,e){return this.fire(null,t)}},{key:"onClick",value:function(t,e,n){return t}},{key:"shortcutKeys",get:function(){return[]}},{key:"updateMenuIcon",value:function(t){if(this.noIcon)return!1;var e;if("string"==typeof t)return"iconfont"===this.iconType&&(null===(e=this.dom.querySelector("i"))||void 0===e||e.classList.replace("ch-icon-".concat(this.iconName),"ch-icon-".concat(t)),this.iconName=t,this.$currentMenuOptions.icon=t,this.iconType="iconfont",!0);if(t instanceof HTMLElement)return t.classList.add("ch-icon cherry-menu-".concat(this.name)),this.dom.replaceChildren(t),this.iconType="element",!0;var n=this.iconName;switch(t.type){case"iconfont":if("iconfont"===this.iconType){var r;n=t.content,null===(r=this.dom.querySelector("i"))||void 0===r||r.classList.replace("ch-icon-".concat(this.iconName),"ch-icon-".concat(n)),this.iconName=n}else{var i=this.createIconFontIcon(t.content,{className:"cherry-menu-".concat(this.name)});t.iconClassName&&i.classList.add(t.iconClassName),t.iconStyle&&i.setAttribute("style",t.iconStyle),this.dom.replaceChildren(i)}this.iconType="iconfont";break;case"svg":this.dom.replaceChildren(this.createSvgIcon(t)),this.iconType="svg";break;case"image":this.dom.replaceChildren(this.createImageIcon(t)),this.iconType="image";break;case"element":throw Error("except the options argument instance of HTMLElement, but get a type of ".concat(Ro(t)))}}},{key:"getMenuPosition",value:function(){var e=t.getTargetParentByButton(this.dom),n=/cherry-sidebar/.test(e.className);return/cherry-bubble/.test(e.className)||/cherry-floatmenu/.test(e.className)?this.positionModel="fixed":this.positionModel=n?"sidebar":"absolute",c_(this.dom,this.positionModel)}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"show",value:function(){this.dom.style.display="block"}},{key:"getActiveSubMenuIndex",value:function(t){return-1}}],[{key:"getTargetParentByButton",value:function(t){var e=t.parentElement;return/toolbar-(left|right)/.test(e.className)&&(e=e.parentElement),e}}])}(),u_=navigator.userAgent,h_=navigator.platform;/gecko\/\d/i.test(u_);var f_=/MSIE \d/.test(u_),d_=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(u_),A_=/Edge\/(\d+)/.exec(u_);(f_||d_||A_)&&(f_?document.documentMode:(A_||d_)[1]);var g_=!A_&&/WebKit\//.test(u_);g_&&/Qt\/\d+\.\d+/.test(u_),!A_&&/Chrome\//.test(u_);var p_=/Opera\//.test(u_);/Apple Computer/.test(navigator.vendor),/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(u_),/PhantomJS/.test(u_);var m_=!A_&&/AppleWebKit/.test(u_)&&/Mobile\/\w+/.test(u_),b_=/Android/.test(u_);m_||b_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(u_);var v_=m_||/Mac/.test(h_);/\bCrOS\b/.test(u_),/win/i.test(h_);var y_,w_=p_&&u_.match(/Version\/(\d*\.\d*)/);w_&&(w_=Number(w_[1])),w_&&w_>=15&&(p_=!1,g_=!0);var k_="Shift",C_="Alt",x_=v_?"Meta":"Control",E_="Meta",T_="Enter",B_=cs(cs(cs(cs({},k_,(function(t){return{text:"⇧",tip:"Shift"}})),x_,(function(t){return t?{text:"⌃",tip:"Control"}:{text:"Ctrl",tip:"Control"}})),C_,(function(t){return t?{text:"⌥",tip:"Option"}:{text:"Alt",tip:"Alt"}})),E_,(function(t){return t?{text:"⌘",tip:"Command"}:{text:"⊞",tip:"Windows"}})),__=hs(y_=[]).call(y_,["Backspace","Clear","Copy","CrSel","Cut","Delete","EraseEof","ExSel","Insert","Paste","Redo","Undo"],["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"],[" ","Tab","Enter"]),S_=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=hs(e=[]).call(e,kp(__),kp(n)),i=[],a=t.metaKey||t.ctrlKey||t.altKey||t.shiftKey;if(Iv(r).call(r,t.key))return i;if(a&&(t.metaKey&&i.push(E_),t.ctrlKey&&i.push(x_),t.altKey&&i.push(C_),t.shiftKey&&i.push(k_)),!Iv(i).call(i,t.key)){if(Rf(t))return i.push(t.code),i;i.push(t.code)}return i},L_=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"disable";window.localStorage.setItem("".concat(t,"-disable-cherry-shortcut-key"),e)},I_=function(t){return"disable"!==window.localStorage.getItem("".concat(t,"-disable-cherry-shortcut-key"))},M_=function(t,e){if(!e||"object"!==Ro(e))throw new Error("keyMap must be a object");return window.localStorage.setItem("".concat(t,"-cherry-shortcut-keymap"),Zu(e))},O_=function(t){var e=window.localStorage.getItem("".concat(t,"-cherry-shortcut-keymap"));if(e)try{return JSON.parse(e)}catch(t){return console.error(t),null}return null},D_=function(t){if(!sd(t))throw new Error("keyStack must be a array");return t.join("-")},F_=function(t,e){if(t in B_){var n=B_[t];if("function"==typeof n)return n(e)}var r=t.replace(/Key|Digit/g,"");return{text:r,tip:r}},N_=function(t,e){if(!sd(t))throw new Error("keyStack must be a array");return D_(lA(t).call(t,(function(t){return F_(t,e).text})))},P_=function(t){if("number"==typeof t)return"Digit".concat(t);if("string"!=typeof t)throw new Error("key must be a string or number");if(t.length>1)throw new Error("key length must be 1, but get ".concat(t.length));var e=t.toUpperCase();return/\d/.test(e)?"Digit".concat(e):/[A-Z]/.test(e)?"Key".concat(e):void 0};function R_(t,e,n){return e=es(e),Ko(t,Q_()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Q_(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Q_=function(){return!!t})()}var U_=function(t){function e(t){var n,r;return ra(this,e),(r=R_(this,e,[t])).setName("bold","bold"),r.shortcutKeyMap=cs({},hs(n="".concat(x_,"-")).call(n,P_("b")),{hookName:r.name,aliasName:t.locale[r.name]}),r}return ss(e,t),Ho(e,[{key:"$testIsBold",value:function(t){return/^\s*(\*\*|__)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=this.getSelection(t)||this.locale.bold;return this.isSelections||this.$testIsBold(n)||this.getMoreSelection("**","**",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsBold(t);return r&&(n=t),r})),this.$testIsBold(n)?n.replace(/(^)(\s*)(\*\*|__)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("**","**")})),n.replace(/(^)([^\n]+)($)/gm,"$1**$2**$3"))}}])}(l_);function $_(t,e,n){return e=es(e),Ko(t,H_()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function H_(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(H_=function(){return!!t})()}var j_=function(t){function e(t){var n,r;return ra(this,e),(r=$_(this,e,[t])).setName("italic","italic"),r.shortcutKeyMap=cs({},hs(n="".concat(x_,"-")).call(n,P_("i")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return ss(e,t),Ho(e,[{key:"$testIsItalic",value:function(t){return/^\s*(\*|_)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=this.getSelection(t)||this.locale.italic;return this.isSelections||this.$testIsItalic(n)||this.getMoreSelection("*","*",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsItalic(t);return r&&(n=t),r})),this.$testIsItalic(n)?n.replace(/(^)(\s*)(\*|_)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("*","*")})),n.replace(/(^)([^\n]+)($)/gm,"$1*$2*$3"))}}])}(l_);function K_(t,e,n){return e=es(e),Ko(t,z_()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function z_(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(z_=function(){return!!t})()}var G_=function(t){function e(t){var n;return ra(this,e),(n=K_(this,e,[t])).setName("split","|"),n}return ss(e,t),Ho(e,[{key:"createBtn",value:function(){var t=document.createElement("i");return t.className="cherry-toolbar-button cherry-toolbar-split",t}}])}(l_);function X_(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"word",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.getSelections().length>1)return e;if(e&&!r)return e;if("line"===n){var i=t.listSelections()[0],a=i.anchor,o=i.head;return a.line===o.line&&a.ch>o.ch||a.line>o.line?t.setSelection({line:o.line,ch:0},{line:a.line,ch:t.getLine(a.line).length}):t.setSelection({line:a.line,ch:0},{line:o.line,ch:t.getLine(o.line).length}),t.getSelection()}if("word"===n){var s=t.findWordAt(t.getCursor()),c=s.anchor,l=s.head;return t.setSelection(c,l),t.getSelection()}}function V_(t,e,n){return e=es(e),Ko(t,W_()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function W_(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(W_=function(){return!!t})()}var q_=function(t){function e(t){var n,r;return ra(this,e),(r=V_(this,e,[t])).setName("strikethrough","strike"),r.shortcutKeyMap=cs({},hs(n="".concat(x_,"-")).call(n,P_("d")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return ss(e,t),Ho(e,[{key:"$testIsStrike",value:function(t){return/(~~)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e,n,r,i,a,o,s=this,c=X_(this.editor.editor,t)||this.locale.strikethrough,l=(null===(e=this.$cherry)||void 0===e||null===(n=e.options)||void 0===n||null===(r=n.engine)||void 0===r||null===(i=r.syntax)||void 0===i||null===(a=i.strikethrough)||void 0===a?void 0:a.needWhitespace)?" ":"";return this.isSelections||this.$testIsStrike(c)||this.getMoreSelection("".concat(l,"~~"),"~~".concat(l),(function(){var t=s.editor.editor.getSelection(),e=s.$testIsStrike(t);return e&&(c=t),e})),this.$testIsStrike(c)?t.replace(/[\s]*(~~)([\s\S]+)(\1)[\s]*/g,"$2"):(this.registerAfterClickCb((function(){s.setLessSelection("".concat(l,"~~"),"~~".concat(l))})),c.replace(/(^)[\s]*([\s\S]+?)[\s]*($)/g,hs(o="$1".concat(l,"~~$2~~")).call(o,l,"$3")))}}])}(l_);function Y_(t,e,n){return e=es(e),Ko(t,J_()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function J_(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(J_=function(){return!!t})()}var Z_=function(t){function e(t){var n;return ra(this,e),(n=Y_(this,e,[t])).setName("sub","sub"),n}return ss(e,t),Ho(e,[{key:"$testIsSub",value:function(t){return/^\s*(\^\^)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=X_(this.editor.editor,t)||this.locale.sub;return this.isSelections||this.$testIsSub(n)||this.getMoreSelection("^^","^^",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsSub(t);return r&&(n=t),r})),this.$testIsSub(n)?n.replace(/(^)(\s*)(\^\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("^^","^^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^^$2^^$3"))}}])}(l_);function tS(t,e,n){return e=es(e),Ko(t,eS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function eS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(eS=function(){return!!t})()}var nS=function(t){function e(t){var n;return ra(this,e),(n=tS(this,e,[t])).setName("sup","sup"),n}return ss(e,t),Ho(e,[{key:"$testIsSup",value:function(t){return/^\s*(\^)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=X_(this.editor.editor,t)||this.locale.sup;return this.isSelections||this.$testIsSup(n)||this.getMoreSelection("^","^",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsSup(t);return r&&(n=t),r})),this.$testIsSup(n)?t.replace(/(^)(\s*)(\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("^","^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^$2^$3"))}}])}(l_);function rS(t,e,n){return e=es(e),Ko(t,iS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function iS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(iS=function(){return!!t})()}var aS=function(t){function e(t){var n;return ra(this,e),(n=rS(this,e,[t])).setName("color","color"),n.bubbleColor=new oS(t),n}return ss(e,t),Ho(e,[{key:"$testIsColor",value:function(t,e){var n=/^\s*!!![^\s]+ [\s\S]+!!!\s*$/;return"text"===t?/^\s*!![^\s]+ [\s\S]+!!\s*$/.test(e)&&!n.test(e):n.test(e)}},{key:"$testIsShortKey",value:function(t){return/(color|background-color)\s*:/.test(t)}},{key:"$getTypeAndColor",value:function(t){var e;return this.$testIsShortKey(t)?{type:/background-color\s*:/.test(t)?"background-color":"text",color:mh(e=t.replace(/(color|background-color)\s*:\s*([#0-9a-zA-Z]+)[^#0-9a-zA-Z]*$/,"$2")).call(e)}:this.getAndCleanCacheOnce()}},{key:"hideOtherSubMenu",value:function(t){var e=this.bubbleColor.dom.style.display||"none";t(),this.bubbleColor.dom.style.display=e}},{key:"onClick",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;if(this.hasCacheOnce()||this.$testIsShortKey(n)){var i,a,o=X_(this.editor.editor,t)||this.locale.color,s=this.$getTypeAndColor(n),c=s.type,l=s.color,u="text"===c?"!!".concat(l," "):"!!!".concat(l," "),h="text"===c?"!!":"!!!";if(this.isSelections||this.$testIsColor(c,o)||this.getMoreSelection(u,h,(function(){var t=e.editor.editor.getSelection();return!!e.$testIsColor(c,t)&&(o=t,!0)})),this.$testIsColor(c,o)){var f,d=new RegExp(hs(f="(^\\s*".concat(h,")([^\\s]+) ([\\s\\S]+")).call(f,h,"\\s*$)"),"gm"),A=!0,g=o.replace(d,(function(t,e,n,r){var i,a;return A=!!A&&n===l,hs(i=hs(a="".concat(e)).call(a,l," ")).call(i,r)}));return A?o.replace(d,"$3").replace(/!+\s*$/gm,""):(this.registerAfterClickCb((function(){e.setLessSelection(u,h)})),g)}return this.registerAfterClickCb((function(){e.setLessSelection(u,h)})),hs(i=hs(a="".concat(u)).call(a,o)).call(i,h)}var p=0,m=0;if(r.target.closest(".cherry-bubble")){var b=r.target.closest(".cherry-bubble"),v=b.getBoundingClientRect();p=v.top+b.offsetHeight,m=r.target.closest(".cherry-toolbar-color").offsetLeft+v.left}else{var y=r.target.closest(".cherry-toolbar-color"),w=y.getBoundingClientRect();p=w.top+y.offsetHeight,m=w.left}this.updateMarkdown=!1,this.bubbleColor.toggle({left:m,top:p,$color:this})}}])}(l_),oS=function(){return Ho((function t(e){ra(this,t),cs(this,"colorStack",["#000000","#444444","#666666","#999999","#cccccc","#eeeeee","#f3f3f3","#ffffff","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#0000ff","#9900ff","#ff00ff","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79","#990000","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47","#660000","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]),this.editor=e.editor,this.$cherry=e,this.init(),this.initAction()}),[{key:"setSelection",value:function(t){this.selection=t}},{key:"getFontColorDom",value:function(t){var e,n,r=lA(e=this.colorStack).call(e,(function(t){var e,n;return hs(e=hs(n='<span class="cherry-color-item cherry-color-item__'.concat(t.replace("#",""),'" unselectable="on" data-val="')).call(n,t,'"\n style="background-color:')).call(e,t,'"></span>')})).join("");return hs(n="<h3>".concat(t,"</h3>")).call(n,r)}},{key:"getDom",value:function(){var t=document.createElement("div");t.classList.add("cherry-color-wrap"),t.classList.add("cherry-dropdown");var e=document.createElement("div");e.classList.add("cherry-color-text"),e.innerHTML=this.getFontColorDom(this.$cherry.locale.fontColor),t.appendChild(e);var n=document.createElement("div");return n.classList.add("cherry-color-bg"),n.innerHTML=this.getFontColorDom(this.$cherry.locale.fontBgColor),t.appendChild(n),t}},{key:"init",value:function(){this.dom=this.getDom(),this.editor.options.wrapperDom.appendChild(this.dom)}},{key:"onClick",value:function(){var t,e;return"text"===this.type?/^!!#\S+ [\s\S]+?!!/.test(this.selection)?this.selection.replace(/^!!#\S+ ([\s\S]+?)!!/,"!!".concat(this.colorValue," $1!!")):hs(e="!!".concat(this.colorValue," ")).call(e,this.selection,"!!"):/^!!!#\S+ [\s\S]+?!!!/.test(this.selection)?this.selection.replace(/^!!!#\S+ ([\s\S]+?)!!!/,"!!!".concat(this.colorValue," $1!!!")):hs(t="!!!".concat(this.colorValue," ")).call(t,this.selection,"!!!")}},{key:"initAction",value:function(){var t=this;this.dom.addEventListener("click",(function(e){var n=e.target;if(t.colorValue=n.getAttribute("data-val"),!t.colorValue)return!1;t.type=n.closest(".cherry-color-text")?"text":"bg",t.$color.setCacheOnce({type:t.type,color:t.colorValue}),t.$color.fire(null)}),!1)}},{key:"toggle",value:function(t){var e,n=t.left,r=t.top,i=t.$color;(null===(e=this.dom.style.display)||void 0===e?void 0:e.length)>0&&"none"!==this.dom.style.display?this.dom.style.display="none":(this.dom.style.left="".concat(n,"px"),this.dom.style.top="".concat(r,"px"),this.dom.style.display="block",this.$color=i)}}])}();function sS(t,e,n){return e=es(e),Ko(t,cS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function cS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(cS=function(){return!!t})()}var lS=function(t){function e(t){var n,r,i,a,o,s,c,l,u,h,f;return ra(this,e),(f=sS(this,e,[t])).setName("header","header"),f.subMenuConfig=[{iconName:"h1",name:"h1",onclick:fs(n=f.bindSubClick).call(n,f,"1")},{iconName:"h2",name:"h2",onclick:fs(r=f.bindSubClick).call(r,f,"2")},{iconName:"h3",name:"h3",onclick:fs(i=f.bindSubClick).call(i,f,"3")},{iconName:"h4",name:"h4",onclick:fs(a=f.bindSubClick).call(a,f,"4")},{iconName:"h5",name:"h5",onclick:fs(o=f.bindSubClick).call(o,f,"5")}],f.shortcutKeyMap=cs(cs(cs(cs(cs({},hs(s="".concat(x_,"-")).call(s,P_(1)),{hookName:f.name,aliasName:f.$cherry.locale.h1}),hs(c="".concat(x_,"-")).call(c,P_(2)),{hookName:f.name,aliasName:f.$cherry.locale.h2}),hs(l="".concat(x_,"-")).call(l,P_(3)),{hookName:f.name,aliasName:f.$cherry.locale.h3}),hs(u="".concat(x_,"-")).call(u,P_(4)),{hookName:f.name,aliasName:f.$cherry.locale.h4}),hs(h="".concat(x_,"-")).call(h,P_(5)),{hookName:f.name,aliasName:f.$cherry.locale.h5}),f}return ss(e,t),Ho(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$getFlagStr",value:function(t){var e=+("string"==typeof t?t.replace(/[^0-9]+([0-9])/g,"$1"):t);return Rf("#").call("#",e||1)}},{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=X_(this.editor.editor,t,"line",!0)||this.locale.header,i=this.$getFlagStr(n);if(this.isSelections||this.$testIsHead(r)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),n=e.$testIsHead(t);return n&&(r=t),n})),this.$testIsHead(r)){var a=!0,o=r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,r,o){var s,c,l;return a=!!a&&n.length===i.length,hs(s=hs(c=hs(l="".concat(e)).call(l,i)).call(c,r)).call(s,o)}));return a?r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat(i," "),"")})),o)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat(i," "),"")})),r.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(i," $3$4"))}}])}(l_),uS=function(t,e){var n,r=document.createElement("td");return r.className=e||"table-item",Qs(n=Is(t)).call(n,(function(e){r.dataset[e]=t[e]})),r},hS=function(){return Ho((function t(e,n){var r=e.row,i=e.col;ra(this,t),this.init(r,i,n),this.initEventListeners(),this.afterClick=function(){}}),[{key:"init",value:function(t,e,n){var r=this,i=document.createElement("table"),a=[];i.className=["cherry-insert-table-menu","cherry-dropdown"].join(" ");for(var o=1;o<=t;o++){var s=document.createElement("tr");s.className="cherry-insert-table-menu-row",a[o-1]=[];for(var c=1;c<=e;c++){var l=uS({row:o,col:c},"cherry-insert-table-menu-item");s.appendChild(l),a[o-1][c-1]=l}i.appendChild(s)}return i.style.display="none",i.addEventListener("EditorHideToolbarSubMenu",(function(){r.hide()})),this.dom=i,this.cell=a,this.maxRow=t,this.maxCol=e,this.activeRow=0,this.activeCol=0,this.dom}},{key:"initEventListeners",value:function(){var t,e;this.dom.addEventListener("mousemove",fs(t=this.handleMouseMove).call(t,this),!1),this.dom.addEventListener("mouseup",fs(e=this.handleMouseUp).call(e,this))}},{key:"setActiveCell",value:function(t,e){if(this.activeRow!==t||this.activeCol!==e){var n=Math.min(this.activeRow,t),r=Math.max(this.activeRow,t);if(n!==r)for(var i=r;i>n;i--)for(var a=1;a<=this.activeCol;a++)this.cell[i-1][a-1].classList.toggle("active");var o=Math.min(this.activeCol,e),s=Math.max(this.activeCol,e);if(o!==s)for(var c=s;c>o;c--)for(var l=1;l<=t;l++)this.cell[l-1][c-1].classList.toggle("active");this.activeRow=t,this.activeCol=e}}},{key:"handleMouseMove",value:function(t){var e=t.target;e!==this.dom&&(e.classList.contains("cherry-insert-table-menu-item")||(e=e.querySelector(".cherry-insert-table-menu-item")),e&&this.setActiveCell(e.dataset.row,e.dataset.col))}},{key:"handleMouseUp",value:function(t){var e=t.target;return e===this.dom||e.classList.contains("cherry-insert-table-menu-item")||(e=e.querySelector(".cherry-insert-table-menu-item")),this.afterClick(this.activeRow,this.activeCol),void this.hide()}},{key:"show",value:function(t){this.dom.style.display="block",this.afterClick=t}},{key:"hide",value:function(){this.dom.style.display="none";for(var t=0;t<this.maxRow;t++)for(var e=0;e<this.maxCol;e++)this.cell[t][e].classList.remove("active");this.activeRow=0,this.activeCol=0}}])}();function fS(t,e,n){return e=es(e),Ko(t,dS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function dS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(dS=function(){return!!t})()}var AS=function(t){function e(t){var n;return ra(this,e),(n=fS(this,e,[t])).setName("insert","insert"),n.noIcon=!0,n.subBubbleTableMenu=new hS({row:9,col:9}),t.editor.options.wrapperDom.appendChild(n.subBubbleTableMenu.dom),n}return ss(e,t),Ho(e,[{key:"handleUpload",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",n=document.createElement("input");n.type="file",n.id="fileUpload",n.value="",n.style.display="none",n.addEventListener("change",(function(n){var r=xf(n.target.files,1)[0];t.$cherry.options.callback.fileUpload(r,(function(n){if("string"==typeof n&&n){var i,a="";if("image"===e)a=hs(i="![".concat(r.name,"](")).call(i,n,")");else if("video"===e){var o;a=hs(o="!video[".concat(r.name,"](")).call(o,n,")")}else if("audio"===e){var s;a=hs(s="!audio[".concat(r.name,"](")).call(s,n,")")}else{var c;a=hs(c="[".concat(r.name,"](")).call(c,n,")")}t.$cherry.$cherry.doc.replaceSelection(a)}}))})),n.click()}},{key:"onClick",value:function(t){var e,n,r,i,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2?arguments[2]:void 0;if(/normal-table/.test(o)){var c,l,u,h=o.match(/([0-9]+)[^0-9]([0-9]+)/),f=h?+h[1]:3,d=h?+h[2]:5,A=Rf(" Header |").call(" Header |",d),g=Rf(" ------ |").call(" ------ |",d),p="\n|".concat(Rf(" Sample |").call(" Sample |",d));return hs(c=hs(l=hs(u="".concat(t,"\n\n|")).call(u,A,"\n|")).call(l,g)).call(c,Rf(p).call(p,f),"\n\n")}var m=X_(this.editor.editor,t);switch(o){case"hr":return"".concat(t,"\n\n---\n");case"br":return"".concat(t,"<br>");case"code":return"\n``` \n".concat(t||"code...","\n```\n");case"formula":return"".concat(t,"\n\n$ e=mc^2 $\n\n");case"checklist":return"".concat(t,"\n\n- [x] Item 1\n- [ ] Item 2\n- [ ] Item 3\n");case"toc":return"".concat(t,"\n\n[[toc]]\n");case"link":return hs(e="".concat(t,"[")).call(e,this.locale.link,"](http://url.com) ");case"image":return this.handleUpload("image"),t;case"video":return this.handleUpload("video"),t;case"audio":return this.handleUpload("audio"),t;case"table":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(e,n){var r,i,a,o=Rf(" Header |").call(" Header |",n),c=Rf(" ------ |").call(" ------ |",n),l="\n|".concat(Rf(" Sample |").call(" Sample |",n)),u=hs(r=hs(i=hs(a="".concat(t,"\n\n|")).call(a,o,"\n|")).call(i,c)).call(r,Rf(l).call(l,e),"\n\n");s(u)}));case"line-table":return hs(n="".concat(t,"\n\n")).call(n,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"bar-table":return hs(r="".concat(t,"\n\n")).call(r,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"headlessTable":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(e,n){var r,i,a,o=hs(r=hs(i="".concat(t,"\n\n||")).call(i,Rf(" ~Header ||").call(" ~Header ||",n))).call(r,Rf(a="\n||".concat(Rf(" SampleT ||").call(" SampleT ||",n))).call(a,e-1),"\n\n");s(o)}));case"pdf":return this.handleUpload("pdf"),t;case"word":return this.handleUpload("word"),t;case"ruby":return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(m)?m.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1"):hs(i=" { ".concat(m," | ")).call(i,mh(a=this.editor.$cherry.options.callback.changeString2Pinyin(m)).call(a)," } ")}}}])}(l_);function gS(t,e,n){return e=es(e),Ko(t,pS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function pS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(pS=function(){return!!t})()}var mS=function(t){function e(t){var n,r,i,a;return ra(this,e),(a=gS(this,e,[t])).setName("list","list"),a.subMenuConfig=[{iconName:"ol",name:"ol",onclick:fs(n=a.bindSubClick).call(n,a,"1")},{iconName:"ul",name:"ul",onclick:fs(r=a.bindSubClick).call(r,a,"2")},{iconName:"checklist",name:"checklist",onclick:fs(i=a.bindSubClick).call(i,a,"3")}],a}return ss(e,t),Ho(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[null,"ol","ul","checklist"],a=X_(this.editor.editor,t,"line",!0),o=xf(a.match(/^\n*/),1)[0],s=xf(a.match(/\n*$/),1)[0],c=i[r]?i[r]:r;return c&&/^(ol|ul|checklist)$/.test(c)?hs(e=hs(n="".concat(o)).call(n,Md(a,c))).call(e,s):a}}])}(l_);function bS(t,e,n){return e=es(e),Ko(t,vS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function vS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(vS=function(){return!!t})()}var yS=function(t){function e(t){var n;return ra(this,e),(n=bS(this,e,[t])).setName("ol","ol"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n,r=X_(this.editor.editor,t,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=xf(r.match(/^\n*/),1)[0],a=xf(r.match(/\n*$/),1)[0];return hs(e=hs(n="".concat(i)).call(n,Md(r,"ol"))).call(e,a)}}])}(l_);function wS(t,e,n){return e=es(e),Ko(t,kS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function kS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(kS=function(){return!!t})()}var CS=function(t){function e(t){var n;return ra(this,e),(n=wS(this,e,[t])).setName("ul","ul"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n,r=X_(this.editor.editor,t,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=xf(r.match(/^\n*/),1)[0],a=xf(r.match(/\n*$/),1)[0];return hs(e=hs(n="".concat(i)).call(n,Md(r,"ul"))).call(e,a)}}])}(l_);function xS(t,e,n){return e=es(e),Ko(t,ES()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function ES(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(ES=function(){return!!t})()}var TS=function(t){function e(t){var n;return ra(this,e),(n=xS(this,e,[t])).setName("checklist","checklist"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n,r=X_(this.editor.editor,t,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=xf(r.match(/^\n*/),1)[0],a=xf(r.match(/\n*$/),1)[0];return hs(e=hs(n="".concat(i)).call(n,Md(r,"checklist"))).call(e,a)}}])}(l_);function BS(t,e,n){return e=es(e),Ko(t,_S()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function _S(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(_S=function(){return!!t})()}function SS(t,e){return[t,"```mermaid",e,"```"].join("\n")}var LS=["\tA[公司] --\x3e| 下 班 | B(菜市场)","\tB --\x3e C{看见<br>卖西瓜的}","\tC --\x3e|Yes| D[买一个包子]","\tC --\x3e|No| E[买一斤包子]"].join("\n"),IS=["\tA[Company] --\x3e| Finish work | B(Grocery Store)","\tB --\x3e C{See<br>Watermelon Seller}","\tC --\x3e|Yes| D[Buy a bun]","\tC --\x3e|No| E[Buy a kilogram of buns]"].join("\n"),MS={flow:["FlowChart",SS("左右结构","graph LR\n".concat(LS)),SS("上下结构","graph TD\n".concat(LS))].join("\n"),sequence:SS("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: 文本1","A->>B: 文本2","loop 循环1","loop 循环2","A->B: 文本3","end","loop 循环3","B --\x3e>A: 文本4","end","B --\x3e> B: 文本5","end"].join("\n")),state:SS("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:SS("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:SS("PieChart",["pie","title 饼图",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:SS("GanttChart",["gantt","\ttitle 敏捷研发流程","\tsection 迭代前","\t\t交互设计 :a1, 2020-03-01, 4d","\t\tUI设计 :after a1, 5d","\t\t需求评审 : 1d","\tsection 迭代中","\t\t详细设计 :a2, 2020-03-11, 2d","\t\t开发 :2020-03-15, 7d","\t\t测试 :2020-03-22, 5d","\tsection 迭代后","\t\t发布: 1d","\t\t验收: 2d","\t\t回顾: 1d"].join("\n"))},OS={flow:["FlowChart",SS("Left-right structure","graph LR\n".concat(IS)),SS("Top-bottom structure","graph TD\n".concat(IS))].join("\n"),sequence:SS("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: text1","A->>B: text2","loop loop1","loop loop2","A->B: text3","end","loop loop3","B --\x3e>A: text4","end","B --\x3e> B: text5","end"].join("\n")),state:SS("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:SS("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:SS("PieChart",["pie","title pie",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:SS("GanttChart",["gantt","\ttitle work","\tsection session 1","\t\twork1 :a1, 2020-03-01, 4d","\t\twork2 :after a1, 5d","\t\twork3 : 1d","\tsection session 2","\t\twork4 :a2, 2020-03-11, 2d","\t\twork5 :2020-03-15, 7d","\t\twork6 :2020-03-22, 5d","\tsection session 3","\t\twork7: 1d","\t\twork8: 2d","\t\twork9: 1d"].join("\n"))},DS=function(t){function e(t){var n,r,i,a,o,s,c;return ra(this,e),(c=BS(this,e,[t])).setName("graph","insertChart"),c.noIcon=!0,c.localeName=t.options.locale,c.subMenuConfig=[{iconName:"insertFlow",name:"insertFlow",onclick:fs(n=c.bindSubClick).call(n,c,"1")},{iconName:"insertSeq",name:"insertSeq",onclick:fs(r=c.bindSubClick).call(r,c,"2")},{iconName:"insertState",name:"insertState",onclick:fs(i=c.bindSubClick).call(i,c,"3")},{iconName:"insertClass",name:"insertClass",onclick:fs(a=c.bindSubClick).call(a,c,"4")},{iconName:"insertPie",name:"insertPie",onclick:fs(o=c.bindSubClick).call(o,c,"5")},{iconName:"insertGantt",name:"insertGantt",onclick:fs(s=c.bindSubClick).call(s,c,"6")}],c}return ss(e,t),Ho(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[null,"flow","sequence","state","class","pie","gantt"],i=r[n]?r[n]:n;if(i&&/^(flow|sequence|state|class|pie|gantt)$/.test(i))return this.registerAfterClickCb((function(){e.setLessSelection("\n\n\n\n\n","\n\n")})),"\n\n".concat(this.$getSampleCode(i),"\n")}},{key:"$getSampleCode",value:function(t){var e,n;return"zh-CN"!==this.localeName&&"zh_CN"!==this.localeName?null===(n=OS[t])||void 0===n?void 0:n.replace(/\t/g," "):null===(e=MS[t])||void 0===e?void 0:e.replace(/\t/g," ")}}])}(l_);function FS(t,e,n){return e=es(e),Ko(t,NS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function NS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(NS=function(){return!!t})()}var PS=function(t){function e(t){var n,r,i,a,o,s,c,l,u,h,f,d,A;return ra(this,e),(A=FS(this,e,[t])).setName("size","size"),A.subMenuConfig=[{name:A.$cherry.locale.small,noIcon:!0,onclick:fs(n=A.bindSubClick).call(n,A,"12")},{name:A.$cherry.locale.medium,noIcon:!0,onclick:fs(r=A.bindSubClick).call(r,A,"17")},{name:A.$cherry.locale.large,noIcon:!0,onclick:fs(i=A.bindSubClick).call(i,A,"24")},{name:A.$cherry.locale.superLarge,noIcon:!0,onclick:fs(a=A.bindSubClick).call(a,A,"32")}],A.shortKeyMap={"Alt-1":"12","Alt-2":"17","Alt-3":"24","Alt-4":"32"},A.shortcutKeyMap=cs(cs(cs(cs({},hs(o="".concat(C_,"-")).call(o,P_(1)),{hookName:A.name,aliasName:hs(s="".concat(A.$cherry.locale[A.name],"-")).call(s,A.$cherry.locale.small)}),hs(c="".concat(C_,"-")).call(c,P_(2)),{hookName:A.name,aliasName:hs(l="".concat(A.$cherry.locale[A.name],"-")).call(l,A.$cherry.locale.medium)}),hs(u="".concat(C_,"-")).call(u,P_(3)),{hookName:A.name,aliasName:hs(h="".concat(A.$cherry.locale[A.name],"-")).call(h,A.$cherry.locale.large)}),hs(f="".concat(C_,"-")).call(f,P_(4)),{hookName:A.name,aliasName:hs(d="".concat(A.$cherry.locale[A.name],"-")).call(d,A.$cherry.locale.superLarge)}),A}return ss(e,t),Ho(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"_getFlagStr",value:function(t){for(var e=t.replace(/[^0-9]+([0-9])/g,"$1"),n="#",r=1;r<e;r++)n+="#";return n}},{key:"$testIsSize",value:function(t){return/^\s*(![0-9]+) [\s\S]+!/.test(t)}},{key:"$getSizeByShortKey",value:function(t){return/^[0-9]+$/.test(t)?t:this.shortKeyMap[t]||"17"}},{key:"onClick",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"17",r=this.$getSizeByShortKey(n),i=X_(this.editor.editor,t)||"字号";if(this.isSelections||this.$testIsSize(i)||this.getMoreSelection("!32 ","!",(function(){var t=e.editor.editor.getSelection();return!!e.$testIsSize(t)&&(i=t,!0)})),this.$testIsSize(i)){var a=!0,o=i.replace(/(^)(\s*)(![0-9]+)([^\n]+)(!)(\s*)($)/gm,(function(t,e,n,i,o,s,c,l){var u,h,f,d,A,g;return a=!!a&&i==="!".concat(r),hs(u=hs(h=hs(f=hs(d=hs(A=hs(g="".concat(e)).call(g,n,"!")).call(A,r)).call(d,o)).call(f,s)).call(h,c)).call(u,l)}));return a?i.replace(/(^)(\s*)(![0-9]+\s*)([^\n]+)(!)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("!".concat(r," "),"!")})),o)}return this.registerAfterClickCb((function(){e.setLessSelection("!".concat(r," "),"!")})),i.replace(/(^)([^\n]+)($)/gm,"$1!".concat(r," $2!$3"))}}])}(l_);function RS(t,e,n){return e=es(e),Ko(t,QS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function QS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(QS=function(){return!!t})()}var US=function(t){function e(t){var n;return ra(this,e),(n=RS(this,e,[t])).setName("h1","h1"),n}return ss(e,t),Ho(e,[{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=X_(this.editor.editor,t,"line",!0)||this.locale.h1,r="#";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsHead(t);return r&&(n=t),r})),this.$testIsHead(n)){var i=!0,a=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,a,o){var s,c,l;return i=!!i&&1===n.length,hs(s=hs(c=hs(l="".concat(e)).call(l,r)).call(c,a)).call(s,o)}));return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),a)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}])}(l_);function $S(t,e,n){return e=es(e),Ko(t,HS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function HS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(HS=function(){return!!t})()}var jS=function(t){function e(t){var n;return ra(this,e),(n=$S(this,e,[t])).setName("h2","h2"),n}return ss(e,t),Ho(e,[{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=X_(this.editor.editor,t,"line",!0)||this.locale.h2,r="##";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsHead(t);return r&&(n=t),r})),this.$testIsHead(n)){var i=!0,a=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,a,o){var s,c,l;return i=!!i&&2===n.length,hs(s=hs(c=hs(l="".concat(e)).call(l,r)).call(c,a)).call(s,o)}));return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),a)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}])}(l_);function KS(t,e,n){return e=es(e),Ko(t,zS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function zS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(zS=function(){return!!t})()}var GS=function(t){function e(t){var n;return ra(this,e),(n=KS(this,e,[t])).setName("h3","h3"),n}return ss(e,t),Ho(e,[{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=X_(this.editor.editor,t,"line",!0)||this.locale.h3,r="###";if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsHead(t);return r&&(n=t),r})),this.$testIsHead(n)){var i=!0,a=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,a,o){var s,c,l;return i=!!i&&3===n.length,hs(s=hs(c=hs(l="".concat(e)).call(l,r)).call(c,a)).call(s,o)}));return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),a)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat(r," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}])}(l_);function XS(t,e,n){return e=es(e),Ko(t,VS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function VS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(VS=function(){return!!t})()}var WS=function(t){function e(t){var n;return ra(this,e),(n=XS(this,e,[t])).setName("quote","blockquote"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n=this,r=X_(this.editor.editor,t,"line",!0)||this.locale.quote,i=Kx(e=r.split("\n")).call(e,(function(t){return/^\s*>[^\n]+$/.exec(t)}));return i?r.replace(/(^\s*)>\s*([^\n]+)($)/gm,"$1$2$3").replace(/\n+$/,"\n\n"):(this.registerAfterClickCb((function(){n.setLessSelection("> ","")})),r.replace(/(^)([^\n]+)($)/gm,"$1> $2$3").replace(/\n+$/,"\n\n"))}}])}(l_);function qS(t,e,n){return e=es(e),Ko(t,YS()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function YS(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(YS=function(){return!!t})()}var JS=function(t){function e(t){var n;return ra(this,e),(n=qS(this,e,[t])).setName("quickTable","table"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){return"".concat(t,"| LeftAlignedCol | CenterAlignedCol | RightAlignedCol |\n")+"| :--- | :---: | ---: |\n| sampleText | sampleText | sampleText |\n| **left**Text | centered Text | *right*Text |\n"}}])}(l_);function ZS(t,e,n){return e=es(e),Ko(t,tL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function tL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(tL=function(){return!!t})()}var eL=function(t){function e(t){var n;return ra(this,e),cs(n=ZS(this,e,[t]),"$previewerHidden",!1),n.setName("previewClose","previewClose"),n.instanceId=t.instanceId,n.updateMarkdown=!1,n.attachEventListeners(),n}return ss(e,t),Ho(e,[{key:"attachEventListeners",value:function(){var t=this;this.$cherry.$event.on("previewerClose",(function(){t.isHidden=!0})),this.$cherry.$event.on("previewerOpen",(function(){t.isHidden=!1}))}},{key:"isHidden",get:function(){return this.$previewerHidden},set:function(t){if(t!==this.$previewerHidden){var e=this.dom.querySelector("i");t?(e.classList.toggle("ch-icon-previewClose",!1),e.classList.toggle("ch-icon-preview",!0),e.title=this.locale.togglePreview):(e.classList.toggle("ch-icon-previewClose",!0),e.classList.toggle("ch-icon-preview",!1),e.title=this.locale.previewClose),this.$previewerHidden=t}}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerNeedFloat()?this.editor.previewer.isPreviewerFloat()?(this.editor.previewer.recoverFloatPreviewer(!0),this.isHidden=!1):(this.editor.previewer.floatPreviewer(),this.isHidden=!0):this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.recoverPreviewer(!0),this.isHidden=!1):(this.editor.previewer.editOnly(!0),this.isHidden=!0)}}])}(l_);function nL(t,e,n){return e=es(e),Ko(t,rL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function rL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(rL=function(){return!!t})()}var iL=function(t){function e(t){var n;return ra(this,e),(n=nL(this,e,[t])).updateMarkdown=!1,n.setName("fullScreen","fullscreen"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(){for(var t=this.editor.options.editorDom.parentElement.classList,e=document.querySelector(".cherry-toolbar-fullscreen");e&&e.firstChild;)e.removeChild(e.firstChild);if(t.contains("fullscreen")){var n=Zf("i","ch-icon ch-icon-fullscreen");e&&e.appendChild(n),t.remove("fullscreen")}else{var r=Zf("i","ch-icon ch-icon-minscreen");e&&e.appendChild(r),t.add("fullscreen")}this.editor.editor.refresh()}}])}(l_);function aL(t,e,n){return e=es(e),Ko(t,oL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function oL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(oL=function(){return!!t})()}var sL=function(t){function e(t){var n;return ra(this,e),(n=aL(this,e,[t])).setName("undo","undo"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(){this.editor.editor.undo()}}])}(l_);function cL(t,e,n){return e=es(e),Ko(t,lL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function lL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(lL=function(){return!!t})()}var uL=function(t){function e(t){var n;return ra(this,e),(n=cL(this,e,[t])).setName("redo","redo"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(){this.editor.editor.redo()}}])}(l_);function hL(t,e,n){return e=es(e),Ko(t,fL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function fL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(fL=function(){return!!t})()}var dL=function(t){function e(t){var n,r;return ra(this,e),(r=hL(this,e,[t])).setName("codeBlock","codeBlock"),r.shortcutKeyMap=cs({},hs(n="".concat(x_,"-")).call(n,P_("k")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e=this,n=t||"code...";return this.registerAfterClickCb((function(){e.setLessSelection("\n``` \n","\n```\n")})),"\n``` \n".concat(n,"\n```\n")}}])}(l_);function AL(t,e,n){return e=es(e),Ko(t,gL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function gL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(gL=function(){return!!t})()}var pL=function(t){function e(t){var n;return ra(this,e),(n=AL(this,e,[t])).setName("inlineCode","inlineCode"),n.shortcutKeyMap=cs({},"".concat(x_,"-Backquote"),{hookName:n.name,aliasName:n.$cherry.locale[n.name]}),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n=this;return t?Iv(t).call(t,"\n")?lA(e=t.split("\n")).call(e,(function(t){return"`".concat(t,"`")})).join("\n"):(this.registerAfterClickCb((function(){return n.setLessSelection("`","`")})),"`".concat(t,"`")):(this.registerAfterClickCb((function(){return n.setLessSelection("`","`")})),"``")}}])}(l_);function mL(t,e,n){return e=es(e),Ko(t,bL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function bL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(bL=function(){return!!t})()}var vL=function(t){function e(t){var n,r,i,a,o,s,c,l,u,h,f,d,A;return ra(this,e),(A=mL(this,e,[t])).setName("codeTheme"),A.updateMarkdown=!1,A.noIcon=!0,A.subMenuConfig=[{noIcon:!1,name:"autoWrap",iconName:"br",onclick:fs(n=A.bindSubClick).call(n,A,"wrap")},{noIcon:!0,name:"light",onclick:fs(r=A.bindSubClick).call(r,A,"default")},{noIcon:!0,name:"dark",onclick:fs(i=A.bindSubClick).call(i,A,"dark")},{noIcon:!0,name:"one light",onclick:fs(a=A.bindSubClick).call(a,A,"one-light")},{noIcon:!0,name:"one dark",onclick:fs(o=A.bindSubClick).call(o,A,"one-dark")},{noIcon:!0,name:"vs light",onclick:fs(s=A.bindSubClick).call(s,A,"vs-light")},{noIcon:!0,name:"vs dark",onclick:fs(c=A.bindSubClick).call(c,A,"vs-dark")},{noIcon:!0,name:"solarized light",onclick:fs(l=A.bindSubClick).call(l,A,"solarized-light")},{noIcon:!0,name:"tomorrow dark",onclick:fs(u=A.bindSubClick).call(u,A,"tomorrow-night")},{noIcon:!0,name:"okaidia",onclick:fs(h=A.bindSubClick).call(h,A,"okaidia")},{noIcon:!0,name:"twilight",onclick:fs(f=A.bindSubClick).call(f,A,"twilight")},{noIcon:!0,name:"coy",onclick:fs(d=A.bindSubClick).call(d,A,"coy")}],A}return ss(e,t),Ho(e,[{key:"getActiveSubMenuIndex",value:function(t){return"wrap"===this.$cherry.getCodeWrap()?0:-1}},{key:"onClick",value:function(){var t=arguments.length>1?arguments[1]:void 0;if("wrap"===t){var e="wrap"===this.$cherry.getCodeWrap()?"nowrap":"wrap";return this.$cherry.wrapperDom.dataset.codeWrap=e,void this.$cherry.setCodeWrap(e)}this.$cherry.$event.emit("changeCodeBlockTheme",t),vA(this.$cherry,t)}}])}(l_);function yL(t,e,n){return e=es(e),Ko(t,wL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function wL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(wL=function(){return!!t})()}var kL=function(t){function e(t){var n,r,i,a,o;return ra(this,e),(o=yL(this,e,[t])).setName("export"),o.noIcon=!0,o.updateMarkdown=!1,o.subMenuConfig=[{noIcon:!0,name:"exportToPdf",onclick:fs(n=o.bindSubClick).call(n,o,"pdf")},{noIcon:!0,name:"exportScreenshot",onclick:fs(r=o.bindSubClick).call(r,o,"screenShot")},{noIcon:!0,name:"exportMarkdownFile",onclick:fs(i=o.bindSubClick).call(i,o,"markdown")},{noIcon:!0,name:"exportHTMLFile",onclick:fs(a=o.bindSubClick).call(a,o,"html")}],o}return ss(e,t),Ho(e,[{key:"onClick",value:function(){var t=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry-dropdown[name=export]")&&(document.querySelector(".cherry-dropdown[name=export]").style.display="none");var e=this.$cherry.previewer,n="";n=e.isPreviewerHidden()?e.options.previewerCache.html:e.getDomContainer().innerHTML,n=e.lazyLoadImg.changeDataSrc2Src(n),e.refresh(n),e.export(t)}}])}(l_),CL=["hookName","aliasName"];function xL(t,e){t.setAttribute("style","display: none;"),e.style.display="flex"}var EL=function(){return Ho((function t(e){var n=this;ra(this,t),this.$cherry=e,this.shortcutUlClassName="cherry-shortcut-key-config-panel-ul",this.shortcutUlId=this.shortcutUlClassName,this.shortcutConfigPanelKbdClassName="shortcut-key-config-panel-kbd",this.shortcutKeyboardKeyClassName="keyboard-key",this.handleDbClick=function(t){if(I_(n.$cherry.nameSpace)&&t.target instanceof HTMLElement&&(t.target.classList.contains(n.shortcutConfigPanelKbdClassName)||t.target.classList.contains(n.shortcutKeyboardKeyClassName))){var e,r=t.target.classList.contains(n.shortcutConfigPanelKbdClassName)?t.target:t.target.parentElement;r.style.display="none";var i=r.nextElementSibling;i.setAttribute("style","display: block;");var a=i.querySelector("input"),o=[];Qs(e=r.childNodes).call(e,(function(t){o.push(t.innerText)})),a.placeholder=o.join("-"),a.focus(),a.onblur=function(){xL(i,r),a.value=""};var s=[];a.onkeydown=function(t){if(t.preventDefault(),t.stopPropagation(),t.key===T_||"Backspace"===t.key)if(t.key===T_){for(var e,o,c=(null!==(e=null===(o=r.parentElement)||void 0===o?void 0:o.dataset)&&void 0!==e?e:{}).hookname,l=void 0===c?"":c,u=[],h=0;h<r.children.length;h++){var f,d=(null!==(f=r.children.item(h).dataset)&&void 0!==f?f:{}).code;d&&u.push(d)}if(u.length===r.children.length){var A=D_(u);if(l){var g,p;null===(g=n.$cherry)||void 0===g||null===(p=g.toolbar)||void 0===p||p.updateShortcutKeyMap(A,D_(s));for(var m=Math.max(s.length,r.children.length),b=0;b<m;b++){var v=r.children.item(b);if(s[b]||!v){var y=F_(s[b],v_);if(v)v.setAttribute("title",y.tip),v.textContent=y.text,v.setAttribute("data-code",s[b]);else{var w=F_(s[b],v_),k=Zf("span",n.shortcutKeyboardKeyClassName,{title:w.tip});k.setAttribute("data-code",s[b]),k.innerText=w.text,r.appendChild(k)}}else v.remove()}}}xL(i,r)}else 0===s.length&&xL(i,r),s.pop(),a.value=N_(s,v_);else!function(t){if(!sd(t)||2!==t.length)return!1;var e=Iv(t).call(t,k_),n=Iv(t).call(t,C_);return(!e||!n||2!==t.length)&&(e||n)&&!Iv(t).call(t,E_)&&!Iv(t).call(t,x_)}(s=S_(t))&&sd(s)&&s.length>=2&&(a.value=N_(s,v_))}}},this.clickSettingsDisableBtn=function(){I_(n.$cherry.nameSpace)?(L_(n.$cherry.nameSpace,"disable"),n.dom.classList.add("disable"),n.$cherry.editor.disableShortcut(!0)):(L_(n.$cherry.nameSpace,"enable"),n.dom.classList.remove("disable"),n.$cherry.editor.disableShortcut(!1))},this.clickSettingsRecoverBtn=function(){L_(n.$cherry.nameSpace,"enable"),n.dom.classList.remove("disable"),n.$cherry.editor.disableShortcut(!1),n.$cherry.toolbar.shortcutKeyMap={},n.$cherry.toolbar.collectShortcutKey(!1),M_(n.$cherry.nameSpace,n.$cherry.toolbar.shortcutKeyMap),n.dom.innerHTML=n.generateShortcutKeyConfigPanelHtmlStr(),n.show()},this.init()}),[{key:"init",value:function(){var t,e;null!==(t=this.$cherry)&&void 0!==t&&null!==(e=t.toolbar)&&void 0!==e&&e.shortcutKeyMap&&(this.dom=document.createElement("div"),this.dom.className=["cherry-dropdown","cherry-shortcut-key-config-panel","cherry-shortcut-key-config-panel-wrapper"].join(" "),this.dom.innerHTML=this.generateShortcutKeyConfigPanelHtmlStr(),this.dom.style.display="none",I_(this.$cherry.nameSpace)||this.dom.classList.add("disable"),this.$cherry.wrapperDom.append(this.dom))}},{key:"generateShortcutKeyConfigPanelHtmlStr",value:function(){var t,e,n,r,i,a,o,s,c,l=this,u=lA(t=Qi(e=Px(null!==(n=this.$cherry.toolbar.shortcutKeyMap)&&void 0!==n?n:{})).call(e,(function(t){var e=xf(t,2);e[0];var n=e[1];return"object"===Ro(n)&&n}))).call(t,(function(t){var e,n,r,i,a,o,s=xf(t,2),c=s[0],u=s[1],h=u.hookName,f=u.aliasName,d=_u(u,CL),A="";d&&"object"===Ro(d)&&(A=lA(o=Px(d)).call(o,(function(t){var e,n=xf(t,2),r=n[0],i=n[1];return hs(e="data-".concat(r,"=")).call(e,i)})).join(" "));return hs(e=hs(n=hs(r=hs(i='<li class="cherry-dropdown-item shortcut-key-item" data-hookname='.concat(h," ")).call(i,A,'>\n <div class="shortcut-key-config-panel-name">')).call(r,f,'</div>\n <div class="')).call(n,l.shortcutConfigPanelKbdClassName,'">')).call(e,null==c?void 0:lA(a=c.split("-")).call(a,(function(t){var e,n,r,i=F_(t,v_),a=null!=i?i:{text:t,tip:t};return hs(e=hs(n=hs(r='<span class="'.concat(l.shortcutKeyboardKeyClassName,'" title="')).call(r,a.tip,'" data-code="')).call(n,t,'">')).call(e,a.text,"</span>")})).join(""),'</div>\n <div style="display: none;" class="input-shortcut-wrapper"><input type="text" /></div>\n </li>')})).join("");return hs(r=hs(i=hs(a=hs(o=hs(s=hs(c='\n <div class="cherry-shortcut-key-config-panel-inner">\n <div class="shortcut-panel-settings">\n <btn class="shortcut-settings-btn j-shortcut-settings-disable-btn"><i class="ch-icon ch-icon-cherry-table-delete"></i> '.concat(this.$cherry.locale.disableShortcut,'</btn>\n <btn class="shortcut-settings-btn j-shortcut-settings-recover-btn"><i class="ch-icon ch-icon-undo"></i> ')).call(c,this.$cherry.locale.recoverShortcut,'</btn>\n </div>\n <div class="shortcut-panel-title">')).call(s,this.$cherry.locale.editShortcutKeyConfigTip,'</div>\n <ul class="')).call(o,this.shortcutUlClassName,'" id="')).call(a,this.shortcutUlId,'">')).call(i,u,"</ul>\n ")).call(r,this.$getStaticShortcut(),"\n </div>")}},{key:"$getStaticShortcut",value:function(){var t;if("vim"===this.$cherry.options.editor.keyMap)return"";for(var e=[{name:this.$cherry.locale.shortcutStatic1,key:"Ctrl+["},{name:this.$cherry.locale.shortcutStatic2,key:"Ctrl+]"},{name:this.$cherry.locale.shortcutStatic3,key:"Ctrl+Shift+D"},{name:this.$cherry.locale.shortcutStatic4,key:"Ctrl+Enter"},{name:this.$cherry.locale.shortcutStatic5,key:"Ctrl+Shift+Enter"},{name:this.$cherry.locale.shortcutStatic6,key:"Ctrl+Shift+↑"},{name:this.$cherry.locale.shortcutStatic7,key:"Ctrl+Shift+↓"},{name:this.$cherry.locale.shortcutStatic8,key:"Ctrl+Shift+K"},{name:this.$cherry.locale.shortcutStatic9,key:"Ctrl+Shift+←"},{name:this.$cherry.locale.shortcutStatic10,key:"Ctrl+Shift+→"},{name:this.$cherry.locale.shortcutStatic11,key:"Ctrl+Backspace"},{name:this.$cherry.locale.shortcutStatic12,key:"Ctrl+Shift+M"},{name:this.$cherry.locale.shortcutStatic13,key:"Ctrl+".concat(this.$cherry.locale.leftMouseButton)},{name:this.$cherry.locale.shortcutStatic14,key:"Ctrl+Shift+L"},{name:this.$cherry.locale.shortcutStatic16,key:"Alt+F3"},{name:this.$cherry.locale.shortcutStatic17,key:"Ctrl+Z"},{name:this.$cherry.locale.shortcutStatic18,key:"Ctrl+Y"}],n=[],r=0;r<e.length;r++){var i,a=e[r];n.push(hs(i='\n <li class="cherry-dropdown-item shortcut-key-item">\n <div class="shortcut-key-config-panel-name">'.concat(a.name,'</div>\n <div class="shortcut-key-config-panel-static">')).call(i,a.key.replace(/\+/g,'<span class="shortcut-split">+</span>'),"\n </div>\n </li>\n "))}return hs(t='<div class="shortcut-static">\n <div class="shortcut-panel-title">'.concat(this.$cherry.locale.shortcutStaticTitle,'</div>\n <ul class="cherry-shortcut-key-config-panel-ul">')).call(t,n.join(""),"</ul>\n </div>")}},{key:"show",value:function(){this.dom.style.removeProperty("display");var t=this.dom.querySelector("#".concat(this.shortcutUlId));t instanceof HTMLUListElement&&t.addEventListener("dblclick",this.handleDbClick);var e=this.dom.querySelector(".j-shortcut-settings-disable-btn");e instanceof HTMLElement&&e.addEventListener("click",this.clickSettingsDisableBtn);var n=this.dom.querySelector(".j-shortcut-settings-recover-btn");n instanceof HTMLElement&&n.addEventListener("click",this.clickSettingsRecoverBtn)}},{key:"hide",value:function(){this.dom.style.display="none";var t=this.dom.querySelector("#".concat(this.shortcutUlId));t instanceof HTMLUListElement&&t.removeEventListener("dblclick",this.handleDbClick);var e=this.dom.querySelector(".j-shortcut-settings-disable-btn");e instanceof HTMLElement&&e.removeEventListener("click",this.clickSettingsDisableBtn);var n=this.dom.querySelector(".j-shortcut-settings-recover-btn");n instanceof HTMLElement&&n.removeEventListener("click",this.clickSettingsRecoverBtn)}},{key:"isShow",value:function(){return"block"===this.dom.style.display}},{key:"isHide",value:function(){return"none"===this.dom.style.display}},{key:"toggle",value:function(t){if(!(t instanceof HTMLElement))throw new Error("settingsDom must be an instance of HTMLElement, but got: ".concat(t));var e=t.getBoundingClientRect();if(this.isHide()){this.dom.style.left="".concat(e.left+e.width/2,"px"),this.dom.style.top="".concat(e.top+e.height,"px"),this.show();var n=this.dom.getBoundingClientRect();return this.dom.style.marginLeft="0px",this.dom.style.left="".concat(e.left+e.width/2-n.width/2,"px"),void(n.left+n.width>window.innerWidth&&(this.dom.style.left="".concat(window.innerWidth-n.width-5,"px")))}return this.hide()}}])}();function TL(t,e,n){return e=es(e),Ko(t,BL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function BL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(BL=function(){return!!t})()}var _L=function(t){function e(t){var n,r,i,a,o,s;ra(this,e),(s=TL(this,e,[t])).setName("settings","settings"),s.updateMarkdown=!1,s.engine=t.engine;var c=dA("classicBr")?AA():null===(n=s.engine.$cherry.options.engine.global)||void 0===n?void 0:n.classicBr,l=t.editor.options.defaultModel,u=c?"br":"normal",h=c?"classicBr":"normalBr",f="editOnly"===l?"preview":"previewClose",d="editOnly"===l?"togglePreview":"previewClose";return s.instanceId=t.instanceId,s.subMenuConfig=[{iconName:u,name:h,onclick:fs(r=s.bindSubClick).call(r,s,"classicBr")},{iconName:f,name:d,onclick:fs(i=s.bindSubClick).call(i,s,"previewClose")},{iconName:"",name:"hide",onclick:fs(a=s.bindSubClick).call(a,s,"toggleToolbar")}],s.attachEventListeners(),s.shortcutKeyMap=cs({},hs(o="".concat(x_,"-")).call(o,P_("0")),{hookName:s.name,sub:"toggleToolbar",aliasName:s.$cherry.locale.hide}),s}return ss(e,t),Ho(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(t,e,n,r){return n?this.onClick(e,t,r):this.onClick(e,t)}},{key:"togglePreviewBtn",value:function(t){var e=this,n=t?"previewClose":"preview",r=t?"previewClose":"togglePreview";if(this.subMenu){var i=document.querySelector('.cherry-dropdown[name="settings"]');if(i){var a=i.querySelector(".ch-icon-previewClose,.ch-icon-preview");a.classList.toggle("ch-icon-previewClose"),a.classList.toggle("ch-icon-preview"),a.title=this.locale[r],a.parentElement.innerHTML=a.parentElement.innerHTML.replace(/<\/i>.+$/,"</i>".concat(this.locale[r]))}}else{var o;this.subMenuConfig=lA(o=this.subMenuConfig).call(o,(function(t){var i;return"previewClose"===t.iconName||"preview"===t.iconName?{iconName:n,name:r,onclick:fs(i=e.bindSubClick).call(i,e,"previewClose")}:t}))}}},{key:"attachEventListeners",value:function(){var t=this;this.$cherry.$event.on("previewerClose",(function(){t.togglePreviewBtn(!1)})),this.$cherry.$event.on("previewerOpen",(function(){t.togglePreviewBtn(!0)}))}},{key:"onClick",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("classicBr"===(n=this.matchShortcutKey(n))){var r,i=!AA();e=i,"undefined"!=typeof localStorage&&localStorage.setItem("cherry-classicBr",e?"true":"false"),this.engine.$cherry.options.engine.global.classicBr=i,Qs(r=this.engine.hookCenter.hookList.paragraph).call(r,(function(t){t.classicBr=i}));var a=this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-normal");a=a||this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-br"),i?(a.classList.replace("ch-icon-normal","ch-icon-br"),a.parentElement.childNodes[1].textContent=this.locale.classicBr):(a.classList.replace("ch-icon-br","ch-icon-normal"),a.parentElement.childNodes[1].textContent=this.locale.normalBr),this.engine.$cherry.previewer.update(""),this.engine.$cherry.initText(this.engine.$cherry.editor.editor)}else if("previewClose"===n){if(this.editor.previewer.isPreviewerNeedFloat())return void(this.editor.previewer.isPreviewerFloat()?this.editor.previewer.recoverFloatPreviewer(!0):this.editor.previewer.floatPreviewer());this.editor.previewer.isPreviewerHidden()?this.editor.previewer.recoverPreviewer(!0):this.editor.previewer.editOnly(!0)}else if("toggleToolbar"===n)this.toggleToolbar();else if("shortcutKey"===n){var o,s,c,l;this.shortcutKeyConfigPanel||(this.shortcutKeyConfigPanel=new EL(this.engine.$cherry));var u=null===(o=this.engine)||void 0===o||null===(s=o.$cherry)||void 0===s||null===(c=s.toolbar)||void 0===c||null===(l=c.subMenus)||void 0===l?void 0:l[this.name];u instanceof HTMLElement&&(u.style.display="none"),this.shortcutKeyConfigPanel.toggle(this.dom)}return t}},{key:"matchShortcutKey",value:function(t){var e,n=ah(e=Fx(this.shortcutKeyMap)).call(e,(function(e){return e.sub===t}));if(void 0===n){var r=O_(this.$cherry.nameSpace),i=null==r?void 0:r[t];return i?String(i.sub):t}return n.sub}},{key:"toggleToolbar",value:function(){var t,e=this.engine.$cherry.wrapperDom;e instanceof HTMLDivElement&&(Ef(t=e.className).call(t,"cherry--no-toolbar")>-1?(e.classList.remove("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarShow")):(e.classList.add("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarHide")))}}])}(l_);function SL(t,e,n){return e=es(e),Ko(t,LL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function LL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(LL=function(){return!!t})()}var IL=function(t){function e(t){var n,r;return ra(this,e),(r=SL(this,e,[t])).setName("underline","underline"),r.shortcutKeyMap=cs({},hs(n="".concat(x_,"-")).call(n,P_("u")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return ss(e,t),Ho(e,[{key:"$testIsUnderline",value:function(t){return/^\s*(\/)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=t||this.locale.underline;return this.isSelections||this.$testIsUnderline(n)||this.getMoreSelection(" /","/ ",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsUnderline(t);return r&&(n=t),r})),this.$testIsUnderline(n)?n.replace(/(^)(\s*)(\/)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection(" /","/ ")})),n.replace(/(^)([^\n]+)($)/gm,"$1 /$2/ $3"))}}])}(l_);function ML(t,e,n){return e=es(e),Ko(t,OL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function OL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(OL=function(){return!!t})()}var DL=function(t){function e(t){var n;return ra(this,e),(n=ML(this,e,[t])).setName("switchPreview"),n.instanceId=t.instanceId,n.attachEventListeners(),n}return ss(e,t),Ho(e,[{key:"attachEventListeners",value:function(){var t=this;this.$cherry.$event.on("toolbarHide",(function(){t.dom.textContent=t.locale.switchEdit})),this.$cherry.$event.on("toolbarShow",(function(){t.dom.textContent=t.locale.switchPreview}))}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.previewOnly(),this.dom.parentElement.parentElement.classList.add("preview-only"),this.dom.textContent=this.locale.switchEdit):(this.editor.previewer.editOnly(!0),this.dom.parentElement.parentElement.classList.remove("preview-only"),this.dom.textContent=this.locale.switchPreview)}}])}(l_);function FL(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return NL(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?NL(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function NL(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function PL(t,e,n){return e=es(e),Ko(t,RL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function RL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(RL=function(){return!!t})()}var QL=function(t){function e(t){var n,r;return ra(this,e),(r=PL(this,e,[t])).setName("image","image"),r.shortcutKeyMap=cs({},hs(n="".concat(x_,"-")).call(n,P_("g")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n,r,i,a,o,s=this,c=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.image)&&void 0!==e?e:"*";if(null!==(i=null===(a=this.$cherry)||void 0===a||null===(o=a.options.multipleFileSelection)||void 0===o?void 0:o.image)&&void 0!==i&&i){if(this.hasCacheOnce()){var l,u=this.getAndCleanCacheOnce(),h="",f=FL(u);try{var d=function(){var t,e,n,r=l.value,i=r.url,a=r.params,o="](".concat(i,")");s.registerAfterClickCb((function(){s.setLessSelection("![",o)}));var c=a.name?a.name:name;h+=hs(t=hs(e=hs(n="".concat("![")).call(n,c)).call(e,dd(a))).call(t,o,"\n")};for(f.s();!(l=f.n()).done;)d()}catch(t){f.e(t)}finally{f.f()}return h}return ud(this.editor,"image",c,(function(t){s.setCacheOnce(t),s.fire(null)})),this.updateMarkdown=!1,t}if(this.hasCacheOnce()){var A,g,p,m=this.getAndCleanCacheOnce(),b=m.name,v=m.url,y=m.params,w="](".concat(v,")");this.registerAfterClickCb((function(){s.setLessSelection("![",w)}));var k=y.name?y.name:b;return hs(A=hs(g=hs(p="".concat("![")).call(p,k)).call(g,dd(y))).call(A,w)}return hd(this.editor,"image",c,(function(t,e,n){s.setCacheOnce({name:t,url:e,params:n}),s.fire(null)})),this.updateMarkdown=!1,t}}])}(l_);function UL(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return $L(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$L(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function $L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function HL(t,e,n){return e=es(e),Ko(t,jL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function jL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(jL=function(){return!!t})()}var KL=function(t){function e(t){var n;return ra(this,e),(n=HL(this,e,[t])).setName("audio","video"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n,r,i,a,o,s=this,c=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.audio)&&void 0!==e?e:"*";if(null!==(i=null===(a=this.$cherry)||void 0===a||null===(o=a.options.multipleFileSelection)||void 0===o?void 0:o.audio)&&void 0!==i&&i){if(this.hasCacheOnce()){var l,u=this.getAndCleanCacheOnce(),h="",f=UL(u);try{var d=function(){var t,e,n,r=l.value,i=r.url,a=r.params,o="!audio[",c="](".concat(i,")");s.registerAfterClickCb((function(){s.setLessSelection(o,c)}));var u=a.name?a.name:name;h+=hs(t=hs(e=hs(n="".concat(o)).call(n,u)).call(e,dd(a))).call(t,c,"\n")};for(f.s();!(l=f.n()).done;)d()}catch(t){f.e(t)}finally{f.f()}return h}return ud(this.editor,"audio",c,(function(t){s.setCacheOnce(t),s.fire(null)})),this.updateMarkdown=!1,t}if(this.hasCacheOnce()){var A,g,p,m=this.getAndCleanCacheOnce(),b=m.name,v=m.url,y=m.params,w="!audio[",k="](".concat(v,")");this.registerAfterClickCb((function(){s.setLessSelection(w,k)}));var C=y.name?y.name:b;return hs(A=hs(g=hs(p="".concat(w)).call(p,C)).call(g,dd(y))).call(A,k)}return hd(this.editor,"audio",c,(function(t,e,n){s.setCacheOnce({name:t,url:e,params:n}),s.fire(null)})),this.updateMarkdown=!1,t}}])}(l_);function zL(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return GL(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?GL(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function GL(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function XL(t,e,n){return e=es(e),Ko(t,VL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function VL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(VL=function(){return!!t})()}var WL=function(t){function e(t){var n;return ra(this,e),(n=XL(this,e,[t])).setName("video","video"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n,r,i,a,o,s=this,c=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.video)&&void 0!==e?e:"*";if(null!==(i=null===(a=this.$cherry)||void 0===a||null===(o=a.options.multipleFileSelection)||void 0===o?void 0:o.video)&&void 0!==i&&i){if(this.hasCacheOnce()){var l,u=this.getAndCleanCacheOnce(),h="",f=zL(u);try{var d=function(){var t,e,n,r,i=l.value,a=i.url,o=i.params,c="!video[",u=o.poster?hs(t="](".concat(a,"){poster=")).call(t,o.poster,"}"):"](".concat(a,")");s.registerAfterClickCb((function(){s.setLessSelection(c,u)}));var f=o.name?o.name:name;h+=hs(e=hs(n=hs(r="".concat(c)).call(r,f)).call(n,dd(o))).call(e,u,"\n")};for(f.s();!(l=f.n()).done;)d()}catch(t){f.e(t)}finally{f.f()}return h}return ud(this.editor,"video",c,(function(t){s.setCacheOnce(t),s.fire(null)})),this.updateMarkdown=!1,t}if(this.hasCacheOnce()){var A,g,p,m,b=this.getAndCleanCacheOnce(),v=b.name,y=b.url,w=b.params,k="!video[",C=w.poster?hs(A="](".concat(y,"){poster=")).call(A,w.poster,"}"):"](".concat(y,")");this.registerAfterClickCb((function(){s.setLessSelection(k,C)}));var x=w.name?w.name:v;return hs(g=hs(p=hs(m="".concat(k)).call(m,x)).call(p,dd(w))).call(g,C)}return hd(this.editor,"video",c,(function(t,e,n){s.setCacheOnce({name:t,url:e,params:n}),s.fire(null)})),this.updateMarkdown=!1,t}}])}(l_);function qL(t,e,n){return e=es(e),Ko(t,YL()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function YL(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(YL=function(){return!!t})()}var JL=function(t){function e(t){var n;return ra(this,e),(n=qL(this,e,[t])).setName("br","br"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){return"".concat(t,"<br>")}}])}(l_);function ZL(t,e,n){return e=es(e),Ko(t,tI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function tI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(tI=function(){return!!t})()}var eI=function(t){function e(t){var n;return ra(this,e),(n=ZL(this,e,[t])).setName("hr","line"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){return"".concat(t,"\n\n---\n")}}])}(l_),nI=function(){return Ho((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ra(this,t),cs(this,"formulaConfig",{toolbar:{title:"快捷工具",subCategory:{sqrt:{title:"根式角标",formulas:[{name:"根式 Radicals",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="4.183ex" height="2.398ex" viewBox="0 -970.2 1849.1 1060" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-92-TEX-I-1D45B" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-92-TEX-N-221A" d="M95 178Q89 178 81 186T72 200T103 230T169 280T207 309Q209 311 212 311H213Q219 311 227 294T281 177Q300 134 312 108L397 -77Q398 -77 501 136T707 565T814 786Q820 800 834 800Q841 800 846 794T853 782V776L620 293L385 -193Q381 -200 366 -200Q357 -200 354 -197Q352 -195 256 15L160 225L144 214Q129 202 113 190T95 178Z"></path><path id="MJX-92-TEX-I-1D465" d="M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"></path><path id="MJX-92-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mroot"><g><g data-mml-node="msup" transform="translate(853, 0)"><g data-mml-node="mi"><use xlink:href="#MJX-92-TEX-I-1D465"></use></g><g data-mml-node="TeXAtom" transform="translate(572, 289) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-92-TEX-I-1D44E"></use></g></g></g></g><g data-mml-node="mi" transform="translate(211.8, 465.7) scale(0.5)"><use xlink:href="#MJX-92-TEX-I-1D45B"></use></g><g data-mml-node="mo" transform="translate(0, 110.2)"><use xlink:href="#MJX-92-TEX-N-221A"></use></g><rect width="996.1" height="60" x="853" y="850.2"></rect></g></g></g></svg>',latex:"\\sqrt[n]{x^{a}}"},{name:"上下标 Sub&Super",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="3.663ex" height="5.994ex" viewBox="0 -1679.5 1618.8 2649.1" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-94-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-94-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-94-TEX-I-1D44B" d="M42 0H40Q26 0 26 11Q26 15 29 27Q33 41 36 43T55 46Q141 49 190 98Q200 108 306 224T411 342Q302 620 297 625Q288 636 234 637H206Q200 643 200 645T202 664Q206 677 212 683H226Q260 681 347 681Q380 681 408 681T453 682T473 682Q490 682 490 671Q490 670 488 658Q484 643 481 640T465 637Q434 634 411 620L488 426L541 485Q646 598 646 610Q646 628 622 635Q617 635 609 637Q594 637 594 648Q594 650 596 664Q600 677 606 683H618Q619 683 643 683T697 681T738 680Q828 680 837 683H845Q852 676 852 672Q850 647 840 637H824Q790 636 763 628T722 611T698 593L687 584Q687 585 592 480L505 384Q505 383 536 304T601 142T638 56Q648 47 699 46Q734 46 734 37Q734 35 732 23Q728 7 725 4T711 1Q708 1 678 1T589 2Q528 2 496 2T461 1Q444 1 444 10Q444 11 446 25Q448 35 450 39T455 44T464 46T480 47T506 54Q523 62 523 64Q522 64 476 181L429 299Q241 95 236 84Q232 76 232 72Q232 53 261 47Q262 47 267 47T273 46Q276 46 277 46T280 45T283 42T284 35Q284 26 282 19Q279 6 276 4T261 1Q258 1 243 1T201 2T142 2Q64 2 42 0Z"></path><path id="MJX-94-TEX-N-34" d="M462 0Q444 3 333 3Q217 3 199 0H190V46H221Q241 46 248 46T265 48T279 53T286 61Q287 63 287 115V165H28V211L179 442Q332 674 334 675Q336 677 355 677H373L379 671V211H471V165H379V114Q379 73 379 66T385 54Q393 47 442 46H471V0H462ZM293 211V545L74 212L183 211H293Z"></path><path id="MJX-94-TEX-N-33" d="M127 463Q100 463 85 480T69 524Q69 579 117 622T233 665Q268 665 277 664Q351 652 390 611T430 522Q430 470 396 421T302 350L299 348Q299 347 308 345T337 336T375 315Q457 262 457 175Q457 96 395 37T238 -22Q158 -22 100 21T42 130Q42 158 60 175T105 193Q133 193 151 175T169 130Q169 119 166 110T159 94T148 82T136 74T126 70T118 67L114 66Q165 21 238 21Q293 21 321 74Q338 107 338 175V195Q338 290 274 322Q259 328 213 329L171 330L168 332Q166 335 166 348Q166 366 174 366Q202 366 232 371Q266 376 294 413T322 525V533Q322 590 287 612Q265 626 240 626Q208 626 181 615T143 592T132 580H135Q138 579 143 578T153 573T165 566T175 555T183 540T186 520Q186 498 172 481T127 463Z"></path><path id="MJX-94-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-94-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="munderover"><g data-mml-node="TeXAtom" data-mjx-texclass="OP"><g data-mml-node="msubsup"><g data-mml-node="TeXAtom" data-mjx-texclass="OP"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mpadded"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mphantom"></g></g></g></g></g><g data-mml-node="mn" transform="translate(75.2, 410.1) scale(0.707)"><use xlink:href="#MJX-94-TEX-N-32"></use></g><g data-mml-node="mn" transform="translate(0, -247) scale(0.707)"><use xlink:href="#MJX-94-TEX-N-31"></use></g></g><g data-mml-node="mstyle" transform="translate(478.8, 0)"><g data-mml-node="mspace"></g></g><g data-mml-node="msubsup" transform="translate(312.1, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="OP"><g data-mml-node="mi"><use xlink:href="#MJX-94-TEX-I-1D44B"></use></g></g><g data-mml-node="mn" transform="translate(903.2, 410.1) scale(0.707)"><use xlink:href="#MJX-94-TEX-N-34"></use></g><g data-mml-node="mn" transform="translate(828, -247) scale(0.707)"><use xlink:href="#MJX-94-TEX-N-33"></use></g></g></g><g data-mml-node="mi" transform="translate(622.4, -862.6) scale(0.707)"><use xlink:href="#MJX-94-TEX-I-1D44E"></use></g><g data-mml-node="mi" transform="translate(657.7, 1088.8) scale(0.707)"><use xlink:href="#MJX-94-TEX-I-1D44F"></use></g></g></g></g></svg>',latex:"\\sideset{_1^2}{_3^4}X_a^b"}]},limit:{title:"极限对数",formulas:[{name:"极限 Limits",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="5.689ex" height="3.171ex" viewBox="0 -694 2514.3 1401.8" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-16-TEX-N-6C" d="M42 46H56Q95 46 103 60V68Q103 77 103 91T103 124T104 167T104 217T104 272T104 329Q104 366 104 407T104 482T104 542T103 586T103 603Q100 622 89 628T44 637H26V660Q26 683 28 683L38 684Q48 685 67 686T104 688Q121 689 141 690T171 693T182 694H185V379Q185 62 186 60Q190 52 198 49Q219 46 247 46H263V0H255L232 1Q209 2 183 2T145 3T107 3T57 1L34 0H26V46H42Z"></path><path id="MJX-16-TEX-N-69" d="M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z"></path><path id="MJX-16-TEX-N-6D" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q351 442 364 440T387 434T406 426T421 417T432 406T441 395T448 384T452 374T455 366L457 361L460 365Q463 369 466 373T475 384T488 397T503 410T523 422T546 432T572 439T603 442Q729 442 740 329Q741 322 741 190V104Q741 66 743 59T754 49Q775 46 803 46H819V0H811L788 1Q764 2 737 2T699 3Q596 3 587 0H579V46H595Q656 46 656 62Q657 64 657 200Q656 335 655 343Q649 371 635 385T611 402T585 404Q540 404 506 370Q479 343 472 315T464 232V168V108Q464 78 465 68T468 55T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path><path id="MJX-16-TEX-I-1D465" d="M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"></path><path id="MJX-16-TEX-N-2192" d="M56 237T56 250T70 270H835Q719 357 692 493Q692 494 692 496T691 499Q691 511 708 511H711Q720 511 723 510T729 506T732 497T735 481T743 456Q765 389 816 336T935 261Q944 258 944 250Q944 244 939 241T915 231T877 212Q836 186 806 152T761 85T740 35T732 4Q730 -6 727 -8T711 -11Q691 -11 691 0Q691 7 696 25Q728 151 835 230H70Q56 237 56 250Z"></path><path id="MJX-16-TEX-N-221E" d="M55 217Q55 305 111 373T254 442Q342 442 419 381Q457 350 493 303L507 284L514 294Q618 442 747 442Q833 442 888 374T944 214Q944 128 889 59T743 -11Q657 -11 580 50Q542 81 506 128L492 147L485 137Q381 -11 252 -11Q166 -11 111 57T55 217ZM907 217Q907 285 869 341T761 397Q740 397 720 392T682 378T648 359T619 335T594 310T574 285T559 263T548 246L543 238L574 198Q605 158 622 138T664 94T714 61T765 51Q827 51 867 100T907 217ZM92 214Q92 145 131 89T239 33Q357 33 456 193L425 233Q364 312 334 337Q285 380 233 380Q171 380 132 331T92 214Z"></path><path id="MJX-16-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="munder"><g data-mml-node="mo" transform="translate(214.8, 0)"><use xlink:href="#MJX-16-TEX-N-6C"></use><use xlink:href="#MJX-16-TEX-N-69" transform="translate(278, 0)"></use><use xlink:href="#MJX-16-TEX-N-6D" transform="translate(556, 0)"></use></g><g data-mml-node="TeXAtom" transform="translate(0, -600) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-16-TEX-I-1D465"></use></g><g data-mml-node="mo" transform="translate(572, 0)"><use xlink:href="#MJX-16-TEX-N-2192"></use></g><g data-mml-node="mi" transform="translate(1572, 0)"><use xlink:href="#MJX-16-TEX-N-221E"></use></g></g></g><g data-mml-node="mi" transform="translate(1985.3, 0)"><use xlink:href="#MJX-16-TEX-I-1D44E"></use></g></g></g></svg>',latex:"\n\\lim_{x \\to \\infty} a"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="5.198ex" height="2.132ex" viewBox="0 -694 2297.7 942.4" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-80-TEX-N-6C" d="M42 46H56Q95 46 103 60V68Q103 77 103 91T103 124T104 167T104 217T104 272T104 329Q104 366 104 407T104 482T104 542T103 586T103 603Q100 622 89 628T44 637H26V660Q26 683 28 683L38 684Q48 685 67 686T104 688Q121 689 141 690T171 693T182 694H185V379Q185 62 186 60Q190 52 198 49Q219 46 247 46H263V0H255L232 1Q209 2 183 2T145 3T107 3T57 1L34 0H26V46H42Z"></path><path id="MJX-80-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-80-TEX-N-67" d="M329 409Q373 453 429 453Q459 453 472 434T485 396Q485 382 476 371T449 360Q416 360 412 390Q410 404 415 411Q415 412 416 414V415Q388 412 363 393Q355 388 355 386Q355 385 359 381T368 369T379 351T388 325T392 292Q392 230 343 187T222 143Q172 143 123 171Q112 153 112 133Q112 98 138 81Q147 75 155 75T227 73Q311 72 335 67Q396 58 431 26Q470 -13 470 -72Q470 -139 392 -175Q332 -206 250 -206Q167 -206 107 -175Q29 -140 29 -75Q29 -39 50 -15T92 18L103 24Q67 55 67 108Q67 155 96 193Q52 237 52 292Q52 355 102 398T223 442Q274 442 318 416L329 409ZM299 343Q294 371 273 387T221 404Q192 404 171 388T145 343Q142 326 142 292Q142 248 149 227T179 192Q196 182 222 182Q244 182 260 189T283 207T294 227T299 242Q302 258 302 292T299 343ZM403 -75Q403 -50 389 -34T348 -11T299 -2T245 0H218Q151 0 138 -6Q118 -15 107 -34T95 -74Q95 -84 101 -97T122 -127T170 -155T250 -167Q319 -167 361 -139T403 -75Z"></path><path id="MJX-80-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-80-TEX-N-2061" d=""></path><path id="MJX-80-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-80-TEX-N-6C"></use><use xlink:href="#MJX-80-TEX-N-6F" transform="translate(278, 0)"></use><use xlink:href="#MJX-80-TEX-N-67" transform="translate(778, 0)"></use></g><g data-mml-node="TeXAtom" transform="translate(1278, -241.4) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-80-TEX-I-1D44E"></use></g></g></g><g data-mml-node="mo" transform="translate(1702.1, 0)"><use xlink:href="#MJX-80-TEX-N-2061"></use></g><g data-mml-node="TeXAtom" data-mjx-texclass="ORD" transform="translate(1868.7, 0)"><g data-mml-node="mi"><use xlink:href="#MJX-80-TEX-I-1D44F"></use></g></g></g></g></svg>',latex:"\\log_{a}{b}"}]}}},template:{title:"公式模板",subCategory:{algebra:{title:"代数",formulas:[{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="9.067ex" height="2.851ex" viewBox="0 -1114.2 4007.6 1260" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-100-TEX-SO-221A" d="M263 249Q264 249 315 130T417 -108T470 -228L725 302Q981 837 982 839Q989 850 1001 850Q1008 850 1013 844T1020 832V826L741 243Q645 43 540 -176Q479 -303 469 -324T453 -348Q449 -350 436 -350L424 -349L315 -96Q206 156 205 156L171 130Q138 104 137 104L111 130L263 249Z"></path><path id="MJX-100-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-100-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-100-TEX-N-2B" d="M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z"></path><path id="MJX-100-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msqrt"><g transform="translate(1020, 0)"><g data-mml-node="msup"><g data-mml-node="mi"><use xlink:href="#MJX-100-TEX-I-1D44E"></use></g><g data-mml-node="mn" transform="translate(529, 289) scale(0.707)"><use xlink:href="#MJX-100-TEX-N-32"></use></g></g><g data-mml-node="mo" transform="translate(1154.8, 0)"><use xlink:href="#MJX-100-TEX-N-2B"></use></g><g data-mml-node="msup" transform="translate(2155, 0)"><g data-mml-node="mi"><use xlink:href="#MJX-100-TEX-I-1D44F"></use></g><g data-mml-node="mn" transform="translate(429, 289) scale(0.707)"><use xlink:href="#MJX-100-TEX-N-32"></use></g></g></g><g data-mml-node="mo" transform="translate(0, 204.2)"><use xlink:href="#MJX-100-TEX-SO-221A"></use></g><rect width="2987.6" height="60" x="1020" y="994.2"></rect></g></g></g></svg>',latex:"\\sqrt{a^2+b^2}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="12.249ex" height="4.635ex" viewBox="0 -1351.5 5414.1 2048.5" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-104-TEX-LO-28" d="M180 96T180 250T205 541T266 770T353 944T444 1069T527 1150H555Q561 1144 561 1141Q561 1137 545 1120T504 1072T447 995T386 878T330 721T288 513T272 251Q272 133 280 56Q293 -87 326 -209T399 -405T475 -531T536 -609T561 -640Q561 -643 555 -649H527Q483 -612 443 -568T353 -443T266 -270T205 -41Z"></path><path id="MJX-104-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-104-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path><path id="MJX-104-TEX-LO-29" d="M35 1138Q35 1150 51 1150H56H69Q113 1113 153 1069T243 944T330 771T391 541T416 250T391 -40T330 -270T243 -443T152 -568T69 -649H56Q43 -649 39 -647T35 -637Q65 -607 110 -548Q283 -316 316 56Q324 133 324 251Q324 368 316 445Q278 877 48 1123Q36 1137 35 1138Z"></path><path id="MJX-104-TEX-I-1D45B" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-104-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msup"><g data-mml-node="mrow"><g data-mml-node="mo"><use xlink:href="#MJX-104-TEX-LO-28"></use></g><g data-mml-node="mfrac" transform="translate(597, 0)"><g data-mml-node="mi" transform="translate(220, 676)"><use xlink:href="#MJX-104-TEX-I-1D44E"></use></g><g data-mml-node="mi" transform="translate(270, -686)"><use xlink:href="#MJX-104-TEX-I-1D44F"></use></g><rect width="729" height="60" x="120" y="220"></rect></g><g data-mml-node="mo" transform="translate(1566, 0)"><use xlink:href="#MJX-104-TEX-LO-29"></use></g></g><g data-mml-node="TeXAtom" transform="translate(2163, 876.6) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-104-TEX-I-1D45B"></use></g></g></g><g data-mml-node="mo" transform="translate(2915, 0)"><use xlink:href="#MJX-104-TEX-N-3D"></use></g><g data-mml-node="mfrac" transform="translate(3970.8, 0)"><g data-mml-node="msup" transform="translate(220, 676)"><g data-mml-node="mi"><use xlink:href="#MJX-104-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, 363) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-104-TEX-I-1D45B"></use></g></g></g><g data-mml-node="msup" transform="translate(270, -686)"><g data-mml-node="mi"><use xlink:href="#MJX-104-TEX-I-1D44F"></use></g><g data-mml-node="TeXAtom" transform="translate(429, 289) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-104-TEX-I-1D45B"></use></g></g></g><rect width="1203.3" height="60" x="120" y="220"></rect></g></g></g></svg>',latex:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="20.69ex" height="5.291ex" viewBox="0 -1642.5 9145 2338.5" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-116-TEX-I-1D465" d="M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"></path><path id="MJX-116-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-116-TEX-N-2212" d="M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z"></path><path id="MJX-116-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path><path id="MJX-116-TEX-N-B1" d="M56 320T56 333T70 353H369V502Q369 651 371 655Q376 666 388 666Q402 666 405 654T409 596V500V353H707Q722 345 722 333Q722 320 707 313H409V40H707Q722 32 722 20T707 0H70Q56 7 56 20T70 40H369V313H70Q56 320 56 333Z"></path><path id="MJX-116-TEX-N-221A" d="M95 178Q89 178 81 186T72 200T103 230T169 280T207 309Q209 311 212 311H213Q219 311 227 294T281 177Q300 134 312 108L397 -77Q398 -77 501 136T707 565T814 786Q820 800 834 800Q841 800 846 794T853 782V776L620 293L385 -193Q381 -200 366 -200Q357 -200 354 -197Q352 -195 256 15L160 225L144 214Q129 202 113 190T95 178Z"></path><path id="MJX-116-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-116-TEX-N-34" d="M462 0Q444 3 333 3Q217 3 199 0H190V46H221Q241 46 248 46T265 48T279 53T286 61Q287 63 287 115V165H28V211L179 442Q332 674 334 675Q336 677 355 677H373L379 671V211H471V165H379V114Q379 73 379 66T385 54Q393 47 442 46H471V0H462ZM293 211V545L74 212L183 211H293Z"></path><path id="MJX-116-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-116-TEX-I-1D450" d="M34 159Q34 268 120 355T306 442Q362 442 394 418T427 355Q427 326 408 306T360 285Q341 285 330 295T319 325T330 359T352 380T366 386H367Q367 388 361 392T340 400T306 404Q276 404 249 390Q228 381 206 359Q162 315 142 235T121 119Q121 73 147 50Q169 26 205 26H209Q321 26 394 111Q403 121 406 121Q410 121 419 112T429 98T420 83T391 55T346 25T282 0T202 -11Q127 -11 81 37T34 159Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-116-TEX-I-1D465"></use></g><g data-mml-node="mo" transform="translate(849.8, 0)"><use xlink:href="#MJX-116-TEX-N-3D"></use></g><g data-mml-node="TeXAtom" data-mjx-texclass="ORD" transform="translate(1905.6, 0)"><g data-mml-node="mfrac"><g data-mml-node="mrow" transform="translate(220, 676)"><g data-mml-node="mo"><use xlink:href="#MJX-116-TEX-N-2212"></use></g><g data-mml-node="mi" transform="translate(778, 0)"><use xlink:href="#MJX-116-TEX-I-1D44F"></use></g><g data-mml-node="mo" transform="translate(1429.2, 0)"><use xlink:href="#MJX-116-TEX-N-B1"></use></g><g data-mml-node="msqrt" transform="translate(2429.4, 0)"><g transform="translate(853, 0)"><g data-mml-node="msup"><g data-mml-node="mi"><use xlink:href="#MJX-116-TEX-I-1D44F"></use></g><g data-mml-node="mn" transform="translate(429, 289) scale(0.707)"><use xlink:href="#MJX-116-TEX-N-32"></use></g></g><g data-mml-node="mo" transform="translate(1054.8, 0)"><use xlink:href="#MJX-116-TEX-N-2212"></use></g><g data-mml-node="mn" transform="translate(2055, 0)"><use xlink:href="#MJX-116-TEX-N-34"></use></g><g data-mml-node="mi" transform="translate(2555, 0)"><use xlink:href="#MJX-116-TEX-I-1D44E"></use></g><g data-mml-node="mi" transform="translate(3084, 0)"><use xlink:href="#MJX-116-TEX-I-1D450"></use></g></g><g data-mml-node="mo" transform="translate(0, 106.5)"><use xlink:href="#MJX-116-TEX-N-221A"></use></g><rect width="3517" height="60" x="853" y="846.5"></rect></g></g><g data-mml-node="mrow" transform="translate(3105.2, -686)"><g data-mml-node="mn"><use xlink:href="#MJX-116-TEX-N-32"></use></g><g data-mml-node="mi" transform="translate(500, 0)"><use xlink:href="#MJX-116-TEX-I-1D44E"></use></g></g><rect width="6999.4" height="60" x="120" y="220"></rect></g></g></g></g></svg>',latex:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="15.079ex" height="5.43ex" viewBox="0 -1450 6665 2400" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-118-TEX-S3-7B" d="M618 -943L612 -949H582L568 -943Q472 -903 411 -841T332 -703Q327 -682 327 -653T325 -350Q324 -28 323 -18Q317 24 301 61T264 124T221 171T179 205T147 225T132 234Q130 238 130 250Q130 255 130 258T131 264T132 267T134 269T139 272T144 275Q207 308 256 367Q310 436 323 519Q324 529 325 851Q326 1124 326 1154T332 1205Q369 1358 566 1443L582 1450H612L618 1444V1429Q618 1413 616 1411L608 1406Q599 1402 585 1393T552 1372T515 1343T479 1305T449 1257T429 1200Q425 1180 425 1152T423 851Q422 579 422 549T416 498Q407 459 388 424T346 364T297 318T250 284T214 264T197 254L188 251L205 242Q290 200 345 138T416 3Q421 -18 421 -48T423 -349Q423 -397 423 -472Q424 -677 428 -694Q429 -697 429 -699Q434 -722 443 -743T465 -782T491 -816T519 -845T548 -868T574 -886T595 -899T610 -908L616 -910Q618 -912 618 -928V-943Z"></path><path id="MJX-118-TEX-I-1D465" d="M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"></path><path id="MJX-118-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-118-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-118-TEX-N-2B" d="M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z"></path><path id="MJX-118-TEX-I-1D45F" d="M21 287Q22 290 23 295T28 317T38 348T53 381T73 411T99 433T132 442Q161 442 183 430T214 408T225 388Q227 382 228 382T236 389Q284 441 347 441H350Q398 441 422 400Q430 381 430 363Q430 333 417 315T391 292T366 288Q346 288 334 299T322 328Q322 376 378 392Q356 405 342 405Q286 405 239 331Q229 315 224 298T190 165Q156 25 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 114 189T154 366Q154 405 128 405Q107 405 92 377T68 316T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-118-TEX-N-63" d="M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z"></path><path id="MJX-118-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-118-TEX-N-73" d="M295 316Q295 356 268 385T190 414Q154 414 128 401Q98 382 98 349Q97 344 98 336T114 312T157 287Q175 282 201 278T245 269T277 256Q294 248 310 236T342 195T359 133Q359 71 321 31T198 -10H190Q138 -10 94 26L86 19L77 10Q71 4 65 -1L54 -11H46H42Q39 -11 33 -5V74V132Q33 153 35 157T45 162H54Q66 162 70 158T75 146T82 119T101 77Q136 26 198 26Q295 26 295 104Q295 133 277 151Q257 175 194 187T111 210Q75 227 54 256T33 318Q33 357 50 384T93 424T143 442T187 447H198Q238 447 268 432L283 424L292 431Q302 440 314 448H322H326Q329 448 335 442V310L329 304H301Q295 310 295 316Z"></path><path id="MJX-118-TEX-I-1D703" d="M35 200Q35 302 74 415T180 610T319 704Q320 704 327 704T339 705Q393 701 423 656Q462 596 462 495Q462 380 417 261T302 66T168 -10H161Q125 -10 99 10T60 63T41 130T35 200ZM383 566Q383 668 330 668Q294 668 260 623T204 521T170 421T157 371Q206 370 254 370L351 371Q352 372 359 404T375 484T383 566ZM113 132Q113 26 166 26Q181 26 198 36T239 74T287 161T335 307L340 324H145Q145 321 136 286T120 208T113 132Z"></path><path id="MJX-118-TEX-I-1D466" d="M21 287Q21 301 36 335T84 406T158 442Q199 442 224 419T250 355Q248 336 247 334Q247 331 231 288T198 191T182 105Q182 62 196 45T238 27Q261 27 281 38T312 61T339 94Q339 95 344 114T358 173T377 247Q415 397 419 404Q432 431 462 431Q475 431 483 424T494 412T496 403Q496 390 447 193T391 -23Q363 -106 294 -155T156 -205Q111 -205 77 -183T43 -117Q43 -95 50 -80T69 -58T89 -48T106 -45Q150 -45 150 -87Q150 -107 138 -122T115 -142T102 -147L99 -148Q101 -153 118 -160T152 -167H160Q177 -167 186 -165Q219 -156 247 -127T290 -65T313 -9T321 21L315 17Q309 13 296 6T270 -6Q250 -11 231 -11Q185 -11 150 11T104 82Q103 89 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-118-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path><path id="MJX-118-TEX-N-69" d="M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z"></path><path id="MJX-118-TEX-N-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mrow"><g data-mml-node="mo"><use xlink:href="#MJX-118-TEX-S3-7B"></use></g><g data-mml-node="mtable" transform="translate(750, 0)"><g data-mml-node="mtr" transform="translate(0, 700)"><g data-mml-node="mtd"><g data-mml-node="mi"><use xlink:href="#MJX-118-TEX-I-1D465"></use></g><g data-mml-node="mo" transform="translate(849.8, 0)"><use xlink:href="#MJX-118-TEX-N-3D"></use></g><g data-mml-node="mi" transform="translate(1905.6, 0)"><use xlink:href="#MJX-118-TEX-I-1D44E"></use></g><g data-mml-node="mo" transform="translate(2656.8, 0)"><use xlink:href="#MJX-118-TEX-N-2B"></use></g><g data-mml-node="mi" transform="translate(3657, 0)"><use xlink:href="#MJX-118-TEX-I-1D45F"></use></g><g data-mml-node="mtext" transform="translate(4108, 0)"><use xlink:href="#MJX-118-TEX-N-63"></use><use xlink:href="#MJX-118-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-118-TEX-N-73" transform="translate(944, 0)"></use></g><g data-mml-node="mi" transform="translate(5446, 0)"><use xlink:href="#MJX-118-TEX-I-1D703"></use></g></g></g><g data-mml-node="mtr" transform="translate(0, -700)"><g data-mml-node="mtd" transform="translate(146, 0)"><g data-mml-node="mi"><use xlink:href="#MJX-118-TEX-I-1D466"></use></g><g data-mml-node="mo" transform="translate(767.8, 0)"><use xlink:href="#MJX-118-TEX-N-3D"></use></g><g data-mml-node="mi" transform="translate(1823.6, 0)"><use xlink:href="#MJX-118-TEX-I-1D44F"></use></g><g data-mml-node="mo" transform="translate(2474.8, 0)"><use xlink:href="#MJX-118-TEX-N-2B"></use></g><g data-mml-node="mi" transform="translate(3475, 0)"><use xlink:href="#MJX-118-TEX-I-1D45F"></use></g><g data-mml-node="mtext" transform="translate(3926, 0)"><use xlink:href="#MJX-118-TEX-N-73"></use><use xlink:href="#MJX-118-TEX-N-69" transform="translate(394, 0)"></use><use xlink:href="#MJX-118-TEX-N-6E" transform="translate(672, 0)"></use></g><g data-mml-node="mi" transform="translate(5154, 0)"><use xlink:href="#MJX-118-TEX-I-1D703"></use></g></g></g></g><g data-mml-node="mo" transform="translate(6665, 0)"></g></g></g></g></svg>',latex:"\n\\left\\{\\begin{matrix}\n x=a + r\\text{cos}\\theta \\\\\n y=b + r\\text{sin}\\theta \n\\end{matrix}\\right."}]},array:{title:"矩阵",formulas:[{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="7.855ex" height="5.43ex" viewBox="0 -1450 3472 2400" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-122-TEX-S3-28" d="M701 -940Q701 -943 695 -949H664Q662 -947 636 -922T591 -879T537 -818T475 -737T412 -636T350 -511T295 -362T250 -186T221 17T209 251Q209 962 573 1361Q596 1386 616 1405T649 1437T664 1450H695Q701 1444 701 1441Q701 1436 681 1415T629 1356T557 1261T476 1118T400 927T340 675T308 359Q306 321 306 250Q306 -139 400 -430T690 -924Q701 -936 701 -940Z"></path><path id="MJX-122-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-122-TEX-N-30" d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z"></path><path id="MJX-122-TEX-S3-29" d="M34 1438Q34 1446 37 1448T50 1450H56H71Q73 1448 99 1423T144 1380T198 1319T260 1238T323 1137T385 1013T440 864T485 688T514 485T526 251Q526 134 519 53Q472 -519 162 -860Q139 -885 119 -904T86 -936T71 -949H56Q43 -949 39 -947T34 -937Q88 -883 140 -813Q428 -430 428 251Q428 453 402 628T338 922T245 1146T145 1309T46 1425Q44 1427 42 1429T39 1433T36 1436L34 1438Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mrow"><g data-mml-node="mo"><use xlink:href="#MJX-122-TEX-S3-28"></use></g><g data-mml-node="mtable" transform="translate(736, 0)"><g data-mml-node="mtr" transform="translate(0, 700)"><g data-mml-node="mtd"><g data-mml-node="mn"><use xlink:href="#MJX-122-TEX-N-31"></use></g></g><g data-mml-node="mtd" transform="translate(1500, 0)"><g data-mml-node="mn"><use xlink:href="#MJX-122-TEX-N-30"></use></g></g></g><g data-mml-node="mtr" transform="translate(0, -700)"><g data-mml-node="mtd"><g data-mml-node="mn"><use xlink:href="#MJX-122-TEX-N-30"></use></g></g><g data-mml-node="mtd" transform="translate(1500, 0)"><g data-mml-node="mn"><use xlink:href="#MJX-122-TEX-N-31"></use></g></g></g></g><g data-mml-node="mo" transform="translate(2736, 0)"><use xlink:href="#MJX-122-TEX-S3-29"></use></g></g></g></g></svg>',latex:"\n\\begin{pmatrix}\n 1 & 0 \\\\\n 0 & 1\n\\end{pmatrix}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="18.574ex" height="10.339ex" viewBox="0 -2535 8209.5 4570" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-126-TEX-S4-239B" d="M837 1154Q843 1148 843 1145Q843 1141 818 1106T753 1002T667 841T574 604T494 299Q417 -84 417 -609Q417 -641 416 -647T411 -654Q409 -655 366 -655Q299 -655 297 -654Q292 -652 292 -643T291 -583Q293 -400 304 -242T347 110T432 470T574 813T785 1136Q787 1139 790 1142T794 1147T796 1150T799 1152T802 1153T807 1154T813 1154H819H837Z"></path><path id="MJX-126-TEX-S4-239D" d="M843 -635Q843 -638 837 -644H820Q801 -644 800 -643Q792 -635 785 -626Q684 -503 605 -363T473 -75T385 216T330 518T302 809T291 1093Q291 1144 291 1153T296 1164Q298 1165 366 1165Q409 1165 411 1164Q415 1163 416 1157T417 1119Q417 529 517 109T833 -617Q843 -631 843 -635Z"></path><path id="MJX-126-TEX-S4-239C" d="M413 -9Q412 -9 407 -9T388 -10T354 -10Q300 -10 297 -9Q294 -8 293 -5Q291 5 291 127V300Q291 602 292 605L296 609Q298 610 366 610Q382 610 392 610T407 610T412 609Q416 609 416 592T417 473V127Q417 -9 413 -9Z"></path><path id="MJX-126-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-126-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-126-TEX-N-22EF" d="M78 250Q78 274 95 292T138 310Q162 310 180 294T199 251Q199 226 182 208T139 190T96 207T78 250ZM525 250Q525 274 542 292T585 310Q609 310 627 294T646 251Q646 226 629 208T586 190T543 207T525 250ZM972 250Q972 274 989 292T1032 310Q1056 310 1074 294T1093 251Q1093 226 1076 208T1033 190T990 207T972 250Z"></path><path id="MJX-126-TEX-I-1D45B" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-126-TEX-N-22EE" d="M78 30Q78 54 95 72T138 90Q162 90 180 74T199 31Q199 6 182 -12T139 -30T96 -13T78 30ZM78 440Q78 464 95 482T138 500Q162 500 180 484T199 441Q199 416 182 398T139 380T96 397T78 440ZM78 840Q78 864 95 882T138 900Q162 900 180 884T199 841Q199 816 182 798T139 780T96 797T78 840Z"></path><path id="MJX-126-TEX-N-22F1" d="M133 760Q133 784 150 802T193 820Q217 820 235 804T254 761Q254 736 237 718T194 700T151 717T133 760ZM580 460Q580 484 597 502T640 520Q664 520 682 504T701 461Q701 436 684 418T641 400T598 417T580 460ZM1027 160Q1027 184 1044 202T1087 220Q1111 220 1129 204T1148 161Q1148 136 1131 118T1088 100T1045 117T1027 160Z"></path><path id="MJX-126-TEX-I-1D45A" d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-126-TEX-S4-239E" d="M31 1143Q31 1154 49 1154H59Q72 1154 75 1152T89 1136Q190 1013 269 873T401 585T489 294T544 -8T572 -299T583 -583Q583 -634 583 -643T577 -654Q575 -655 508 -655Q465 -655 463 -654Q459 -653 458 -647T457 -609Q457 -58 371 340T100 1037Q87 1059 61 1098T31 1143Z"></path><path id="MJX-126-TEX-S4-23A0" d="M56 -644H50Q31 -644 31 -635Q31 -632 37 -622Q69 -579 100 -527Q286 -228 371 170T457 1119Q457 1161 462 1164Q464 1165 520 1165Q575 1165 577 1164Q582 1162 582 1153T583 1093Q581 910 570 752T527 400T442 40T300 -303T89 -626Q78 -640 75 -642T61 -644H56Z"></path><path id="MJX-126-TEX-S4-239F" d="M579 -9Q578 -9 573 -9T554 -10T520 -10Q466 -10 463 -9Q460 -8 459 -5Q457 5 457 127V300Q457 602 458 605L462 609Q464 610 532 610Q548 610 558 610T573 610T578 609Q582 609 582 592T583 473V127Q583 -9 579 -9Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mrow"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-S4-239B" transform="translate(0, 1381)"></use><use xlink:href="#MJX-126-TEX-S4-239D" transform="translate(0, -1391)"></use><svg width="875" height="1152" y="-326" x="0" viewBox="0 260.1 875 1152"><use xlink:href="#MJX-126-TEX-S4-239C" transform="scale(1, 2.787)"></use></svg></g><g data-mml-node="mtable" transform="translate(875, 0)"><g data-mml-node="mtr" transform="translate(0, 1785)"><g data-mml-node="mtd" transform="translate(133.6, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-126-TEX-N-31"></use><use xlink:href="#MJX-126-TEX-N-31" transform="translate(500, 0)"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(2608.4, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-N-22EF"></use></g></g><g data-mml-node="mtd" transform="translate(4969, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-126-TEX-N-31"></use></g><g data-mml-node="mi" transform="translate(500, 0)"><use xlink:href="#MJX-126-TEX-I-1D45B"></use></g></g></g></g></g><g data-mml-node="mtr" transform="translate(0, -385)"><g data-mml-node="mtd" transform="translate(637.7, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-N-22EE"></use></g></g></g><g data-mml-node="mtd" transform="translate(2553.4, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-N-22F1"></use></g></g><g data-mml-node="mtd" transform="translate(5508.4, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-N-22EE"></use></g></g></g></g><g data-mml-node="mtr" transform="translate(0, -1785)"><g data-mml-node="mtd"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D45A"></use></g><g data-mml-node="mn" transform="translate(878, 0)"><use xlink:href="#MJX-126-TEX-N-31"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(2608.4, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-N-22EF"></use></g></g><g data-mml-node="mtd" transform="translate(4835.4, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D45A"></use></g><g data-mml-node="mi" transform="translate(878, 0)"><use xlink:href="#MJX-126-TEX-I-1D45B"></use></g></g></g></g></g></g><g data-mml-node="mo" transform="translate(7334.5, 0)"><use xlink:href="#MJX-126-TEX-S4-239E" transform="translate(0, 1381)"></use><use xlink:href="#MJX-126-TEX-S4-23A0" transform="translate(0, -1391)"></use><svg width="875" height="1152" y="-326" x="0" viewBox="0 260.1 875 1152"><use xlink:href="#MJX-126-TEX-S4-239F" transform="scale(1, 2.787)"></use></svg></g></g></g></g></svg>',latex:"\n\\begin{pmatrix}\n a_{11} & \\cdots & a_{1n} \\\\\n \\vdots & \\ddots & \\vdots \\\\\n a_{m1} & \\cdots & a_{mn}\n\\end{pmatrix}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="38.641ex" height="13.507ex" viewBox="0 -3235 17079.5 5970" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-128-TEX-I-1D434" d="M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z"></path><path id="MJX-128-TEX-I-1D45A" d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-128-TEX-N-D7" d="M630 29Q630 9 609 9Q604 9 587 25T493 118L389 222L284 117Q178 13 175 11Q171 9 168 9Q160 9 154 15T147 29Q147 36 161 51T255 146L359 250L255 354Q174 435 161 449T147 471Q147 480 153 485T168 490Q173 490 175 489Q178 487 284 383L389 278L493 382Q570 459 587 475T609 491Q630 491 630 471Q630 464 620 453T522 355L418 250L522 145Q606 61 618 48T630 29Z"></path><path id="MJX-128-TEX-I-1D45B" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-128-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-128-TEX-S4-23A1" d="M319 -645V1154H666V1070H403V-645H319Z"></path><path id="MJX-128-TEX-S4-23A3" d="M319 -644V1155H403V-560H666V-644H319Z"></path><path id="MJX-128-TEX-S4-23A2" d="M319 0V602H403V0H319Z"></path><path id="MJX-128-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-128-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-128-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-128-TEX-N-22EF" d="M78 250Q78 274 95 292T138 310Q162 310 180 294T199 251Q199 226 182 208T139 190T96 207T78 250ZM525 250Q525 274 542 292T585 310Q609 310 627 294T646 251Q646 226 629 208T586 190T543 207T525 250ZM972 250Q972 274 989 292T1032 310Q1056 310 1074 294T1093 251Q1093 226 1076 208T1033 190T990 207T972 250Z"></path><path id="MJX-128-TEX-N-22EE" d="M78 30Q78 54 95 72T138 90Q162 90 180 74T199 31Q199 6 182 -12T139 -30T96 -13T78 30ZM78 440Q78 464 95 482T138 500Q162 500 180 484T199 441Q199 416 182 398T139 380T96 397T78 440ZM78 840Q78 864 95 882T138 900Q162 900 180 884T199 841Q199 816 182 798T139 780T96 797T78 840Z"></path><path id="MJX-128-TEX-N-22F1" d="M133 760Q133 784 150 802T193 820Q217 820 235 804T254 761Q254 736 237 718T194 700T151 717T133 760ZM580 460Q580 484 597 502T640 520Q664 520 682 504T701 461Q701 436 684 418T641 400T598 417T580 460ZM1027 160Q1027 184 1044 202T1087 220Q1111 220 1129 204T1148 161Q1148 136 1131 118T1088 100T1045 117T1027 160Z"></path><path id="MJX-128-TEX-S4-23A4" d="M0 1070V1154H347V-645H263V1070H0Z"></path><path id="MJX-128-TEX-S4-23A6" d="M263 -560V1155H347V-644H0V-560H263Z"></path><path id="MJX-128-TEX-S4-23A5" d="M263 0V602H347V0H263Z"></path><path id="MJX-128-TEX-N-5B" d="M118 -250V750H255V710H158V-210H255V-250H118Z"></path><path id="MJX-128-TEX-I-1D456" d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z"></path><path id="MJX-128-TEX-I-1D457" d="M297 596Q297 627 318 644T361 661Q378 661 389 651T403 623Q403 595 384 576T340 557Q322 557 310 567T297 596ZM288 376Q288 405 262 405Q240 405 220 393T185 362T161 325T144 293L137 279Q135 278 121 278H107Q101 284 101 286T105 299Q126 348 164 391T252 441Q253 441 260 441T272 442Q296 441 316 432Q341 418 354 401T367 348V332L318 133Q267 -67 264 -75Q246 -125 194 -164T75 -204Q25 -204 7 -183T-12 -137Q-12 -110 7 -91T53 -71Q70 -71 82 -81T95 -112Q95 -148 63 -167Q69 -168 77 -168Q111 -168 139 -140T182 -74L193 -32Q204 11 219 72T251 197T278 308T289 365Q289 372 288 376Z"></path><path id="MJX-128-TEX-N-5D" d="M22 710V750H159V-250H22V-210H119V710H22Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D434"></use></g><g data-mml-node="TeXAtom" transform="translate(750, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D45A"></use></g><g data-mml-node="mo" transform="translate(878, 0)"><use xlink:href="#MJX-128-TEX-N-D7"></use></g><g data-mml-node="mi" transform="translate(1656, 0)"><use xlink:href="#MJX-128-TEX-I-1D45B"></use></g></g></g><g data-mml-node="mo" transform="translate(2673, 0)"><use xlink:href="#MJX-128-TEX-N-3D"></use></g><g data-mml-node="mrow" transform="translate(3728.8, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-S4-23A1" transform="translate(0, 2081)"></use><use xlink:href="#MJX-128-TEX-S4-23A3" transform="translate(0, -2091)"></use><svg width="667" height="2572" y="-1036" x="0" viewBox="0 643 667 2572"><use xlink:href="#MJX-128-TEX-S4-23A2" transform="scale(1, 6.409)"></use></svg></g><g data-mml-node="mtable" transform="translate(667, 0)"><g data-mml-node="mtr" transform="translate(0, 2485)"><g data-mml-node="mtd" transform="translate(133.6, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-31"></use><use xlink:href="#MJX-128-TEX-N-31" transform="translate(500, 0)"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(2687, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-31"></use><use xlink:href="#MJX-128-TEX-N-32" transform="translate(500, 0)"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(5161.8, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EF"></use></g></g><g data-mml-node="mtd" transform="translate(7522.4, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-31"></use></g><g data-mml-node="mi" transform="translate(500, 0)"><use xlink:href="#MJX-128-TEX-I-1D45B"></use></g></g></g></g></g><g data-mml-node="mtr" transform="translate(0, 1085)"><g data-mml-node="mtd" transform="translate(133.6, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-32"></use><use xlink:href="#MJX-128-TEX-N-31" transform="translate(500, 0)"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(2687, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-32"></use><use xlink:href="#MJX-128-TEX-N-32" transform="translate(500, 0)"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(5161.8, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EF"></use></g></g><g data-mml-node="mtd" transform="translate(7522.4, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-32"></use></g><g data-mml-node="mi" transform="translate(500, 0)"><use xlink:href="#MJX-128-TEX-I-1D45B"></use></g></g></g></g></g><g data-mml-node="mtr" transform="translate(0, -1085)"><g data-mml-node="mtd" transform="translate(637.7, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EE"></use></g></g></g><g data-mml-node="mtd" transform="translate(3191.1, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EE"></use></g></g></g><g data-mml-node="mtd" transform="translate(5106.8, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22F1"></use></g></g><g data-mml-node="mtd" transform="translate(8061.8, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EE"></use></g></g></g></g><g data-mml-node="mtr" transform="translate(0, -2485)"><g data-mml-node="mtd"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D45A"></use></g><g data-mml-node="mn" transform="translate(878, 0)"><use xlink:href="#MJX-128-TEX-N-31"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(2553.4, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D45A"></use></g><g data-mml-node="mn" transform="translate(878, 0)"><use xlink:href="#MJX-128-TEX-N-32"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(5161.8, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EF"></use></g></g><g data-mml-node="mtd" transform="translate(7388.8, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D45A"></use></g><g data-mml-node="mi" transform="translate(878, 0)"><use xlink:href="#MJX-128-TEX-I-1D45B"></use></g></g></g></g></g></g><g data-mml-node="mo" transform="translate(9679.9, 0)"><use xlink:href="#MJX-128-TEX-S4-23A4" transform="translate(0, 2081)"></use><use xlink:href="#MJX-128-TEX-S4-23A6" transform="translate(0, -2091)"></use><svg width="667" height="2572" y="-1036" x="0" viewBox="0 643 667 2572"><use xlink:href="#MJX-128-TEX-S4-23A5" transform="scale(1, 6.409)"></use></svg></g></g><g data-mml-node="mo" transform="translate(14353.5, 0)"><use xlink:href="#MJX-128-TEX-N-3D"></use></g><g data-mml-node="mrow" transform="translate(15409.2, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-5B"></use></g><g data-mml-node="msub" transform="translate(278, 0)"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D456"></use></g><g data-mml-node="mi" transform="translate(345, 0)"><use xlink:href="#MJX-128-TEX-I-1D457"></use></g></g></g><g data-mml-node="mo" transform="translate(1392.3, 0)"><use xlink:href="#MJX-128-TEX-N-5D"></use></g></g></g></g></svg>',latex:"\nA_{m\\times n}=\n\\begin{bmatrix}\n a_{11}& a_{12}& \\cdots & a_{1n} \\\\\n a_{21}& a_{22}& \\cdots & a_{2n} \\\\\n \\vdots & \\vdots & \\ddots & \\vdots \\\\\n a_{m1}& a_{m2}& \\cdots & a_{mn}\n\\end{bmatrix}\n=\\left [ a_{ij}\\right ]"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="25.332ex" height="9.777ex" viewBox="0 -2410.7 11196.5 4321.4" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-130-TEX-B-1D415" d="M592 686H604Q615 685 631 685T666 684T700 684T724 683Q829 683 835 686H843V624H744L611 315Q584 254 546 165Q492 40 482 19T461 -6L460 -7H409Q398 -4 391 9Q385 20 257 315L124 624H25V686H36Q57 683 190 683Q340 683 364 686H377V624H289L384 403L480 185L492 212Q504 240 529 298T575 405L670 624H582V686H592Z"></path><path id="MJX-130-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-130-TEX-N-D7" d="M630 29Q630 9 609 9Q604 9 587 25T493 118L389 222L284 117Q178 13 175 11Q171 9 168 9Q160 9 154 15T147 29Q147 36 161 51T255 146L359 250L255 354Q174 435 161 449T147 471Q147 480 153 485T168 490Q173 490 175 489Q178 487 284 383L389 278L493 382Q570 459 587 475T609 491Q630 491 630 471Q630 464 620 453T522 355L418 250L522 145Q606 61 618 48T630 29Z"></path><path id="MJX-130-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-130-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-130-TEX-S4-2223" d="M139 -249H137Q125 -249 119 -235V251L120 737Q130 750 139 750Q152 750 159 735V-235Q151 -249 141 -249H139Z"></path><path id="MJX-130-TEX-B-1D422" d="M72 610Q72 649 98 672T159 695Q193 693 217 670T241 610Q241 572 217 549T157 525Q120 525 96 548T72 610ZM46 442L136 446L226 450H232V62H294V0H286Q271 3 171 3Q67 3 49 0H40V62H109V209Q109 358 108 362Q103 380 55 380H43V442H46Z"></path><path id="MJX-130-TEX-B-1D423" d="M104 610Q104 649 130 672T191 695Q225 693 249 670T273 610Q273 572 249 549T189 525Q152 525 128 548T104 610ZM78 442L173 446L268 450H274V196Q274 -5 274 -37T269 -83Q256 -132 201 -166T71 -200Q10 -200 -30 -173T-71 -102Q-71 -70 -51 -51T-1 -31Q27 -31 48 -49T69 -100Q69 -121 53 -147H56Q66 -149 77 -149H80Q90 -149 100 -146T127 -125T149 -73Q151 -55 151 149V362Q150 364 148 366T145 370T142 373T138 375T133 377T124 378T113 379T97 380H75V442H78Z"></path><path id="MJX-130-TEX-B-1D424" d="M32 686L123 690Q214 694 215 694H221V255L377 382H346V444H355Q370 441 476 441Q544 441 556 444H562V382H476L347 277L515 62H587V0H579Q564 3 476 3Q370 3 352 0H343V62H358L373 63L260 206L237 189L216 172V62H285V0H277Q259 3 157 3Q46 3 37 0H29V62H98V332Q98 387 98 453T99 534Q99 593 97 605T83 620Q69 624 42 624H29V686H32Z"></path><path id="MJX-130-TEX-N-2202" d="M202 508Q179 508 169 520T158 547Q158 557 164 577T185 624T230 675T301 710L333 715H345Q378 715 384 714Q447 703 489 661T549 568T566 457Q566 362 519 240T402 53Q321 -22 223 -22Q123 -22 73 56Q42 102 42 148V159Q42 276 129 370T322 465Q383 465 414 434T455 367L458 378Q478 461 478 515Q478 603 437 639T344 676Q266 676 223 612Q264 606 264 572Q264 547 246 528T202 508ZM430 306Q430 372 401 400T333 428Q270 428 222 382Q197 354 183 323T150 221Q132 149 132 116Q132 21 232 21Q244 21 250 22Q327 35 374 112Q389 137 409 196T430 306Z"></path><path id="MJX-130-TEX-I-1D44B" d="M42 0H40Q26 0 26 11Q26 15 29 27Q33 41 36 43T55 46Q141 49 190 98Q200 108 306 224T411 342Q302 620 297 625Q288 636 234 637H206Q200 643 200 645T202 664Q206 677 212 683H226Q260 681 347 681Q380 681 408 681T453 682T473 682Q490 682 490 671Q490 670 488 658Q484 643 481 640T465 637Q434 634 411 620L488 426L541 485Q646 598 646 610Q646 628 622 635Q617 635 609 637Q594 637 594 648Q594 650 596 664Q600 677 606 683H618Q619 683 643 683T697 681T738 680Q828 680 837 683H845Q852 676 852 672Q850 647 840 637H824Q790 636 763 628T722 611T698 593L687 584Q687 585 592 480L505 384Q505 383 536 304T601 142T638 56Q648 47 699 46Q734 46 734 37Q734 35 732 23Q728 7 725 4T711 1Q708 1 678 1T589 2Q528 2 496 2T461 1Q444 1 444 10Q444 11 446 25Q448 35 450 39T455 44T464 46T480 47T506 54Q523 62 523 64Q522 64 476 181L429 299Q241 95 236 84Q232 76 232 72Q232 53 261 47Q262 47 267 47T273 46Q276 46 277 46T280 45T283 42T284 35Q284 26 282 19Q279 6 276 4T261 1Q258 1 243 1T201 2T142 2Q64 2 42 0Z"></path><path id="MJX-130-TEX-I-1D462" d="M21 287Q21 295 30 318T55 370T99 420T158 442Q204 442 227 417T250 358Q250 340 216 246T182 105Q182 62 196 45T238 27T291 44T328 78L339 95Q341 99 377 247Q407 367 413 387T427 416Q444 431 463 431Q480 431 488 421T496 402L420 84Q419 79 419 68Q419 43 426 35T447 26Q469 29 482 57T512 145Q514 153 532 153Q551 153 551 144Q550 139 549 130T540 98T523 55T498 17T462 -8Q454 -10 438 -10Q372 -10 347 46Q345 45 336 36T318 21T296 6T267 -6T233 -11Q189 -11 155 7Q103 38 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-130-TEX-I-1D44C" d="M66 637Q54 637 49 637T39 638T32 641T30 647T33 664T42 682Q44 683 56 683Q104 680 165 680Q288 680 306 683H316Q322 677 322 674T320 656Q316 643 310 637H298Q242 637 242 624Q242 619 292 477T343 333L346 336Q350 340 358 349T379 373T411 410T454 461Q546 568 561 587T577 618Q577 634 545 637Q528 637 528 647Q528 649 530 661Q533 676 535 679T549 683Q551 683 578 682T657 680Q684 680 713 681T746 682Q763 682 763 673Q763 669 760 657T755 643Q753 637 734 637Q662 632 617 587Q608 578 477 424L348 273L322 169Q295 62 295 57Q295 46 363 46Q379 46 384 45T390 35Q390 33 388 23Q384 6 382 4T366 1Q361 1 324 1T232 2Q170 2 138 2T102 1Q84 1 84 9Q84 14 87 24Q88 27 89 30T90 35T91 39T93 42T96 44T101 45T107 45T116 46T129 46Q168 47 180 50T198 63Q201 68 227 171L252 274L129 623Q128 624 127 625T125 627T122 629T118 631T113 633T105 634T96 635T83 636T66 637Z"></path><path id="MJX-130-TEX-N-30" d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z"></path><path id="MJX-130-TEX-I-1D463" d="M173 380Q173 405 154 405Q130 405 104 376T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Q21 294 29 316T53 368T97 419T160 441Q202 441 225 417T249 361Q249 344 246 335Q246 329 231 291T200 202T182 113Q182 86 187 69Q200 26 250 26Q287 26 319 60T369 139T398 222T409 277Q409 300 401 317T383 343T365 361T357 383Q357 405 376 424T417 443Q436 443 451 425T467 367Q467 340 455 284T418 159T347 40T241 -11Q177 -11 139 22Q102 54 102 117Q102 148 110 181T151 298Q173 362 173 380Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msub"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-B-1D415"></use></g></g><g data-mml-node="mn" transform="translate(869, -150) scale(0.707)"><use xlink:href="#MJX-130-TEX-N-31"></use></g></g><g data-mml-node="mo" transform="translate(1494.8, 0)"><use xlink:href="#MJX-130-TEX-N-D7"></use></g><g data-mml-node="msub" transform="translate(2495, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-B-1D415"></use></g></g><g data-mml-node="mn" transform="translate(869, -150) scale(0.707)"><use xlink:href="#MJX-130-TEX-N-32"></use></g></g><g data-mml-node="mo" transform="translate(4045.3, 0)"><use xlink:href="#MJX-130-TEX-N-3D"></use></g><g data-mml-node="mrow" transform="translate(5101.1, 0)"><g data-mml-node="mo"><svg width="278" height="4321.4" y="-1910.7" x="27.5" viewBox="0 -535.3 278 4321.4"><use xlink:href="#MJX-130-TEX-S4-2223" transform="scale(1, 6.489)"></use></svg></g><g data-mml-node="mtable" transform="translate(333, 0)"><g data-mml-node="mtr" transform="translate(0, 1660.7)"><g data-mml-node="mtd" transform="translate(561.8, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-B-1D422"></use></g></g></g><g data-mml-node="mtd" transform="translate(2957, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-B-1D423"></use></g></g></g><g data-mml-node="mtd" transform="translate(4822.4, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-B-1D424"></use></g></g></g></g><g data-mml-node="mtr" transform="translate(0, 111.1)"><g data-mml-node="mtd"><g data-mml-node="mfrac"><g data-mml-node="mrow" transform="translate(220, 394) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D44B"></use></g></g><g data-mml-node="mrow" transform="translate(319, -345.6) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D462"></use></g></g><rect width="1202.7" height="60" x="120" y="220"></rect></g></g><g data-mml-node="mtd" transform="translate(2442.7, 0)"><g data-mml-node="mfrac"><g data-mml-node="mrow" transform="translate(220, 394) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D44C"></use></g></g><g data-mml-node="mrow" transform="translate(287.5, -345.6) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D462"></use></g></g><rect width="1139.7" height="60" x="120" y="220"></rect></g></g><g data-mml-node="mtd" transform="translate(4875.9, 0)"><g data-mml-node="mn"><use xlink:href="#MJX-130-TEX-N-30"></use></g></g></g><g data-mml-node="mtr" transform="translate(0, -1549.6)"><g data-mml-node="mtd"><g data-mml-node="mfrac"><g data-mml-node="mrow" transform="translate(220, 394) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D44B"></use></g></g><g data-mml-node="mrow" transform="translate(349.8, -345.6) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D463"></use></g></g><rect width="1202.7" height="60" x="120" y="220"></rect></g></g><g data-mml-node="mtd" transform="translate(2442.7, 0)"><g data-mml-node="mfrac"><g data-mml-node="mrow" transform="translate(220, 394) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D44C"></use></g></g><g data-mml-node="mrow" transform="translate(318.3, -345.6) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D463"></use></g></g><rect width="1139.7" height="60" x="120" y="220"></rect></g></g><g data-mml-node="mtd" transform="translate(4875.9, 0)"><g data-mml-node="mn"><use xlink:href="#MJX-130-TEX-N-30"></use></g></g></g></g><g data-mml-node="mo" transform="translate(5762.4, 0)"><svg width="278" height="4321.4" y="-1910.7" x="27.5" viewBox="0 -535.3 278 4321.4"><use xlink:href="#MJX-130-TEX-S4-2223" transform="scale(1, 6.489)"></use></svg></g></g></g></g></svg>',latex:"\n\\mathbf{V}_1 \\times \\mathbf{V}_2 =\n\\begin{vmatrix}\n \\mathbf{i}& \\mathbf{j}& \\mathbf{k} \\\\\n \\frac{\\partial X}{\\partial u}& \\frac{\\partial Y}{\\partial u}& 0 \\\\\n \\frac{\\partial X}{\\partial v}& \\frac{\\partial Y}{\\partial v}& 0 \\\\\n\\end{vmatrix}"}]}}}}),cs(this,"showLatexLive",!0),Is(e).length&&(this.formulaConfig=e.templateConfig||this.formulaConfig,this.showLatexLive=e.showLatexLive),this.init(),this.initEventListeners()}),[{key:"afterClick",value:function(t){}},{key:"generateBubbleFormulaHtmlStr",value:function(){var t,e,n=Px(this.formulaConfig||{}),r=lA(n).call(n,(function(t,e){var n,r,i=xf(t,2),a=i[0],o=i[1].title;return hs(n=hs(r='<li class="cherry-insert-formula-tab'.concat(0===e?" active":"",'" data-name="')).call(r,a,'"><span>')).call(n,o,"</span></li>")})).join(""),i='<ul class="cherry-insert-formula-tabs">'.concat(r,"</ul>"),a=lA(n).call(n,(function(t,e){var n,r,i,a,o=xf(t,2),s=o[0],c=o[1],l=null===(n=Px((null==c?void 0:c.subCategory)||{}))||void 0===n?void 0:lA(n).call(n,(function(t){var e,n,r,i,a,o,s=xf(t,2),c=s[0],l=s[1],u=null==l||null===(e=l.formulas)||void 0===e?void 0:lA(e).call(e,(function(t){var e,n;if(""===t.latex)return'<div class="cherry-insert-formula-categary__func-categary">'.concat(t.name,"</div>");var r=t.img||"";return hs(e=hs(n='<div class="cherry-insert-formula-categary__func-item '.concat(t.formulaClass?t.formulaClass:"",'" data-formula-code="')).call(n,t.latex,'">')).call(e,r||t.name,"</div>")})).join(""),h=hs(n='<div class="cherry-insert-formula-categary__func no-scrollbar" data-name="'.concat(c,'">')).call(n,u,"</div>"),f=hs(r='<button class="cherry-toolbar-button cherry-insert-formula-categary__btn btn-light" data-name="'.concat(c,'">')).call(r,l.title,"</button>");return hs(i=hs(a=hs(o='<div class="cherry-insert-formula-categary" data-name="'.concat(c,'" title="')).call(o,l.title,'">')).call(a,f)).call(i,h,"</div>")})).join("");return hs(r=hs(i=hs(a='<div class="cherry-insert-formula-select formula-'.concat(s," no-scrollbar")).call(a,0===e?" active":"",'" data-name="')).call(i,s,'">')).call(r,l,"</div>")})).join(""),o=this.showLatexLive?'<div class="cherry-insert-formula-more">查看更多:<a href="https://www.latexlive.com/" target="_blank">www.latexlive.com</a></div>':"";return hs(t=hs(e="".concat(i)).call(e,a)).call(t,o)}},{key:"init",value:function(){Is(this.formulaConfig).length&&(this.dom=document.createElement("div"),this.dom.className=["cherry-dropdown","cherry-insert-formula","cherry-insert-formula-wrappler"].join(" "),this.dom.innerHTML=this.generateBubbleFormulaHtmlStr(),this.dom.style.display="none")}},{key:"show",value:function(t){this.dom.style.removeProperty("display"),this.afterClick=t}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"isShow",value:function(){return"block"===this.dom.style.display}},{key:"isHide",value:function(){return"none"===this.dom.style.display}},{key:"initEventListeners",value:function(){var t,e,n,r=this;null===(t=this.dom.querySelector(".cherry-insert-formula-tabs"))||void 0===t||t.addEventListener("click",fs(e=this.handleClickFormulaTabs).call(e,this)),null===(n=this.dom.querySelectorAll(".cherry-insert-formula-categary__func-item"))||void 0===n||Qs(n).call(n,(function(t){var e;return null==t?void 0:t.addEventListener("click",fs(e=r.handleClickFormulaSelect).call(e,r))}))}},{key:"handleClickFormulaTabs",value:function(t){t.preventDefault(),t.stopPropagation();var e=t.target;if(e instanceof HTMLLIElement||e instanceof HTMLSpanElement){var n=e instanceof HTMLSpanElement?e.parentElement:e,r=n.dataset.name,i=document.querySelector(".cherry-insert-formula-select[data-name=".concat(r,"]")),a=document.querySelector(".cherry-insert-formula-tab.active"),o=document.querySelector(".cherry-insert-formula-select.active");null==a||a.classList.remove("active"),null==o||o.classList.remove("active"),n.classList.add("active"),i.classList.add("active")}}},{key:"handleClickFormulaSelect",value:function(t){t.preventDefault(),t.stopPropagation();var e=t.target;if(e instanceof HTMLElement){var n=e.dataset.formulaCode,r=void 0===n?"":n;this.afterClick(r),this.hide()}}}])}();function rI(t,e,n){return e=es(e),Ko(t,iI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function iI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(iI=function(){return!!t})()}var aI=function(t){function e(t){var n,r,i,a,o;return ra(this,e),(o=rI(this,e,[t])).setName("formula","insertFormula"),o.subBubbleFormulaMenu=new nI(null==t||null===(n=t.options)||void 0===n||null===(r=n.toolbars)||void 0===r||null===(i=r.config)||void 0===i?void 0:i.formula),t.editor.options.wrapperDom.appendChild(o.subBubbleFormulaMenu.dom),o.catchOnce="",o.shortcutKeyMap=cs({},hs(a="".concat(x_,"-")).call(a,P_("m")),{hookName:o.name,aliasName:o.$cherry.locale[o.name]}),o}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e=this;if(this.subBubbleFormulaMenu.isHide()||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleFormulaMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleFormulaMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleFormulaMenu.show((function(n){var r,i,a=/\n/.test(n)?"".concat(/\n$/.test(t)?t:"".concat(t,"\n"),"$$"):"".concat(t," $ "),o=/\n/.test(n)?"\n$$ ":" $ ";e.registerAfterClickCb((function(){e.setLessSelection(a,o)}));var s=hs(r=hs(i="".concat(a)).call(i,n)).call(r,o);e.setCacheOnce(s),e.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}}])}(l_);function oI(t,e,n){return e=es(e),Ko(t,sI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function sI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(sI=function(){return!!t})()}var cI=function(t){function e(t){var n,r;return ra(this,e),(r=oI(this,e,[t])).setName("link","link"),r.shortcutKeyMap=cs({},hs(n="".concat(x_,"-")).call(n,P_("l")),{hookName:r.name,aliasName:r.$cherry.locale[r.name]}),r}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e;if(/^http/.test(t))return hs(e="[".concat(this.locale.link,"](")).call(e,t,")");var n=t||this.locale.link;return"[".concat(n,"](http://url.com) ")}}])}(l_);function lI(t,e,n){return e=es(e),Ko(t,uI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function uI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(uI=function(){return!!t})()}var hI=function(t){function e(t){var n;return ra(this,e),(n=lI(this,e,[t])).setName("table","table"),n.subBubbleTableMenu=new hS({row:9,col:9}),t.editor.options.wrapperDom.appendChild(n.subBubbleTableMenu.dom),n.catchOnce="",n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e=this;if("none"===this.subBubbleTableMenu.dom.style.display||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleTableMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleTableMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleTableMenu.show((function(n,r){var i,a,o,s=Rf(" Header |").call(" Header |",r),c=Rf(" ------ |").call(" ------ |",r),l="\n|".concat(Rf(" Sample |").call(" Sample |",r)),u=hs(i=hs(a=hs(o="".concat(t,"\n\n|")).call(o,s,"\n|")).call(a,c)).call(i,Rf(l).call(l,n),"\n\n");e.setCacheOnce(u),e.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}}])}(l_);function fI(t,e,n){return e=es(e),Ko(t,dI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function dI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(dI=function(){return!!t})()}var AI=function(t){function e(t){var n;return ra(this,e),(n=fI(this,e,[t])).setName("toc","toc"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){return"".concat(t,"\n\n[[toc]]\n")}}])}(l_);function gI(t,e,n){return e=es(e),Ko(t,pI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function pI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(pI=function(){return!!t})()}var mI=function(t){function e(t){var n;return ra(this,e),(n=gI(this,e,[t])).setName("lineTable","table"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e;return hs(e="".concat(t,"\n\n")).call(e,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}])}(l_);function bI(t,e,n){return e=es(e),Ko(t,vI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function vI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(vI=function(){return!!t})()}var yI=function(t){function e(t){var n;return ra(this,e),(n=bI(this,e,[t])).setName("brTable","table"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e;return hs(e="".concat(t,"\n\n")).call(e,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}])}(l_);function wI(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return kI(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kI(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function kI(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function CI(t,e,n){return e=es(e),Ko(t,xI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function xI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(xI=function(){return!!t})()}var EI=function(t){function e(t){var n;return ra(this,e),(n=CI(this,e,[t])).setName("pdf","pdf"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n,r,i,a,o,s=this,c=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.pdf)&&void 0!==e?e:"*";if(null!==(i=null===(a=this.$cherry)||void 0===a||null===(o=a.options.multipleFileSelection)||void 0===o?void 0:o.pdf)&&void 0!==i&&i){if(this.hasCacheOnce()){var l,u=this.getAndCleanCacheOnce(),h="",f=wI(u);try{var d=function(){var t,e,n=l.value,r=n.url,i=n.params,a="](".concat(r,")");s.registerAfterClickCb((function(){s.setLessSelection("[",a)}));var o=i.name?i.name:name;h+=hs(t=hs(e="".concat("[")).call(e,o)).call(t,a,"\n")};for(f.s();!(l=f.n()).done;)d()}catch(t){f.e(t)}finally{f.f()}return h}return ud(this.editor,"pdf",c,(function(t){s.setCacheOnce(t),s.fire(null)})),this.updateMarkdown=!1,t}if(this.hasCacheOnce()){var A,g,p=this.getAndCleanCacheOnce(),m=p.name,b=p.url,v=p.params,y="](".concat(b,")");this.registerAfterClickCb((function(){s.setLessSelection("[",y)}));var w=v.name?v.name:m;return hs(A=hs(g="".concat("[")).call(g,w)).call(A,y)}return hd(this.editor,"pdf",c,(function(t,e,n){s.setCacheOnce({name:t,url:e,params:n}),s.fire(null)})),this.updateMarkdown=!1,t}}])}(l_);function TI(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return BI(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?BI(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function BI(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _I(t,e,n){return e=es(e),Ko(t,SI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function SI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(SI=function(){return!!t})()}var LI=function(t){function e(t){var n;return ra(this,e),(n=_I(this,e,[t])).setName("file","phone"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n,r,i,a,o,s=this,c=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.file)&&void 0!==e?e:"*";if(null!==(i=null===(a=this.$cherry)||void 0===a||null===(o=a.options.multipleFileSelection)||void 0===o?void 0:o.file)&&void 0!==i&&i){if(this.hasCacheOnce()){var l,u=this.getAndCleanCacheOnce(),h="",f=TI(u);try{var d=function(){var t,e,n=l.value,r=n.url,i=n.params,a="](".concat(r,")");s.registerAfterClickCb((function(){s.setLessSelection("[",a)}));var o=i.name?i.name:name;h+=hs(t=hs(e="".concat("[")).call(e,o)).call(t,a,"\n")};for(f.s();!(l=f.n()).done;)d()}catch(t){f.e(t)}finally{f.f()}return h}return ud(this.editor,"file",c,(function(t){s.setCacheOnce(t),s.fire(null)})),this.updateMarkdown=!1,t}if(this.hasCacheOnce()){var A,g,p=this.getAndCleanCacheOnce(),m=p.name,b=p.url,v=p.params,y="](".concat(b,")");this.registerAfterClickCb((function(){s.setLessSelection("[",y)}));var w=v.name?v.name:m;return hs(A=hs(g="".concat("[")).call(g,w)).call(A,y)}return hd(this.editor,"file",c,(function(t,e,n){s.setCacheOnce({name:t,url:e,params:n}),s.fire(null)})),this.updateMarkdown=!1,t}}])}(l_);function II(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return MI(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?MI(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function MI(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function OI(t,e,n){return e=es(e),Ko(t,DI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function DI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(DI=function(){return!!t})()}var FI=function(t){function e(t){var n;return ra(this,e),(n=OI(this,e,[t])).setName("word","word"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n,r,i,a,o,s=this,c=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.word)&&void 0!==e?e:"*";if(null!==(i=null===(a=this.$cherry)||void 0===a||null===(o=a.options.multipleFileSelection)||void 0===o?void 0:o.word)&&void 0!==i&&i){if(this.hasCacheOnce()){var l,u=this.getAndCleanCacheOnce(),h="",f=II(u);try{var d=function(){var t,e,n=l.value,r=n.url,i=n.params,a="](".concat(r,")");s.registerAfterClickCb((function(){s.setLessSelection("[",a)}));var o=i.name?i.name:name;h+=hs(t=hs(e="".concat("[")).call(e,o)).call(t,a,"\n")};for(f.s();!(l=f.n()).done;)d()}catch(t){f.e(t)}finally{f.f()}return h}return ud(this.editor,"word",c,(function(t){s.setCacheOnce(t),s.fire(null)})),this.updateMarkdown=!1,t}if(this.hasCacheOnce()){var A,g,p=this.getAndCleanCacheOnce(),m=p.name,b=p.url,v=p.params,y="](".concat(b,")");this.registerAfterClickCb((function(){s.setLessSelection("[",y)}));var w=v.name?v.name:m;return hs(A=hs(g="".concat("[")).call(g,w)).call(A,y)}return hd(this.editor,"word",c,(function(t,e,n){s.setCacheOnce({name:t,url:e,params:n}),s.fire(null)})),this.updateMarkdown=!1,t}}])}(l_);function NI(t,e,n){return e=es(e),Ko(t,PI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function PI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(PI=function(){return!!t})()}var RI=function(t){function e(t){var n;return ra(this,e),(n=NI(this,e,[t])).setName("pinyin","pinyin"),n}return ss(e,t),Ho(e,[{key:"$testIsRuby",value:function(t){return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(t)}},{key:"onClick",value:function(t){var e,n,r=this,i=X_(this.editor.editor,t)||"拼音";if(this.isSelections||this.$testIsRuby(i)||this.getMoreSelection(" { "," } ",(function(){var t=r.editor.editor.getSelection(),e=r.$testIsRuby(t);return e&&(i=t),e})),this.$testIsRuby(i))return i.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1");var a=mh(e=this.editor.$cherry.options.callback.changeString2Pinyin(i)||"pin yin").call(e);return this.registerAfterClickCb((function(){r.setLessSelection(" { "," } ")})),hs(n=" { ".concat(i," | ")).call(n,a," } ")}}])}(l_);function QI(t,e,n){return e=es(e),Ko(t,UI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function UI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(UI=function(){return!!t})()}var $I=function(t){function e(t){var n;ra(this,e),(n=QI(this,e,[t])).setName("theme","insertChart"),n.subMenuConfig=[];var r=n,i=t.options.theme||t.options.themeSettings.themeList;return Qs(i).call(i,(function(t){var e;r.subMenuConfig.push({iconName:t.className,name:t.label,onclick:fs(e=r.bindSubClick).call(e,r,t.className)})})),n}return ss(e,t),Ho(e,[{key:"getActiveSubMenuIndex",value:function(t){var e,n,r=(null===(e=this.$cherry.wrapperDom.className.match(/theme__([^\s]+)/))||void 0===e?void 0:e[1])||"";return Xd(n=Nh(t.querySelectorAll(".cherry-dropdown-item"))).call(n,(function(t){return t.querySelector(".ch-icon-".concat(r))}))}},{key:"onClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.$cherry.$event.emit("changeMainTheme",e),mA(this.$cherry,e),this.updateMarkdown=!1,""}}])}(l_);function HI(t,e,n){return e=es(e),Ko(t,jI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function jI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(jI=function(){return!!t})()}var KI=function(t){function e(t){var n;return ra(this,e),(n=HI(this,e,[t])).setName("wordCount","wordCount"),n.noIcon=!0,n.countState=0,n.countEvent=new Event("count"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e=this,n=this.$cherry.wrapperDom.querySelector(".cherry-toolbar-button.cherry-toolbar-wordCount");if(0===this.countState){n.addEventListener("count",(function(){var t,r,i,a,o,s,c,l,u=e.$cherry.getMarkdown(),h=e.wordCount(u),f=h.characters,d=h.words,A=h.paragraphs,g=e.$cherry.locale;switch(e.countState){case 0:n.innerHTML=g.wordCount;break;case 1:n.innerHTML=hs(t="".concat(g.wordCountC," ")).call(t,f);break;case 2:n.innerHTML=hs(r="".concat(g.wordCountW," ")).call(r,d);break;case 3:n.innerHTML=hs(i="".concat(g.wordCountP," ")).call(i,A);break;case 4:n.innerHTML=hs(a=hs(o=hs(s=hs(c=hs(l="".concat(g.wordCountC," ")).call(l,f," &nbsp; ")).call(c,g.wordCountW," ")).call(s,d," &nbsp; ")).call(o,g.wordCountP," ")).call(a,A)}}));var r=null;this.editor.editor.on("change",(function(){r&&clearTimeout(r),r=ks((function(){n.dispatchEvent(e.countEvent),r=null}),500)}))}return this.countState+=1,this.countState>4&&(this.countState=0),n.dispatchEvent(this.countEvent),t}},{key:"wordCount",value:function(t){var e,n,r=/[\u4e00-\u9fa5]|[\u3001\u3002\uff01\uff0c\uff1b\uff1a\u201c\u201d\u2018\u2019\u300a\u300b\u3008\u3009\u3010\u3011\u300e\u300f\u300c\u300d\uff08\uff09\u2014\u2026\u2013\uff0e]/g,i=t.replace(/\n|\s/g,"").length,a=(t.match(r)||[]).length+Qi(e=t.replace(r," ").split(/[\s\n]+/)).call(e,Boolean).length,o=Qi(n=t.split(/\n{2,}/)).call(n,(function(t){return""!==mh(t).call(t)})).length;return{characters:i,words:a,paragraphs:o}}}])}(l_);function zI(t,e,n){return e=es(e),Ko(t,GI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function GI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(GI=function(){return!!t})()}var XI=function(t){function e(t){var n;return ra(this,e),(n=zI(this,e,[t])).previewer=t.previewer,n.updateMarkdown=!1,n.setName("mobilePreview","phone"),n}return ss(e,t),Ho(e,[{key:"onClick",value:function(){this.previewer.removeScroll();var t=this.previewer.getDomContainer();this.previewer.isMobilePreview?t.parentNode.innerHTML=t.innerHTML:t.innerHTML="<div class='cherry-mobile-previewer-content'>".concat(t.innerHTML,"</div>"),this.previewer.isMobilePreview=!this.previewer.isMobilePreview,this.previewer.bindScroll()}}])}(l_),VI=aB;function WI(t,e,n){return e=es(e),Ko(t,qI()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function qI(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(qI=function(){return!!t})()}var YI=function(t){function e(t){var n;return ra(this,e),(n=WI(this,e,[t])).previewer=t.previewer,n.isLoading=!1,n.updateMarkdown=!1,n.setName("copy","copy"),n.lastIconOuterHtml="",n}return ss(e,t),Ho(e,[{key:"adaptWechat",value:(n=uB(xB.mark((function t(e){var n,r,i,a,o;return xB.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=/(<figure data-lines=.+?<)div(.+?<\/)div(>.*?<\/figure>)/g,r=e.replace(n,(function(t,e,n,r){var i,a;return hs(i=hs(a="".concat(e,"p")).call(a,n,"p")).call(i,r)})),i=/(<img.+?src=")(.+?)(".*?>)/g,a=[],r.replace(i,(function(t,e,n){a.push(JI(n))})),t.next=7,VI.all(a);case 7:return o=t.sent,t.abrupt("return",r.replace(i,(function(t,e,n,r){return e+o.shift()+r})));case 9:case"end":return t.stop()}}),t)}))),function(t){return n.apply(this,arguments)})},{key:"getStyleFromSheets",value:function(t){var e,n=Qi(e=Nh(document.styleSheets)).call(e,(function(e){var n;return e.cssRules[0]&&Ef(n=e.cssRules[0].cssText).call(n,t)>-1}));return"<style>".concat(zm(n).call(n,(function(t,e){var n;return t+zm(n=Nh(e.cssRules)).call(n,(function(t,e){return t+e.cssText}),"")}),""),"</style>")}},{key:"computeStyle",value:function(){return{mathStyle:this.getStyleFromSheets("mjx-container"),echartStyle:"<style>figure>p{overflow:hidden;position:relative;width:500px;height:300px;background:transparent;}</style>",cherryStyle:this.getStyleFromSheets("cherry")}}},{key:"toggleLoading",value:function(){this.isLoading?(this.dom.lastElementChild.outerHTML=this.lastIconOuterHtml,this.lastIconOuterHtml=""):(this.lastIconOuterHtml=this.dom.lastElementChild.outerHTML,this.dom.lastElementChild.outerHTML='<div class="icon-loading loading"></div>'),this.isLoading=!this.isLoading}},{key:"onClick",value:function(t){var e=this;this.toggleLoading();var n=document.querySelector(".cherry").getAttribute("data-inline-code-theme"),r=document.querySelector(".cherry").getAttribute("data-code-block-theme"),i=this.computeStyle(),a=i.mathStyle,o=i.echartStyle,s=i.cherryStyle,c=this.previewer.isPreviewerHidden()?this.previewer.options.previewerCache.html:this.previewer.getValue();this.adaptWechat(c).then((function(t){var i,c,l;EB(hs(i=hs(c=hs(l="".concat(a+o+s,'\n <div data-inline-code-theme="')).call(l,n,'" data-code-block-theme="')).call(c,r,'">\n <div class="cherry-markdown">')).call(i,t,"</div>\n </div>")),e.toggleLoading()}))}}]);var n}(l_);function JI(t,e,n){return new VI((function(e){var r=document.createElement("CANVAS"),i=r.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=function(){r.height=a.height,r.width=a.width,i.drawImage(a,0,0);var t=r.toDataURL(n||"image/png");e(t),r=null},a.src=t}))}function ZI(t,e,n){return e=es(e),Ko(t,tM()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function tM(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(tM=function(){return!!t})()}var eM=function(t){function e(t){var n,r,i,a,o,s;return ra(this,e),(s=ZI(this,e,[t])).setName("panel","tips"),s.panelRule=Od().reg,s.subMenuConfig=[{iconName:"tips",name:"tips",onclick:fs(n=s.bindSubClick).call(n,s,"primary")},{iconName:"info",name:"info",onclick:fs(r=s.bindSubClick).call(r,s,"info")},{iconName:"warning",name:"warning",onclick:fs(i=s.bindSubClick).call(i,s,"warning")},{iconName:"danger",name:"danger",onclick:fs(a=s.bindSubClick).call(a,s,"danger")},{iconName:"success",name:"success",onclick:fs(o=s.bindSubClick).call(o,s,"success")}],s}return ss(e,t),Ho(e,[{key:"$getNameFromStr",value:function(t){var e=!1;return this.panelRule.lastIndex=0,t.replace(this.panelRule,(function(t,n,r,i){var a=/\s/.test(mh(r).call(r))?mh(r).call(r).replace(/\s.*$/,""):r;return e=a?mh(a).call(a).toLowerCase():"",t})),e}},{key:"$getTitle",value:function(t){return this.panelRule.lastIndex=0,t.replace(this.panelRule,(function(t,e,n,r){var i=mh(n).call(n);return/\s/.test(i)?i.replace(/[^\s]+\s/,""):""})),""}},{key:"onClick",value:function(t){var e,n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=X_(this.editor.editor,t,"line",!0)||"内容",o=this.$getNameFromStr(a),s=this.$getTitle(a);return!1===o&&this.getMoreSelection("::: ","\n",(function(){var t=r.editor.editor.getSelection(),e=r.$getNameFromStr(t);return!1!==e&&(a=t,o=e,s=r.$getTitle(t)),!1!==e})),!1!==o?o===i?(this.panelRule.lastIndex=0,a.replace(this.panelRule,(function(t,e,n,r){var i,a=mh(n).call(n),o=/\s/.test(a)?a.replace(/[^\s]+\s/,""):"";return hs(i="".concat(o,"\n")).call(i,r)}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),this.panelRule.lastIndex=0,a.replace(this.panelRule,(function(t,e,n,r){var a,o,s=mh(n).call(n),c=/\s/.test(s)?s.replace(/[^\s]+\s/,""):"";return hs(a=hs(o="::: ".concat(i," ")).call(o,c,"\n")).call(a,r.replace(/\n+$/,""),"\n:::")}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),a=a.replace(/^\n+/,""),/\n/.test(a)?s||(s=a.replace(/\n[\w\W]+$/,""),a=a.replace(/^[^\n]+\n/,"")):s=s||"标题",hs(e=hs(n="::: ".concat(i," ")).call(n,s,"\n")).call(e,a,"\n:::").replace(/\n{2,}:::/g,"\n:::"))}}])}(l_);function nM(t,e,n){return e=es(e),Ko(t,rM()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function rM(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(rM=function(){return!!t})()}var iM=function(t){function e(t){var n,r,i,a,o,s,c;ra(this,e),(c=nM(this,e,[t])).setName("justify","justify"),c.panelRule=Od().reg;var l=c.$cherry.locale;return c.subMenuConfig=[{iconName:"justifyLeft",name:null!==(n=null==l?void 0:l.justifyLeft)&&void 0!==n?n:"左对齐",onclick:fs(r=c.bindSubClick).call(r,c,"left")},{iconName:"justifyCenter",name:null!==(i=null==l?void 0:l.justifyCenter)&&void 0!==i?i:"居中",onclick:fs(a=c.bindSubClick).call(a,c,"center")},{iconName:"justifyRight",name:null!==(o=null==l?void 0:l.justifyRight)&&void 0!==o?o:"右对齐",onclick:fs(s=c.bindSubClick).call(s,c,"right")}],c}return ss(e,t),Ho(e,[{key:"$getTitle",value:function(){return" "}}])}(eM);function aM(t,e,n){return e=es(e),Ko(t,oM()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function oM(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(oM=function(){return!!t})()}var sM=function(t){function e(t){var n;return ra(this,e),(n=aM(this,e,[t])).setName("detail","insertFlow"),n.detailRule=Dd().reg,n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e,n=this,r=X_(this.editor.editor,t,"line",!0)||this.$cherry.locale.detailDefaultContent;if(this.detailRule.lastIndex=0,this.detailRule.test(r)||this.getMoreSelection("+++ ","\n",(function(){var t=n.editor.editor.getSelection();n.detailRule.lastIndex=0;var e=n.detailRule.test(t);return!1!==e&&(r=t),!1!==e})),this.detailRule.lastIndex=0,this.detailRule.test(r))return this.detailRule.lastIndex=0,r.replace(this.detailRule,(function(t,e,n,r,i){var a;return hs(a="".concat(r,"\n")).call(a,i)}));(r=r.replace(/^\s+/,""),/\n/.test(r))||(r=hs(e="".concat(r,"\n")).call(e,r));return this.registerAfterClickCb((function(){n.setLessSelection("+++ ","\n")})),"+++ ".concat(r,"\n+++").replace(/\n{2,}\+\+\+/g,"\n+++")}}])}(l_);function cM(t,e,n){return e=es(e),Ko(t,lM()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function lM(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(lM=function(){return!!t})()}var uM=function(t){function e(t){var n;return ra(this,e),(n=cM(this,e,[t])).setName("draw.io","draw.io"),n.noIcon=!0,n}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){var e=this;if(!this.$cherry.options.drawioIframeUrl)return t;if(this.hasCacheOnce()){var n,r,i=this.getAndCleanCacheOnce(),a=i.xmlData,o=i.base64,s=hs(n="](".concat(o,"){data-type=drawio data-xml=")).call(n,encodeURI(a),"}");return this.registerAfterClickCb((function(){e.setLessSelection("![",s)})),hs(r="".concat("![","在预览区点击图片重新编辑draw.io")).call(r,s)}return MB(this.$cherry.options.drawioIframeUrl,this.$cherry.options.drawioIframeStyle,"",(function(t){e.setCacheOnce(t),e.fire(null)})),this.updateMarkdown=!1,t}}])}(l_);yg("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),wg);var hM=TypeError,fM=nt("Set"),dM=fM.prototype,AM={Set:fM,add:kg("add",1),has:kg("has",1),remove:kg("delete",1),proto:dM},gM=function(t,e,n){return n?Ug(t.keys(),e,!0):t.forEach(e)},pM=AM.Set,mM=AM.add,bM=function(t){return{iterator:t,next:t.next,done:!1}},vM="Invalid size",yM=RangeError,wM=TypeError,kM=Math.max,CM=function(t,e){this.set=t,this.size=kM(e,0),this.has=ut(t.has),this.keys=ut(t.keys)};CM.prototype={getIterator:function(){return bM(ue(ht(this.keys,this.set)))},includes:function(t){return ht(this.has,this.set,t)}};var xM=function(t){if("object"==typeof t&&"size"in t&&"has"in t&&"add"in t&&"delete"in t&&"keys"in t)return t;throw new hM(ct(t)+" is not a set")},EM=function(t){var e=new pM;return gM(t,(function(t){mM(e,t)})),e},TM=function(t){return t.size},BM=function(t){ue(t);var e=+t.size;if(e!=e)throw new wM(vM);var n=rn(e);if(n<0)throw new yM(vM);return new CM(t,n)},_M=AM.has,SM=AM.remove,LM=function(t){var e=xM(this),n=BM(t),r=EM(e);return TM(e)<=n.size?gM(e,(function(t){n.includes(t)&&SM(r,t)})):Ug(n.getIterator(),(function(t){_M(e,t)&&SM(r,t)})),r},IM=function(){return!1};Dn({target:"Set",proto:!0,real:!0,forced:!IM()},{difference:LM});var MM=AM.Set,OM=AM.add,DM=AM.has,FM=function(t){var e=xM(this),n=BM(t),r=new MM;return TM(e)>n.size?Ug(n.getIterator(),(function(t){DM(e,t)&&OM(r,t)})):gM(e,(function(t){n.includes(t)&&OM(r,t)})),r},NM=!IM()||u((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));Dn({target:"Set",proto:!0,real:!0,forced:NM},{intersection:FM});var PM=AM.has,RM=function(t){var e=xM(this),n=BM(t);if(TM(e)<=n.size)return!1!==gM(e,(function(t){if(n.includes(t))return!1}),!0);var r=n.getIterator();return!1!==Ug(r,(function(t){if(PM(e,t))return bh(r,"normal",!1)}))};Dn({target:"Set",proto:!0,real:!0,forced:!IM()},{isDisjointFrom:RM});var QM=function(t){var e=xM(this),n=BM(t);return!(TM(e)>n.size)&&!1!==gM(e,(function(t){if(!n.includes(t))return!1}),!0)};Dn({target:"Set",proto:!0,real:!0,forced:!IM()},{isSubsetOf:QM});var UM=AM.has,$M=function(t){var e=xM(this),n=BM(t);if(TM(e)<n.size)return!1;var r=n.getIterator();return!1!==Ug(r,(function(t){if(!UM(e,t))return bh(r,"normal",!1)}))};Dn({target:"Set",proto:!0,real:!0,forced:!IM()},{isSupersetOf:$M});var HM=AM.add,jM=AM.has,KM=AM.remove,zM=function(t){var e=xM(this),n=BM(t).getIterator(),r=EM(e);return Ug(n,(function(t){jM(e,t)?KM(r,t):HM(r,t)})),r};Dn({target:"Set",proto:!0,real:!0,forced:!IM()},{symmetricDifference:zM});var GM=AM.add,XM=function(t){var e=xM(this),n=BM(t).getIterator(),r=EM(e);return Ug(n,(function(t){GM(r,t)})),r};Dn({target:"Set",proto:!0,real:!0,forced:!IM()},{union:XM});var VM=H.Set;function WM(t,e,n){return new VI((function(e){var r=document.createElement("CANVAS"),i=r.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=function(){r.height=a.height,r.width=a.width,i.drawImage(a,0,0);var t=r.toDataURL(n||"image/png");e(t),r=null},a.src=t}))}var qM=function(){var t=uB(xB.mark((function t(e){var n,r,i,a,o;return xB.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=/(<figure data-lines=.+?<)div(.+?<\/)div(>.*?<\/figure>)/g,r=e.replace(n,(function(t,e,n,r){var i,a;return hs(i=hs(a="".concat(e,"p")).call(a,n,"p")).call(i,r)})),i=/(<img.+?src=")(.+?)(".*?>)/g,a=[],r.replace(i,(function(t,e,n){return a.push(WM(n)),t})),t.next=7,VI.all(a);case 7:return o=t.sent,r=(r=r.replace(/(<a[^>]+)href="[^"]*"/g,"$1")).replace(/(<div[^>]+style="[^">]*width:\s*)[^";]+(;[^>]*>)/g,"$1100%$2"),t.abrupt("return",r.replace(i,(function(t,e,n,r){return e+o.shift()+r})));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),YM=function(){var t=uB(xB.mark((function t(e,n){return xB.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"==typeof e&&e){t.next=2;break}return t.abrupt("return","");case 2:t.t0=n,t.next="wechat"===t.t0?5:6;break;case 5:return t.abrupt("return",qM(e));case 6:throw new Error("platform not support");case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),JM=YM;function ZM(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function tO(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=ZM(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=ZM(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}function eO(t,e,n){return e=es(e),Ko(t,nO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function nO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(nO=function(){return!!t})()}var rO=["wechat"],iO=function(t){function e(t){var n,r,i,a;ra(this,e),(a=eO(this,e,[t])).previewer=t.previewer,a.updateMarkdown=!1,a.setName("publish","copy");var o=(null==t||null===(n=t.options)||void 0===n||null===(r=n.toolbars)||void 0===r||null===(i=r.config)||void 0===i?void 0:i.publish)||[],s=lA(o).call(o,(function(t){if(!Object.prototype.hasOwnProperty.call(t,"key"))throw new Error("publish config must have key");if(!Iv(rO).call(rO,t.key))throw new Error("publish config key must be one of ".concat(rO.join(",")));return t.key}));if(new VM(s).size!==s.length)throw new Error("publish config key must be unique");return a.subMenuConfig=lA(o).call(o,(function(t){var e;return{name:t.name,iconName:t.iconName,icon:t.icon,onclick:fs(e=a.bindSubClick).call(e,a,t)}})),a}return ss(e,t),Ho(e,[{key:"onClick",value:function(t,e){var n,r,i=this;if(Zm()){var a=this.$cherry.previewer.options.previewerDom,o=null!==(n=null==a||null===(r=a.querySelector("h1"))||void 0===r?void 0:r.innerText)&&void 0!==n?n:"",s=e.key,c=e.serviceUrl,l=e.injectPayload,u=function(){var t=uB(xB.mark((function t(){var e,n,r,u,h,f,d;return xB.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n={},"function"!=typeof l){t.next=7;break}return t.next=4,l();case 4:n=t.sent,t.next=8;break;case 7:"object"===Ro(l)&&null!==l&&(n=l);case 8:return r=i.getAllStyleSheets(),t.next=11,JM(null!==(e=null==a?void 0:a.outerHTML)&&void 0!==e?e:"",s);case 11:return u=t.sent,t.next=14,fetch("".concat(c,"/publish"),{method:"POST",headers:{"Content-Type":"application/json"},body:Zu({target:s,contentType:"html",needInlineStyle:!0,articles:[tO({title:o,content:u+r},n)]})});case 14:return h=t.sent,t.next=17,h.json();case 17:0===(null==(f=t.sent)?void 0:f.code)?alert("发布成功"):alert(hs(d="错误码:".concat(null==f?void 0:f.code," 错误信息:")).call(d,null==f?void 0:f.msg));case 19:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();u()}}},{key:"getAllStyleSheets",value:function(){var t,e=Qi(t=Nh(document.styleSheets)).call(t,(function(t){return t.cssRules[0]}));return lA(e).call(e,(function(t){var e;return"<style>".concat(lA(e=Nh(t.cssRules)).call(e,(function(t){return t.cssText})).join(""),"</style>")})).join("")}}])}(l_);function aO(t,e,n){return e=es(e),Ko(t,oO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function oO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(oO=function(){return!!t})()}var sO=function(t){function e(t){var n,r,i,a;ra(this,e),(a=aO(this,e,[t])).noIcon=!0;a.changeLocale=(null==t||null===(n=t.options)||void 0===n||null===(r=n.toolbars)||void 0===r||null===(i=r.config)||void 0===i?void 0:i.changeLocale)||[{locale:"zh_CN",name:"中文"},{locale:"en_US",name:"English"},{locale:"ru_RU",name:"Русский"}],a.subMenuConfig=[],a.nameMap={};for(var o=0;o<a.changeLocale.length;o++){var s,c=a.changeLocale[o],l=c.locale,u=c.name;a.subMenuConfig.push({iconName:l,name:u,onclick:fs(s=a.bindSubClick).call(s,a,l)}),a.nameMap[l]=u}return a.setName(a.nameMap[a.$cherry.options.locale]||a.nameMap.zh_CN),a}return ss(e,t),Ho(e,[{key:"onClick",value:function(t,e){this.$cherry.locales[e]&&(this.$cherry.$event.emit("afterChangeLocale",e),this.$cherry.options.locale=e,this.$cherry.locale=this.$cherry.locales[e],this.$cherry.resetToolbar("toolbar",this.$cherry.options.toolbars.toolbar||[]))}}])}(l_);function cO(t,e,n){return e=es(e),Ko(t,lO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function lO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(lO=function(){return!!t})()}var uO=function(t){function e(t){var n,r;return ra(this,e),(r=cO(this,e,[t])).setName("shortcutKeySetting","command"),r.updateMarkdown=!1,r.disabledHideAllSubMenu=!0,r.shortcutKeyMap=cs({},hs(n="".concat(x_,"-")).call(n,P_("0")),{hookName:r.name,sub:"toggleToolbar",aliasName:r.$cherry.locale.hide}),r}return ss(e,t),Ho(e,[{key:"hideOtherSubMenu",value:function(t){if(!this.shortcutKeyConfigPanel)return t();var e=this.shortcutKeyConfigPanel.isHide();t(),e?this.shortcutKeyConfigPanel.hide():this.shortcutKeyConfigPanel.show()}},{key:"onClick",value:function(t){return this.shortcutKeyConfigPanel||(this.shortcutKeyConfigPanel=new EL(this.$cherry)),this.shortcutKeyConfigPanel.toggle(this.dom),t}}])}(l_),hO=function(){var t=ue(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},fO=RegExp.prototype,dO=Math.floor,AO=w("".charAt),gO=w("".replace),pO=w("".slice),mO=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bO=/\$([$&'`]|\d{1,2})/g,vO=function(t){var e=t.flags;return void 0!==e||"flags"in fO||Bt(t,"flags")||!rt(fO,t)?e:ht(hO,t)},yO=function(t,e,n,r,i,a){var o=n+t.length,s=r.length,c=bO;return void 0!==i&&(i=yt(i),c=mO),gO(a,c,(function(a,c){var l;switch(AO(c,0)){case"$":return"$";case"&":return t;case"`":return pO(e,0,n);case"'":return pO(e,o);case"<":l=i[pO(c,1,-1)];break;default:var u=+c;if(0===u)return a;if(u>s){var h=dO(u/10);return 0===h?a:h<=s?void 0===r[h-1]?AO(c,1):r[h-1]+AO(c,1):a}l=r[u-1]}return void 0===l?"":l}))},wO=Ft("replace"),kO=TypeError,CO=w("".indexOf),xO=w("".replace),EO=w("".slice),TO=Math.max;Dn({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,i,a,o,s,c,l,u,h=U(this),f=0,d=0,A="";if(!P(t)){if((n=Rh(t))&&(r=xr(U(vO(t))),!~CO(r,"g")))throw new kO("`.replaceAll` does not allow non-global regexes");if(i=Ot(t,wO))return ht(i,t,h,e);if(n)return xO(xr(h),t,e)}for(a=xr(h),o=xr(t),(s=$(e))||(e=xr(e)),c=o.length,l=TO(1,c),f=CO(a,o);-1!==f;)u=s?xr(e(o,f,a)):yO(o,a,f,[],void 0,e),A+=EO(a,d,f)+u,d=f+c,f=f+l>a.length?-1:CO(a,o,f+l);return d<a.length&&(A+=EO(a,d)),A}});var BO=Ni("String","replaceAll"),_O=String.prototype,SO=function(t){var e=t.replaceAll;return"string"==typeof t||t===_O||rt(_O,t)&&e===_O.replaceAll?BO:e},LO=function(){return Ho((function t(){ra(this,t)}),[{key:"init",value:function(t){var e=this;this.cm=t;var n=this.addHtml();this.element=n,this.addStyle(),this.initElements(n),this.activeInput=this.searchInput,this.element.style.display="none",this.commands={toggleRegexpMode:function(){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()},toggleCaseSensitive:function(){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()},toggleWholeWords:function(){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}},n.addEventListener("mousedown",(function(t){ks((function(){e.activeInput.focus()}),0),t.stopPropagation()})),n.addEventListener("click",(function(t){var n=(t.target||t.srcElement).getAttribute("action");n&&e[n]?e[n]():e.commands[n]&&e.commands[n](),t.stopPropagation()})),this.searchInput.addEventListener("input",(function(){ah(e).call(e,!1,!1)})),this.searchInput.addEventListener("focus",(function(){e.activeInput=e.searchInput})),this.replaceInput.addEventListener("focus",(function(){e.activeInput=e.replaceInput}))}},{key:"addHtml",value:function(){var t=this.cm.getWrapperElement(),e=document.createElement("div"),n=['<div class="ace_search right">','<button type="button" action="hide" class="ace_searchbtn_close"></button>','<div class="ace_search_form">','<input class="ace_search_field" placeholder="Search for" spellcheck="false"></input>','<button type="button" action="findNext" class="ace_searchbtn next"></button>','<button type="button" action="findPrev" class="ace_searchbtn prev"></button>',"</div>",'<div class="ace_replace_form">','<input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input>','<button type="button" action="replaceAndFindNext" title="Replace" class="ace_replacebtn">','<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">','<path fill-rule="evenodd" clip-rule="evenodd" d="M3.221 3.739L5.482 6.008L7.7 3.784L7 3.084L5.988 4.091L5.98 2.491C5.97909 2.35567 6.03068 2.22525 6.12392 2.12716C6.21716 2.02908 6.3448 1.97095 6.48 1.965H8V1H6.48C6.28496 1.00026 6.09189 1.03902 5.91186 1.11405C5.73183 1.18908 5.56838 1.29892 5.43088 1.43725C5.29338 1.57558 5.18455 1.73969 5.11061 1.92018C5.03667 2.10066 4.99908 2.29396 5 2.489V4.1L3.927 3.033L3.221 3.739ZM9.89014 5.53277H9.90141C10.0836 5.84426 10.3521 6 10.707 6C11.0995 6 11.4131 5.83236 11.6479 5.49708C11.8826 5.1618 12 4.71728 12 4.16353C12 3.65304 11.8995 3.2507 11.6986 2.95652C11.4977 2.66234 11.2113 2.51525 10.8394 2.51525C10.4338 2.51525 10.1211 2.70885 9.90141 3.09604H9.89014V1H9V5.91888H9.89014V5.53277ZM9.87606 4.47177V4.13108C9.87606 3.88449 9.93427 3.6844 10.0507 3.53082C10.169 3.37724 10.3174 3.30045 10.4958 3.30045C10.6854 3.30045 10.831 3.37833 10.9324 3.53407C11.0357 3.68765 11.0873 3.9018 11.0873 4.17651C11.0873 4.50746 11.031 4.76379 10.9183 4.94549C10.8075 5.12503 10.6507 5.2148 10.4479 5.2148C10.2808 5.2148 10.1437 5.14449 10.0366 5.00389C9.92958 4.86329 9.87606 4.68592 9.87606 4.47177ZM9 12.7691C8.74433 12.923 8.37515 13 7.89247 13C7.32855 13 6.87216 12.8225 6.5233 12.4674C6.17443 12.1124 6 11.6543 6 11.0931C6 10.4451 6.18638 9.93484 6.55914 9.5624C6.93429 9.18747 7.43489 9.00001 8.06093 9.00001C8.49343 9.00001 8.80645 9.0596 9 9.17878V10.1769C8.76344 9.99319 8.4994 9.90132 8.20789 9.90132C7.88292 9.90132 7.62485 10.0006 7.43369 10.1993C7.24492 10.3954 7.15054 10.6673 7.15054 11.0149C7.15054 11.3526 7.24134 11.6183 7.42294 11.8119C7.60454 12.0031 7.85424 12.0987 8.17204 12.0987C8.454 12.0987 8.72999 12.0068 9 11.8231V12.7691ZM4 7L3 8V14L4 15H11L12 14V8L11 7H4ZM4 8H5H10H11V9V13V14H10H5H4V13V9V8Z" fill="#656565"/>',"</svg></button>",'<button type="button" action="replaceAll" title="Replace All" class="ace_replacebtn">','<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">','<path fill-rule="evenodd" clip-rule="evenodd" d="M11.6009 2.67683C11.7474 2.36708 11.9559 2.2122 12.2263 2.2122C12.4742 2.2122 12.6651 2.32987 12.7991 2.56522C12.933 2.80056 13 3.12243 13 3.53082C13 3.97383 12.9218 4.32944 12.7653 4.59766C12.6088 4.86589 12.3997 5 12.138 5C11.9014 5 11.7224 4.87541 11.6009 4.62622H11.5934V4.93511H11V1H11.5934V2.67683H11.6009ZM11.584 3.77742C11.584 3.94873 11.6197 4.09063 11.6911 4.20311C11.7624 4.3156 11.8538 4.37184 11.9653 4.37184C12.1005 4.37184 12.205 4.30002 12.2789 4.15639C12.354 4.01103 12.3915 3.80597 12.3915 3.54121C12.3915 3.32144 12.3571 3.15012 12.2883 3.02726C12.2207 2.90266 12.1236 2.84036 11.9972 2.84036C11.8782 2.84036 11.7793 2.9018 11.7005 3.02466C11.6228 3.14752 11.584 3.30759 11.584 3.50487V3.77742ZM4.11969 7.695L2 5.56781L2.66188 4.90594L3.66781 5.90625V4.39594C3.66695 4.21309 3.70219 4.03187 3.7715 3.86266C3.84082 3.69346 3.94286 3.53961 4.07176 3.40992C4.20066 3.28023 4.3539 3.17727 4.52268 3.10692C4.69146 3.03658 4.87246 3.00024 5.05531 3H7.39906V3.90469H5.05531C4.92856 3.91026 4.8089 3.96476 4.72149 4.05672C4.63408 4.14868 4.58571 4.27094 4.58656 4.39781L4.59406 5.89781L5.54281 4.95375L6.19906 5.61L4.11969 7.695ZM9.3556 4.93017H10V3.22067C10 2.40689 9.68534 2 9.05603 2C8.92098 2 8.77083 2.02421 8.6056 2.07263C8.44181 2.12104 8.3125 2.17691 8.21767 2.24022V2.90503C8.45474 2.70205 8.70474 2.60056 8.96767 2.60056C9.22917 2.60056 9.35991 2.75698 9.35991 3.06983L8.76078 3.17318C8.25359 3.25885 8 3.57914 8 4.13408C8 4.39665 8.06106 4.60708 8.18319 4.76536C8.30675 4.92179 8.47557 5 8.68966 5C8.97989 5 9.19899 4.83985 9.34698 4.51955H9.3556V4.93017ZM9.35991 3.57542V3.76816C9.35991 3.9432 9.31968 4.08845 9.23922 4.20391C9.15876 4.3175 9.0546 4.3743 8.92672 4.3743C8.83477 4.3743 8.76149 4.34264 8.7069 4.27933C8.65374 4.21415 8.62716 4.13128 8.62716 4.03073C8.62716 3.80912 8.73779 3.6797 8.95905 3.64246L9.35991 3.57542ZM7 12.9302H6.3556V12.5196H6.34698C6.19899 12.8399 5.97989 13 5.68966 13C5.47557 13 5.30675 12.9218 5.18319 12.7654C5.06106 12.6071 5 12.3966 5 12.1341C5 11.5791 5.25359 11.2588 5.76078 11.1732L6.35991 11.0698C6.35991 10.757 6.22917 10.6006 5.96767 10.6006C5.70474 10.6006 5.45474 10.702 5.21767 10.905V10.2402C5.3125 10.1769 5.44181 10.121 5.6056 10.0726C5.77083 10.0242 5.92098 10 6.05603 10C6.68534 10 7 10.4069 7 11.2207V12.9302ZM6.35991 11.7682V11.5754L5.95905 11.6425C5.73779 11.6797 5.62716 11.8091 5.62716 12.0307C5.62716 12.1313 5.65374 12.2142 5.7069 12.2793C5.76149 12.3426 5.83477 12.3743 5.92672 12.3743C6.0546 12.3743 6.15876 12.3175 6.23922 12.2039C6.31968 12.0885 6.35991 11.9432 6.35991 11.7682ZM9.26165 13C9.58343 13 9.82955 12.9423 10 12.8268V12.1173C9.81999 12.2551 9.636 12.324 9.44803 12.324C9.23616 12.324 9.06969 12.2523 8.94863 12.1089C8.82756 11.9637 8.76702 11.7644 8.76702 11.5112C8.76702 11.2505 8.82995 11.0466 8.95579 10.8994C9.08323 10.7505 9.25528 10.676 9.47192 10.676C9.66627 10.676 9.84229 10.7449 10 10.8827V10.1341C9.87097 10.0447 9.66229 10 9.37395 10C8.95659 10 8.62286 10.1406 8.37276 10.4218C8.12425 10.7011 8 11.0838 8 11.5698C8 11.9907 8.11629 12.3343 8.34887 12.6006C8.58144 12.8669 8.8857 13 9.26165 13ZM2 9L3 8H12L13 9V14L12 15H3L2 14V9ZM3 9V14H12V9H3ZM6 7L7 6H14L15 7V12L14 13V12V7H7H6Z" fill="#656565"/>',"</svg></button>","</div>",'<div class="ace_search_options">','<span action="toggleReplace" class="ace_button replace_toggle">+</span>','<span class="ace_search_counter">0 matches found.</span>','<span action="toggleRegexpMode" title="RegExp Search"></span>','<span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span>','<span action="toggleWholeWords" title="Whole Word Search"></span>',"</div>","</div>"].join("");e.innerHTML=n;var r=e.firstChild;return t.appendChild(r),r}},{key:"addStyle",value:function(){var t=document.createElement("style"),e=[".ace_search {","color: black;","background-color: #ddd;","border: 1px solid #cbcbcb;","border-top: 0 none;","max-width: 325px;","overflow: hidden;","margin: 0;","padding: 4px;","padding-right: 6px;","padding-bottom: 0;","position: absolute;","top: 0px;","z-index: 99;","white-space: normal;","font-size: 12px;","}",".ace_search.left {","border-left: 0 none;","border-radius: 0px 0px 5px 0px;","left: 0;","}",".ace_search.right {","border-radius: 0px 0px 0px 5px;","border-right: 0 none;","right: 0;","}",".ace_search_form, .ace_replace_form {","border-radius: 3px;","border: 1px solid #cbcbcb;","float: left;","margin-bottom: 4px;","overflow: hidden;","}",".ace_search_form.ace_nomatch {","outline: 1px solid red;","}",".ace_search_field {","background-color: white;","border-right: 1px solid #cbcbcb;","border: 0 none;","-webkit-box-sizing: border-box;","-moz-box-sizing: border-box;","box-sizing: border-box;","float: left;","height: 22px;","outline: 0;","padding: 0 7px;","width: 238px;","margin: 0;","}",".ace_searchbtn,",".ace_replacebtn {","background: #fff;","border: 0 none;","border-left: 1px solid #dcdcdc;","cursor: pointer;","float: left;","height: 22px;","padding: 0 5px;","margin: 0;","position: relative;","}",".ace_searchbtn:last-child,",".ace_replacebtn:last-child {","border-top-right-radius: 3px;","border-bottom-right-radius: 3px;","}",".ace_searchbtn:disabled {","background: none;","cursor: default;","}",".ace_searchbtn {","background-position: 50% 50%;","background-repeat: no-repeat;","width: 27px;","}",".ace_searchbtn.prev {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); ","}",".ace_searchbtn.next {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); ","}",".ace_searchbtn_close {","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;","border-radius: 50%;","border: 0 none;","color: #656565;","cursor: pointer;","float: right;","font: 16px/16px Arial;","height: 14px;","margin: 5px 1px 9px 5px;","padding: 0;","text-align: center;","width: 14px;","}",".ace_searchbtn_close:hover {","background-color: #656565;","background-position: 50% 100%;","color: white;","}",".ace_replacebtn.prev {","width: 54px","}",".ace_replacebtn.next {","width: 27px","}",".ace_button {","margin-left: 2px;","cursor: pointer;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","overflow: hidden;","opacity: 0.7;","border: 1px solid rgba(100,100,100,0.23);","padding: 1px;","-moz-box-sizing: border-box;","box-sizing: border-box;","color: black;","}",".ace_button:hover {","background-color: #eee;","opacity:1;","}",".ace_button:active {","background-color: #ddd;","}",".ace_button.checked {","border-color: #3399ff;","opacity:1;","}",".ace_search_options{","clear: both;","margin: 4px 0;","text-align: right;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","}",".replace_toggle{","float: left;","margin-top: -2px;","padding: 0 5px;"," }",".ace_search_counter{","float: left;","font-family: arial;","padding: 0 8px;","}","button svg,path {","pointer-events: none;","}"].join("");t.setAttribute("data-name","js-searchbox"),t.textContent=e,document.head.appendChild(t)}},{key:"initElements",value:function(t){this.searchBox=t.querySelector(".ace_search_form"),this.replaceBox=t.querySelector(".ace_replace_form"),this.searchOptions=t.querySelector(".ace_search_options"),this.regExpOption=t.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=t.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=t.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field")}},{key:"bindKeys",value:function(){var t=this,e={"Ctrl-F|Cmd-F|Ctrl-H|Command-Alt-F":function(){t.isReplace=!t.isReplace;var e=t.isReplace;t.replaceBox.style.display=e?"":"none",t[e?"replaceInput":"searchInput"].focus()},"Ctrl-G|Cmd-G":function(){t.findNext()},"Ctrl-Shift-G|Cmd-Shift-G":function(){t.findPrev()},Esc:function(){ks((function(){t.hide()}))},Enter:function(){t.activeInput===t.replaceInput&&t.replace(),t.findNext()},"Shift-Enter":function(){t.activeInput===t.replaceInput&&t.replace(),t.findPrev()},"Alt-Enter":function(){t.activeInput===t.replaceInput&&SO(t).call(t),t.findAll()},Tab:function(){this.activeInput===this.replaceInput?this.searchInput.focus():this.replaceInput.focus()}};this.element.addEventListener("keydown",(function(t){var n;nv(n=Is(e)).call(n,(function(n){var r=function(t,e){var n,r={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,UP:38,DOWN:40,INSERT:45,DELETE:46,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,SLASH:191,TRA:192,BACKSLASH:220},i=nv(n=t.split("|")).call(n,(function(t){var n,i=nv(n=t.split("-")).call(n,(function(t){var n,i;switch(t){case"Ctrl":i=e.ctrlKey;break;case"Shift":i=e.shiftKey;break;case"Alt":i=e.altKey;break;case"Cmd":i=e.metaKey;break;default:1===t.length?i=e.keyCode===t.charCodeAt(0):nv(n=Is(r)).call(n,(function(n){return t.toUpperCase()===n&&(i=e.keyCode===r[n]),n}))}return!i}));return!i}));return i}(n,t);return r&&(t.stopPropagation(),t.preventDefault(),e[n](t)),r}))}))}},{key:"$syncOptions",value:function(){IO(this.regExpOption,"checked",this.regExpOption.checked),IO(this.wholeWordOption,"checked",this.wholeWordOption.checked),IO(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),ah(this).call(this,!1,!1)}},{key:"find",value:function(t,e){var n=this,r=this.searchInput.value,i={skipCurrent:t,backwards:e,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked};this.$find(r,i,(function(t){var e=t.matches(!1,t.from());n.cm.setSelection(e.from,e.to)}))}},{key:"$find",value:function(t,e,n){var r,i,a,o,s,c,l=this.cm;if(!t)return this.clearSearch(l),void this.updateCount();var u=t,h=e,f=!0,d=h.caseSensitive,A=h.regExp,g=h.wholeWord;A&&(u=u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),g&&(u=d?RegExp("\\b".concat(u,"\\b")):RegExp("\\b".concat(u,"\\b"),"i")),A&&(u=RegExp(u)),this.clearSearch(l),this.doSearch(l,u,d),this.updateCount(),c=h.backwards?h.skipCurrent?"from":"to":h.skipCurrent?"to":"from";var p=l.getCursor(c),m=l.getSearchCursor(u,p,!d);o=fs(r=m.findNext).call(r,m),s=fs(i=m.findPrevious).call(i,m),h.backwards&&!s()?(f=o())&&(l.setCursor(l.doc.size-1,0),this.$find(t,e,n),a=!0):h.backwards||o()||(f=s())&&(l.setCursor(0,0),this.$find(t,e,n),a=!0);var b=!f&&this.searchInput.value;IO(this.searchBox,"ace_nomatch",b),!a&&f&&n(m)}},{key:"findNext",value:function(){ah(this).call(this,!0,!1)}},{key:"findPrev",value:function(){ah(this).call(this,!0,!0)}},{key:"findAll",value:function(){var t=this.cm,e=this.searchInput.value,n=this.searchInput.value;IO(this.searchBox,"ace_nomatch",n),t.showMatchesOnScrollbar&&t.showMatchesOnScrollbar(e),this.hide()}},{key:"replace",value:function(){var t=this.cm,e=t.getOption("readOnly"),n=!!t.getSelection();!e&&n&&t.replaceSelection(this.replaceInput.value,"start"),this.updateCount()}},{key:"replaceAndFindNext",value:function(){this.cm.getOption("readOnly")||(this.replace(),this.findNext())}},{key:"replaceAll",value:function(){var t,e,n=this.cm,r=this.searchInput.value,i=this.replaceInput.value,a=RegExp(r,this.caseSensitiveOption.checked?"g":"gi");this.wholeWordOption.checked&&!this.regExpOption.checked&&(a=this.caseSensitiveOption.checked?RegExp("\\b".concat(r,"\\b"),"g"):RegExp("\\b".concat(r,"\\b"),"gi")),!n.getOption("readOnly")&&n.getSelection()&&(e=n.getCursor(),t=(t=n.getValue()).replace(a,i),n.setValue(t),n.setCursor(e)),this.updateCount()}},{key:"toggleReplace",value:function(){var t=this.cm.display.wrapper;"+"===t.parentElement.querySelector("[action=toggleReplace]").innerText?(t.parentElement.querySelector("[action=toggleReplace]").innerText="-",this.replaceBox.style.display="",this.isReplace=!0):(t.parentElement.querySelector("[action=toggleReplace]").innerText="+",this.replaceBox.style.display="none",this.isReplace=!1)}},{key:"hide",value:function(){var t=this.cm;this.clearSearch(t),this.element.style.display="none",t.focus()}},{key:"isVisible",value:function(){return"none"!==this.element.style.display}},{key:"show",value:function(t,e){(this.element.style.display="",this.replaceBox.style.display=e?"":"none",this.isReplace=e,t)&&(this.searchInput.value=t,ah(this).call(this,!1,!1));this.searchInput.focus(),this.searchInput.select()}},{key:"isFocused",value:function(){var t=document.activeElement;return t===this.searchInput||t===this.replaceInput}},{key:"doSearch",value:function(t,e,n){var r=this.getSearchState(t),i=e;i&&i!==r.queryText&&(this.startSearch(t,r,i,n),r.posFrom=t.getCursor(),r.posTo=r.posFrom)}},{key:"parseString",value:function(t){return t.replace(/\\([nrt\\])/g,(function(t,e){return"n"===e?"\n":"r"===e?"\r":"t"===e?"\t":"\\"===e?"\\":t}))}},{key:"parseQuery",value:function(t){var e=("object"===Ro(t)?t.toString():t).match(/^\/(.*)\/([a-z]*)$/),n=t;if(e)try{var r;n=new RegExp(e[1],-1===Ef(r=e[2]).call(r,"i")?"":"i")}catch(t){}else n=this.parseString(t);return("string"==typeof n?""===n:n.test(""))&&(n=/x^/),n}},{key:"startSearch",value:function(t,e,n,r){e.queryText=n,e.query=this.parseQuery(n),t.removeOverlay(e.overlay,this.queryCaseInsensitive(e.query,r)),e.overlay=this.searchOverlay(e.query,this.queryCaseInsensitive(e.query,r)),t.addOverlay(e.overlay),t.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=t.showMatchesOnScrollbar(e.query,this.queryCaseInsensitive(e.query,r)))}},{key:"queryCaseInsensitive",value:function(t,e){return"string"==typeof t&&!e}},{key:"searchOverlay",value:function(t,e){var n=t;return"string"==typeof t?n=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):t.global||(n=new RegExp(t.source,t.ignoreCase?"gi":"g")),{token:function(t){n.lastIndex=t.pos;var e=n.exec(t.string);if(e&&e.index===t.pos)return t.pos+=e[0].length||1,"searching";e?t.pos=e.index:t.skipToEnd()}}}},{key:"getSearchState",value:function(t){return t.state.search||(t.state.search={posFrom:null,posTo:null,lastQuery:null,query:null,overlay:null})}},{key:"clearSearch",value:function(t){var e=this;t.operation((function(){var n=e.getSearchState(t);n.lastQuery=n.query,n.query&&(n.query=null,n.queryText=null,t.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))}))}},{key:"updateCount",value:function(){var t,e=this.cm,n=this.searchInput.value,r=[];n&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t=this.caseSensitiveOption.checked?RegExp(n,"g"):RegExp(n,"gi"),this.wholeWordOption.checked&&(t=this.caseSensitiveOption.checked?RegExp("\\b".concat(n,"\\b"),"g"):RegExp("\\b".concat(n,"\\b"),"gi")),this.regExpOption.checked&&(t=RegExp(n,"gi")),r=e.getValue().match(t));var i=r?r.length:0,a=e.display.wrapper.parentElement.querySelector(".ace_search_counter");a&&(a.innerText="".concat(i," matches found.")),0===i&&e.setSelection({ch:0,line:0},{ch:0,line:0})}}])}();function IO(t,e,n){t.classList[n?"add":"remove"](e)}function MO(t,e,n){return e=es(e),Ko(t,OO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function OO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(OO=function(){return!!t})()}var DO=function(t){function e(t){var n,r;return ra(this,e),(r=MO(this,e,[t])).setName("search","search"),r.updateMarkdown=!1,r.shortcutKeyMap=cs({},hs(n="".concat(x_,"-")).call(n,P_("f")),{hookName:r.name,aliasName:t.locale[r.name]}),r.searchBox=new LO,r.searchBoxInit=!1,r}return ss(e,t),Ho(e,[{key:"onClick",value:function(t){this.searchBoxInit||(this.searchBoxInit=!0,this.searchBox.init(this.$cherry.editor.editor)),this.searchBox.isVisible()?this.searchBox.hide():this.searchBox.show(t,!0)}}])}(l_),FO={bold:U_,italic:j_,"|":G_,strikethrough:q_,sub:Z_,sup:nS,header:lS,insert:AS,list:mS,ol:yS,ul:CS,checklist:TS,graph:DS,size:PS,h1:US,h2:jS,h3:GS,color:aS,quote:WS,quickTable:JS,togglePreview:eL,code:dL,inlineCode:pL,codeTheme:vL,export:kL,settings:_L,fullScreen:iL,mobilePreview:XI,copy:YI,undo:sL,redo:uL,underline:IL,switchModel:DL,image:QL,audio:KL,video:WL,br:JL,hr:eI,formula:aI,link:cI,table:hI,toc:AI,lineTable:mI,barTable:yI,pdf:EI,word:FI,ruby:RI,theme:$I,file:LI,panel:eM,justify:iM,detail:sM,drawIo:uM,wordCount:KI,publish:iO,changeLocale:sO,shortcutKey:uO,search:DO},NO=function(){return Ho((function t(e){ra(this,t),this.toolbar=e,this.hooks={},this.allMenusName=[],this.level1MenusName=[],this.level2MenusName={},this.menuOptionsKey=["name","icon","subMenu"],this.init()}),[{key:"$newMenu",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!this.hooks[t]){var n=e||{name:t,icon:t},r=this.toolbar.options,i=r.$cherry,a=r.customMenu;i.$currentMenuOptions=n,FO[t]?(this.allMenusName.push(t),this.hooks[t]=new FO[t](i)):null!=a&&a[t]&&(this.allMenusName.push(t),this.hooks[t]=new a[t](i))}}},{key:"init",value:function(){var t=this,e=this.toolbar.options.buttonConfig;Qs(e).call(e,(function(e){if("string"==typeof e)t.level1MenusName.push(e),t.$newMenu(e);else if("object"===Ro(e)){var n=Is(e);if(1===n.length){var r,i,a,o,s=xf(n,1)[0];if(Iv(r=t.menuOptionsKey).call(r,s))throw Error(hs(o="this menu key is not allowed: ".concat(s,", forbid menu key: ")).call(o,t.menuOptionsKey));console.warn(hs(i="this subMenu config type will be deprecated, please use {subMenu: ['".concat(s,"']} config: ")).call(i,e)),t.level1MenusName.push(s),t.$newMenu(s),t.level2MenusName[s]=e[s],Qs(a=e[s]).call(a,(function(e){t.$newMenu(e)}))}else{if(!e.name)return;t.level1MenusName.push(e.name),t.$newMenu(e.name,e)}}}))}}])}(),PO=function(){return Ho((function t(e){ra(this,t),cs(this,"toolbarHandlers",{}),this.menus={},this.shortcutKeyMap={},this.subMenus={},this.options={dom:document.createElement("div"),buttonConfig:["bold"],customMenu:[]},Ss(this.options,e),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.instanceId,this.menus=new NO(this),this.drawMenus(),this.collectShortcutKey(),this.collectToolbarHandler(),this.init()}),[{key:"init",value:function(){var t=this;this.$cherry.$event.on("cleanAllSubMenus",(function(){return t.hideAllSubMenu()}))}},{key:"previewOnly",value:function(){this.options.dom.classList.add("preview-only"),this.$cherry.wrapperDom.classList.add("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarHide")}},{key:"showToolbar",value:function(){this.options.dom.classList.remove("preview-only"),this.$cherry.wrapperDom.classList.remove("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarShow")}},{key:"isHasLevel2Menu",value:function(t){return this.menus.level2MenusName[t]}},{key:"isHasConfigMenu",value:function(t){return this.menus.hooks[t].subMenuConfig||[]}},{key:"isHasSubMenu",value:function(t){return Boolean(this.isHasLevel2Menu(t)||this.isHasConfigMenu(t).length>0)}},{key:"drawMenus",value:function(){var t,e=this,n=document.createDocumentFragment();Qs(t=this.menus.level1MenusName).call(t,(function(t){var r=e.menus.hooks[t].createBtn();"object"===("undefined"==typeof window?"undefined":Ro(window))&&"onpointerup"in window?(r.addEventListener("pointerdown",(function(){e.isPointerDown=!0}),!1),r.addEventListener("pointerup",(function(n){e.isPointerDown&&e.onClick(n,t),e.isPointerDown=!1}),!1)):r.addEventListener("click",(function(n){e.onClick(n,t)}),!1),e.isHasSubMenu(t)&&r.classList.add("cherry-toolbar-dropdown"),n.appendChild(r)})),this.appendMenusToDom(n)}},{key:"appendMenusToDom",value:function(t){var e=Zf("div","toolbar-left");e.appendChild(t),this.options.dom.appendChild(e)}},{key:"setSubMenuPosition",value:function(t,e){var n=t.getMenuPosition();e.style.left="".concat(n.left+n.width/2,"px"),e.style.top="".concat(n.top+n.height,"px"),e.style.position=t.positionModel}},{key:"drawSubMenus",value:function(t){var e=this;this.subMenus[t]=Zf("div","cherry-dropdown",{name:t}),this.setSubMenuPosition(this.menus.hooks[t],this.subMenus[t]);var n=this.isHasLevel2Menu(t);n&&Qs(n).call(n,(function(n){var r=e.menus.hooks[n];if(void 0!==r&&"function"==typeof r.createBtn){var i=r.createBtn(!0);r.dom=r.dom?r.dom:e.menus.hooks[t].dom,i.addEventListener("click",(function(t){return e.onClick(t,n,!0)}),!1),e.subMenus[t].appendChild(i)}}));var r=this.isHasConfigMenu(t);r.length>0&&Qs(r).call(r,(function(n){var r=e.menus.hooks[t].createSubBtnByConfig(n);null!=n&&n.disabledHideAllSubMenu||r.addEventListener("click",(function(){return e.hideAllSubMenu()}),!1),e.subMenus[t].appendChild(r)})),this.$cherry.wrapperDom.appendChild(this.subMenus[t])}},{key:"onClick",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.menus.hooks[e];i&&(this.isHasSubMenu(e)&&!r?this.toggleSubMenu(e):("function"==typeof i.hideOtherSubMenu?i.hideOtherSubMenu((function(){return n.hideAllSubMenu()})):this.hideAllSubMenu(),i.fire(t,e)))}},{key:"activeSubMenuItem",value:function(t){var e,n,r,i=this.subMenus[t],a=null===(e=this.menus.hooks)||void 0===e||null===(n=e[t])||void 0===n?void 0:n.getActiveSubMenuIndex(i);null==i||Qs(r=i.querySelectorAll(".cherry-dropdown-item")).call(r,(function(t,e){t.classList.toggle("cherry-dropdown-item__selected",e===a)}))}},{key:"toggleSubMenu",value:function(t){if(!this.subMenus[t])return this.hideAllSubMenu(),this.drawSubMenus(t),this.subMenus[t].style.display="block",void this.activeSubMenuItem(t);"none"===this.subMenus[t].style.display?(this.hideAllSubMenu(),this.subMenus[t].style.display="block",this.setSubMenuPosition(this.menus.hooks[t],this.subMenus[t]),this.activeSubMenuItem(t)):this.subMenus[t].style.display="none"}},{key:"hideAllSubMenu",value:function(){var t;Qs(t=this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(t,(function(t){t.style.display="none"}))}},{key:"collectMenuInfo",value:function(t){this.toolbarHandlers=Ss({},this.toolbarHandlers,t.toolbarHandlers),this.menus.hooks=Ss({},t.menus.hooks,this.menus.hooks),(!this.options.shortcutKey||Is(this.options.shortcutKey).length<=0)&&(this.shortcutKeyMap=Ss({},this.shortcutKeyMap,t.shortcutKeyMap))}},{key:"collectShortcutKey",value:function(){var t,e=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$cherry.options.toolbars.shortcutKey&&Is(this.$cherry.options.toolbars.shortcutKey).length>0&&Qs(t=Px(this.$cherry.options.toolbars.shortcutKey)).call(t,(function(t){var n=xf(t,2),r=n[0],i=n[1],a=r.replace(/Ctrl-/g,"Control-").replace(/-([A-Za-z])$/g,(function(t,e){return"-Key".concat(e.toUpperCase())})).replace(/-([0-9])$/g,"-Digit$1");e.shortcutKeyMap[a]={hookName:i,aliasName:e.$cherry.locale[i]||i}}));if(this.$cherry.options.toolbars.shortcutKeySettings.isReplace)this.shortcutKeyMap=this.$cherry.options.toolbars.shortcutKeySettings.shortcutKeyMap;else{var r,i;if(Qs(r=this.menus.allMenusName).call(r,(function(t){var n,r;(null===(n=e.menus.hooks[t].shortcutKeys)||void 0===n||Qs(n).call(n,(function(n){e.shortcutKeyMap[n]=t})),"object"===Ro(e.menus.hooks[t].shortcutKeyMap)&&e.menus.hooks[t].shortcutKeyMap)&&Qs(r=Px(e.menus.hooks[t].shortcutKeyMap)).call(r,(function(t){var n=xf(t,2),r=n[0],i=n[1];r in e.shortcutKeyMap?console.error("The shortcut key ".concat(r," is already registered")):e.shortcutKeyMap[r]=i}))})),Qs(i=Px(this.$cherry.options.toolbars.shortcutKeySettings.shortcutKeyMap)).call(i,(function(t){var n=xf(t,2),r=n[0],i=n[1];e.shortcutKeyMap[r]=i})),!n)return;var a=O_(this.$cherry.nameSpace);if(a){var o,s,c={};Qs(o=Px(this.shortcutKeyMap)).call(o,(function(t){var e,n=xf(t,2),r=n[0],i=n[1];c[hs(e="".concat(i.hookName,"-")).call(e,i.aliasName)]=r})),Qs(s=Px(a)).call(s,(function(t){var n,r=xf(t,2),i=r[0],a=r[1],o=hs(n="".concat(a.hookName,"-")).call(n,a.aliasName);c[o]&&delete e.shortcutKeyMap[c[o]],e.shortcutKeyMap[i]=a}))}}}},{key:"updateShortcutKeyMap",value:function(t,e){if(t===e)return!1;var n=this.shortcutKeyMap[t];if(!n)return!1;delete this.shortcutKeyMap[t],this.shortcutKeyMap[e]=n,M_(this.$cherry.nameSpace,this.shortcutKeyMap)}},{key:"collectToolbarHandler",value:function(){var t,e=this;this.toolbarHandlers=zm(t=this.menus.allMenusName).call(t,(function(t,n){var r=e.menus.hooks[n];return r?(t[n]=function(t,e){"function"==typeof e&&id.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."),r.fire.call(r,void 0,t)},t):t}),{})}},{key:"matchShortcutKey",value:function(t){var e,n=S_(t),r=D_(n);return!(null===(e=this.shortcutKeyMap)||void 0===e||!e[r])}},{key:"fireShortcutKey",value:function(t){var e;if(!I_(this.$cherry.nameSpace))return!1;var n,r=S_(t),i=D_(r),a=null===(e=this.shortcutKeyMap[i])||void 0===e?void 0:e.hookName;"string"==typeof a&&a&&(null===(n=this.menus.hooks[a])||void 0===n||n.fire(t,i));return!0}}])}();function RO(t,e,n){return e=es(e),Ko(t,QO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function QO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(QO=function(){return!!t})()}var UO=function(t){function e(){return ra(this,e),RO(this,e,arguments)}return ss(e,t),Ho(e,[{key:"visible",get:function(){var t=window.getComputedStyle(this.bubbleDom);return"none"!==t.display&&"hidden"!==t.visibility},set:function(t){var n=window.getComputedStyle(this.bubbleDom);t?"none"===n.display&&(this.bubbleDom.style.display=e.displayType):"none"!==n.display&&(this.bubbleDom.style.display="none")}},{key:"init",value:function(){var t,e=this;this.options.editor=this.$cherry.editor,this.addSelectionChangeListener(),this.bubbleDom=this.options.dom,this.editorDom=this.options.editor.getEditorDom(),this.initBubbleDom(),this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom),Qs(t=Px(this.shortcutKeyMap)).call(t,(function(t){var n=xf(t,2),r=n[0],i=n[1];e.$cherry.toolbar.shortcutKeyMap[r]=i}))}},{key:"appendMenusToDom",value:function(t){this.options.dom.appendChild(t)}},{key:"getScrollTop",value:function(){return this.options.editor.editor.getScrollInfo().top}},{key:"updatePositionWhenScroll",value:function(){this.bubbleDom.style.display===e.displayType&&(this.bubbleDom.style.marginTop="".concat(Wf(this.bubbleDom.dataset.scrollTop)-this.getScrollTop(),"px"))}},{key:"showBubble",value:function(t,e){this.visible||(this.visible=!0,this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=String(this.getScrollTop()));var n=this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),r=this.editorDom.getBoundingClientRect(),i=n.left-r.left,a=n.width+i,o=t;o<2*this.bubbleDom.offsetHeight?(o+=this.bubbleDom.offsetHeight-this.bubbleTop.getBoundingClientRect().height,this.bubbleTop.style.display="block",this.bubbleBottom.style.display="none"):(o-=this.bubbleDom.offsetHeight+2*this.bubbleBottom.getBoundingClientRect().height,this.bubbleTop.style.display="none",this.bubbleBottom.style.display="block"),this.bubbleDom.style.top="".concat(o,"px");var s=e-this.bubbleDom.offsetWidth/2;s<i?(s=i,this.$setBubbleCursorPosition("".concat(e-i,"px"))):s+this.bubbleDom.offsetWidth>a?(s=a-this.bubbleDom.offsetWidth,this.$setBubbleCursorPosition("".concat(e-s,"px"))):this.$setBubbleCursorPosition("50%"),this.bubbleDom.style.left="".concat(Math.max(20,s),"px")}},{key:"hideBubble",value:function(){this.visible=!1}},{key:"$setBubbleCursorPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50%";if("50%"===t)this.bubbleTop.style.left="50%",this.bubbleBottom.style.left="50%";else{var e=Wf(t)<10?"10px":t;this.bubbleTop.style.left=e,this.bubbleBottom.style.left=e}}},{key:"initBubbleDom",value:function(){var t=document.createElement("div");t.className="cherry-bubble-top";var e=document.createElement("div");e.className="cherry-bubble-bottom",this.bubbleTop=t,this.bubbleBottom=e,this.bubbleDom.appendChild(t),this.bubbleDom.appendChild(e),this.visible=!1}},{key:"getBubbleDom",value:function(){return this.bubbleDom}},{key:"addSelectionChangeListener",value:function(){var t=this;this.options.editor.addListener("change",(function(e){t.hideBubble()})),this.options.editor.addListener("refresh",(function(e){t.hideBubble()})),this.options.editor.addListener("scroll",(function(e){t.updatePositionWhenScroll()})),this.options.editor.addListener("beforeSelectionChange",(function(e,n){if(ks((function(){var r=e.getSelections(),i=r.join("");i!==t.lastSelectionsStr&&(i||t.lastSelectionsStr)&&(t.lastSelections=t.lastSelections?t.lastSelections:[],t.$cherry.$event.emit("selectionChange",{selections:r,lastSelections:t.lastSelections,info:n}),t.lastSelections=r,t.lastSelectionsStr=i)}),10),"*mouse"!==n.origin&&(null!==n.origin||void 0===n.origin))return!0;if(!n.ranges[0])return!0;var r=1e6*n.ranges[0].anchor.line+n.ranges[0].anchor.ch,i=1e6*n.ranges[0].head.line+n.ranges[0].head.ch,a="asc";r>i&&(a="desc"),ks((function(){if(e.getSelections().join("").length<=0)t.hideBubble();else{var n=e.getWrapperElement().getElementsByClassName("CodeMirror-selected"),r=t.editorDom.getBoundingClientRect(),i=0,o=0;if("object"!==Ro(n)||n.length<=0)t.hideBubble();else{for(var s=0;s<n.length;s++){var c=n[s].getBoundingClientRect(),l=c.top-r.top;"asc"===a?l>=o&&(o=l,i=c.left-r.left+c.width/2):(l<=o||o<=0)&&(o=l,i=c.left-r.left+c.width/2)}t.showBubble(o,i)}}}),10)}))}}])}(PO);function $O(t,e,n){return e=es(e),Ko(t,HO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function HO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(HO=function(){return!!t})()}cs(UO,"displayType","flex");var jO=function(t){function e(){return ra(this,e),$O(this,e,arguments)}return ss(e,t),Ho(e,[{key:"init",value:function(){var t,e=this;this.editor=this.$cherry.editor,this.editorDom=this.editor.getEditorDom(),this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom),this.initAction(),Qs(t=Px(this.shortcutKeyMap)).call(t,(function(t){var n=xf(t,2),r=n[0],i=n[1];e.$cherry.toolbar.shortcutKeyMap[r]=i}))}},{key:"appendMenusToDom",value:function(t){this.options.dom.appendChild(t)}},{key:"initAction",value:function(){var t=this;this.editor.addListener("cursorActivity",(function(e,n){t.cursorActivity(n,e)})),this.editor.addListener("update",(function(e,n){t.cursorActivity(n,e)})),this.editor.addListener("refresh",(function(e,n){ks((function(){t.cursorActivity(n,e)}),0)}))}},{key:"update",value:function(t,e){var n=e.getCursor();if(this.isHidden(n.line,e))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block"}},{key:"cursorActivity",value:function(t,e){var n=e.getCursor(),r=document.querySelector(".cherry-editor .CodeMirror-lines");if(!r)return!1;var i=getComputedStyle(r),a=Wf(i.paddingLeft),o=Wf(i.paddingTop);if(this.isHidden(n.line,e))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block",this.options.dom.style.left="".concat(a,"px"),this.options.dom.style.top="".concat(this.getLineHeight(n.line,e)+o,"px")}},{key:"isHidden",value:function(t,e){return e.getSelections().length>1||(e.getSelection().length>0||!!e.getLine(t))}},{key:"getLineHeight",value:function(t,e){var n=0;return e.getDoc().eachLine(0,t,(function(t){n+=t.height})),n}}])}(PO);function KO(t,e,n){return e=es(e),Ko(t,zO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function zO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(zO=function(){return!!t})()}var GO=function(t){function e(){return ra(this,e),KO(this,e,arguments)}return ss(e,t),Ho(e,[{key:"appendMenusToDom",value:function(t){var e=Zf("div","toolbar-right");e.appendChild(t),this.options.dom.appendChild(e)}},{key:"init",value:function(){var t,n=this;xm(es(e.prototype),"init",this).call(this),Qs(t=Px(this.shortcutKeyMap)).call(t,(function(t){var e=xf(t,2),r=e[0],i=e[1];n.$cherry.toolbar.shortcutKeyMap[r]=i}))}}])}(PO),XO=function(){return Ho((function t(e){var n,r,i,a,o;ra(this,t),this.$cherry=e.$cherry,this.editor=e.$cherry.editor.editor,this.tocStr="",this.updateLocationHash=null===(n=e.updateLocationHash)||void 0===n||n,this.defaultModel=null!==(r=e.defaultModel)&&void 0!==r?r:"full",this.showAutoNumber=null!==(i=e.showAutoNumber)&&void 0!==i&&i,this.position=null!==(a=e.position)&&void 0!==a?a:"absolute",this.cssText=null!==(o=e.cssText)&&void 0!==o?o:"",this.init()}),[{key:"init",value:function(){var t=this;this.drawDom(),this.timer=ks((function(){t.updateTocList()}),300),this.editor.on("change",(function(e,n){clearTimeout(t.timer),t.timer=ks((function(){t.updateTocList(),t.$switchModel(t.model)}),300)})),this.$switchModel(this.getModelFromLocalStorage())}},{key:"getModelFromLocalStorage",value:function(){return"undefined"==typeof localStorage?this.defaultModel:localStorage.getItem("cherry-toc-model")||this.defaultModel}},{key:"setModelToLocalStorage",value:function(t){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-toc-model",t)}},{key:"drawDom",value:function(){var t=Zf("div","cherry-flex-toc cherry-flex-toc__pure".concat(this.showAutoNumber?" auto-num":""));"fixed"===this.position&&t.classList.add("cherry-flex-toc__fixed"),this.cssText.length>0&&(t.style.cssText=this.cssText);var e=Zf("div","cherry-toc-head"),n=Zf("span","cherry-toc-title");n.append(this.$cherry.locale.toc);var r=Zf("i","ch-icon ch-icon-chevronsRight"),i=Zf("i","ch-icon ch-icon-chevronsLeft");this.tocClose=r,this.tocOpen=i,e.appendChild(n),e.appendChild(r),e.appendChild(i),t.appendChild(e);var a=Zf("div","cherry-toc-list");this.tocListDom=a,t.appendChild(a),this.tocDom=t,this.$cherry.wrapperDom.appendChild(t),this.bindClickEvent()}},{key:"bindClickEvent",value:function(){var t=this;this.tocDom.addEventListener("click",(function(e){var n=t.$getClosestNode(e.target,"A");if(!1!==n&&/cherry-toc-one-a/.test(n.className)){var r=n.dataset,i=r.id,a=r.index;if("hide"===t.$cherry.status.previewer){for(var o=t.$cherry.editor.editor.getSearchCursor(/(?:^|\n)\n*((?:[ \t\u00a0]*#{1,6}).+?|(?:[ \t\u00a0]*.+)\n(?:[ \t\u00a0]*[=]+|[-]+))(?=$|\n)/g),s=0;s<=a;s++)o.findNext();var c=o.from();t.$cherry.editor.scrollToLineNum(c.line,c.line+1,0)}else t.$cherry.previewer.scrollToHeadByIndex(a);t.updateLocationHash&&(location.href=i)}})),this.tocClose.addEventListener("click",(function(e){t.$switchModel("pure"),t.setModelToLocalStorage("pure")})),this.tocOpen.addEventListener("click",(function(e){t.$switchModel("full"),t.setModelToLocalStorage("full")})),window&&window.addEventListener("resize",(function(){t.$switchModel(t.model)})),this.editor.on("scroll",(function(e,n){t.updateTocList(!0)}));var e=this.$cherry.previewer.getDomCanScroll();"HTML"===e.nodeName?window.addEventListener("scroll",(function(){t.updateTocList(!0)})):e.addEventListener("scroll",(function(){t.updateTocList(!0)}))}},{key:"$switchModel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pure";this.model=t;var e="cherry-flex-toc__".concat(t);this.tocDom.classList.contains(e)||(this.tocDom.classList.remove("cherry-flex-toc__pure"),this.tocDom.classList.remove("cherry-flex-toc__full"),this.tocDom.classList.add(e));var n=this.tocListDom.querySelectorAll(".cherry-toc-one-a");if(n.length>0){var r=28;if("pure"===t){var i=this.tocListDom.getBoundingClientRect().height,a=Math.floor((i-3*n.length)/n.length);r=a<3?3:a>10?10:a}for(var o=0;o<n.length;o++)n[o].style.height!=="".concat(r,"px")&&(n[o].style.height="".concat(r,"px"))}}},{key:"$getClosestNode",value:function(t,e){return t.tagName===e?t:"BODY"!==t.parentNode.tagName&&this.$getClosestNode(t.parentNode,e)}},{key:"updateTocList",value:function(){if(!0===(arguments.length>0&&void 0!==arguments[0]&&arguments[0]));else{var t=this.$cherry.getToc(),e="";if(lA(t).call(t,(function(t){return e+=t.text,t})),e=sm(e),this.tocStr!==e){this.tocStr=e;var n="",r=0;lA(t).call(t,(function(t){var e,i,a,o,s=t.text.replace(/<a .+?<\/a>/g,""),c=s.replace(/<[^>]+?>/g,"");return n+=hs(e=hs(i=hs(a=hs(o='<a class="cherry-toc-one-a cherry-toc-one-a__'.concat(t.level>5?5:t.level,'"\n title="')).call(o,c,'"\n data-index="')).call(a,r,'"\n data-id="#')).call(i,t.id,'"\n >')).call(e,s,"</a>"),r+=1,t})),this.tocListDom.innerHTML=n}}if("hide"===this.$cherry.status.previewer);else{for(var i,a=this.$cherry.previewer.getDomCanScroll(),o="HTML"===a.nodeName?0:a.getBoundingClientRect().y,s=this.$cherry.previewer.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8"),c=0;c<s.length;c++){if(s[c].getBoundingClientRect().y>o+20)break}c=c>0?c-1:c,Qs(i=this.tocListDom.querySelectorAll(".cherry-toc-one-a")).call(i,(function(t,e){e===c?t.classList.add("current"):t.classList.remove("current")}))}}}])}();function VO(t,e,n){return e=es(e),Ko(t,WO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function WO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(WO=function(){return!!t})()}var qO=function(t){function e(){return ra(this,e),VO(this,e,arguments)}return ss(e,t),Ho(e,[{key:"appendMenusToDom",value:function(t){this.options.dom.appendChild(t)}},{key:"init",value:function(){var t,n=this;xm(es(e.prototype),"init",this).call(this),Qs(t=Px(this.shortcutKeyMap)).call(t,(function(t){var e=xf(t,2),r=e[0],i=e[1];n.$cherry.toolbar.shortcutKeyMap[r]=i}))}}])}(PO);function YO(t,e,n){return e=es(e),Ko(t,JO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function JO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(JO=function(){return!!t})()}var ZO=function(t){function e(){return ra(this,e),YO(this,e,arguments)}return ss(e,t),Ho(e,[{key:"appendMenusToDom",value:function(t){}},{key:"init",value:function(){var t,n=this;xm(es(e.prototype),"init",this).call(this),Qs(t=Px(this.shortcutKeyMap)).call(t,(function(t){var e=xf(t,2),r=e[0],i=e[1];n.$cherry.toolbar.shortcutKeyMap[r]=i}))}}])}(PO),tD=-1,eD=1,nD=0;function rD(t,e,n,r,i){if(t===e)return t?[[nD,t]]:[];if(null!=n){var a=function(t,e,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,a=t.length,o=e.length;if(0===r.length&&(null===i||0===i.length)){var s=r.index,c=t.slice(0,s),l=t.slice(s),u=i?i.index:null,h=s+o-a;if((null===u||u===h)&&!(h<0||h>o)){var f=e.slice(0,h);if((g=e.slice(h))===l){var d=Math.min(s,h);if((m=c.slice(0,d))===(v=f.slice(0,d)))return bD(m,c.slice(d),f.slice(d),l)}}if(null===u||u===s){var A=s,g=(f=e.slice(0,A),e.slice(A));if(f===c){var p=Math.min(a-A,o-A);if((b=l.slice(l.length-p))===(y=g.slice(g.length-p)))return bD(c,l.slice(0,l.length-p),g.slice(0,g.length-p),b)}}}if(r.length>0&&i&&0===i.length){var m=t.slice(0,r.index),b=t.slice(r.index+r.length);if(!(o<(d=m.length)+(p=b.length))){var v=e.slice(0,d),y=e.slice(o-p);if(m===v&&b===y)return bD(m,t.slice(d,a-p),e.slice(d,o-p),b)}}return null}(t,e,n);if(a)return a}var o=aD(t,e),s=t.substring(0,o);o=sD(t=t.substring(o),e=e.substring(o));var c=t.substring(t.length-o),l=function(t,e){var n;if(!t)return[[eD,e]];if(!e)return[[tD,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,a=r.indexOf(i);if(-1!==a)return n=[[eD,r.substring(0,a)],[nD,i],[eD,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=tD),n;if(1===i.length)return[[tD,t],[eD,e]];var o=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function i(t,e,n){for(var r,i,a,o,s=t.substring(n,n+Math.floor(t.length/4)),c=-1,l="";-1!==(c=e.indexOf(s,c+1));){var u=aD(t.substring(n),e.substring(c)),h=sD(t.substring(0,n),e.substring(0,c));l.length<h+u&&(l=e.substring(c-h,c)+e.substring(c,c+u),r=t.substring(0,n-h),i=t.substring(n+u),a=e.substring(0,c-h),o=e.substring(c+u))}return 2*l.length>=t.length?[r,i,a,o,l]:null}var a,o,s,c,l,u=i(n,r,Math.ceil(n.length/4)),h=i(n,r,Math.ceil(n.length/2));if(!u&&!h)return null;a=h?u&&u[4].length>h[4].length?u:h:u;t.length>e.length?(o=a[0],s=a[1],c=a[2],l=a[3]):(c=a[0],l=a[1],o=a[2],s=a[3]);var f=a[4];return[o,s,c,l,f]}(t,e);if(o){var s=o[0],c=o[1],l=o[2],u=o[3],h=o[4],f=rD(s,l),d=rD(c,u);return f.concat([[nD,h]],d)}return function(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,o=2*i,s=new Array(o),c=new Array(o),l=0;l<o;l++)s[l]=-1,c[l]=-1;s[a+1]=0,c[a+1]=0;for(var u=n-r,h=u%2!=0,f=0,d=0,A=0,g=0,p=0;p<i;p++){for(var m=-p+f;m<=p-d;m+=2){for(var b=a+m,v=(x=m===-p||m!==p&&s[b-1]<s[b+1]?s[b+1]:s[b-1]+1)-m;x<n&&v<r&&t.charAt(x)===e.charAt(v);)x++,v++;if(s[b]=x,x>n)d+=2;else if(v>r)f+=2;else if(h){if((k=a+u-m)>=0&&k<o&&-1!==c[k])if(x>=(w=n-c[k]))return iD(t,e,x,v)}}for(var y=-p+A;y<=p-g;y+=2){for(var w,k=a+y,C=(w=y===-p||y!==p&&c[k-1]<c[k+1]?c[k+1]:c[k-1]+1)-y;w<n&&C<r&&t.charAt(n-w-1)===e.charAt(r-C-1);)w++,C++;if(c[k]=w,w>n)g+=2;else if(C>r)A+=2;else if(!h){if((b=a+u-y)>=0&&b<o&&-1!==s[b]){var x;v=a+(x=s[b])-b;if(x>=(w=n-w))return iD(t,e,x,v)}}}}return[[tD,t],[eD,e]]}(t,e)}(t=t.substring(0,t.length-o),e=e.substring(0,e.length-o));return s&&l.unshift([nD,s]),c&&l.push([nD,c]),dD(l,i),r&&function(t){var e=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<t.length;)t[a][0]==nD?(n[r++]=a,o=c,s=l,c=0,l=0,i=t[a][1]):(t[a][0]==eD?c+=t[a][1].length:l+=t[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(t.splice(n[r-1],0,[tD,i]),t[n[r-1]+1][0]=eD,r--,a=--r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,e=!0)),a++;e&&dD(t);(function(t){function e(t,e){if(!t||!e)return 6;var n=t.charAt(t.length-1),r=e.charAt(0),i=n.match(cD),a=r.match(cD),o=i&&n.match(lD),s=a&&r.match(lD),c=o&&n.match(uD),l=s&&r.match(uD),u=c&&t.match(hD),h=l&&e.match(fD);return u||h?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}var n=1;for(;n<t.length-1;){if(t[n-1][0]==nD&&t[n+1][0]==nD){var r=t[n-1][1],i=t[n][1],a=t[n+1][1],o=sD(r,i);if(o){var s=i.substring(i.length-o);r=r.substring(0,r.length-o),i=s+i.substring(0,i.length-o),a=s+a}for(var c=r,l=i,u=a,h=e(r,i)+e(i,a);i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var f=e(r,i)+e(i,a);f>=h&&(h=f,c=r,l=i,u=a)}t[n-1][1]!=c&&(c?t[n-1][1]=c:(t.splice(n-1,1),n--),t[n][1]=l,u?t[n+1][1]=u:(t.splice(n+1,1),n--))}n++}})(t),a=1;for(;a<t.length;){if(t[a-1][0]==tD&&t[a][0]==eD){var u=t[a-1][1],h=t[a][1],f=oD(u,h),d=oD(h,u);f>=d?(f>=u.length/2||f>=h.length/2)&&(t.splice(a,0,[nD,h.substring(0,f)]),t[a-1][1]=u.substring(0,u.length-f),t[a+1][1]=h.substring(f),a++):(d>=u.length/2||d>=h.length/2)&&(t.splice(a,0,[nD,u.substring(0,d)]),t[a-1][0]=eD,t[a-1][1]=h.substring(0,h.length-d),t[a+1][0]=tD,t[a+1][1]=u.substring(d),a++),a++}a++}}(l),l}function iD(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),o=t.substring(n),s=e.substring(r),c=rD(i,a),l=rD(o,s);return c.concat(l)}function aD(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(a,i)==e.substring(a,i)?a=n=i:r=i,i=Math.floor((r-n)/2+n);return AD(t.charCodeAt(i-1))&&i--,i}function oD(t,e){var n=t.length,r=e.length;if(0==n||0==r)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var a=0,o=1;;){var s=t.substring(i-o),c=e.indexOf(s);if(-1==c)return a;o+=c,0!=c&&t.substring(i-o)!=e.substring(0,o)||(a=o,o++)}}function sD(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(t.length-i,t.length-a)==e.substring(e.length-i,e.length-a)?a=n=i:r=i,i=Math.floor((r-n)/2+n);return gD(t.charCodeAt(t.length-i))&&i--,i}var cD=/[^a-zA-Z0-9]/,lD=/\s/,uD=/[\r\n]/,hD=/\n\r?\n$/,fD=/^\r?\n\r?\n/;function dD(t,e){t.push([nD,""]);for(var n,r=0,i=0,a=0,o="",s="";r<t.length;)if(r<t.length-1&&!t[r][1])t.splice(r,1);else switch(t[r][0]){case eD:a++,s+=t[r][1],r++;break;case tD:i++,o+=t[r][1],r++;break;case nD:var c=r-a-i-1;if(e){if(c>=0&&mD(t[c][1])){var l=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),o=l+o,s=l+s,!t[c][1]){t.splice(c,1),r--;var u=c-1;t[u]&&t[u][0]===eD&&(a++,s=t[u][1]+s,u--),t[u]&&t[u][0]===tD&&(i++,o=t[u][1]+o,u--),c=u}}if(pD(t[r][1])){l=t[r][1].charAt(0);t[r][1]=t[r][1].slice(1),o+=l,s+=l}}if(r<t.length-1&&!t[r][1]){t.splice(r,1);break}if(o.length>0||s.length>0){o.length>0&&s.length>0&&(0!==(n=aD(s,o))&&(c>=0?t[c][1]+=s.substring(0,n):(t.splice(0,0,[nD,s.substring(0,n)]),r++),s=s.substring(n),o=o.substring(n)),0!==(n=sD(s,o))&&(t[r][1]=s.substring(s.length-n)+t[r][1],s=s.substring(0,s.length-n),o=o.substring(0,o.length-n)));var h=a+i;0===o.length&&0===s.length?(t.splice(r-h,h),r-=h):0===o.length?(t.splice(r-h,h,[eD,s]),r=r-h+1):0===s.length?(t.splice(r-h,h,[tD,o]),r=r-h+1):(t.splice(r-h,h,[tD,o],[eD,s]),r=r-h+2)}0!==r&&t[r-1][0]===nD?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,a=0,i=0,o="",s=""}""===t[t.length-1][1]&&t.pop();var f=!1;for(r=1;r<t.length-1;)t[r-1][0]===nD&&t[r+1][0]===nD&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)===t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),f=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),f=!0)),r++;f&&dD(t,e)}function AD(t){return t>=55296&&t<=56319}function gD(t){return t>=56320&&t<=57343}function pD(t){return gD(t.charCodeAt(0))}function mD(t){return AD(t.charCodeAt(t.length-1))}function bD(t,e,n,r){return mD(t)||pD(r)?null:function(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}([[nD,t],[tD,e],[eD,n],[nD,r]])}function vD(t,e,n,r){return rD(t,e,n,r,!0)}vD.INSERT=eD,vD.DELETE=tD,vD.EQUAL=nD;var yD=vD;var wD=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},kD=fl(Object.keys,Object),CD=Object.prototype.hasOwnProperty;var xD=function(t){if(!gl(t))return kD(t);var e=[];for(var n in Object(t))CD.call(t,n)&&"constructor"!=n&&e.push(n);return e};var ED=function(t){return Tl(t)?ql(t):xD(t)};var TD=function(t,e){return t&&zl(e,ED(e),t)};var BD=function(t,e){return t&&zl(e,tu(e),t)};var _D=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a};var SD=function(){return[]},LD=Object.prototype.propertyIsEnumerable,ID=Object.getOwnPropertySymbols,MD=ID?function(t){return null==t?[]:(t=Object(t),_D(ID(t),(function(e){return LD.call(t,e)})))}:SD,OD=MD;var DD=function(t,e){return zl(t,OD(t),e)};var FD=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},ND=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)FD(e,OD(t)),t=dl(t);return e}:SD,PD=ND;var RD=function(t,e){return zl(t,PD(t),e)};var QD=function(t,e,n){var r=e(t);return xl(t)?r:FD(r,n(t))};var UD=function(t){return QD(t,ED,OD)};var $D=function(t){return QD(t,tu,PD)},HD=_c(nc,"DataView"),jD=_c(nc,"Promise"),KD=_c(nc,"Set"),zD=_c(nc,"WeakMap"),GD="[object Map]",XD="[object Promise]",VD="[object Set]",WD="[object WeakMap]",qD="[object DataView]",YD=vc(HD),JD=vc(Sc),ZD=vc(jD),tF=vc(KD),eF=vc(zD),nF=fc;(HD&&nF(new HD(new ArrayBuffer(1)))!=qD||Sc&&nF(new Sc)!=GD||jD&&nF(jD.resolve())!=XD||KD&&nF(new KD)!=VD||zD&&nF(new zD)!=WD)&&(nF=function(t){var e=fc(t),n="[object Object]"==e?t.constructor:void 0,r=n?vc(n):"";if(r)switch(r){case YD:return qD;case JD:return GD;case ZD:return XD;case tF:return VD;case eF:return WD}return e});var rF=nF,iF=Object.prototype.hasOwnProperty;var aF=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&iF.call(t,"index")&&(n.index=t.index,n.input=t.input),n};var oF=function(t,e){var n=e?ol(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},sF=/\w*$/;var cF=function(t){var e=new t.constructor(t.source,sF.exec(t));return e.lastIndex=t.lastIndex,e},lF=rc?rc.prototype:void 0,uF=lF?lF.valueOf:void 0;var hF=function(t){return uF?Object(uF.call(t)):{}};var fF=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return ol(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return oF(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return sl(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return cF(t);case"[object Symbol]":return hF(t)}};var dF=function(t){return ml(t)&&"[object Map]"==rF(t)},AF=Ql&&Ql.isMap,gF=AF?Rl(AF):dF;var pF=function(t){return ml(t)&&"[object Set]"==rF(t)},mF=Ql&&Ql.isSet,bF=mF?Rl(mF):pF,vF="[object Arguments]",yF="[object Function]",wF="[object Object]",kF={};kF[vF]=kF["[object Array]"]=kF["[object ArrayBuffer]"]=kF["[object DataView]"]=kF["[object Boolean]"]=kF["[object Date]"]=kF["[object Float32Array]"]=kF["[object Float64Array]"]=kF["[object Int8Array]"]=kF["[object Int16Array]"]=kF["[object Int32Array]"]=kF["[object Map]"]=kF["[object Number]"]=kF[wF]=kF["[object RegExp]"]=kF["[object Set]"]=kF["[object String]"]=kF["[object Symbol]"]=kF["[object Uint8Array]"]=kF["[object Uint8ClampedArray]"]=kF["[object Uint16Array]"]=kF["[object Uint32Array]"]=!0,kF["[object Error]"]=kF[yF]=kF["[object WeakMap]"]=!1;var CF=function t(e,n,r,i,a,o){var s,c=1&n,l=2&n,u=4&n;if(r&&(s=a?r(e,i,a,o):r(e)),void 0!==s)return s;if(!dc(e))return e;var h=xl(e);if(h){if(s=aF(e),!c)return cl(e,s)}else{var f=rF(e),d=f==yF||"[object GeneratorFunction]"==f;if(Sl(e))return il(e,c);if(f==wF||f==vF||d&&!a){if(s=l||d?{}:pl(e),!c)return l?RD(e,BD(s,e)):DD(e,TD(s,e))}else{if(!kF[f])return a?e:{};s=fF(e,f,c)}}o||(o=new Yc);var A=o.get(e);if(A)return A;o.set(e,s),bF(e)?e.forEach((function(i){s.add(t(i,n,r,i,e,o))})):gF(e)&&e.forEach((function(i,a){s.set(a,t(i,n,r,a,e,o))}));var g=h?void 0:(u?l?$D:UD:l?tu:ED)(e);return wD(g||e,(function(i,a){g&&(i=e[a=i]),Kl(s,a,t(i,n,r,a,e,o))})),s};var xF=function(t){return CF(t,5)};function EF(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return TF(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?TF(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function TF(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var BF={urlProcessor:function(t,e){return t},fileUpload:function(t,e){if(/video/i.test(t.type))e("images/demo-dog.png",{name:"".concat(t.name.replace(/\.[^.]+$/,"")),poster:"images/demo-dog.png?poster=true",isBorder:!0,isShadow:!0,isRadius:!0});else if(/image/i.test(t.type)){var n=new FileReader;n.onload=function(n){var r=n.target.result;e(r,{name:"".concat(t.name.replace(/\.[^.]+$/,"")),isShadow:!0,width:"60%",height:"auto"})},n.readAsDataURL(t)}else e("images/demo-dog.png")},fileUploadMulti:function(t,e){var n,r=t[0].type,i=[],a=EF(t);try{var o=function(){var t=n.value,e=new VI((function(e){if(/video/i.test(r))e({url:"images/demo-dog.png",params:{name:"".concat(t.name.replace(/\.[^.]+$/,"")),poster:"images/demo-dog.png?poster=true",isBorder:!0,isShadow:!0,isRadius:!0}});else if(/image/i.test(r)){var n=new FileReader;n.onload=function(n){var r=n.target.result;e({url:r,params:{name:"".concat(t.name.replace(/\.[^.]+$/,"")),isShadow:!0,width:"60%",height:"auto"}})},n.readAsDataURL(t)}else/audio/i.test(r)?e({url:"images/demo-dog.png",params:{name:"".concat(t.name.replace(/\.[^.]+$/,"")),poster:"images/demo-dog.png?poster=true",isBorder:!0,isShadow:!0,isRadius:!0}}):e("images/demo-dog.png")}));i.push(e)};for(a.s();!(n=a.n()).done;)o()}catch(t){a.e(t)}finally{a.f()}VI.all(i).then((function(t){e(t)}))},afterChange:function(t,e){},afterInit:function(t,e){},beforeImageMounted:function(t,e){return{srcProp:t,src:e}},onClickPreview:function(t){},onExpandCode:function(t,e){return e},onUnExpandCode:function(t,e){return e},onPaste:function(t,e){return!1},onCopyCode:function(t,e){return e},changeString2Pinyin:function(t){return t}},_F=xF({externals:{},openai:{apiKey:"",ignoreError:!1},engine:{global:{classicBr:!1,htmlWhiteList:"",flowSessionContext:!0},syntax:{link:{target:"",rel:""},autoLink:{target:"",rel:"",enableShortLink:!1,shortLinkLength:20},list:{listNested:!1,indentSpace:2},table:{enableChart:!1,selfClosing:!1},inlineCode:{},codeBlock:{wrap:!0,lineNumber:!0,copyCode:!0,editCode:!0,changeLang:!0,expandCode:!1,selfClosing:!0,customRenderer:{},mermaid:{svg2img:!1},indentedCodeBlock:!0},emoji:{useUnicode:!0},fontEmphasis:{allowWhitespace:!1,selfClosing:!1},strikethrough:{needWhitespace:!1},mathBlock:{engine:"MathJax",src:"",plugins:!0},inlineMath:{engine:"MathJax",src:""},toc:{allowMultiToc:!1,showAutoNumber:!1},header:{anchorStyle:"default",strict:!1},htmlBlock:{filterStyle:!1}}},editor:{id:"code",name:"code",autoSave2Textarea:!1,height:"100%",defaultModel:"edit&preview",convertWhenPaste:!0,keyMap:"sublime",codemirror:{autofocus:!0},writingStyle:"normal",keepDocumentScrollAfterInit:!1,showFullWidthMark:!0,showSuggestList:!0},toolbars:{showToolbar:!0,toolbar:["bold","italic","strikethrough","|","color","header","ruby","|","list","panel","detail",{insert:["image","audio","video","link","hr","br","code","formula","toc","table","line-table","bar-table","pdf","word"]},"graph","shortcutKey","togglePreview"],toolbarRight:[],sidebar:!1,bubble:["bold","italic","underline","strikethrough","sub","sup","quote","|","size","color"],float:["h1","h2","h3","|","checklist","quote","table","code"],hiddenToolbar:[],toc:!1,shortcutKey:{},shortcutKeySettings:{isReplace:!1,shortcutKeyMap:{}},config:{formula:{showLatexLive:!0,templateConfig:!1},changeLocale:[{locale:"zh_CN",name:"中文"},{locale:"en_US",name:"English"},{locale:"ru_RU",name:"Русский"}]}},drawioIframeUrl:"",drawioIframeStyle:"border: none;",fileTypeLimitMap:{video:"video/*",audio:"audio/*",image:"image/*",word:".doc,.docx",pdf:".pdf",file:"*"},multipleFileSelection:{video:!1,audio:!1,image:!1,word:!1,pdf:!1,file:!1},callback:{urlProcessor:BF.urlProcessor,fileUpload:BF.fileUpload,fileUploadMulti:BF.fileUploadMulti,beforeImageMounted:BF.beforeImageMounted,onClickPreview:BF.onClickPreview,onCopyCode:BF.onCopyCode,onExpandCode:BF.onExpandCode,onUnExpandCode:BF.onUnExpandCode,changeString2Pinyin:BF.changeString2Pinyin,onPaste:BF.onPaste},event:{afterChange:BF.afterChange,afterInit:BF.afterInit,focus:function(t){t.e,t.cherry},blur:function(t){t.e,t.cherry},selectionChange:function(t){t.selections,t.lastSelections,t.info},afterChangeLocale:function(t){},changeMainTheme:function(t){},changeCodeBlockTheme:function(t){}},previewer:{dom:!1,className:"cherry-markdown",enablePreviewerBubble:!0,floatWhenClosePreviewer:!1,lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(t){return!0},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}},nameSpace:"cherry",themeSettings:{themeList:[{className:"default",label:"默认"},{className:"dark",label:"暗黑"},{className:"light",label:"明亮"},{className:"green",label:"清新"},{className:"red",label:"热情"},{className:"violet",label:"淡雅"},{className:"blue",label:"清幽"}],mainTheme:"light",codeBlockTheme:"default",inlineCodeTheme:"red",toolbarTheme:"dark"},isPreviewOnly:!1,autoScrollByCursor:!0,forceAppend:!0,locale:"zh_CN",locales:{},autoScrollByHashAfterInit:!1});var SF=function(){return Ho((function t(e){ra(this,t),cs(this,"Events",{previewerClose:"previewerClose",previewerOpen:"previewerOpen",editorClose:"editorClose",editorOpen:"editorOpen",toolbarHide:"toolbarHide",toolbarShow:"toolbarShow",cleanAllSubMenus:"cleanAllSubMenus",afterChange:"afterChange",afterInit:"afterInit",focus:"focus",blur:"blur",selectionChange:"selectionChange",afterChangeLocale:"afterChangeLocale",changeMainTheme:"changeMainTheme",changeCodeBlockTheme:"changeCodeBlockTheme"}),cs(this,"emitter",function(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map((function(t){t(n)})),(r=t.get("*"))&&r.slice().map((function(t){t(e,n)}))}}}()),this.instanceId=e}),[{key:"setInstanceId",value:function(t){this.instanceId=t}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"clearAll",value:function(){this.emitter.all.clear()}},{key:"bindCallbacksByOptions",value:function(t){t.callback.afterChange&&this.on(this.Events.afterChange,(function(e){t.callback.afterChange(e.markdownText,e.html)})),t.callback.afterInit&&this.on(this.Events.afterInit,(function(e){t.callback.afterInit(e.markdownText,e.html)})),t.event.afterChange&&this.on(this.Events.afterChange,(function(e){t.event.afterChange(e.markdownText,e.html)})),t.event.afterInit&&this.on(this.Events.afterInit,(function(e){t.event.afterInit(e.markdownText,e.html)})),t.event.focus&&this.on(this.Events.focus,(function(e){t.event.focus(e)})),t.event.blur&&this.on(this.Events.blur,(function(e){t.event.blur(e)})),t.event.selectionChange&&this.on(this.Events.selectionChange,(function(e){t.event.selectionChange(e)})),t.event.afterChangeLocale&&this.on(this.Events.afterChangeLocale,(function(e){t.event.afterChangeLocale(e)})),t.event.changeMainTheme&&this.on(this.Events.changeMainTheme,(function(e){t.event.changeMainTheme(e)})),t.event.changeCodeBlockTheme&&this.on(this.Events.changeCodeBlockTheme,(function(e){t.event.changeCodeBlockTheme(e)}))}},{key:"on",value:function(t,e){var n;this.emitter.on(hs(n="".concat(this.instanceId,":")).call(n,t),e)}},{key:"off",value:function(t,e){var n;this.emitter.off(hs(n="".concat(this.instanceId,":")).call(n,t),e)}},{key:"emit",value:function(t,e){var n;this.emitter.emit(hs(n="".concat(this.instanceId,":")).call(n,t),e)}}])}(),LF={zh_CN:{bold:"加粗",code:"代码",graph:"画图",h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",header:"标题",insert:"插入",italic:"斜体",list:"列表",quickTable:"表格",quote:"引用",size:"大小",color:"文字颜色&背景",strikethrough:"删除线",sub:"下标",sup:"上标",togglePreview:"预览",fullScreen:"全屏",image:"图片",audio:"音频",video:"视频",link:"超链接",hr:"分隔线",br:"换行",toc:"目录",pdf:"pdf",word:"word",table:"表格","line-table":"折线表格","bar-table":"柱状表格",formula:"公式",insertFormula:"公式",insertFlow:"流程图",insertSeq:"时序图",insertState:"状态图",insertClass:"类图",insertPie:"饼图",insertGantt:"甘特图",checklist:"清单",ol:"有序列表",ul:"无序列表",undo:"撤销",redo:"恢复",previewClose:"关闭预览",codeTheme:"代码主题",switchModel:"模式切换",switchPreview:"预览",switchEdit:"返回编辑",classicBr:"经典换行",normalBr:"常规换行",settings:"设置",mobilePreview:"移动端预览",copy:"复制内容",export:"导出",underline:"下划线",pinyin:"拼音",file:"文件",pastePlain:"粘贴为纯文本格式",pasteMarkdown:"粘贴为markdown格式",hide:"隐藏工具栏",exportToPdf:"导出PDF",exportScreenshot:"导出长图",exportMarkdownFile:"导出markdown",exportHTMLFile:"导出html",theme:"主题",panel:"面板",detail:"手风琴","H1 Heading":"H1 一级标题","H2 Heading":"H2 二级标题","H3 Heading":"H3 三级标题",complement:"续写",summary:"总结",justify:"对齐方式",justifyLeft:"左对齐",justifyCenter:"居中",justifyRight:"右对齐",publish:"发布",fontColor:"文本颜色",fontBgColor:"背景颜色",small:"小",medium:"中",large:"大",superLarge:"特大",detailDefaultContent:"点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容",inlineCode:"行内代码",codeBlock:"代码块",shortcutKeySetting:"快捷键设置",editShortcutKeyConfigTip:"双击快捷键区域编辑快捷键",wordCount:"字数统计",wordCountP:"段落",wordCountW:"单词",wordCountC:"字符",deleteColumn:"删除列",deleteRow:"删除行",addRow:"添加行",addCol:"添加列",moveRow:"移动行",moveCol:"移动列",shortcutStaticTitle:"以下快捷键无法修改",shortcutStatic1:"整行向左缩进",shortcutStatic2:"整行向右缩进",shortcutStatic3:"复制并粘贴一行",shortcutStatic4:"在下方插入空行",shortcutStatic5:"在上方插入空行",shortcutStatic6:"与上行互换",shortcutStatic7:"与下行互换",shortcutStatic8:"删除一行",shortcutStatic9:"按词语向左选中",shortcutStatic10:"按词语向右选中",shortcutStatic11:"按词语删除",shortcutStatic12:"选中括号内内容",shortcutStatic13:"插入多个光标",shortcutStatic14:"分别选中文本块的每一行",shortcutStatic15:"查找",shortcutStatic16:"选中所有相同的词",shortcutStatic17:"撤销",shortcutStatic18:"回滚撤销",leftMouseButton:"鼠标左键",disableShortcut:"禁用所有快捷键",recoverShortcut:"恢复默认",search:"搜索",autoWrap:"自动换行"},en_US:{bold:"Bold",code:"Code",graph:"Graph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",header:"Header",insert:"Insert",italic:"Italic",list:"List",quickTable:"Quick Table",quote:"Quote",size:"Size",color:"Text Color & Background",strikethrough:"Strikethrough",sub:"Sub",sup:"Sup",togglePreview:"Toggle Preview",fullScreen:"Full Screen",image:"Image",audio:"Audio",video:"Video",link:"Link",hr:"Horizontal Rule",br:"New Line",toc:"Table Of Content",pdf:"PDF",word:"Word",table:"Table","line-table":"Line Table","bar-table":"Bar Table",formula:"Formula",insertFormula:"Insert Formula",insertFlow:"Insert Flow",insertSeq:"Insert Seq",insertState:"Insert State",insertClass:"Insert Class",insertPie:"Insert Pie",insertGantt:"Insert Gantt",checklist:"Checklist",ol:"Ordered List",ul:"Unordered List",undo:"Undo",redo:"Redo",previewClose:"Preview Close",codeTheme:"Code Theme",switchModel:"Switch Model",switchPreview:"Switch Preview",switchEdit:"Switch Edit",classicBr:"Classic New Line",normalBr:"Normal New Line",settings:"Settings",mobilePreview:"Mobile Preview",copy:"Copy",export:"Export",underline:"Underline",pinyin:"Pinyin",pastePlain:"Paste as Plain Text",pasteMarkdown:"Paste as Markdown",hide:"Hide Toolbar",exportToPdf:"Export to PDF",exportScreenshot:"Screenshot",exportMarkdownFile:"Export Markdown File",exportHTMLFile:"Export preview HTML File","H1 Heading":"H1 Heading","H2 Heading":"H1 Heading","H3 Heading":"H1 Heading",complement:"Complement",summary:"Summary",justify:"justify",justifyLeft:"Left",justifyCenter:"Center",justifyRight:"Right",publish:"Publish",fontColor:"Font Color",fontBgColor:"Font Bg Color",small:"Small",medium:"Medium",large:"Large",superLarge:"Super Large",detailDefaultContent:"Click to expand more\nContent\n++- Expand by default\nContent\n++ Collapse by default\nContent",inlineCode:"Inline Code",codeBlock:"Code Block",shortcutKeySetting:"Keyboard Shortcuts",editShortcutKeyConfigTip:"double click shortcut key area to edit",wordCount:"Word Count",wordCountP:"P",wordCountW:"W",wordCountC:"C",deleteColumn:"delete column",deleteRow:"delete row",addRow:"add row",addCol:"add column",moveRow:"move row",moveCol:"move column",shortcutStaticTitle:"The following shortcuts cannot be modified",shortcutStatic1:"Indent the whole line to the left",shortcutStatic2:"Indent the whole line to the right",shortcutStatic3:"Duplicate and paste a line",shortcutStatic4:"Insert a blank line below",shortcutStatic5:"Insert a blank line above",shortcutStatic6:"Swap with the line above",shortcutStatic7:"Swap with the line below",shortcutStatic8:"Delete a line",shortcutStatic9:"Select to the left by word",shortcutStatic10:"Select to the right by word",shortcutStatic11:"Delete by word",shortcutStatic12:"Select the content inside parentheses",shortcutStatic13:"Insert multiple cursors",shortcutStatic14:"Select each line of the text block separately",shortcutStatic15:"Find",shortcutStatic16:"Select all occurrences of the word",shortcutStatic17:"Undo",shortcutStatic18:"Redo",leftMouseButton:"left mouse button",disableShortcut:"Disable all shortcuts",recoverShortcut:"Restore default",search:"Search",autoWrap:"Auto Wrap"},ru_RU:{bold:"Жирный",code:"Code",graph:"Graph",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",header:"Заголовок",insert:"Вставить",italic:"Курсив",list:"Лист",quickTable:"Quick Table",quote:"Цитата",size:"Размер",color:"Цвет текста и фон",strikethrough:"Зачеркнуто",sub:"Sub",sup:"Sup",togglePreview:"Переключение предварительного просмотра",fullScreen:"Полноэкранный режим",image:"Изображение",audio:"Аудио",video:"Видео",link:"Ссылка",hr:"Горизонтальная линия",br:"Новая строка",toc:"Таблица содержания",pdf:"PDF",word:"Word",table:"Таблица","line-table":"Строки в таблице","bar-table":"Bar Table",formula:"Формула",insertFormula:"Вставить формулу",insertFlow:"Вставить поток",insertSeq:"Вставить Seq",insertState:"Вставить State",insertClass:"Вставить класс",insertPie:"Вставить Pie",insertGantt:"Вставить Gantt",checklist:"Контрольный список",ol:"Упорядоченный список",ul:"Неупорядоченный список",undo:"Отменить",redo:"Переделывать",previewClose:"Предварительный просмотр закрыт",codeTheme:"Тема для кода",switchModel:"Модель переключателя",switchPreview:"Переключите предварительный просмотр",switchEdit:"Переключить редактирование",classicBr:"Классическая новая линия",normalBr:"Обычная новая строка",settings:"Настройки",mobilePreview:"Предварительный просмотр на мобильном устройстве",copy:"Копировать",export:"Экспорт",underline:"Подчеркивать",pinyin:"Pinyin",pastePlain:"Вставить в виде обычного текста",pasteMarkdown:"Вставить как Markdown",hide:"Скрыть панель инструментов",exportToPdf:"Экспорт в формат PDF",exportScreenshot:"Скриншот",exportMarkdownFile:"Экспорт файла Markdown",exportHTMLFile:"Экспорт предварительного просмотра HTML-файла","H1 Заголовок":"H1 Заголовок","H2 Заголовок":"H1 Заголовок","H3 Заголовок":"H1 Заголовок",complement:"Дополнение",summary:"Резюме",justify:"объяснить",justifyLeft:"Слева",justifyCenter:"Центр",justifyRight:"Справа",publish:"Публиковать",fontColor:"Цвет шрифта",fontBgColor:"Цвет фона",small:"Маленький",medium:"Средний",large:"Большой",superLarge:"Очень большой",detailDefaultContent:"Нажмите, чтобы развернуть подробнее\nСодержание\n++- Развернуть по умолчанию\nСодержание\n++ Свернуть по умолчанию\nСодержание",inlineCode:"Встроенный код",codeBlock:"Кодовый блок",shortcutKeySetting:"Настройки горячих клавиш",editShortcutKeyConfigTip:"дважды щелкните область сочетания клавиш для редактирования",wordCount:"Количество слов",wordCountP:"P",wordCountW:"W",wordCountC:"C",deleteColumn:"Удалить столбец",deleteRow:"Удалить строку",addRow:"Добавить строку",addCol:"Добавить столбец",moveRow:"Переместить строку",moveCol:"Переместить столбец",shortcutStaticTitle:"Следующие сочетания клавиш не могут быть изменены",shortcutStatic1:"Отступить всю строку влево",shortcutStatic2:"Отступить всю строку вправо",shortcutStatic3:"Скопировать и вставить строку",shortcutStatic4:"Вставить пустую строку ниже",shortcutStatic5:"Вставить пустую строку выше",shortcutStatic6:"Поменять с предыдущей строкой",shortcutStatic7:"Поменять с следующей строкой",shortcutStatic8:"Удалить строку",shortcutStatic9:"Выделить влево по слову",shortcutStatic10:"Выделить вправо по слову",shortcutStatic11:"Удалить по слову",shortcutStatic12:"Выделить содержимое внутри скобок",shortcutStatic13:"Вставить несколько курсоров",shortcutStatic14:"Выделить каждую строку текстового блока отдельно",shortcutStatic15:"Найти",shortcutStatic16:"Выделить все вхождения слова",shortcutStatic17:"Отменить",shortcutStatic18:"Вернуть отмену",leftMouseButton:"левая кнопка мыши",disableShortcut:"Отключить все горячие клавиши",recoverShortcut:"Восстановить по умолчанию",search:"Поиск",autoWrap:"Автоперенос строк"}};function IF(t,e,n){return e=es(e),Ko(t,MF()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function MF(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(MF=function(){return!!t})()}function OF(t,e,n){if("object"!==Ro(t)||!t)throw TypeError("first argument must be a object, but get ".concat(Ro(t)));var r;return sd(n)||"object"!==Ro(n)||null===n||"object"!==Ro(t[e])||null===t[e]?"string"==typeof n&&Ro(t[e])===n||("function"==typeof n&&t[e]instanceof n||!!sd(n)&&nv(n).call(n,(function(n){return OF(t,e,n)}))):Kx(r=Is(t[e])).call(r,(function(r){return OF(t[e],r,n[r])}))}function DF(t,e,n){var r,i={};return Qs(r=Is(t)).call(r,(function(r){-1!==Ef(e).call(e,r)&&("object"===Ro(n)?OF(t,r,n[r])&&(i[r]=t[r]):"string"==typeof n&&Ro(t[r])===n&&(i[r]=t[r]))})),i}var FF={HOOKS_TYPE_LIST:rA},NF=[];Zm()||Qs(NF).call(NF,(function(t){}));var PF=function(){function t(){ra(this,t)}return Ho(t,null,[{key:"usePlugin",value:function(e){var n;if(this===t)throw new Error("`usePlugin` is not allowed to called through CherryStatic class.");if(this.initialized)throw new Error("The function `usePlugin` should be called before Cherry is instantiated.");if(!0!==e.$cherry$mounted){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e.install.apply(e,hs(n=[this.config.defaults]).call(n,i)),e.$cherry$mounted=!0}}}])}();function RF(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function QF(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=RF(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=RF(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}function UF(t,e,n){return e=es(e),Ko(t,$F()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function $F(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return($F=function(){return!!t})()}cs(PF,"createSyntaxHook",(function(t,e,n){var r,i=e===rA.PAR?VA:iA,a=DF(n,["beforeMakeHtml","makeHtml","afterMakeHtml","rule","test"],"function"),o={needCache:n.needCache,defaultCache:n.defaultCache};return r=function(t){function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ra(this,n),(t=e===rA.PAR?IF(this,n,[{needCache:!!o.needCache,defaultCache:o.defaultCache}]):IF(this,n)).config=r.config,jo(t)}return ss(n,t),Ho(n,[{key:"beforeMakeHtml",value:function(){for(var t,e,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return a.beforeMakeHtml?a.beforeMakeHtml.apply(this,i):(t=xm(es(n.prototype),"beforeMakeHtml",this)).call.apply(t,hs(e=[this]).call(e,i))}},{key:"makeHtml",value:function(){for(var t,e,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return a.makeHtml?a.makeHtml.apply(this,i):(t=xm(es(n.prototype),"makeHtml",this)).call.apply(t,hs(e=[this]).call(e,i))}},{key:"afterMakeHtml",value:function(){for(var t,e,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return a.afterMakeHtml?a.afterMakeHtml.apply(this,i):(t=xm(es(n.prototype),"afterMakeHtml",this)).call.apply(t,hs(e=[this]).call(e,i))}},{key:"test",value:function(){for(var t,e,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return a.test?a.test.apply(this,i):(t=xm(es(n.prototype),"test",this)).call.apply(t,hs(e=[this]).call(e,i))}},{key:"rule",value:function(){for(var t,e,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return a.rule?a.rule.apply(this,i):(t=xm(es(n.prototype),"rule",this)).call.apply(t,hs(e=[this]).call(e,i))}}])}(i),cs(r,"HOOK_NAME",t),r})),cs(PF,"createMenuHook",(function(t,e){var n=DF(e,["subMenuConfig","onClick","shortcutKeys","iconName","icon"],{subMenuConfig:Array,onClick:"function",shortcutKeys:Array,iconName:"string",icon:["string",{type:"string",content:"string",iconStyle:["string","undefined"],iconClassName:["string","undefined"]}]});return function(e){function r(e){var i;return ra(this,r),i=IF(this,r,[e]),n.iconName||n.icon||(i.noIcon=!0),n.icon?(i.$currentMenuOptions.icon=n.icon,i.name=t):i.setName(t,n.iconName),i.subMenuConfig=n.subMenuConfig||[],i}return ss(r,e),Ho(r,[{key:"onClick",value:function(){for(var t,e,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n.onClick?n.onClick.apply(this,a):(t=xm(es(r.prototype),"onClick",this)).call.apply(t,hs(e=[this]).call(e,a))}},{key:"shortcutKeys",get:function(){return console.warn("shortcutKeys will deprecated in the future, please use shortcutKeyMap instead, get more info at https://github.com/Tencent/cherry-markdown/wiki"),n.shortcutKeys?n.shortcutKeys:[]}}])}(l_)})),cs(PF,"constants",FF),cs(PF,"VERSION","0.8.51");var HF=function(t){function e(t){var n,r;ra(this,e),cs(r=UF(this,e),"handleFloatPreviewerMouseDown",(function(t){t.target===r.floatPreviewerHeaderDom&&(t.preventDefault(),r.floatPreviewerInitOffsetX=t.offsetX,r.floatPreviewerInitOffsetY=t.offsetY,r.floatPreviewerWrapDom.classList.add("float-previewer-dragging"))})),cs(r,"handleFloatPreviewerMouseMove",(function(t){if(r.floatPreviewerWrapDom.classList.contains("float-previewer-dragging")){t.preventDefault();var e=t.clientX,n=t.clientY,i=e-r.floatPreviewerInitOffsetX,a=n-r.floatPreviewerInitOffsetY;i<0&&(i=0),a<0&&(a=0),i+r.floatPreviewerWrapDom.offsetWidth>r.pageWidth&&(i=r.pageWidth-r.floatPreviewerWrapDom.offsetWidth),a+r.floatPreviewerWrapDom.offsetHeight>r.pageHeight&&(a=r.pageHeight-r.floatPreviewerWrapDom.offsetHeight),requestAnimationFrame((function(){r.floatPreviewerWrapDom.style.left="".concat(i,"px"),r.floatPreviewerWrapDom.style.top="".concat(a,"px")}))}})),cs(r,"handleFloatPreviewerMouseUp",(function(t){r.floatPreviewerWrapDom.classList.remove("float-previewer-dragging")})),e.initialized=!0;var i=xF(e.config.defaults);return r.defaultToolbar=i.toolbars.toolbar,hp(t,Object),r.options=bu({},i,t,fA),r.storageFloatPreviewerWrapData={x:50,y:58,width:800,height:500},r.locales=LF,r.options.locales&&(r.locales=QF(QF({},r.options.locales),r.locales)),r.locale=r.locales[r.options.locale],"function"==typeof r.options.engine.global.urlProcessor?(r.options.engine.global.urlProcessor=um(r.options.engine.global.urlProcessor),r.options.callback.urlProcessor=r.options.engine.global.urlProcessor):r.options.callback.urlProcessor=um(r.options.callback.urlProcessor),r.status={toolbar:"show",previewer:"show",editor:"show"},(r.options.isPreviewOnly||"previewOnly"===r.options.editor.defaultModel)&&(r.options.toolbars.showToolbar=!1,r.options.editor.defaultModel="previewOnly",r.status.editor="hide",r.status.toolbar="hide"),r.instanceId=hs(n="cherry-".concat((new Date).getTime())).call(n,Math.random()),r.options.instanceId=r.instanceId,r.lastMarkdownText="",r.$event=new SF(r.instanceId),r.engine=new yy(r.options,r),r.init(),r}return ss(e,t),Ho(e,[{key:"init",value:function(){var t,e=this;this.storeDocumentScroll();var n=this.options.id?document.getElementById(this.options.id):this.options.el;if(!n){if(!this.options.forceAppend)return!1;this.noMountEl=!0,(n=document.createElement("div")).id=this.options.id||"cherry-markdown",document.body.appendChild(n)}n.style.height||(n.style.height=this.options.editor.height),this.cherryDom=n,"string"==typeof this.options.themeNameSpace?this.nameSpace=this.options.themeNameSpace:this.nameSpace=this.options.nameSpace;var r=this.createWrapper(),i=this.createEditor(),a=this.createPreviewer();!1!==this.options.toolbars.showToolbar&&!1!==this.options.toolbars.toolbar||(r.classList.add("cherry--no-toolbar"),this.options.toolbars.toolbar=this.options.toolbars.toolbar?this.options.toolbars.toolbar:this.defaultToolbar),hp(this.options.toolbars.toolbar,Array),this.createToolbar(),this.createToolbarRight();var o,s=document.createDocumentFragment();(s.appendChild(this.toolbar.options.dom),s.appendChild(i.options.editorDom),this.options.previewer.dom||s.appendChild(a.options.previewerDom),s.appendChild(a.options.virtualDragLineDom),s.appendChild(a.options.editorMaskDom),s.appendChild(a.options.previewerMaskDom),r.appendChild(s),this.wrapperDom=r,this.createSidebar(),this.createHiddenToolbar(),n.appendChild(r),i.init(a),this.createBubble(),this.createFloatMenu(),a.init(i),a.registerAfterUpdate(fs(t=this.engine.mounted).call(t,this.engine)),this.initText(i.editor),this.$event.on("toolbarHide",(function(){e.status.toolbar="hide"})),this.$event.on("toolbarShow",(function(){e.status.toolbar="show"})),this.$event.on("previewerClose",(function(){e.status.previewer="hide"})),this.$event.on("previewerOpen",(function(){e.status.previewer="show"})),this.$event.on("editorClose",(function(){e.status.editor="hide",e.previewer.highlightLine(0)})),this.$event.on("editorOpen",(function(){e.status.editor="show"})),this.switchModel(this.options.editor.defaultModel,this.options.toolbars.showToolbar),this.options.autoScrollByHashAfterInit)&&ks(fs(o=this.scrollByHash).call(o,this));this.createToc(),this.$event.bindCallbacksByOptions(this.options),this.restoreDocumentScroll()}},{key:"storeDocumentScroll",value:function(){this.options.editor.keepDocumentScrollAfterInit&&(this.needRestoreDocumentScroll=!0,this.documentElementScrollTop=document.documentElement.scrollTop,this.documentElementScrollLeft=document.documentElement.scrollLeft)}},{key:"restoreDocumentScroll",value:function(){this.options.editor.keepDocumentScrollAfterInit&&this.needRestoreDocumentScroll&&(this.needRestoreDocumentScroll=!1,window.scrollTo(this.documentElementScrollLeft,this.documentElementScrollTop))}},{key:"destroy",value:function(){this.noMountEl?this.cherryDom.remove():this.wrapperDom.remove(),this.$event.clearAll()}},{key:"on",value:function(t,e){if(this.$event.Events[t])return/^(afterInit|afterChange)$/.test(t)?this.$event.on(t,(function(t){e(t.markdownText,t.html)})):this.$event.on(t,e);if("urlProcessor"===t)this.options.callback.urlProcessor=um(e);else this.options.callback[t]=e}},{key:"off",value:function(t,e){if(this.$event.Events[t])return this.$event.off(t,e);this.options.callback[t]=function(){}}},{key:"createToc",value:function(){var t,e,n,r,i;!1!==this.options.toolbars.toc?this.toc=new XO({$cherry:this,updateLocationHash:null===(t=this.options.toolbars.toc.updateLocationHash)||void 0===t||t,position:null!==(e=this.options.toolbars.toc.position)&&void 0!==e?e:"absolute",cssText:null!==(n=this.options.toolbars.toc.cssText)&&void 0!==n?n:"",defaultModel:null!==(r=this.options.toolbars.toc.defaultModel)&&void 0!==r?r:"pure",showAutoNumber:null!==(i=this.options.toolbars.toc.showAutoNumber)&&void 0!==i&&i}):this.toc=!1}},{key:"scrollByHash",value:function(){if(location.hash)try{var t=location.hash,e=document.getElementById(t.replace("#",""));e&&this.previewer.getDomContainer().contains(e)&&(location.hash="",location.hash=t)}catch(t){}}},{key:"$t",value:function(t){return this.locale[t]?this.locale[t]:t}},{key:"addLocale",value:function(t,e){this.locale[t]=e}},{key:"addLocales",value:function(t){this.locale=Ss(this.locale,t)}},{key:"getLocales",value:function(){return this.locale}},{key:"switchModel",value:function(){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit&preview"){case"edit&preview":this.previewer&&(this.previewer.editOnly(!0),this.previewer.recoverPreviewer()),this.toolbar&&t&&this.toolbar.showToolbar(),t?this.wrapperDom.classList.remove("cherry--no-toolbar"):this.wrapperDom.classList.add("cherry--no-toolbar");break;case"editOnly":this.previewer.isPreviewerHidden()||this.previewer.editOnly(!0),this.toolbar&&t&&this.toolbar.showToolbar(),t?this.wrapperDom.classList.remove("cherry--no-toolbar"):this.wrapperDom.classList.add("cherry--no-toolbar");break;case"previewOnly":this.previewer.previewOnly(),this.toolbar&&this.toolbar.previewOnly(),this.wrapperDom.classList.add("cherry--no-toolbar")}}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"getStatus",value:function(){return this.status}},{key:"getValue",value:function(){return this.editor.editor.getValue()}},{key:"getMarkdown",value:function(){return this.getValue()}},{key:"getCodeMirror",value:function(){return this.editor.editor}},{key:"getHtml",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.previewer.getValue(t)}},{key:"getPreviewer",value:function(){return this.previewer}},{key:"getToc",value:function(){var t=this.getHtml(),e=[];return t.replace(/<h([1-6]).*?id="([^"]+?)".*?>(.+?)<\/h[0-6]>/g,(function(t,n,r,i){return e.push({level:+n,id:r,text:i.replace(/<a .+?<\/a>/,"")}),t})),e}},{key:"setValue",value:function(t){if(!1===(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.editor.editor.setValue(t);var e=this.editor.editor,n=this.getValue(),r=function(t,e,n){for(var r=yD(e,n),i=t,a=t,o=0;o<r.length;o++){var s=r[o];if(a<=0)return i;var c=s[0],l=s[1].length;switch(c){case yD.EQUAL:if(a<=l)return i;a-=l;break;case yD.DELETE:if(a<=l)return i-l+a;a-=l,i-=l;break;case yD.INSERT:i+=l}}return i}(e.getDoc().indexFromPos(e.getCursor()),n,t);e.setValue(t);var i=e.getDoc().posFromIndex(r);e.setCursor(i),this.editor.dealSpecialWords()}},{key:"insert",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n&&this.editor.editor.setSelection({line:n[0],ch:n[1]},{line:n[0],ch:n[1]}),this.editor.editor.replaceSelection(t,e?"around":"end"),r&&this.editor.editor.focus()}},{key:"insertValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.insert(t,e,n,r)}},{key:"refreshPreviewer",value:function(){try{var t=this.getValue(),e=this.engine.makeHtml(t);this.previewer.refresh(e)}catch(t){throw new Ap(t)}}},{key:"setMarkdown",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.setValue(t,e)}},{key:"createWrapper",value:function(){var t="",e="",n="",r="";gA(this.nameSpace,"theme")?t=pA(!0,this.nameSpace):(t=(t=this.options.themeSettings.mainTheme).replace(/theme__/g,""),t="theme__".concat(t)),e="string"==typeof this.options.toolbars.theme?"dark"===this.options.toolbars.theme?"dark":"light":"dark"===this.options.themeSettings.toolbarTheme?"dark":"light",n="string"==typeof this.options.engine.syntax.inlineCode.theme?"black"===this.options.engine.syntax.inlineCode.theme?"black":"red":"black"===this.options.themeSettings.inlineCodeTheme?"black":"red",r="string"==typeof this.options.engine.syntax.codeBlock.theme?this.options.engine.syntax.codeBlock.theme:this.options.themeSettings.codeBlockTheme,gA(this.nameSpace,"codeTheme")&&(r=bA(this.nameSpace)),"dark"===r?r="tomorrow-night":"light"===r&&(r="solarized-light");var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cherry",e=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?"nowrap":"wrap";if("undefined"!=typeof localStorage){var n=localStorage.getItem("".concat(t,"-codeWrap"));n&&(e=n)}return e}(this.nameSpace,this.options.engine.syntax.codeBlock.wrap),a=Zf("div",["cherry","clearfix",t].join(" "),{"data-toolbarTheme":e,"data-inlineCodeTheme":n,"data-codeBlockTheme":r,"data-codeWrap":"wrap"===i?"wrap":"nowrap"});return this.wrapperDom=a,a}},{key:"getCodeWrap",value:function(){return this.wrapperDom.dataset.codeWrap||"wrap"}},{key:"setCodeWrap",value:function(t){this.wrapperDom.dataset.codeWrap="wrap"===t?"wrap":"nowrap",function(t,e){"undefined"!=typeof localStorage&&localStorage.setItem("".concat(t,"-codeWrap"),e)}(this.nameSpace,t)}},{key:"createToolbar",value:function(){if(!this.toolbarContainer){var t=Zf("div","cherry-toolbar");this.toolbarContainer=t}return this.options.toolbars.shortcutKey&&Is(this.options.toolbars.shortcutKey).length>0&&console.warn("options.shortcutKey is deprecated, please use shortcutKeySettings.shortcutKeyMap instead, get more info at https://github.com/Tencent/cherry-markdown/wiki"),this.toolbar=new PO({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbar,customMenu:this.options.toolbars.customMenu}),this.toolbar}},{key:"resetToolbar",value:function(t,e){var n;return!1!==(!!/(toolbar|toolbarRight|sidebar|bubble|float|toc)/.test(t)&&t)&&(this.toolbarContainer&&(this.toolbarContainer.innerHTML=""),this.toolbarFloatContainer&&(this.toolbarFloatContainer.innerHTML=""),this.toolbarBubbleContainer&&(this.toolbarBubbleContainer.innerHTML=""),this.sidebarDom&&(this.sidebarDom.innerHTML=""),this.toc&&this.toc.tocDom.remove(),Qs(n=this.cherryDom.querySelectorAll(".cherry-dropdown")).call(n,(function(t){t.remove()})),this.options.toolbars[t]=e,this.createToolbar(),this.createToolbarRight(),this.createBubble(),this.createFloatMenu(),this.createSidebar(),this.createHiddenToolbar(),this.createToc(),!0)}},{key:"createToolbarRight",value:function(){return this.toolbarRight=new GO({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbarRight,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.toolbarRight),this.toolbarRight}},{key:"createSidebar",value:function(){if(this.options.toolbars.sidebar){hp(this.options.toolbars.sidebar,Array);var t=!1;if(!this.sidebarDom){t=!0;var e="dark"===this.options.toolbars.theme?"dark":"",n=Zf("div","cherry-sidebar ".concat(e));this.sidebarDom=n}this.sidebar=new qO({dom:this.sidebarDom,$cherry:this,buttonConfig:this.options.toolbars.sidebar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.sidebar),!0===t&&this.wrapperDom.appendChild(this.sidebarDom)}}},{key:"createHiddenToolbar",value:function(){this.options.toolbars.hiddenToolbar&&(hp(this.options.toolbars.hiddenToolbar,Array),this.hiddenToolbar=new ZO({$cherry:this,buttonConfig:this.options.toolbars.hiddenToolbar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.hiddenToolbar))}},{key:"createFloatMenu",value:function(){if(this.options.toolbars.float){if(!this.toolbarFloatContainer){var t=Zf("div","cherry-floatmenu");this.toolbarFloatContainer=t}hp(this.options.toolbars.float,Array),this.floatMenu=new jO({dom:this.toolbarFloatContainer,$cherry:this,buttonConfig:this.options.toolbars.float,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.floatMenu)}}},{key:"createBubble",value:function(){if(this.options.toolbars.bubble){if(!this.toolbarBubbleContainer){var t=Zf("div","cherry-bubble");this.toolbarBubbleContainer=t}hp(this.options.toolbars.bubble,Array),this.bubble=new UO({dom:this.toolbarBubbleContainer,$cherry:this,buttonConfig:this.options.toolbars.bubble,customMenu:this.options.toolbars.customMenu,engine:this.engine}),this.toolbar.collectMenuInfo(this.bubble)}}},{key:"createEditor",value:function(){var t,e,n,r,i=Zf("textarea","",{id:null!==(t=this.options.editor.id)&&void 0!==t?t:"code",name:null!==(e=this.options.editor.name)&&void 0!==e?e:"code"});i.textContent=this.options.value;var a=Zf("div","cherry-editor");return a.appendChild(i),"function"==typeof this.options.fileUpload&&(this.options.callback.fileUpload=this.options.fileUpload),this.editor=new $d(QF({$cherry:this,editorDom:a,wrapperDom:this.wrapperDom,value:this.options.value,onKeydown:fs(n=this.fireShortcutKey).call(n,this),onChange:fs(r=this.editText).call(r,this),toolbars:this.options.toolbars,autoScrollByCursor:this.options.autoScrollByCursor},this.options.editor)),this.editor}},{key:"createPreviewer",value:function(){var t,e="autonumber"===(this.options.engine.syntax.header&&this.options.engine.syntax.header.anchorStyle||"default")?" head-num":"",n=this.options.previewer,r=n.className,i=n.dom,a=n.enablePreviewerBubble,o=n.floatWhenClosePreviewer,s=["cherry-previewer cherry-markdown",r||"",e,gA(this.nameSpace,"theme")?pA(!0,this.nameSpace):this.options.themeSettings.mainTheme].join(" ");i?(t=i).className+=" ".concat(s):t=Zf("div",s);var c=Zf("div","cherry-drag"),l=Zf("div","cherry-editor-mask"),u=Zf("div","cherry-previewer-mask");return this.previewer=new s_({$cherry:this,virtualDragLineDom:c,editorMaskDom:l,previewerMaskDom:u,previewerDom:t,value:this.options.value,isPreviewOnly:this.options.isPreviewOnly,enablePreviewerBubble:a,floatWhenClosePreviewer:o,lazyLoadImg:this.options.previewer.lazyLoadImg}),this.previewer}},{key:"clearFloatPreviewer",value:function(){this.wrapperDom.appendChild(this.previewer.getDom()),this.storageFloatPreviewerWrapData={x:this.floatPreviewerWrapDom.offsetLeft,y:this.floatPreviewerWrapDom.offsetTop,height:this.floatPreviewerWrapDom.offsetHeight,width:this.floatPreviewerWrapDom.offsetWidth},this.floatPreviewerWrapDom.remove(),this.removeFloatPreviewerListener()}},{key:"createFloatPreviewerListener",value:function(){document.addEventListener("mousedown",this.handleFloatPreviewerMouseDown),document.addEventListener("mousemove",this.handleFloatPreviewerMouseMove),document.addEventListener("mouseup",this.handleFloatPreviewerMouseUp)}},{key:"removeFloatPreviewerListener",value:function(){document.removeEventListener("mousedown",this.handleFloatPreviewerMouseDown),document.removeEventListener("mousemove",this.handleFloatPreviewerMouseMove),document.removeEventListener("mouseup",this.handleFloatPreviewerMouseUp)}},{key:"createFloatPreviewer",value:function(){var t=Zf("div","float-previewer-wrap"),e=Zf("div","float-previewer-header"),n=Zf("div","float-previewer-title");n.innerHTML="预览",t.style.left="".concat(this.storageFloatPreviewerWrapData.x,"px"),t.style.top="".concat(this.storageFloatPreviewerWrapData.y,"px"),t.style.height="".concat(this.storageFloatPreviewerWrapData.height,"px"),t.style.width="".concat(this.storageFloatPreviewerWrapData.width,"px"),e.appendChild(n),t.appendChild(e),t.appendChild(this.previewer.getDom()),this.wrapperDom.appendChild(t),this.floatPreviewerHeaderDom=e,this.floatPreviewerWrapDom=t,this.pageWidth=document.body.clientWidth,this.pageHeight=document.body.clientHeight,this.createFloatPreviewerListener()}},{key:"initText",value:function(t){try{var e=t.getValue();this.lastMarkdownText=e;var n=this.engine.makeHtml(e);this.previewer.update(n),this.$event.emit("afterInit",{markdownText:e,html:n})}catch(t){throw new Ap(t)}}},{key:"editText",value:function(t,e){var n=this;try{this.timer&&(clearTimeout(this.timer),this.timer=null);var r=this.options.engine.global.flowSessionContext?10:50;this.timer=ks((function(){var t=e.getValue();if(t!==n.lastMarkdownText){n.lastMarkdownText=t;var r=n.engine.makeHtml(t);n.previewer.update(r),n.$event.emit("afterChange",{markdownText:t,html:r})}n.options.editor.keepDocumentScrollAfterInit||e.scrollIntoView(null)}),r)}catch(t){throw new Ap(t)}}},{key:"onChange",value:function(t){this.editor.editor.on("change",(function(e){t({markdown:e.getValue()})}))}},{key:"fireShortcutKey",value:function(t){var e=this.editor.editor.getCursor(),n=this.editor.editor.getLine(e.line);if(!t.shiftKey&&"Tab"===t.key&&Sd.test(n)&&(0===e.ch||e.ch===n.length||e.ch===n.length+1)){t.preventDefault(),this.editor.editor.setSelection({line:e.line,ch:0},{line:e.line,ch:n.length}),this.editor.editor.replaceSelection("\t".concat(n),"around");var r=this.editor.editor.getCursor();this.editor.editor.setSelection(r,r)}this.toolbar.matchShortcutKey(t)&&(this.toolbar.fireShortcutKey(t)&&t.preventDefault())}},{key:"export",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.previewer.export(t,e)}},{key:"setTheme",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.$event.emit("changeMainTheme",t),mA(this,t)}},{key:"setCodeBlockTheme",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.$event.emit("changeCodeBlockTheme",t),vA(this,t)}},{key:"setWritingStyle",value:function(t){this.editor.setWritingStyle(t)}},{key:"setLocale",value:function(t){return!!this.locales[t]&&(this.options.locale=t,this.locale=this.locales[t],this.$event.emit("afterChangeLocale",t),this.resetToolbar("toolbar",this.options.toolbars.toolbar||[]),!0)}}])}(PF);cs(HF,"initialized",!1),cs(HF,"config",{defaults:_F}),window&&(window.Cherry=HF);var jF=HF;function KF(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function zF(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=KF(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=KF(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}var GF={theme:"default",altFontFamily:"sans-serif",fontFamily:"sans-serif",themeCSS:".label foreignObject { font-size: 90%; overflow: visible; } .label { font-family: sans-serif; }",flowchart:{useMaxWidth:!1},sequence:{useMaxWidth:!1},startOnLoad:!1,logLevel:5},XF=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ra(this,t),cs(this,"mermaidAPIRefs",null),cs(this,"options",GF),cs(this,"dom",null),cs(this,"mermaidCanvas",null);var n=e.mermaid,r=e.mermaidAPI;if(!(r||window.mermaidAPI||n&&n.mermaidAPI||window.mermaid&&window.mermaid.mermaidAPI))throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found.");this.options=zF(zF({},GF),e||{}),this.mermaidAPIRefs=r||window.mermaidAPI||n.mermaidAPI||window.mermaid.mermaidAPI,delete this.options.mermaid,delete this.options.mermaidAPI,this.mermaidAPIRefs.initialize(this.options)}return Ho(t,[{key:"mountMermaidCanvas",value:function(t){this.mermaidCanvas&&document.body.contains(this.mermaidCanvas)||(this.mermaidCanvas=document.createElement("div"),this.mermaidCanvas.style="width:1024px;opacity:0;position:fixed;top:100%;",(t.$cherry.wrapperDom||document.body).appendChild(this.mermaidCanvas))}},{key:"convertMermaidSvgToImg",value:function(t,e){var n,r=new DOMParser,i=function(t){return t.replace("<svg ",'<svg style="max-width:100%;height:auto;font-family:sans-serif;" ')};try{var a=r.parseFromString(t,"image/svg+xml"),o=a.documentElement;if("svg"===o.tagName.toLowerCase()){o.style.maxWidth="100%",o.style.height="auto",o.style.fontFamily="sans-serif";var s,c=document.getElementById(e).getBBox();if(o.hasAttribute("viewBox"))c=o.viewBox.baseVal;else o.setAttribute("viewBox",hs(s="0 0 ".concat(c.width," ")).call(s,c.height));if("100%"===o.getAttribute("width")&&o.setAttribute("width","".concat(c.width)),"100%"===o.getAttribute("height")&&o.setAttribute("height","".concat(c.height)),n=a.documentElement.outerHTML,this.svg2img){var l,u="data:image/svg+xml,".concat(encodeURIComponent(a.documentElement.outerHTML));n=hs(l='<img class="svg-img" src="'.concat(u,'" alt="')).call(l,e,'" />')}}else n=i(t)}catch(e){n=i(t)}return n}},{key:"render",value:function(t,e,n){var r,i,a,o=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=e;c||(c=Math.round(1e8*Math.random())),this.mountMermaidCanvas(n);var l=hs(r="mermaid-".concat(c,"-")).call(r,(new Date).getTime());this.svg2img=null!==(i=null==s?void 0:s.svg2img)&&void 0!==i&&i;try{this.mermaidAPIRefs.render(l,t,(function(t){var e=t.replace(/\s*markerUnits="0"/g,"").replace(/\s*x="NaN"/g,"").replace(/<br>/g,"<br/>");a=o.convertMermaidSvgToImg(e,l)}),this.mermaidCanvas)}catch(t){return null==t?void 0:t.str}return a}}],[{key:"install",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];bu(e,{engine:{syntax:{codeBlock:{customRenderer:{mermaid:sp(t,r)}}}}})}}])}();cs(XF,"TYPE","figure");var VF=function(){var t,e,n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S,L,I,M,O,D,F,N,P,R,Q,U,$,H,j,K,z,G,X,V,W,q,Y,J,Z,tt,et=32768,nt=0,rt=1,it=2,at=8192,ot=2*et,st=3,ct=258,lt=8192,ut=lt,ht=8192,ft=ht-1,dt=et-1,At=0,gt=4096,pt=ct+st+1,mt=et-pt,bt=1,vt=15,yt=7,wt=29,kt=256,Ct=256,xt=kt+1+wt,Et=30,Tt=19,Bt=16,_t=17,St=18,Lt=2*xt+1,It=Ff((13+st-1)/st),Mt=null;function Ot(){this.fc=0,this.dl=0}function Dt(){this.dyn_tree=null,this.static_tree=null,this.extra_bits=null,this.extra_base=0,this.elems=0,this.max_length=0,this.max_code=0}function Ft(t,e,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r}function Nt(){this.next=null,this.len=0,this.ptr=new Array(at),this.off=0}var Pt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Rt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Qt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ut=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$t=[new Ft(0,0,0,0),new Ft(4,4,8,4),new Ft(4,5,16,8),new Ft(4,6,32,32),new Ft(4,4,16,16),new Ft(8,16,32,32),new Ft(8,16,128,128),new Ft(8,32,128,256),new Ft(32,128,258,1024),new Ft(32,258,258,4096)];function Ht(e){e.next=t,t=e}function jt(t){return u[et+t]}function Kt(t,e){return u[et+t]=e}function zt(r){Mt[a+i++]=r,a+i==at&&function(){if(0!=i){var r,o;for(null!=t?(s=t,t=t.next):s=new Nt,s.next=null,s.len=s.off=0,r=s,null==e?e=n=r:n=n.next=r,r.len=i-a,o=0;o<r.len;o++)r.ptr[o]=Mt[a+o];i=a=0}var s}()}function Gt(t){t&=65535,a+i<at-2?(Mt[a+i++]=255&t,Mt[a+i++]=t>>>8):(zt(255&t),zt(t>>>8))}function Xt(){A=(A<<It^255&s[y+st-1])&ft,g=jt(A),u[y&dt]=g,Kt(A,y)}function Vt(t,e){de(e[t].fc,e[t].dl)}function Wt(t){return 255&(t<256?H[t]:H[256+(t>>7)])}function qt(t,e,n){return t[e].fc<t[n].fc||t[e].fc==t[n].fc&&U[e]<=U[n]}function Yt(t,e,n){var r;for(r=0;r<n&&tt<Z.length;r++)t[e+r]=255&Z.charCodeAt(tt++);return r}function Jt(t){var e,n,r=x,i=y,a=v,o=y>mt?y-mt:At,c=y+ct,l=s[i+a-1],h=s[i+a];v>=B&&(r>>=2);do{if(s[(e=t)+a]==h&&s[e+a-1]==l&&s[e]==s[i]&&s[++e]==s[i+1]){i+=2,e++;do{}while(s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&i<c);if(n=ct-(c-i),i=c-ct,n>a){if(w=t,a=n,n>=ct)break;l=s[i+a-1],h=s[i+a]}}}while((t=u[t&dt])>o&&0!=--r);return a}function Zt(){var t,e,n=ot-C-y;if(-1==n)n--;else if(y>=et+mt){for(t=0;t<et;t++)s[t]=s[t+et];for(w-=et,y-=et,d-=et,t=0;t<ht;t++)Kt(t,(e=jt(t))>=et?e-et:At);for(t=0;t<et;t++)e=u[t],u[t]=e>=et?e-et:At;n+=et}k||((t=Yt(s,y+C,n))<=0?k=!0:C+=t)}function te(){k||(h=0,f=0,function(){var t,e,n,r,i;if(0!=I[0].dl)return;for(O.dyn_tree=_,O.static_tree=L,O.extra_bits=Pt,O.extra_base=kt+1,O.elems=xt,O.max_length=vt,O.max_code=0,D.dyn_tree=S,D.static_tree=I,D.extra_bits=Rt,D.extra_base=0,D.elems=Et,D.max_length=vt,D.max_code=0,F.dyn_tree=M,F.static_tree=null,F.extra_bits=Qt,F.extra_base=0,F.elems=Tt,F.max_length=yt,F.max_code=0,n=0,r=0;r<wt-1;r++)for(j[r]=n,t=0;t<1<<Pt[r];t++)$[n++]=r;for($[n-1]=r,i=0,r=0;r<16;r++)for(K[r]=i,t=0;t<1<<Rt[r];t++)H[i++]=r;for(i>>=7;r<Et;r++)for(K[r]=i<<7,t=0;t<1<<Rt[r]-7;t++)H[256+i++]=r;for(e=0;e<=vt;e++)N[e]=0;t=0;for(;t<=143;)L[t++].dl=8,N[8]++;for(;t<=255;)L[t++].dl=9,N[9]++;for(;t<=279;)L[t++].dl=7,N[7]++;for(;t<=287;)L[t++].dl=8,N[8]++;for(ae(L,xt+1),t=0;t<Et;t++)I[t].dl=5,I[t].fc=Ae(t,5);re()}(),function(){var t;for(t=0;t<ht;t++)u[et+t]=0;if(E=$t[T].max_lazy,B=$t[T].good_length,x=$t[T].max_chain,y=0,d=0,(C=Yt(s,0,2*et))<=0)return k=!0,void(C=0);for(k=!1;C<pt&&!k;)Zt();for(A=0,t=0;t<st-1;t++)A=(A<<It^255&s[t])&ft}(),e=null,i=0,a=0,T<=3?(v=st-1,b=0):(b=st-1,m=0),o=!1)}function ee(t,n,i){var a;return r||(te(),r=!0,0!=C)?(a=ne(t,n,i))==i?i:o?a:(T<=3?function(){for(;0!=C&&null==e;){var t;if(Xt(),g!=At&&y-g<=mt&&(b=Jt(g))>C&&(b=C),b>=st)if(t=ue(y-w,b-st),C-=b,b<=E){b--;do{y++,Xt()}while(0!=--b);y++}else y+=b,b=0,A=((A=255&s[y])<<It^255&s[y+1])&ft;else t=ue(0,255&s[y]),C--,y++;for(t&&(le(0),d=y);C<pt&&!k;)Zt()}}():function(){for(;0!=C&&null==e;){if(Xt(),v=b,p=w,b=st-1,g!=At&&v<E&&y-g<=mt&&((b=Jt(g))>C&&(b=C),b==st&&y-w>gt&&b--),v>=st&&b<=v){var t;t=ue(y-1-p,v-st),C-=v-1,v-=2;do{y++,Xt()}while(0!=--v);m=0,b=st-1,y++,t&&(le(0),d=y)}else 0!=m?(ue(0,255&s[y-1])&&(le(0),d=y),y++,C--):(m=1,y++,C--);for(;C<pt&&!k;)Zt()}}(),0==C&&(0!=m&&ue(0,255&s[y-1]),le(1),o=!0),a+ne(t,a+n,i-a)):(o=!0,0)}function ne(t,n,r){var o,s,c;for(o=0;null!=e&&o<r;){for((s=r-o)>e.len&&(s=e.len),c=0;c<s;c++)t[n+o+c]=e.ptr[e.off+c];var l;if(e.off+=s,e.len-=s,o+=s,0==e.len)l=e,e=e.next,Ht(l)}if(o==r)return o;if(a<i){for((s=r-o)>i-a&&(s=i-a),c=0;c<s;c++)t[n+o+c]=Mt[a+c];o+=s,i==(a+=s)&&(i=a=0)}return o}function re(){var t;for(t=0;t<xt;t++)_[t].fc=0;for(t=0;t<Et;t++)S[t].fc=0;for(t=0;t<Tt;t++)M[t].fc=0;_[Ct].fc=1,Y=J=0,G=X=V=0,W=0,q=1}function ie(t,e){for(var n=P[e],r=e<<1;r<=R&&(r<R&&qt(t,P[r+1],P[r])&&r++,!qt(t,n,P[r]));)P[e]=P[r],e=r,r<<=1;P[e]=n}function ae(t,e){var n,r,i=new Array(vt+1),a=0;for(n=1;n<=vt;n++)a=a+N[n-1]<<1,i[n]=a;for(r=0;r<=e;r++){var o=t[r].dl;0!=o&&(t[r].fc=Ae(i[o]++,o))}}function oe(t){var e,n,r=t.dyn_tree,i=t.static_tree,a=t.elems,o=-1,s=a;for(R=0,Q=Lt,e=0;e<a;e++)0!=r[e].fc?(P[++R]=o=e,U[e]=0):r[e].dl=0;for(;R<2;){var c=P[++R]=o<2?++o:0;r[c].fc=1,U[c]=0,Y--,null!=i&&(J-=i[c].dl)}for(t.max_code=o,e=R>>1;e>=1;e--)ie(r,e);do{e=P[bt],P[bt]=P[R--],ie(r,bt),n=P[bt],P[--Q]=e,P[--Q]=n,r[s].fc=r[e].fc+r[n].fc,U[e]>U[n]+1?U[s]=U[e]:U[s]=U[n]+1,r[e].dl=r[n].dl=s,P[bt]=s++,ie(r,bt)}while(R>=2);P[--Q]=P[bt],function(t){var e,n,r,i,a,o,s=t.dyn_tree,c=t.extra_bits,l=t.extra_base,u=t.max_code,h=t.max_length,f=t.static_tree,d=0;for(i=0;i<=vt;i++)N[i]=0;for(s[P[Q]].dl=0,e=Q+1;e<Lt;e++)(i=s[s[n=P[e]].dl].dl+1)>h&&(i=h,d++),s[n].dl=i,n>u||(N[i]++,a=0,n>=l&&(a=c[n-l]),o=s[n].fc,Y+=o*(i+a),null!=f&&(J+=o*(f[n].dl+a)));if(0!=d){do{for(i=h-1;0==N[i];)i--;N[i]--,N[i+1]+=2,N[h]--,d-=2}while(d>0);for(i=h;0!=i;i--)for(n=N[i];0!=n;)(r=P[--e])>u||(s[r].dl!=i&&(Y+=(i-s[r].dl)*s[r].fc,s[r].fc=i),n--)}}(t),ae(r,o)}function se(t,e){var n,r,i=-1,a=t[0].dl,o=0,s=7,c=4;for(0==a&&(s=138,c=3),t[e+1].dl=65535,n=0;n<=e;n++)r=a,a=t[n+1].dl,++o<s&&r==a||(o<c?M[r].fc+=o:0!=r?(r!=i&&M[r].fc++,M[Bt].fc++):o<=10?M[_t].fc++:M[St].fc++,o=0,i=r,0==a?(s=138,c=3):r==a?(s=6,c=3):(s=7,c=4))}function ce(t,e){var n,r,i=-1,a=t[0].dl,o=0,s=7,c=4;for(0==a&&(s=138,c=3),n=0;n<=e;n++)if(r=a,a=t[n+1].dl,!(++o<s&&r==a)){if(o<c)do{Vt(r,M)}while(0!=--o);else 0!=r?(r!=i&&(Vt(r,M),o--),Vt(Bt,M),de(o-3,2)):o<=10?(Vt(_t,M),de(o-3,3)):(Vt(St,M),de(o-11,7));o=0,i=r,0==a?(s=138,c=3):r==a?(s=6,c=3):(s=7,c=4)}}function le(t){var e,n,r,i,a;if(i=y-d,z[V]=W,oe(O),oe(D),r=function(){var t;for(se(_,O.max_code),se(S,D.max_code),oe(F),t=Tt-1;t>=3&&0==M[Ut[t]].dl;t--);return Y+=3*(t+1)+5+5+4,t}(),(n=J+3+7>>3)<=(e=Y+3+7>>3)&&(e=n),i+4<=e&&d>=0)for(de((nt<<1)+t,3),ge(),Gt(i),Gt(~i),a=0;a<i;a++)zt(s[d+a]);else n==e?(de((rt<<1)+t,3),he(L,I)):(de((it<<1)+t,3),function(t,e,n){var r;for(de(t-257,5),de(e-1,5),de(n-4,4),r=0;r<n;r++)de(M[Ut[r]].dl,3);ce(_,t-1),ce(S,e-1)}(O.max_code+1,D.max_code+1,r+1),he(_,S));re(),0!=t&&ge()}function ue(t,e){if(l[G++]=e,0==t?_[e].fc++:(t--,_[$[e]+kt+1].fc++,S[Wt(t)].fc++,c[X++]=t,W|=q),q<<=1,7&G||(z[V++]=W,W=0,q=1),T>2&&!(4095&G)){var n,r=8*G,i=y-d;for(n=0;n<Et;n++)r+=S[n].fc*(5+Rt[n]);if(r>>=3,X<Ff(G/2)&&r<Ff(i/2))return!0}return G==lt-1||X==ut}function he(t,e){var n,r,i,a,o=0,s=0,u=0,h=0;if(0!=G)do{7&o||(h=z[u++]),r=255&l[o++],1&h?(Vt((i=$[r])+kt+1,t),0!=(a=Pt[i])&&de(r-=j[i],a),Vt(i=Wt(n=c[s++]),e),0!=(a=Rt[i])&&de(n-=K[i],a)):Vt(r,t),h>>=1}while(o<G);Vt(Ct,t)}var fe=16;function de(t,e){f>fe-e?(Gt(h|=t<<f),h=t>>fe-f,f+=e-fe):(h|=t<<f,f+=e)}function Ae(t,e){var n=0;do{n|=1&t,t>>=1,n<<=1}while(--e>0);return n>>1}function ge(){f>8?Gt(h):f>0&&zt(h),h=0,f=0}return function(i,a){var o,h;Z=i,tt=0,void 0===a&&(a=6),function(i){var a;if(i?i<1?i=1:i>9&&(i=9):i=6,T=i,r=!1,k=!1,null==Mt){for(t=e=n=null,Mt=new Array(at),s=new Array(ot),c=new Array(ut),l=new Array(32832),u=new Array(65536),_=new Array(Lt),a=0;a<Lt;a++)_[a]=new Ot;for(S=new Array(2*Et+1),a=0;a<2*Et+1;a++)S[a]=new Ot;for(L=new Array(xt+2),a=0;a<xt+2;a++)L[a]=new Ot;for(I=new Array(Et),a=0;a<Et;a++)I[a]=new Ot;for(M=new Array(2*Tt+1),a=0;a<2*Tt+1;a++)M[a]=new Ot;O=new Dt,D=new Dt,F=new Dt,N=new Array(vt+1),P=new Array(2*xt+1),U=new Array(2*xt+1),$=new Array(ct-st+1),H=new Array(512),j=new Array(wt),K=new Array(Et),z=new Array(Ff(lt/8))}}(a);for(var f=new Array(1024),d=[];(o=ee(f,0,f.length))>0;){var A=new Array(o);for(h=0;h<o;h++)A[h]=String.fromCharCode(f[h]);d[d.length]=A.join("")}return Z=null,d.join("")}}(),WF=VF;function qF(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function YF(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=qF(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=qF(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}function JF(t,e,n){var r=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,a=63&n,o="";return o+=ZF(63&t>>2),o+=ZF(63&r),o+=ZF(63&i),o+=ZF(63&a)}function ZF(t){var e=t;return e<10?String.fromCharCode(48+e):(e-=10)<26?String.fromCharCode(65+e):(e-=26)<26?String.fromCharCode(97+e):0===(e-=26)?"-":1===e?"_":"?"}function tN(t,e){var n,r=unescape(encodeURIComponent(t));return hs(n="".concat(e,"/svg/")).call(n,function(t){for(var e="",n=0;n<t.length;n+=3)n+2===t.length?e+=JF(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1===t.length?e+=JF(t.charCodeAt(n),0,0):e+=JF(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(WF(r,9)))}var eN=function(){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ra(this,t);this.baseUrl=null!==(e=n.baseUrl)&&void 0!==e?e:"http://www.plantuml.com/plantuml"}return Ho(t,[{key:"render",value:function(t,e){var n,r,i=e;i||(i=Math.round(1e8*Math.random()));var a=hs(n="plantuml-".concat(i,"-")).call(n,(new Date).getTime());return hs(r='<img id="'.concat(a,'" src="')).call(r,tN(t,this.baseUrl),'" />')}}],[{key:"install",value:function(e,n){var r;bu(e,{engine:{syntax:{codeBlock:{customRenderer:{plantuml:new t(YF(YF({},n),null!==(r=e.engine.syntax.plantuml)&&void 0!==r?r:{}))}}}}})}}])}();Dn({target:"Number",stat:!0,forced:Number.parseFloat!==Vf},{parseFloat:Vf});var nN=H.Number.parseFloat,rN=["echarts"];function iN(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function aN(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Qs(n=iN(Object(i),!0)).call(n,(function(e){cs(t,e,i[e])})):Wi?Zi(t,Wi(i)):Qs(r=iN(Object(i))).call(r,(function(e){na(t,e,Ki(i,e))}))}return t}var oN={renderer:"svg",width:500,height:300},sN=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ra(this,t);var n=e.echarts,r=_u(e,rN);if(!n&&!window.echarts)throw new Error("table-echarts-plugin[init]: Package echarts not found.");this.options=aN(aN({},oN),r||{}),this.echartsRef=n||window.echarts,this.dom=null}return Ho(t,[{key:"getInstance",value:function(){return this.dom||(this.dom=document.createElement("div"),this.echartsRef.init(this.dom,null,this.options)),this.echartsRef.getInstanceByDom(this.dom)}},{key:"render",value:function(t,e,n){var r={};switch(t){case"bar":r=this.renderBarChart(n,e);break;case"line":r=this.renderLineChart(n,e);break;default:return""}var i=this.getInstance();return i.clear(),i.setOption(r),i.getDom().innerHTML}},{key:"renderBarChart",value:function(t,e){return this.$renderChartCommon(t,e,"bar")}},{key:"renderLineChart",value:function(t,e){return this.$renderChartCommon(t,e,"line")}},{key:"$renderChartCommon",value:function(t,e,n){var r,i,a={bar:{type:"bar",barWidth:20,animation:!1,name:"",data:[]},line:{type:"line",animation:!1,name:"",data:[]}};if(a[n]){var o=zm(r=t.rows).call(r,(function(t,e){var r;return t.legend.data.push(e[0]),t.series.push(aN(aN({},a[n]),{},{name:e[0],data:lA(r=Bf(e).call(e,1)).call(r,(function(t){return nN(t.replace(/,/g,""))}))})),t}),{legend:{data:[]},series:[]});return aN(aN({},o),{},{xAxis:{data:Bf(i=t.header).call(i,1),type:"category"},yAxis:{type:"value",axisLabel:{width:"100%"}},grid:{containLabel:!0,left:"1%",right:"1%",bottom:"10%"}})}}},{key:"onDestroy",value:function(){this.dom&&this.echartsRef.dispose(this.dom)}}],[{key:"install",value:function(e){if("undefined"==typeof window)return console.warn("echarts-table-engine only works in browser."),void bu(e,{engine:{syntax:{table:{enableChart:!1}}}});bu(e,{engine:{syntax:{table:{enableChart:!0,chartRenderEngine:t,externals:["echarts"]}}}})}}])}();function cN(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Array.from("string"==typeof t?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce((function(t,e){var n=e.match(/\n([\t ]+|(?!\s).)/g);return n?t.concat(n.map((function(t){var e,n;return null!==(n=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==n?n:0}))):t}),[]);if(i.length){var a=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");r=r.map((function(t){return t.replace(a,"\n")}))}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return e.forEach((function(t,e){var n=o.match(/(?:^|\n)( *)$/),i=n?n[1]:"",a=t;"string"==typeof t&&t.includes("\n")&&(a=String(t).split("\n").map((function(t,e){return 0===e?t:""+i+t})).join("\n")),o+=a+r[e+1]})),o}var lN=r((function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",c="week",l="month",u="quarter",h="year",f="date",d="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},b={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,l),a=n-i<0,o=e.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:h,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",y={};y[v]=p;var w="$isDayjsObject",k=function(t){return t instanceof T||!(!t||!t[w])},C=function t(e,n,r){var i;if(!e)return v;if("string"==typeof e){var a=e.toLowerCase();y[a]&&(i=a),n&&(y[a]=n,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;y[s]=e,i=s}return!r&&i&&(v=i),i||!r&&v},x=function(t,e){if(k(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new T(n)},E=b;E.l=C,E.i=k,E.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=function(){function p(t){this.$L=C(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}var m=p.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(A);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.init()},m.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()},m.$utils=function(){return E},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(t,e){var n=x(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return x(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<x(t)},m.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!E.u(e)||e,u=E.p(t),d=function(t,e){var i=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},A=function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,p=this.$M,m=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case h:return r?d(1,0):d(31,11);case l:return r?d(1,p):d(0,p+1);case c:var v=this.$locale().weekStart||0,y=(g<v?g+7:g)-v;return d(r?m-y:m+(6-y),p);case s:case f:return A(b+"Hours",0);case o:return A(b+"Minutes",1);case a:return A(b+"Seconds",2);case i:return A(b+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,c=E.p(t),u="set"+(this.$u?"UTC":""),d=(n={},n[s]=u+"Date",n[f]=u+"Date",n[l]=u+"Month",n[h]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],A=c===s?this.$D+(e-this.$W):e;if(c===l||c===h){var g=this.clone().set(f,1);g.$d[d](A),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](A);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[E.p(t)]()},m.add=function(r,u){var f,d=this;r=Number(r);var A=E.p(u),g=function(t){var e=x(d);return E.w(e.date(e.date()+Math.round(t*r)),d)};if(A===l)return this.set(l,this.$M+r);if(A===h)return this.set(h,this.$y+r);if(A===s)return g(1);if(A===c)return g(7);var p=(f={},f[a]=e,f[o]=n,f[i]=t,f)[A]||1,m=this.$d.getTime()+r*p;return E.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,h=function(t,n,i,a){return t&&(t[n]||t(e,r))||i[n].slice(0,a)},f=function(t){return E.s(a%12||12,t,"0")},A=u||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return E.s(e.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,l,3);case"MMMM":return h(l,s);case"D":return e.$D;case"DD":return E.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,c,2);case"ddd":return h(n.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(a);case"HH":return E.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return A(a,o,!0);case"A":return A(a,o,!1);case"m":return String(o);case"mm":return E.s(o,2,"0");case"s":return String(e.$s);case"ss":return E.s(e.$s,2,"0");case"SSS":return E.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,f,d){var A,g=this,p=E.p(f),m=x(r),b=(m.utcOffset()-this.utcOffset())*e,v=this-m,y=function(){return E.m(g,m)};switch(p){case h:A=y()/12;break;case l:A=y();break;case u:A=y()/3;break;case c:A=(v-b)/6048e5;break;case s:A=(v-b)/864e5;break;case o:A=v/n;break;case a:A=v/e;break;case i:A=v/t;break;default:A=v}return d?A:E.a(A)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return y[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=C(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return E.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},p}(),B=T.prototype;return x.prototype=B,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",h],["$D",f]].forEach((function(t){B[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),x.extend=function(t,e){return t.$i||(t(e,T,x),t.$i=!0),x},x.locale=C,x.isDayjs=k,x.unix=function(t){return x(1e3*t)},x.en=y[v],x.Ls=y,x.p={},x}()})),uN=r((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=e.BLANK_URL=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,i=/&(newline|tab);/gi,a=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|&colon;)/gim,s=[".","/"];e.BLANK_URL="about:blank",e.sanitizeUrl=function(t){if(!t)return e.BLANK_URL;var c=function(t){return t.replace(a,"").replace(r,(function(t,e){return String.fromCharCode(e)}))}(t).replace(i,"").replace(a,"").trim();if(!c)return e.BLANK_URL;if(function(t){return s.indexOf(t[0])>-1}(c))return c;var l=c.match(o);if(!l)return c;var u=l[0];return n.test(u)?e.BLANK_URL:c}}));n(uN);var hN=uN.sanitizeUrl;function fN(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function dN(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function AN(t){var e,n,r;function i(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i<a){if(0!==e(r,r))return a;do{var o=i+a>>>1;n(t[o],r)<0?i=o+1:a=o}while(i<a)}return i}return 2!==t.length?(e=fN,n=function(e,n){return fN(t(e),n)},r=function(e,n){return t(e)-n}):(e=t===fN||t===dN?t:gN,n=t,r=t),{left:i,center:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=i(t,e,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length)-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i<a){if(0!==e(r,r))return a;do{var o=i+a>>>1;n(t[o],r)<=0?i=o+1:a=o}while(i<a)}return i}}}function gN(){return 0}uN.BLANK_URL;var pN=AN(fN).right;AN((function(t){return null===t?NaN:+t})).center;var mN=pN;class bN extends Map{constructor(t,e=yN){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(vN(this,t))}has(t){return super.has(vN(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);t.has(r)&&(n=t.get(r),t.delete(r));return n}(this,t))}}function vN({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function yN(t){return null!==t&&"object"==typeof t?t.valueOf():t}var wN=G.match(/firefox\/(\d+)/i),kN=!!wN&&+wN[1],CN=/MSIE|Trident/.test(G),xN=G.match(/AppleWebKit\/(\d+)\./),EN=!!xN&&+xN[1],TN=kN,BN=CN,_N=EN,SN=[],LN=w(SN.sort),IN=w(SN.push),MN=u((function(){SN.sort(void 0)})),ON=u((function(){SN.sort(null)})),DN=Ms("sort"),FN=!u((function(){if(Y)return Y<70;if(!(TN&&TN>3)){if(BN)return!0;if(_N)return _N<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)SN.push({k:e+r,v:n})}for(SN.sort((function(t,e){return e.v-t.v})),r=0;r<SN.length;r++)e=SN[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));Dn({target:"Array",proto:!0,forced:MN||!ON||!DN||!FN},{sort:function(t){void 0!==t&&ut(t);var e=yt(this);if(FN)return void 0===t?LN(e):LN(e,t);var n,r,i=[],a=un(e);for(r=0;r<a;r++)r in e&&IN(i,e[r]);for(Xw(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:xr(e)>xr(n)?1:-1}}(t)),n=un(i),r=0;r<n;)e[r]=i[r++];for(;r<a;)Wd(e,r++);return e}});var NN=Ni("Array","sort"),PN=Array.prototype,RN=function(t){var e=t.sort;return t===PN||rt(PN,t)&&e===PN.sort?NN:e},QN=Math.log,UN=Math.LOG10E,$N=Math.log10||function(t){return QN(t)*UN};Dn({target:"Math",stat:!0},{log10:$N});var HN=H.Math.log10,jN=Math.sqrt(50),KN=Math.sqrt(10),zN=Math.sqrt(2);function GN(t,e,n){var r,i,a,o=(e-t)/Math.max(0,n),s=Math.floor(HN(o)),c=o/Math.pow(10,s),l=c>=jN?10:c>=KN?5:c>=zN?2:1;return s<0?(a=Math.pow(10,-s)/l,(r=Math.round(t*a))/a<t&&++r,(i=Math.round(e*a))/a>e&&--i,a=-a):(a=Math.pow(10,s)*l,(r=Math.round(t/a))*a<t&&++r,(i=Math.round(e/a))*a>e&&--i),i<r&&.5<=n&&n<2?GN(t,e,2*n):[r,i,a]}function XN(t,e,n){return GN(t=+t,e=+e,n=+n)[2]}function VN(t,e,n){n=+n;var r=(e=+e)<(t=+t),i=r?XN(e,t,n):XN(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function WN(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return qN(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qN(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function qN(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function YN(t,e){var n;if(void 0===e){var r,i=WN(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;null!=a&&(n<a||void 0===n&&a>=a)&&(n=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,s=-1,c=WN(t);try{for(c.s();!(o=c.n()).done;){var l=o.value;null!=(l=e(l,++s,t))&&(n<l||void 0===n&&l>=l)&&(n=l)}}catch(t){c.e(t)}finally{c.f()}}return n}function JN(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return ZN(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ZN(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function ZN(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function tP(t,e){var n;if(void 0===e){var r,i=JN(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;null!=a&&(n>a||void 0===n&&a>=a)&&(n=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,s=-1,c=JN(t);try{for(c.s();!(o=c.n()).done;){var l=o.value;null!=(l=e(l,++s,t))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(t){c.e(t)}finally{c.f()}}return n}var eP=mB;function nP(t){return t}var rP=1,iP=2,aP=3,oP=4,sP=1e-6;function cP(t){return"translate("+t+",0)"}function lP(t){return"translate(0,"+t+")"}function uP(t){return function(e){return+t(e)}}function hP(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function fP(){return!this.__axis}function dP(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=t===rP||t===oP?-1:1,u=t===oP||t===iP?"x":"y",h=t===rP||t===aP?cP:lP;function f(f){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,A=null==i?e.tickFormat?e.tickFormat.apply(e,n):nP:i,g=Math.max(a,0)+s,p=e.range(),m=+p[0]+c,b=+p[p.length-1]+c,v=(e.bandwidth?hP:uP)(e.copy(),c),y=f.selection?f.selection():f,w=y.selectAll(".domain").data([null]),k=y.selectAll(".tick").data(d,e).order(),C=k.exit(),x=k.enter().append("g").attr("class","tick"),E=k.select("line"),T=k.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(x),E=E.merge(x.append("line").attr("stroke","currentColor").attr(u+"2",l*a)),T=T.merge(x.append("text").attr("fill","currentColor").attr(u,l*g).attr("dy",t===rP?"0em":t===aP?"0.71em":"0.32em")),f!==y&&(w=w.transition(f),k=k.transition(f),E=E.transition(f),T=T.transition(f),C=C.transition(f).attr("opacity",sP).attr("transform",(function(t){return isFinite(t=v(t))?h(t+c):this.getAttribute("transform")})),x.attr("opacity",sP).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:v(t))+c)}))),C.remove(),w.attr("d",t===oP||t===iP?o?"M"+l*o+","+m+"H"+c+"V"+b+"H"+l*o:"M"+c+","+m+"V"+b:o?"M"+m+","+l*o+"V"+c+"H"+b+"V"+l*o:"M"+m+","+c+"H"+b),k.attr("opacity",1).attr("transform",(function(t){return h(v(t)+c)})),E.attr(u+"2",l*a),T.attr(u,l*g).text(A),Qi(y).call(y,fP).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===iP?"start":t===oP?"end":"middle"),y.each((function(){this.__axis=v}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Nh(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Nh(t),f):Bf(n).call(n)},f.tickValues=function(t){return arguments.length?(r=null==t?null:Nh(t),f):r&&Bf(r).call(r)},f.tickFormat=function(t){return arguments.length?(i=t,f):i},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 AP={value:function(){}};function gP(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new pP(r)}function pP(t){this._=t}function mP(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function bP(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){var a;t[r]=AP,t=hs(a=Bf(t).call(t,0,r)).call(a,Bf(t).call(t,r+1));break}return null!=n&&t.push({name:e,value:n}),t}pP.prototype=gP.prototype={constructor:pP,on:function(t,e){var n,r=this._,i=function(t,e){var n;return lA(n=mh(t).call(t).split(/^|\s+/)).call(n,(function(t){var n="",r=Ef(t).call(t,".");if(r>=0&&(n=Bf(t).call(t,r+1),t=Bf(t).call(t,0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=bP(r[n],t.name,e);else if(null==e)for(n in r)r[n]=bP(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=mP(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e){var r;t[n]=Bf(r=e[n]).call(r)}return new pP(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var vP="http://www.w3.org/1999/xhtml",yP={svg:"http://www.w3.org/2000/svg",xhtml:vP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function wP(t){var e=t+="",n=Ef(e).call(e,":");return n>=0&&"xmlns"!==(e=Bf(t).call(t,0,n))&&(t=Bf(t).call(t,n+1)),yP.hasOwnProperty(e)?{space:yP[e],local:t}:t}function kP(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===vP&&e.documentElement.namespaceURI===vP?e.createElement(t):e.createElementNS(n,t)}}function CP(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function xP(t){var e=wP(t);return(e.local?CP:kP)(e)}var EP=Fo;function TP(){}function BP(t){return null==t?TP:function(){return this.querySelector(t)}}function _P(t){return null==t?[]:sd(t)?t:Nh(t)}function SP(){return[]}function LP(t){return null==t?SP:function(){return this.querySelectorAll(t)}}function IP(t){return function(){return this.matches(t)}}function MP(t){return function(e){return e.matches(t)}}var OP=ah(Array.prototype);function DP(){return this.firstElementChild}var FP=Qi(Array.prototype);function NP(){return Nh(this.children)}var PP=Lg;function RP(t){return new Array(t.length)}function QP(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function UP(t,e,n,r,i,a){for(var o,s=0,c=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new QP(t,a[s]);for(;s<c;++s)(o=e[s])&&(i[s]=o)}function $P(t,e,n,r,i,a,o){var s,c,l,u=new PP,h=e.length,f=a.length,d=new Array(h);for(s=0;s<h;++s)(c=e[s])&&(d[s]=l=o.call(c,c.__data__,s,e)+"",u.has(l)?i[s]=c:u.set(l,c));for(s=0;s<f;++s)l=o.call(t,a[s],s,a)+"",(c=u.get(l))?(r[s]=c,c.__data__=a[s],u.delete(l)):n[s]=new QP(t,a[s]);for(s=0;s<h;++s)(c=e[s])&&u.get(d[s])===c&&(i[s]=c)}function HP(t){return t.__data__}function jP(t){return"object"===Ro(t)&&"length"in t?t:Nh(t)}function KP(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function zP(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return GP(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?GP(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function GP(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function XP(t){return function(){this.removeAttribute(t)}}function VP(t){return function(){this.removeAttributeNS(t.space,t.local)}}function WP(t,e){return function(){this.setAttribute(t,e)}}function qP(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function YP(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function JP(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 ZP(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function tR(t){return function(){this.style.removeProperty(t)}}function eR(t,e,n){return function(){this.style.setProperty(t,e,n)}}function nR(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function rR(t,e){return t.style.getPropertyValue(e)||ZP(t).getComputedStyle(t,null).getPropertyValue(e)}function iR(t){return function(){delete this[t]}}function aR(t,e){return function(){this[t]=e}}function oR(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function sR(t){return mh(t).call(t).split(/^|\s+/)}function cR(t){return t.classList||new lR(t)}function lR(t){this._node=t,this._names=sR(t.getAttribute("class")||"")}function uR(t,e){for(var n=cR(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function hR(t,e){for(var n=cR(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function fR(t){return function(){uR(this,t)}}function dR(t){return function(){hR(this,t)}}function AR(t,e){return function(){(e.apply(this,arguments)?uR:hR)(this,t)}}function gR(){this.textContent=""}function pR(t){return function(){this.textContent=t}}function mR(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function bR(){this.innerHTML=""}function vR(t){return function(){this.innerHTML=t}}function yR(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function wR(){this.nextSibling&&this.parentNode.appendChild(this)}function kR(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function CR(){return null}function xR(){var t=this.parentNode;t&&t.removeChild(this)}function ER(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function TR(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function BR(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function _R(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function SR(t,e,n){var r=ZP(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function LR(t,e){return function(){return SR(this,t,e)}}function IR(t,e){return function(){return SR(this,t,e.apply(this,arguments))}}QP.prototype={constructor:QP,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},lR.prototype={add:function(t){var e;Ef(e=this._names).call(e,t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e,n,r=Ef(e=this._names).call(e,t);r>=0&&(eA(n=this._names).call(n,r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){var e;return Ef(e=this._names).call(e,t)>=0}};var MR=xB.mark(OR);function OR(){var t,e,n,r,i,a,o;return xB.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:t=this._groups,e=0,n=t.length;case 1:if(!(e<n)){s.next=13;break}r=t[e],i=0,a=r.length;case 3:if(!(i<a)){s.next=10;break}if(!(o=r[i])){s.next=7;break}return s.next=7,o;case 7:++i,s.next=3;break;case 10:++e,s.next=1;break;case 13:case"end":return s.stop()}}),MR,this)}var DR,FR,NR,PR,RR,QR,UR,$R,HR,jR,KR,zR,GR,XR,VR,WR=[null];function qR(t,e){this._groups=t,this._parents=e}function YR(){return new qR([[document.documentElement]],WR)}function JR(t){return"string"==typeof t?new qR([[document.querySelector(t)]],[document.documentElement]):new qR([[t]],WR)}function ZR(t){return"string"==typeof t?new qR([document.querySelectorAll(t)],[document.documentElement]):new qR([_P(t)],WR)}function tQ(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function eQ(t,e){var n=Tf(t.prototype);for(var r in e)n[r]=e[r];return n}function nQ(){}qR.prototype=YR.prototype=cs({constructor:qR,select:function(t){"function"!=typeof t&&(t=BP(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],c=s.length,l=r[i]=new Array(c),u=0;u<c;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),l[u]=o);return new qR(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return _P(t.apply(this,arguments))}}(t):LP(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],c=s.length,l=0;l<c;++l)(o=s[l])&&(r.push(t.call(o,o.__data__,l,s)),i.push(o));return new qR(r,i)},selectChild:function(t){return this.select(null==t?DP:function(t){return function(){return OP.call(this.children,t)}}("function"==typeof t?t:MP(t)))},selectChildren:function(t){return this.selectAll(null==t?NP:function(t){return function(){return FP.call(this.children,t)}}("function"==typeof t?t:MP(t)))},filter:function(t){"function"!=typeof t&&(t=IP(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new qR(r,this._parents)},data:function(t,e){if(!arguments.length)return Nh(this,HP);var n=e?$P:UP,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var a=i.length,o=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var u=r[l],h=i[l],f=h.length,d=jP(t.call(u,u&&u.__data__,l,r)),A=d.length,g=s[l]=new Array(A),p=o[l]=new Array(A);n(u,h,g,p,c[l]=new Array(f),d,e);for(var m,b,v=0,y=0;v<A;++v)if(m=g[v]){for(v>=y&&(y=v+1);!(b=p[y])&&++y<A;);m._next=b||null}}return(o=new qR(o,r))._enter=s,o._exit=c,o},enter:function(){var t;return new qR(this._enter||lA(t=this._groups).call(t,RP),this._parents)},exit:function(){var t;return new qR(this._exit||lA(t=this._groups).call(t,RP),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),c=0;c<o;++c)for(var l,u=n[c],h=r[c],f=u.length,d=s[c]=new Array(f),A=0;A<f;++A)(l=u[A]||h[A])&&(d[A]=l);for(;c<i;++c)s[c]=n[c];return new qR(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=KP);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],c=s.length,l=i[a]=new Array(c),u=0;u<c;++u)(o=s[u])&&(l[u]=o);RN(l).call(l,e)}return new qR(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Nh(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){var t,e=0,n=zP(this);try{for(n.s();!(t=n.n()).done;){t.value;++e}}catch(t){n.e(t)}finally{n.f()}return e},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=wP(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?VP:XP:"function"==typeof e?n.local?JP:YP:n.local?qP:WP)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?tR:"function"==typeof e?nR:eR)(t,e,null==n?"":n)):rR(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?iR:"function"==typeof e?oR:aR)(t,e)):this.node()[t]},classed:function(t,e){var n=sR(t+"");if(arguments.length<2){for(var r=cR(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?AR:e?fR:dR)(n,e))},text:function(t){return arguments.length?this.each(null==t?gR:("function"==typeof t?mR:pR)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?bR:("function"==typeof t?yR:vR)(t)):this.node().innerHTML},raise:function(){return this.each(wR)},lower:function(){return this.each(kR)},append:function(t){var e="function"==typeof t?t:xP(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:xP(t),r=null==e?CR:"function"==typeof e?e:BP(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(xR)},clone:function(t){return this.select(t?TR:ER)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=function(t){var e;return lA(e=mh(t).call(t).split(/^|\s+/)).call(e,(function(t){var e="",n=Ef(t).call(t,".");return n>=0&&(e=Bf(t).call(t,n+1),t=Bf(t).call(t,0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?_R:BR,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var c,l=0,u=s.length;l<u;++l)for(r=0,c=s[l];r<o;++r)if((i=a[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?IR:LR)(t,e))}},EP,OR);var rQ=.7,iQ=1/rQ,aQ="\\s*([+-]?\\d+)\\s*",oQ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sQ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cQ=/^#([0-9a-f]{3,8})$/,lQ=new RegExp(hs(DR=hs(FR="^rgb\\(".concat(aQ,",")).call(FR,aQ,",")).call(DR,aQ,"\\)$")),uQ=new RegExp(hs(NR=hs(PR="^rgb\\(".concat(sQ,",")).call(PR,sQ,",")).call(NR,sQ,"\\)$")),hQ=new RegExp(hs(RR=hs(QR=hs(UR="^rgba\\(".concat(aQ,",")).call(UR,aQ,",")).call(QR,aQ,",")).call(RR,oQ,"\\)$")),fQ=new RegExp(hs($R=hs(HR=hs(jR="^rgba\\(".concat(sQ,",")).call(jR,sQ,",")).call(HR,sQ,",")).call($R,oQ,"\\)$")),dQ=new RegExp(hs(KR=hs(zR="^hsl\\(".concat(oQ,",")).call(zR,sQ,",")).call(KR,sQ,"\\)$")),AQ=new RegExp(hs(GR=hs(XR=hs(VR="^hsla\\(".concat(oQ,",")).call(VR,sQ,",")).call(XR,sQ,",")).call(GR,oQ,"\\)$")),gQ={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pQ(){return this.rgb().formatHex()}function mQ(){return this.rgb().formatRgb()}function bQ(t){var e,n,r;return t=mh(e=t+"").call(e).toLowerCase(),(n=cQ.exec(t))?(r=n[1].length,n=Ff(n[1],16),6===r?vQ(n):3===r?new CQ(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===r?yQ(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===r?yQ(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=lQ.exec(t))?new CQ(n[1],n[2],n[3],1):(n=uQ.exec(t))?new CQ(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=hQ.exec(t))?yQ(n[1],n[2],n[3],n[4]):(n=fQ.exec(t))?yQ(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=dQ.exec(t))?SQ(n[1],n[2]/100,n[3]/100,1):(n=AQ.exec(t))?SQ(n[1],n[2]/100,n[3]/100,n[4]):gQ.hasOwnProperty(t)?vQ(gQ[t]):"transparent"===t?new CQ(NaN,NaN,NaN,0):null}function vQ(t){return new CQ(t>>16&255,t>>8&255,255&t,1)}function yQ(t,e,n,r){return r<=0&&(t=e=n=NaN),new CQ(t,e,n,r)}function wQ(t){return t instanceof nQ||(t=bQ(t)),t?new CQ((t=t.rgb()).r,t.g,t.b,t.opacity):new CQ}function kQ(t,e,n,r){return 1===arguments.length?wQ(t):new CQ(t,e,n,null==r?1:r)}function CQ(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function xQ(){var t,e;return hs(t=hs(e="#".concat(_Q(this.r))).call(e,_Q(this.g))).call(t,_Q(this.b))}function EQ(){var t,e,n,r,i=TQ(this.opacity);return hs(t=hs(e=hs(n=hs(r="".concat(1===i?"rgb(":"rgba(")).call(r,BQ(this.r),", ")).call(n,BQ(this.g),", ")).call(e,BQ(this.b))).call(t,1===i?")":", ".concat(i,")"))}function TQ(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function BQ(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _Q(t){return((t=BQ(t))<16?"0":"")+t.toString(16)}function SQ(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new IQ(t,e,n,r)}function LQ(t){if(t instanceof IQ)return new IQ(t.h,t.s,t.l,t.opacity);if(t instanceof nQ||(t=bQ(t)),!t)return new IQ;if(t instanceof IQ)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new IQ(o,s,c,t.opacity)}function IQ(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function MQ(t){return(t=(t||0)%360)<0?t+360:t}function OQ(t){return Math.max(0,Math.min(1,t||0))}function DQ(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}tQ(nQ,bQ,{copy:function(t){return Ss(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:pQ,formatHex:pQ,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return LQ(this).formatHsl()},formatRgb:mQ,toString:mQ}),tQ(CQ,kQ,eQ(nQ,{brighter:function(t){return t=null==t?iQ:Math.pow(iQ,t),new CQ(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?rQ:Math.pow(rQ,t),new CQ(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new CQ(BQ(this.r),BQ(this.g),BQ(this.b),TQ(this.opacity))},displayable:function(){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:xQ,formatHex:xQ,formatHex8:function(){var t,e,n;return hs(t=hs(e=hs(n="#".concat(_Q(this.r))).call(n,_Q(this.g))).call(e,_Q(this.b))).call(t,_Q(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:EQ,toString:EQ})),tQ(IQ,(function(t,e,n,r){return 1===arguments.length?LQ(t):new IQ(t,e,n,null==r?1:r)}),eQ(nQ,{brighter:function(t){return t=null==t?iQ:Math.pow(iQ,t),new IQ(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?rQ:Math.pow(rQ,t),new IQ(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new CQ(DQ(t>=240?t-240:t+120,i,r),DQ(t,i,r),DQ(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new IQ(MQ(this.h),OQ(this.s),OQ(this.l),TQ(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t,e,n,r,i=TQ(this.opacity);return hs(t=hs(e=hs(n=hs(r="".concat(1===i?"hsl(":"hsla(")).call(r,MQ(this.h),", ")).call(n,100*OQ(this.s),"%, ")).call(e,100*OQ(this.l),"%")).call(t,1===i?")":", ".concat(i,")"))}}));var FQ=Math.PI/180,NQ=180/Math.PI,PQ=.96422,RQ=1,QQ=.82521,UQ=4/29,$Q=6/29,HQ=3*$Q*$Q,jQ=$Q*$Q*$Q;function KQ(t){if(t instanceof zQ)return new zQ(t.l,t.a,t.b,t.opacity);if(t instanceof YQ)return JQ(t);t instanceof CQ||(t=wQ(t));var e,n,r=WQ(t.r),i=WQ(t.g),a=WQ(t.b),o=GQ((.2225045*r+.7168786*i+.0606169*a)/RQ);return r===i&&i===a?e=n=o:(e=GQ((.4360747*r+.3850649*i+.1430804*a)/PQ),n=GQ((.0139322*r+.0971045*i+.7141733*a)/QQ)),new zQ(116*o-16,500*(e-o),200*(o-n),t.opacity)}function zQ(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function GQ(t){return t>jQ?Math.pow(t,1/3):t/HQ+UQ}function XQ(t){return t>$Q?t*t*t:HQ*(t-UQ)}function VQ(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function WQ(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function qQ(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof YQ)return new YQ(t.h,t.c,t.l,t.opacity);if(t instanceof zQ||(t=KQ(t)),0===t.a&&0===t.b)return new YQ(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*NQ;return new YQ(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new YQ(t,e,n,null==r?1:r)}function YQ(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function JQ(t){if(isNaN(t.h))return new zQ(t.l,0,0,t.opacity);var e=t.h*FQ;return new zQ(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}tQ(zQ,(function(t,e,n,r){return 1===arguments.length?KQ(t):new zQ(t,e,n,null==r?1:r)}),eQ(nQ,{brighter:function(t){return new zQ(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new zQ(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new CQ(VQ(3.1338561*(e=PQ*XQ(e))-1.6168667*(t=RQ*XQ(t))-.4906146*(n=QQ*XQ(n))),VQ(-.9787684*e+1.9161415*t+.033454*n),VQ(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),tQ(YQ,qQ,eQ(nQ,{brighter:function(t){return new YQ(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new YQ(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return JQ(this).rgb()}}));var ZQ=function(t){return function(){return t}};function tU(t,e){return function(n){return t+n*e}}function eU(t){return 1==(t=+t)?nU: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(r){return Math.pow(t+r*e,n)}}(e,n,t):ZQ(isNaN(e)?n:e)}}function nU(t,e){var n=e-t;return n?tU(t,n):ZQ(isNaN(t)?e:t)}var rU=function t(e){var n=eU(e);function r(t,e){var r=n((t=kQ(t)).r,(e=kQ(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=nU(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function iU(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=Bf(e).call(e);return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function aU(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=fU(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function oU(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function sU(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function cU(t,e){var n,r={},i={};for(n in null!==t&&"object"===Ro(t)||(t={}),null!==e&&"object"===Ro(e)||(e={}),e)n in t?r[n]=fU(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var lU=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uU=new RegExp(lU.source,"g");function hU(t,e){var n,r,i,a=lU.lastIndex=uU.lastIndex=0,o=-1,s=[],c=[];for(t+="",e+="";(n=lU.exec(t))&&(r=uU.exec(e));)(i=r.index)>a&&(i=Bf(e).call(e,a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:sU(n,r)})),a=uU.lastIndex;return a<e.length&&(i=Bf(e).call(e,a),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function fU(t,e){var n,r=Ro(e);return null==e||"boolean"===r?ZQ(e):("number"===r?sU:"string"===r?(n=bQ(e))?(e=n,rU):hU:e instanceof bQ?rU:e instanceof Date?oU:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?iU:sd(e)?aU:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?cU:sU)(t,e)}function dU(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var AU,gU=180/Math.PI,pU={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mU(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*gU,skewX:Math.atan(c)*gU,scaleX:o,scaleY:s}}function bU(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],c=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var c=o.push("translate(",null,e,null,n);s.push({i:c-4,x:sU(t,i)},{i:c-2,x:sU(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,c),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:sU(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:sU(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:sU(t,n)},{i:s-2,x:sU(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n<r;)s[(e=c[n]).i]=e.x(t);return s.join("")}}}var vU=bU((function(t){var e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?pU:mU(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),yU=bU((function(t){return null==t?pU:(AU||(AU=document.createElementNS("http://www.w3.org/2000/svg","g")),AU.setAttribute("transform",t),(t=AU.transform.baseVal.consolidate())?mU((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):pU)}),", ",")",")");var wU,kU,CU,xU=function(t){return function(e,n){var r=t((e=qQ(e)).h,(n=qQ(n)).h),i=nU(e.c,n.c),a=nU(e.l,n.l),o=nU(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}((function(t,e){var n=e-t;return n?tU(t,n>180||n<-180?n-360*Math.round(n/360):n):ZQ(isNaN(t)?e:t)})),EU=0,TU=0,BU=0,_U=1e3,SU=0,LU=0,IU=0,MU="object"===("undefined"==typeof performance?"undefined":Ro(performance))&&performance.now?performance:Date,OU="object"===("undefined"==typeof window?"undefined":Ro(window))&&window.requestAnimationFrame?fs(wU=window.requestAnimationFrame).call(wU,window):function(t){ks(t,17)};function DU(){return LU||(OU(FU),LU=MU.now()+IU)}function FU(){LU=0}function NU(){this._call=this._time=this._next=null}function PU(t,e,n){var r=new NU;return r.restart(t,e,n),r}function RU(){LU=(SU=MU.now())+IU,EU=TU=0;try{!function(){DU(),++EU;for(var t,e=kU;e;)(t=LU-e._time)>=0&&e._call.call(void 0,t),e=e._next;--EU}()}finally{EU=0,function(){var t,e,n=kU,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:kU=e);CU=t,UU(r)}(),LU=0}}function QU(){var t=MU.now(),e=t-SU;e>_U&&(IU-=e,SU=t)}function UU(t){EU||(TU&&(TU=clearTimeout(TU)),t-LU>24?(t<1/0&&(TU=ks(RU,t-MU.now()-IU)),BU&&(BU=clearInterval(BU))):(BU||(SU=MU.now(),BU=i_(QU,_U)),EU=1,OU(RU)))}function $U(t,e,n){var r=new NU;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}NU.prototype=PU.prototype={constructor:NU,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?DU():+n)+(null==e?0:+e),this._next||CU===this||(CU?CU._next=this:kU=this,CU=this),this._call=t,this._time=n,UU()},stop:function(){this._call&&(this._call=null,this._time=1/0,UU())}};var HU=gP("start","end","cancel","interrupt"),jU=[],KU=0,zU=1,GU=2,XU=3,VU=4,WU=5,qU=6;function YU(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(t){n.state=zU,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(a){var l,u,h,f;if(n.state!==zU)return c();for(l in i)if((f=i[l]).name===n.name){if(f.state===XU)return $U(o);f.state===VU?(f.state=qU,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[l]):+l<e&&(f.state=qU,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[l])}if($U((function(){n.state===XU&&(n.state=VU,n.timer.restart(s,n.delay,n.time),s(a))})),n.state=GU,n.on.call("start",t,t.__data__,n.index,n.group),n.state===GU){for(n.state=XU,r=new Array(h=n.tween.length),l=0,u=-1;l<h;++l)(f=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function s(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(c),n.state=WU,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);n.state===WU&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){for(var r in n.state=qU,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=PU(a,0,n.time)}(t,n,{name:e,index:r,group:i,on:HU,tween:jU,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:KU})}function JU(t,e){var n=t$(t,e);if(n.state>KU)throw new Error("too late; already scheduled");return n}function ZU(t,e){var n=t$(t,e);if(n.state>XU)throw new Error("too late; already running");return n}function t$(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function e$(t,e){var n,r;return function(){var i=ZU(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){r=Bf(r).call(r),eA(r).call(r,o,1);break}i.tween=r}}function n$(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=ZU(this,t),o=a.tween;if(o!==r){var s;i=Bf(s=r=o).call(s);for(var c={name:e,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===e){i[l]=c;break}l===u&&i.push(c)}a.tween=i}}function r$(t,e,n){var r=t._id;return t.each((function(){var t=ZU(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return t$(t,r).value[e]}}function i$(t,e){var n;return("number"==typeof e?sU:e instanceof bQ?rU:(n=bQ(e))?(e=n,rU):hU)(t,e)}function a$(t){return function(){this.removeAttribute(t)}}function o$(t){return function(){this.removeAttributeNS(t.space,t.local)}}function s$(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function c$(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function l$(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttribute(t))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttribute(t)}}function u$(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttributeNS(t.space,t.local)}}function h$(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function f$(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function d$(t,e){return function(){JU(this,t).delay=+e.apply(this,arguments)}}function A$(t,e){return e=+e,function(){JU(this,t).delay=e}}function g$(t,e){return function(){ZU(this,t).duration=+e.apply(this,arguments)}}function p$(t,e){return e=+e,function(){ZU(this,t).duration=e}}function m$(t,e,n){var r,i,a=function(t){var e,n;return Kx(e=mh(n=t+"").call(n).split(/^|\s+/)).call(e,(function(t){var e=Ef(t).call(t,".");return e>=0&&(t=Bf(t).call(t,0,e)),!t||"start"===t}))}(e)?JU:ZU;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var b$=YR.prototype.constructor;function v$(t){return function(){this.style.removeProperty(t)}}var y$=0;function w$(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function k$(){return++y$}var C$=YR.prototype;w$.prototype=cs({constructor:w$,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=BP(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,c,l=r[o],u=l.length,h=a[o]=new Array(u),f=0;f<u;++f)(s=l[f])&&(c=t.call(s,s.__data__,f,l))&&("__data__"in s&&(c.__data__=s.__data__),h[f]=c,YU(h[f],e,n,f,h,t$(s,n)));return new w$(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=LP(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c,l=r[s],u=l.length,h=0;h<u;++h)if(c=l[h]){for(var f,d=t.call(c,c.__data__,h,l),A=t$(c,n),g=0,p=d.length;g<p;++g)(f=d[g])&&YU(f,e,n,g,d,A);a.push(d),o.push(c)}return new w$(a,o,e,n)},selectChild:C$.selectChild,selectChildren:C$.selectChildren,filter:function(t){"function"!=typeof t&&(t=IP(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new w$(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c,l=e[s],u=n[s],h=l.length,f=o[s]=new Array(h),d=0;d<h;++d)(c=l[d]||u[d])&&(f[d]=c);for(;s<r;++s)o[s]=e[s];return new w$(o,this._parents,this._name,this._id)},selection:function(){return new b$(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=k$(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)if(o=s[l]){var u=t$(o,e);YU(o,t,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new w$(r,this._parents,t,n)},call:C$.call,nodes:C$.nodes,node:C$.node,size:C$.size,empty:C$.empty,each:C$.each,on:function(t,e){var n=this._id;return arguments.length<2?t$(this.node(),n).on.on(t):this.each(m$(n,t,e))},attr:function(t,e){var n=wP(t),r="transform"===n?yU:i$;return this.attrTween(t,"function"==typeof e?(n.local?u$:l$)(n,r,r$(this,"attr."+t,e)):null==e?(n.local?o$:a$)(n):(n.local?c$:s$)(n,r,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 r=wP(t);return this.tween(n,(r.local?h$:f$)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?vU:i$;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=rR(this,t),o=(this.style.removeProperty(t),rR(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,v$(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=rR(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=rR(this,t)),o===c?null:o===r&&c===i?a:(i=c,a=e(r=o,s))}}(t,r,r$(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var c=ZU(this,t),l=c.on,u=null==c.value[o]?a||(a=v$(e)):void 0;l===n&&i===u||(r=(n=l).copy()).on(s,i=u),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=rR(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,a,n)),r}return a._value=e,a}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(r$(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 r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=t$(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?e$:n$)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?d$:A$)(e,t)):t$(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?g$:p$)(e,t)):t$(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){ZU(this,t).ease=e}}(e,t)):t$(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;ZU(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new VI((function(a,o){var s={value:o},c={value:function(){0==--i&&a()}};n.each((function(){var n=ZU(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e})),0===i&&a()}))}},EP,od(C$));var x$,E$,T$,B$={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function _$(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition ".concat(e," not found"));return n}function S$(t){return{type:t}}YR.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>GU&&n.state<WU,n.state=qU,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},YR.prototype.transition=function(t){var e,n;t instanceof w$?(e=t._id,t=t._name):(e=k$(),(n=B$).time=DU(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)(o=s[l])&&YU(o,t,e,l,s,n||_$(o,e));return new w$(r,this._parents,t,e)},lA(x$=["w","e"]).call(x$,S$),lA(E$=["n","s"]).call(E$,S$),lA(T$=["n","w","e","s","nw","ne","sw","se"]).call(T$,S$);var L$=og.onFreeze,I$=Object.freeze,M$=u((function(){I$(1)}));Dn({target:"Object",stat:!0,forced:M$,sham:!tg},{freeze:function(t){return I$&&ft(t)?I$(L$(t)):t}});var O$,D$,F$,N$,P$,R$,Q$,U$,$$,H$,j$,K$,z$,G$,X$=H.Object.freeze,V$=X$,W$=Ji;function q$(t,e){return e||(e=vf(t).call(t,0)),V$(W$(t,{raw:{value:V$(e)}}))}var Y$=Math.PI,J$=2*Y$,Z$=1e-6,tH=J$-Z$;function eH(t){this._+=t[0];for(var e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}var nH=function(){return Ho((function t(e){ra(this,t),this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?eH:function(t){var e=Math.floor(t);if(!(e>=0))throw new Error("invalid digits: ".concat(t));if(e>15)return eH;var n=Math.pow(10,e);return function(t){this._+=t[0];for(var e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(e)}),[{key:"moveTo",value:function(t,e){this._append(O$||(O$=q$(["M",",",""])),this._x0=this._x1=+t,this._y0=this._y1=+e)}},{key:"closePath",value:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(D$||(D$=q$(["Z"]))))}},{key:"lineTo",value:function(t,e){this._append(F$||(F$=q$(["L",",",""])),this._x1=+t,this._y1=+e)}},{key:"quadraticCurveTo",value:function(t,e,n,r){this._append(N$||(N$=q$(["Q",",",",",",",""])),+t,+e,this._x1=+n,this._y1=+r)}},{key:"bezierCurveTo",value:function(t,e,n,r,i,a){this._append(P$||(P$=q$(["C",",",",",",",",",",",""])),+t,+e,+n,+r,this._x1=+i,this._y1=+a)}},{key:"arcTo",value:function(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error("negative radius: ".concat(i));var a=this._x1,o=this._y1,s=n-t,c=r-e,l=a-t,u=o-e,h=l*l+u*u;if(null===this._x1)this._append(R$||(R$=q$(["M",",",""])),this._x1=t,this._y1=e);else if(h>Z$)if(Math.abs(u*s-c*l)>Z$&&i){var f=n-a,d=r-o,A=s*s+c*c,g=f*f+d*d,p=Math.sqrt(A),m=Math.sqrt(h),b=i*Math.tan((Y$-Math.acos((A+h-g)/(2*p*m)))/2),v=b/m,y=b/p;Math.abs(v-1)>Z$&&this._append(U$||(U$=q$(["L",",",""])),t+v*l,e+v*u),this._append($$||($$=q$(["A",",",",0,0,",",",",",""])),i,i,+(u*f>l*d),this._x1=t+y*s,this._y1=e+y*c)}else this._append(Q$||(Q$=q$(["L",",",""])),this._x1=t,this._y1=e);else;}},{key:"arc",value:function(t,e,n,r,i,a){if(t=+t,e=+e,a=!!a,(n=+n)<0)throw new Error("negative radius: ".concat(n));var o=n*Math.cos(r),s=n*Math.sin(r),c=t+o,l=e+s,u=1^a,h=a?r-i:i-r;null===this._x1?this._append(H$||(H$=q$(["M",",",""])),c,l):(Math.abs(this._x1-c)>Z$||Math.abs(this._y1-l)>Z$)&&this._append(j$||(j$=q$(["L",",",""])),c,l),n&&(h<0&&(h=h%J$+J$),h>tH?this._append(K$||(K$=q$(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,u,t-o,e-s,n,n,u,this._x1=c,this._y1=l):h>Z$&&this._append(z$||(z$=q$(["A",",",",0,",",",",",",",""])),n,n,+(h>=Y$),u,this._x1=t+n*Math.cos(i),this._y1=e+n*Math.sin(i)))}},{key:"rect",value:function(t,e,n,r){this._append(G$||(G$=q$(["M",",","h","v","h","Z"])),this._x0=this._x1=+t,this._y0=this._y1=+e,n=+n,+r,-n)}},{key:"toString",value:function(){return this._}}])}();function rH(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}nH.prototype;function iH(t,e){var n;if((r=Ef(n=t=e?t.toExponential(e-1):t.toExponential()).call(n,"e"))<0)return null;var r,i=Bf(t).call(t,0,r);return[i.length>1?i[0]+Bf(i).call(i,2):i,+Bf(t).call(t,r+1)]}function aH(t){return(t=iH(Math.abs(t)))?t[1]:NaN}var oH,sH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cH(t){var e,n;if(!(n=sH.exec(t)))throw new Error("invalid format: "+t);return new lH({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&Bf(e=n[8]).call(e,1),trim:n[9],type:n[10]})}function lH(t){this.fill=void 0===Qb(t)?" ":Qb(t)+"",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=!!mh(t),this.type=void 0===t.type?"":t.type+""}function uH(t,e){var n=iH(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?Bf(r).call(r,0,i+1)+"."+Bf(r).call(r,i+1):r+new Array(i-r.length+2).join("0")}cH.prototype=lH.prototype,lH.prototype.toString=function(){return Qb(this)+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))+(mh(this)?"~":"")+this.type};var hH={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return uH(100*t,e)},r:uH,s:function(t,e){var n=iH(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(oH=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?Bf(r).call(r,0,a)+"."+Bf(r).call(r,a):"0."+new Array(1-a).join("0")+iH(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function fH(t){return t}var dH,AH,gH,pH=lA(Array.prototype),mH=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bH(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?fH:(e=pH.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return eP(a).call(a).join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?fH:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(pH.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){t=cH(t);var e=Qb(t),n=t.align,h=t.sign,f=t.symbol,d=t.zero,A=t.width,g=t.comma,p=t.precision,m=mh(t),b=t.type;"n"===b?(g=!0,b="g"):hH[b]||(void 0===p&&(p=12),m=!0,b="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var v="$"===f?i:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===f?a:/[%p]/.test(b)?c:"",w=hH[b],k=/[defgprs%]/.test(b);function C(t){var i,a,c,f=v,C=y;if("c"===b)C=w(t)+C,t="";else{var x=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:w(Math.abs(t),p),m&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?Bf(t).call(t,0,i)+Bf(t).call(t,e+1):t}(t)),x&&0==+t&&"+"!==h&&(x=!1),f=(x?"("===h?h:l:"-"===h||"("===h?"":h)+f,C=("s"===b?mH[8+oH/3]:"")+C+(x&&"("===h?")":""),k)for(i=-1,a=t.length;++i<a;)if(48>(c=t.charCodeAt(i))||c>57){C=(46===c?o+Bf(t).call(t,i+1):Bf(t).call(t,i))+C,t=Bf(t).call(t,0,i);break}}g&&!d&&(t=r(t,1/0));var E=f.length+t.length+C.length,T=E<A?new Array(A-E+1).join(e):"";switch(g&&d&&(t=r(T+t,T.length?A-C.length:1/0),T=""),n){case"<":t=f+t+C+T;break;case"=":t=f+T+t+C;break;case"^":t=Bf(T).call(T,0,E=T.length>>1)+f+t+C+Bf(T).call(T,E);break;default:t=T+f+t+C}return s(t)}return p=void 0===p?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),C.toString=function(){return t+""},C}return{format:h,formatPrefix:function(t,e){var n=h(((t=cH(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(aH(e)/3))),i=Math.pow(10,-r),a=mH[8+r/3];return function(t){return n(i*t)+a}}}}function vH(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function yH(t,e){var n=void 0!==ad&&od(t)||t["@@iterator"];if(!n){if(sd(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return wH(t,e);var r=Bf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Nh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wH(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function wH(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}dH=bH({thousands:",",grouping:[3],currency:["$",""]}),AH=dH.format,gH=dH.formatPrefix;var kH=ad("implicit");function CH(){var t=new bN,e=[],n=[],r=kH;function i(i){var a=t.get(i);if(void 0===a){if(r!==kH)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return Bf(e).call(e);e=[],t=new bN;var r,a=yH(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.has(o)||t.set(o,e.push(o)-1)}}catch(t){a.e(t)}finally{a.f()}return i},i.range=function(t){return arguments.length?(n=Nh(t),i):Bf(n).call(n)},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return CH(e,n).unknown(r)},vH.apply(i,arguments),i}function xH(t){return+t}var EH=[0,1];function TH(t){return t}function BH(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function _H(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=BH(i,r),a=n(o,a)):(r=BH(r,i),a=n(a,o)),function(t){return a(r(t))}}function SH(t,e,n){var r,i,a=Math.min(t.length,e.length)-1,o=new Array(a),s=new Array(a),c=-1;t[a]<t[0]&&(t=eP(r=Bf(t).call(t)).call(r),e=eP(i=Bf(e).call(e)).call(i));for(;++c<a;)o[c]=BH(t[c],t[c+1]),s[c]=n(e[c],e[c+1]);return function(e){var n=mN(t,e,1,a)-1;return s[n](o[n](e))}}function LH(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function IH(){var t,e,n,r,i,a,o=EH,s=EH,c=fU,l=TH;function u(){var t,e,n,c=Math.min(o.length,s.length);return l!==TH&&(t=o[0],e=o[c-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?SH:_H,i=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(lA(o).call(o,t),s,c)))(t(l(e)))}return h.invert=function(n){return l(e((a||(a=r(s,lA(o).call(o,t),sU)))(n)))},h.domain=function(t){return arguments.length?(o=Nh(t,xH),u()):Bf(o).call(o)},h.range=function(t){return arguments.length?(s=Nh(t),u()):Bf(s).call(s)},h.rangeRound=function(t){return s=Nh(t),c=dU,u()},h.clamp=function(t){return arguments.length?(l=!!t||TH,u()):l!==TH},h.interpolate=function(t){return arguments.length?(c=t,u()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,u()}}function MH(){return IH()(TH,TH)}function OH(t,e,n,r){var i,a=VN(t,e,n);switch((r=cH(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(aH(e)/3)))-aH(Math.abs(t)))}(a,o))||(r.precision=i),gH(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,aH(e)-aH(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-aH(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return AH(r)}function DH(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];var r=e<t,i=xf(r?GN(e,t,n):GN(t,e,n),3),a=i[0],o=i[1],s=i[2];if(!(o>=a))return[];var c=o-a+1,l=new Array(c);if(r)if(s<0)for(var u=0;u<c;++u)l[u]=(o-u)/-s;else for(var h=0;h<c;++h)l[h]=(o-h)*s;else if(s<0)for(var f=0;f<c;++f)l[f]=(a+f)/-s;else for(var d=0;d<c;++d)l[d]=(a+d)*s;return l}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return OH(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,s=a.length-1,c=a[o],l=a[s],u=10;for(l<c&&(i=c,c=l,l=i,i=o,o=s,s=i);u-- >0;){if((i=XN(c,l,n))===r)return a[o]=c,a[s]=l,e(a);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function FH(){var t=MH();return t.copy=function(){return LH(t,FH())},vH.apply(t,arguments),DH(t)}var NH=new Date,PH=new Date;function RH(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return RH((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return NH.setTime(+e),PH.setTime(+r),t(NH),t(PH),Math.floor(n(NH,PH))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Qi(i).call(i,r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var QH=RH((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));QH.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?RH((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):QH:null},QH.range;var UH=1e3,$H=6e4,HH=36e5,jH=864e5,KH=6048e5,zH=2592e6,GH=31536e6,XH=RH((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*UH)}),(function(t,e){return(e-t)/UH}),(function(t){return t.getUTCSeconds()}));XH.range;var VH=RH((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*UH)}),(function(t,e){t.setTime(+t+e*$H)}),(function(t,e){return(e-t)/$H}),(function(t){return t.getMinutes()}));VH.range;var WH=RH((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*$H)}),(function(t,e){return(e-t)/$H}),(function(t){return t.getUTCMinutes()}));WH.range;var qH=RH((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*UH-t.getMinutes()*$H)}),(function(t,e){t.setTime(+t+e*HH)}),(function(t,e){return(e-t)/HH}),(function(t){return t.getHours()}));qH.range;var YH=RH((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*HH)}),(function(t,e){return(e-t)/HH}),(function(t){return t.getUTCHours()}));YH.range;var JH=RH((function(t){return t.setHours(0,0,0,0)}),(function(t,e){return t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*$H)/jH}),(function(t){return t.getDate()-1}));JH.range;var ZH=RH((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/jH}),(function(t){return t.getUTCDate()-1}));ZH.range;var tj=RH((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/jH}),(function(t){return Math.floor(t/jH)}));function ej(t){return RH((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())*$H)/KH}))}tj.range;var nj=ej(0),rj=ej(1),ij=ej(2),aj=ej(3),oj=ej(4),sj=ej(5),cj=ej(6);function lj(t){return RH((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)/KH}))}nj.range,rj.range,ij.range,aj.range,oj.range,sj.range,cj.range;var uj=lj(0),hj=lj(1),fj=lj(2),dj=lj(3),Aj=lj(4),gj=lj(5),pj=lj(6);uj.range,hj.range,fj.range,dj.range,Aj.range,gj.range,pj.range;var mj=RH((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()}));mj.range;var bj=RH((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));bj.range;var vj=RH((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()}));vj.every=function(t){return isFinite(t=Math.floor(t))&&t>0?RH((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},vj.range;var yj=RH((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()}));function wj(t,e,n,r,i,a){var o=[[XH,1,UH],[XH,5,5e3],[XH,15,15e3],[XH,30,3e4],[a,1,$H],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,HH],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,jH],[r,2,1728e5],[n,1,KH],[e,1,zH],[e,3,7776e6],[t,1,GH]];function s(e,n,r){var i=Math.abs(n-e)/r,a=AN((function(t){return xf(t,3)[2]})).right(o,i);if(a===o.length)return Kx(t).call(t,VN(e/GH,n/GH,r));if(0===a)return Kx(QH).call(QH,Math.max(VN(e,n,r),1));var s=xf(o[i/o[a-1][2]<o[a][2]/i?a-1:a],2),c=s[0],l=s[1];return Kx(c).call(c,l)}return[function(t,e,n){var r=e<t;if(r){var i=[e,t];t=i[0],e=i[1]}var a=n&&"function"==typeof n.range?n:s(t,e,n),o=a?a.range(t,+e+1):[];return r?eP(o).call(o):o},s]}yj.every=function(t){return isFinite(t=Math.floor(t))&&t>0?RH((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},yj.range;var kj=xf(wj(yj,bj,uj,tj,YH,WH),2);kj[0],kj[1];var Cj=xf(wj(vj,mj,nj,JH,qH,VH),2),xj=Cj[0],Ej=Cj[1];function Tj(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Bj(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function _j(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Sj,Lj,Ij={"-":"",_:" ",0:"0"},Mj=/^\s*\d+/,Oj=/^%/,Dj=/[\\^$*+?|[\]().{}]/g;function Fj(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Nj(t){return t.replace(Dj,"\\$&")}function Pj(t){return new RegExp("^(?:"+lA(t).call(t,Nj).join("|")+")","i")}function Rj(t){return new PP(lA(t).call(t,(function(t,e){return[t.toLowerCase(),e]})))}function Qj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Uj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function $j(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Hj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function jj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Kj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function zj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Gj(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Bf(e).call(e,n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Xj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Vj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Wj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function qj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Yj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Jj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Zj(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function tK(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function eK(t,e,n){var r=Mj.exec(Bf(e).call(e,n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nK(t,e,n){var r=Oj.exec(Bf(e).call(e,n,n+1));return r?n+r[0].length:-1}function rK(t,e,n){var r=Mj.exec(Bf(e).call(e,n));return r?(t.Q=+r[0],n+r[0].length):-1}function iK(t,e,n){var r=Mj.exec(Bf(e).call(e,n));return r?(t.s=+r[0],n+r[0].length):-1}function aK(t,e){return Fj(t.getDate(),e,2)}function oK(t,e){return Fj(t.getHours(),e,2)}function sK(t,e){return Fj(t.getHours()%12||12,e,2)}function cK(t,e){return Fj(1+JH.count(vj(t),t),e,3)}function lK(t,e){return Fj(t.getMilliseconds(),e,3)}function uK(t,e){return lK(t,e)+"000"}function hK(t,e){return Fj(t.getMonth()+1,e,2)}function fK(t,e){return Fj(t.getMinutes(),e,2)}function dK(t,e){return Fj(t.getSeconds(),e,2)}function AK(t){var e=t.getDay();return 0===e?7:e}function gK(t,e){return Fj(nj.count(vj(t)-1,t),e,2)}function pK(t){var e=t.getDay();return e>=4||0===e?oj(t):oj.ceil(t)}function mK(t,e){return t=pK(t),Fj(oj.count(vj(t),t)+(4===vj(t).getDay()),e,2)}function bK(t){return t.getDay()}function vK(t,e){return Fj(rj.count(vj(t)-1,t),e,2)}function yK(t,e){return Fj(t.getFullYear()%100,e,2)}function wK(t,e){return Fj((t=pK(t)).getFullYear()%100,e,2)}function kK(t,e){return Fj(t.getFullYear()%1e4,e,4)}function CK(t,e){var n=t.getDay();return Fj((t=n>=4||0===n?oj(t):oj.ceil(t)).getFullYear()%1e4,e,4)}function xK(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Fj(e/60|0,"0",2)+Fj(e%60,"0",2)}function EK(t,e){return Fj(t.getUTCDate(),e,2)}function TK(t,e){return Fj(t.getUTCHours(),e,2)}function BK(t,e){return Fj(t.getUTCHours()%12||12,e,2)}function _K(t,e){return Fj(1+ZH.count(yj(t),t),e,3)}function SK(t,e){return Fj(t.getUTCMilliseconds(),e,3)}function LK(t,e){return SK(t,e)+"000"}function IK(t,e){return Fj(t.getUTCMonth()+1,e,2)}function MK(t,e){return Fj(t.getUTCMinutes(),e,2)}function OK(t,e){return Fj(t.getUTCSeconds(),e,2)}function DK(t){var e=t.getUTCDay();return 0===e?7:e}function FK(t,e){return Fj(uj.count(yj(t)-1,t),e,2)}function NK(t){var e=t.getUTCDay();return e>=4||0===e?Aj(t):Aj.ceil(t)}function PK(t,e){return t=NK(t),Fj(Aj.count(yj(t),t)+(4===yj(t).getUTCDay()),e,2)}function RK(t){return t.getUTCDay()}function QK(t,e){return Fj(hj.count(yj(t)-1,t),e,2)}function UK(t,e){return Fj(t.getUTCFullYear()%100,e,2)}function $K(t,e){return Fj((t=NK(t)).getUTCFullYear()%100,e,2)}function HK(t,e){return Fj(t.getUTCFullYear()%1e4,e,4)}function jK(t,e){var n=t.getUTCDay();return Fj((t=n>=4||0===n?Aj(t):Aj.ceil(t)).getUTCFullYear()%1e4,e,4)}function KK(){return"+0000"}function zK(){return"%"}function GK(t){return+t}function XK(t){return Math.floor(+t/1e3)}function VK(t){return new Date(t)}function WK(t){return t instanceof Date?+t:+new Date(+t)}function qK(t,e,n,r,i,a,o,s,c,l){var u=MH(),h=u.invert,f=u.domain,d=l(".%L"),A=l(":%S"),g=l("%I:%M"),p=l("%I %p"),m=l("%a %d"),b=l("%b %d"),v=l("%B"),y=l("%Y");function w(t){return(c(t)<t?d:s(t)<t?A:o(t)<t?g:a(t)<t?p:r(t)<t?i(t)<t?m:b:n(t)<t?v:y)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){var e;return arguments.length?f(Nh(t,WK)):lA(e=f()).call(e,VK)},u.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?w:l(e)},u.nice=function(t){var n=f();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(function(t,e){var n,r=0,i=(t=Bf(t).call(t)).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}(n,t)):u},u.copy=function(){return LH(u,qK(t,e,n,r,i,a,o,s,c,l))},u}function YK(t){return function(){return t}}!function(t){Sj=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,l=Pj(i),u=Rj(i),h=Pj(a),f=Rj(a),d=Pj(o),A=Rj(o),g=Pj(s),p=Rj(s),m=Pj(c),b=Rj(c),v={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:aK,e:aK,f:uK,g:wK,G:CK,H:oK,I:sK,j:cK,L:lK,m:hK,M:fK,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:GK,s:XK,S:dK,u:AK,U:gK,V:mK,w:bK,W:vK,x:null,X:null,y:yK,Y:kK,Z:xK,"%":zK},y={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:EK,e:EK,f:LK,g:$K,G:jK,H:TK,I:BK,j:_K,L:SK,m:IK,M:MK,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:GK,s:XK,S:OK,u:DK,U:FK,V:PK,w:RK,W:QK,x:null,X:null,y:UK,Y:HK,Z:KK,"%":zK},w={a:function(t,e,n){var r=d.exec(Bf(e).call(e,n));return r?(t.w=A.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(Bf(e).call(e,n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(Bf(e).call(e,n));return r?(t.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(Bf(e).call(e,n));return r?(t.m=p.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return x(t,e,n,r)},d:Wj,e:Wj,f:eK,g:zj,G:Kj,H:Yj,I:Yj,j:qj,L:tK,m:Vj,M:Jj,p:function(t,e,n){var r=l.exec(Bf(e).call(e,n));return r?(t.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Xj,Q:rK,s:iK,S:Zj,u:Uj,U:$j,V:Hj,w:Qj,W:jj,x:function(t,e,r){return x(t,n,e,r)},X:function(t,e,n){return x(t,r,e,n)},y:zj,Y:Kj,Z:Gj,"%":nK};function k(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===t.charCodeAt(s)&&(o.push(Bf(t).call(t,c,s)),null!=(i=Ij[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),c=s+1);return o.push(Bf(t).call(t,c,s)),o.join("")}}function C(t,e){return function(n){var r,i,a=_j(1900,void 0,1);if(x(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Bj(_j(a.y,0,1))).getUTCDay(),r=i>4||0===i?hj.ceil(r):hj(r),r=ZH.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Tj(_j(a.y,0,1))).getDay(),r=i>4||0===i?rj.ceil(r):rj(r),r=JH.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.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),i="Z"in a?Bj(_j(a.y,0,1)).getUTCDay():Tj(_j(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Bj(a)):Tj(a)}}function x(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o<s;){if(r>=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in Ij?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return v.x=k(n,v),v.X=k(r,v),v.c=k(e,v),y.x=k(n,y),y.X=k(r,y),y.c=k(e,y),{format:function(t){var e=k(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=C(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",y);return e.toString=function(){return t},e},utcParse:function(t){var e=C(t+="",!0);return e.toString=function(){return t},e}}}(t),Lj=Sj.format,Sj.parse,Sj.utcFormat,Sj.utcParse}({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"]});var JK=Math.abs,ZK=Math.atan2,tz=Math.cos,ez=Math.max,nz=Math.min,rz=Math.sin,iz=Math.sqrt,az=1e-12,oz=Math.PI,sz=oz/2,cz=2*oz;function lz(t){return t>=1?sz:t<=-1?-sz:Math.asin(t)}function uz(t){var e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{var r=Math.floor(n);if(!(r>=0))throw new RangeError("invalid digits: ".concat(n));e=r}return t},function(){return new nH(e)}}function hz(t){return t.innerRadius}function fz(t){return t.outerRadius}function dz(t){return t.startAngle}function Az(t){return t.endAngle}function gz(t){return t&&t.padAngle}function pz(t,e,n,r,i,a,o){var s=t-n,c=e-r,l=(o?a:-a)/iz(s*s+c*c),u=l*c,h=-l*s,f=t+u,d=e+h,A=n+u,g=r+h,p=(f+A)/2,m=(d+g)/2,b=A-f,v=g-d,y=b*b+v*v,w=i-a,k=f*g-A*d,C=(v<0?-1:1)*iz(ez(0,w*w*y-k*k)),x=(k*v-b*C)/y,E=(-k*b-v*C)/y,T=(k*v+b*C)/y,B=(-k*b+v*C)/y,_=x-p,S=E-m,L=T-p,I=B-m;return _*_+S*S>L*L+I*I&&(x=T,E=B),{cx:x,cy:E,x01:-u,y01:-h,x11:x*(i/w-1),y11:E*(i/w-1)}}function mz(){var t=hz,e=fz,n=YK(0),r=null,i=dz,a=Az,o=gz,s=null,c=uz(l);function l(){var l,u,h=+t.apply(this,arguments),f=+e.apply(this,arguments),d=i.apply(this,arguments)-sz,A=a.apply(this,arguments)-sz,g=JK(A-d),p=A>d;if(s||(s=l=c()),f<h&&(u=f,f=h,h=u),f>az)if(g>cz-az)s.moveTo(f*tz(d),f*rz(d)),s.arc(0,0,f,d,A,!p),h>az&&(s.moveTo(h*tz(A),h*rz(A)),s.arc(0,0,h,A,d,p));else{var m,b,v=d,y=A,w=d,k=A,C=g,x=g,E=o.apply(this,arguments)/2,T=E>az&&(r?+r.apply(this,arguments):iz(h*h+f*f)),B=nz(JK(f-h)/2,+n.apply(this,arguments)),_=B,S=B;if(T>az){var L=lz(T/h*rz(E)),I=lz(T/f*rz(E));(C-=2*L)>az?(w+=L*=p?1:-1,k-=L):(C=0,w=k=(d+A)/2),(x-=2*I)>az?(v+=I*=p?1:-1,y-=I):(x=0,v=y=(d+A)/2)}var M=f*tz(v),O=f*rz(v),D=h*tz(k),F=h*rz(k);if(B>az){var N,P=f*tz(y),R=f*rz(y),Q=h*tz(w),U=h*rz(w);if(g<oz)if(N=function(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,u=o-i,h=s-a,f=h*c-u*l;if(!(f*f<az))return[t+(f=(u*(e-a)-h*(t-i))/f)*c,e+f*l]}(M,O,Q,U,P,R,D,F)){var $=M-N[0],H=O-N[1],j=P-N[0],K=R-N[1],z=1/rz(function(t){return t>1?0:t<-1?oz:Math.acos(t)}(($*j+H*K)/(iz($*$+H*H)*iz(j*j+K*K)))/2),G=iz(N[0]*N[0]+N[1]*N[1]);_=nz(B,(h-G)/(z-1)),S=nz(B,(f-G)/(z+1))}else _=S=0}x>az?S>az?(m=pz(Q,U,M,O,f,S,p),b=pz(P,R,D,F,f,S,p),s.moveTo(m.cx+m.x01,m.cy+m.y01),S<B?s.arc(m.cx,m.cy,S,ZK(m.y01,m.x01),ZK(b.y01,b.x01),!p):(s.arc(m.cx,m.cy,S,ZK(m.y01,m.x01),ZK(m.y11,m.x11),!p),s.arc(0,0,f,ZK(m.cy+m.y11,m.cx+m.x11),ZK(b.cy+b.y11,b.cx+b.x11),!p),s.arc(b.cx,b.cy,S,ZK(b.y11,b.x11),ZK(b.y01,b.x01),!p))):(s.moveTo(M,O),s.arc(0,0,f,v,y,!p)):s.moveTo(M,O),h>az&&C>az?_>az?(m=pz(D,F,P,R,h,-_,p),b=pz(M,O,Q,U,h,-_,p),s.lineTo(m.cx+m.x01,m.cy+m.y01),_<B?s.arc(m.cx,m.cy,_,ZK(m.y01,m.x01),ZK(b.y01,b.x01),!p):(s.arc(m.cx,m.cy,_,ZK(m.y01,m.x01),ZK(m.y11,m.x11),!p),s.arc(0,0,h,ZK(m.cy+m.y11,m.cx+m.x11),ZK(b.cy+b.y11,b.cx+b.x11),p),s.arc(b.cx,b.cy,_,ZK(b.y11,b.x11),ZK(b.y01,b.x01),!p))):s.arc(0,0,h,k,w,p):s.lineTo(D,F)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-oz/2;return[tz(r)*n,rz(r)*n]},l.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:YK(+e),l):t},l.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:YK(+t),l):e},l.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:YK(+t),l):n},l.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:YK(+t),l):r},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:YK(+t),l):i},l.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:YK(+t),l):a},l.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:YK(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function bz(t){return"object"===Ro(t)&&"length"in t?t:Nh(t)}function vz(t){this._context=t}function yz(t){return new vz(t)}function wz(t){return t[0]}function kz(t){return t[1]}function Cz(t,e){var n=YK(!0),r=null,i=yz,a=null,o=uz(s);function s(s){var c,l,u,h=(s=bz(s)).length,f=!1;for(null==r&&(a=i(u=o())),c=0;c<=h;++c)!(c<h&&n(l=s[c],c,s))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(l,c,s),+e(l,c,s));if(u)return a=null,u+""||null}return t="function"==typeof t?t:void 0===t?wz:YK(t),e="function"==typeof e?e:void 0===e?kz:YK(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:YK(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:YK(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:YK(!!t),s):n},s.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),s):r},s}function xz(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Ez(t){return t}Bf(Array.prototype),vz.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)}}};var Tz=function(){return Ho((function t(e,n){ra(this,t),this._context=e,this._x=n}),[{key:"areaStart",value:function(){this._line=0}},{key:"areaEnd",value:function(){this._line=NaN}},{key:"lineStart",value:function(){this._point=0}},{key:"lineEnd",value:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}},{key:"point",value: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._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 Bz(){}function _z(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 Sz(t){this._context=t}function Lz(t){return new Sz(t)}function Iz(t){this._context=t}function Mz(t){this._context=t}function Oz(t,e){this._basis=new Sz(t),this._beta=e}Sz.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:_z(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:_z(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Iz.prototype={areaStart:Bz,areaEnd:Bz,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:_z(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Mz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:_z(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Oz.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Dz=function t(e){function n(t){return 1===e?new Sz(t):new Oz(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Fz(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 Nz(t,e){this._context=t,this._k=(1-e)/6}Nz.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:Fz(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:Fz(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Pz=function t(e){function n(t){return new Nz(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Rz(t,e){this._context=t,this._k=(1-e)/6}Rz.prototype={areaStart:Bz,areaEnd:Bz,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:Fz(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Qz=function t(e){function n(t){return new Rz(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Uz(t,e){this._context=t,this._k=(1-e)/6}Uz.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:Fz(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var $z=function t(e){function n(t){return new Uz(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Hz(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>az){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);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>az){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(r,i,a,o,t._x2,t._y2)}function jz(t,e){this._context=t,this._alpha=e}jz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Hz(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Kz=function t(e){function n(t){return e?new jz(t,e):new Nz(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function zz(t,e){this._context=t,this._alpha=e}zz.prototype={areaStart:Bz,areaEnd:Bz,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Hz(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Gz=function t(e){function n(t){return e?new zz(t,e):new Rz(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Xz(t,e){this._context=t,this._alpha=e}Xz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Hz(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Vz=function t(e){function n(t){return e?new Xz(t,e):new Uz(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Wz(t){this._context=t}function qz(t){return t<0?-1:1}function Yz(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(qz(a)+qz(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Jz(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Zz(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function tG(t){this._context=t}function eG(t){this._context=new nG(t)}function nG(t){this._context=t}function rG(t){this._context=t}function iG(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function aG(t,e){this._context=t,this._t=e}function oG(t,e,n){this.k=t,this.x=e,this.y=n}Wz.prototype={areaStart:Bz,areaEnd:Bz,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},tG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zz(this,this._t0,Jz(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Zz(this,Jz(this,n=Yz(this,t,e)),n);break;default:Zz(this,this._t0,n=Yz(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(eG.prototype=Tf(tG.prototype)).point=function(t,e){tG.prototype.point.call(this,e,t)},nG.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},rG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=iG(t),i=iG(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},aG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=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}},oG.prototype={constructor:oG,scale:function(t){return 1===t?this:new oG(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new oG(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){var e,n;return t.copy().domain(lA(e=lA(n=t.range()).call(n,this.invertX,this)).call(e,t.invert,t))},rescaleY:function(t){var e,n;return t.copy().domain(lA(e=lA(n=t.range()).call(n,this.invertY,this)).call(e,t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new oG(1,0,0),oG.prototype;var sG=r((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},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function r(t,i,a){return r=n()?Reflect.construct:function(t,n,r){var i=[null];i.push.apply(i,n);var a=new(Function.bind.apply(t,i));return r&&e(a,r.prototype),a},r.apply(null,arguments)}function i(t){return a(t)||o(t)||s(t)||l()}function a(t){if(Array.isArray(t))return c(t)}function o(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function s(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=Object.hasOwnProperty,h=Object.setPrototypeOf,f=Object.isFrozen,d=Object.getPrototypeOf,A=Object.getOwnPropertyDescriptor,g=Object.freeze,p=Object.seal,m=Object.create,b="undefined"!=typeof Reflect&&Reflect,v=b.apply,y=b.construct;v||(v=function(t,e,n){return t.apply(e,n)}),g||(g=function(t){return t}),p||(p=function(t){return t}),y||(y=function(t,e){return r(t,i(e))});var w=M(Array.prototype.forEach),k=M(Array.prototype.pop),C=M(Array.prototype.push),x=M(String.prototype.toLowerCase),E=M(String.prototype.toString),T=M(String.prototype.match),B=M(String.prototype.replace),_=M(String.prototype.indexOf),S=M(String.prototype.trim),L=M(RegExp.prototype.test),I=O(TypeError);function M(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return v(t,e,r)}}function O(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return y(t,n)}}function D(t,e,n){n=n||x,h&&h(t,null);for(var r=e.length;r--;){var i=e[r];if("string"==typeof i){var a=n(i);a!==i&&(f(e)||(e[r]=a),i=a)}t[i]=!0}return t}function F(t){var e,n=m(null);for(e in t)!0===v(u,t,[e])&&(n[e]=t[e]);return n}function N(t,e){for(;null!==t;){var n=A(t,e);if(n){if(n.get)return M(n.get);if("function"==typeof n.value)return M(n.value)}t=d(t)}function r(t){return console.warn("fallback value for",t),null}return r}var P=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Q=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),U=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),H=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),j=g(["#text"]),K=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),X=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=p(/<%[\w\W]*|[\w\W]*%>/gm),q=p(/\${[\w\W]*}/gm),Y=p(/^data-[\-\w.\u00B7-\uFFFF]/),J=p(/^aria-[\-\w]+$/),Z=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tt=p(/^(?:\w+script|data):/i),et=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nt=p(/^html$/i),rt=function(){return"undefined"==typeof window?null:window},it=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rt(),n=function(t){return at(t)};if(n.version="2.4.3",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,a=e.document,o=e.DocumentFragment,s=e.HTMLTemplateElement,c=e.Node,l=e.Element,u=e.NodeFilter,h=e.NamedNodeMap,f=void 0===h?e.NamedNodeMap||e.MozNamedAttrMap:h,d=e.HTMLFormElement,A=e.DOMParser,p=e.trustedTypes,m=l.prototype,b=N(m,"cloneNode"),v=N(m,"nextSibling"),y=N(m,"childNodes"),M=N(m,"parentNode");if("function"==typeof s){var O=a.createElement("template");O.content&&O.content.ownerDocument&&(a=O.content.ownerDocument)}var ot=it(p,r),st=ot?ot.createHTML(""):"",ct=a,lt=ct.implementation,ut=ct.createNodeIterator,ht=ct.createDocumentFragment,ft=ct.getElementsByTagName,dt=r.importNode,At={};try{At=F(a).documentMode?a.documentMode:{}}catch(t){}var gt={};n.isSupported="function"==typeof M&&lt&&void 0!==lt.createHTMLDocument&&9!==At;var pt,mt,bt=V,vt=W,yt=q,wt=Y,kt=J,Ct=tt,xt=et,Et=Z,Tt=null,Bt=D({},[].concat(i(P),i(R),i(Q),i($),i(j))),_t=null,St=D({},[].concat(i(K),i(z),i(G),i(X))),Lt=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}})),It=null,Mt=null,Ot=!0,Dt=!0,Ft=!1,Nt=!1,Pt=!1,Rt=!1,Qt=!1,Ut=!1,$t=!1,Ht=!1,jt=!0,Kt=!1,zt="user-content-",Gt=!0,Xt=!1,Vt={},Wt=null,qt=D({},["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"]),Yt=null,Jt=D({},["audio","video","img","source","image","track"]),Zt=null,te=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml",ie=re,ae=!1,oe=null,se=D({},[ee,ne,re],E),ce=["application/xhtml+xml","text/html"],le="text/html",ue=null,he=a.createElement("form"),fe=function(t){return t instanceof RegExp||t instanceof Function},de=function(e){ue&&ue===e||(e&&"object"===t(e)||(e={}),e=F(e),pt=pt=-1===ce.indexOf(e.PARSER_MEDIA_TYPE)?le:e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===pt?E:x,Tt="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS,mt):Bt,_t="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR,mt):St,oe="ALLOWED_NAMESPACES"in e?D({},e.ALLOWED_NAMESPACES,E):se,Zt="ADD_URI_SAFE_ATTR"in e?D(F(te),e.ADD_URI_SAFE_ATTR,mt):te,Yt="ADD_DATA_URI_TAGS"in e?D(F(Jt),e.ADD_DATA_URI_TAGS,mt):Jt,Wt="FORBID_CONTENTS"in e?D({},e.FORBID_CONTENTS,mt):qt,It="FORBID_TAGS"in e?D({},e.FORBID_TAGS,mt):{},Mt="FORBID_ATTR"in e?D({},e.FORBID_ATTR,mt):{},Vt="USE_PROFILES"in e&&e.USE_PROFILES,Ot=!1!==e.ALLOW_ARIA_ATTR,Dt=!1!==e.ALLOW_DATA_ATTR,Ft=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=e.SAFE_FOR_TEMPLATES||!1,Pt=e.WHOLE_DOCUMENT||!1,Ut=e.RETURN_DOM||!1,$t=e.RETURN_DOM_FRAGMENT||!1,Ht=e.RETURN_TRUSTED_TYPE||!1,Qt=e.FORCE_BODY||!1,jt=!1!==e.SANITIZE_DOM,Kt=e.SANITIZE_NAMED_PROPS||!1,Gt=!1!==e.KEEP_CONTENT,Xt=e.IN_PLACE||!1,Et=e.ALLOWED_URI_REGEXP||Et,ie=e.NAMESPACE||re,e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Lt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Lt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Lt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nt&&(Dt=!1),$t&&(Ut=!0),Vt&&(Tt=D({},i(j)),_t=[],!0===Vt.html&&(D(Tt,P),D(_t,K)),!0===Vt.svg&&(D(Tt,R),D(_t,z),D(_t,X)),!0===Vt.svgFilters&&(D(Tt,Q),D(_t,z),D(_t,X)),!0===Vt.mathMl&&(D(Tt,$),D(_t,G),D(_t,X))),e.ADD_TAGS&&(Tt===Bt&&(Tt=F(Tt)),D(Tt,e.ADD_TAGS,mt)),e.ADD_ATTR&&(_t===St&&(_t=F(_t)),D(_t,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&D(Zt,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Wt===qt&&(Wt=F(Wt)),D(Wt,e.FORBID_CONTENTS,mt)),Gt&&(Tt["#text"]=!0),Pt&&D(Tt,["html","head","body"]),Tt.table&&(D(Tt,["tbody"]),delete It.tbody),g&&g(e),ue=e)},Ae=D({},["mi","mo","mn","ms","mtext"]),ge=D({},["foreignobject","desc","title","annotation-xml"]),pe=D({},["title","style","font","a","script"]),me=D({},R);D(me,Q),D(me,U);var be=D({},$);D(be,H);var ve=function(t){var e=M(t);e&&e.tagName||(e={namespaceURI:ie,tagName:"template"});var n=x(t.tagName),r=x(e.tagName);return!!oe[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===re?"svg"===n:e.namespaceURI===ee?"svg"===n&&("annotation-xml"===r||Ae[r]):Boolean(me[n]):t.namespaceURI===ee?e.namespaceURI===re?"math"===n:e.namespaceURI===ne?"math"===n&&ge[r]:Boolean(be[n]):t.namespaceURI===re?!(e.namespaceURI===ne&&!ge[r])&&!(e.namespaceURI===ee&&!Ae[r])&&!be[n]&&(pe[n]||!me[n]):!("application/xhtml+xml"!==pt||!oe[t.namespaceURI]))},ye=function(t){C(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=st}catch(e){t.remove()}}},we=function(t,e){try{C(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){C(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!_t[t])if(Ut||$t)try{ye(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ke=function(t){var e,n;if(Qt)t="<remove></remove>"+t;else{var r=T(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===pt&&ie===re&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var i=ot?ot.createHTML(t):t;if(ie===re)try{e=(new A).parseFromString(i,pt)}catch(t){}if(!e||!e.documentElement){e=lt.createDocument(ie,"template",null);try{e.documentElement.innerHTML=ae?st:i}catch(t){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),ie===re?ft.call(e,Pt?"html":"body")[0]:Pt?e.documentElement:o},Ce=function(t){return ut.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},xe=function(t){return t instanceof d&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof f)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ee=function(e){return"object"===t(c)?e instanceof c:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Te=function(t,e,r){gt[t]&&w(gt[t],(function(t){t.call(n,e,r,ue)}))},Be=function(t){var e;if(Te("beforeSanitizeElements",t,null),xe(t))return ye(t),!0;if(L(/[\u0080-\uFFFF]/,t.nodeName))return ye(t),!0;var r=mt(t.nodeName);if(Te("uponSanitizeElement",t,{tagName:r,allowedTags:Tt}),t.hasChildNodes()&&!Ee(t.firstElementChild)&&(!Ee(t.content)||!Ee(t.content.firstElementChild))&&L(/<[/\w]/g,t.innerHTML)&&L(/<[/\w]/g,t.textContent))return ye(t),!0;if("select"===r&&L(/<template/i,t.innerHTML))return ye(t),!0;if(!Tt[r]||It[r]){if(!It[r]&&Se(r)){if(Lt.tagNameCheck instanceof RegExp&&L(Lt.tagNameCheck,r))return!1;if(Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(r))return!1}if(Gt&&!Wt[r]){var i=M(t)||t.parentNode,a=y(t)||t.childNodes;if(a&&i)for(var o=a.length-1;o>=0;--o)i.insertBefore(b(a[o],!0),v(t))}return ye(t),!0}return t instanceof l&&!ve(t)?(ye(t),!0):"noscript"!==r&&"noembed"!==r||!L(/<\/no(script|embed)/i,t.innerHTML)?(Nt&&3===t.nodeType&&(e=t.textContent,e=B(e,bt," "),e=B(e,vt," "),e=B(e,yt," "),t.textContent!==e&&(C(n.removed,{element:t.cloneNode()}),t.textContent=e)),Te("afterSanitizeElements",t,null),!1):(ye(t),!0)},_e=function(t,e,n){if(jt&&("id"===e||"name"===e)&&(n in a||n in he))return!1;if(Dt&&!Mt[e]&&L(wt,e));else if(Ot&&L(kt,e));else if(!_t[e]||Mt[e]){if(!(Se(t)&&(Lt.tagNameCheck instanceof RegExp&&L(Lt.tagNameCheck,t)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(t))&&(Lt.attributeNameCheck instanceof RegExp&&L(Lt.attributeNameCheck,e)||Lt.attributeNameCheck instanceof Function&&Lt.attributeNameCheck(e))||"is"===e&&Lt.allowCustomizedBuiltInElements&&(Lt.tagNameCheck instanceof RegExp&&L(Lt.tagNameCheck,n)||Lt.tagNameCheck instanceof Function&&Lt.tagNameCheck(n))))return!1}else if(Zt[e]);else if(L(Et,B(n,xt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==_(n,"data:")||!Yt[t])if(Ft&&!L(Ct,B(n,xt,"")));else if(n)return!1;return!0},Se=function(t){return t.indexOf("-")>0},Le=function(e){var r,i,a,o;Te("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_t};for(o=s.length;o--;){var l=r=s[o],u=l.name,h=l.namespaceURI;if(i="value"===u?r.value:S(r.value),a=mt(u),c.attrName=a,c.attrValue=i,c.keepAttr=!0,c.forceKeepAttr=void 0,Te("uponSanitizeAttribute",e,c),i=c.attrValue,!c.forceKeepAttr&&(we(u,e),c.keepAttr))if(L(/\/>/i,i))we(u,e);else{Nt&&(i=B(i,bt," "),i=B(i,vt," "),i=B(i,yt," "));var f=mt(e.nodeName);if(_e(f,a,i)){if(!Kt||"id"!==a&&"name"!==a||(we(u,e),i=zt+i),ot&&"object"===t(p)&&"function"==typeof p.getAttributeType)if(h);else switch(p.getAttributeType(f,a)){case"TrustedHTML":i=ot.createHTML(i);break;case"TrustedScriptURL":i=ot.createScriptURL(i)}try{h?e.setAttributeNS(h,u,i):e.setAttribute(u,i),k(n.removed)}catch(t){}}}}Te("afterSanitizeAttributes",e,null)}},Ie=function t(e){var n,r=Ce(e);for(Te("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)Te("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof o&&t(n.content),Le(n));Te("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(i){var a,s,l,u,h,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ae=!i)&&(i="\x3c!--\x3e"),"string"!=typeof i&&!Ee(i)){if("function"!=typeof i.toString)throw I("toString is not a function");if("string"!=typeof(i=i.toString()))throw I("dirty is not a string, aborting")}if(!n.isSupported){if("object"===t(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof i)return e.toStaticHTML(i);if(Ee(i))return e.toStaticHTML(i.outerHTML)}return i}if(Rt||de(f),n.removed=[],"string"==typeof i&&(Xt=!1),Xt){if(i.nodeName){var d=mt(i.nodeName);if(!Tt[d]||It[d])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof c)1===(s=(a=ke("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s);else{if(!Ut&&!Nt&&!Pt&&-1===i.indexOf("<"))return ot&&Ht?ot.createHTML(i):i;if(!(a=ke(i)))return Ut?null:Ht?st:""}a&&Qt&&ye(a.firstChild);for(var A=Ce(Xt?i:a);l=A.nextNode();)3===l.nodeType&&l===u||Be(l)||(l.content instanceof o&&Ie(l.content),Le(l),u=l);if(u=null,Xt)return i;if(Ut){if($t)for(h=ht.call(a.ownerDocument);a.firstChild;)h.appendChild(a.firstChild);else h=a;return _t.shadowroot&&(h=dt.call(r,h,!0)),h}var g=Pt?a.outerHTML:a.innerHTML;return Pt&&Tt["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&L(nt,a.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+g),Nt&&(g=B(g,bt," "),g=B(g,vt," "),g=B(g,yt," ")),ot&&Ht?ot.createHTML(g):g},n.setConfig=function(t){de(t),Rt=!0},n.clearConfig=function(){ue=null,Rt=!1},n.isValidAttribute=function(t,e,n){ue||de({});var r=mt(t),i=mt(e);return _e(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(gt[t]=gt[t]||[],C(gt[t],e))},n.removeHook=function(t){if(gt[t])return k(gt[t])},n.removeHooks=function(t){gt[t]&&(gt[t]=[])},n.removeAllHooks=function(){gt={}},n}var ot=at();return ot}()}));const cG={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},r)=>{if(!e)return 2.55*n;t/=360,e/=100;const i=(n/=100)<.5?n*(1+e):n+e-n*e,a=2*n-i;switch(r){case"r":return 255*cG.hue2rgb(a,i,t+1/3);case"g":return 255*cG.hue2rgb(a,i,t);case"b":return 255*cG.hue2rgb(a,i,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},r)=>{t/=255,e/=255,n/=255;const i=Math.max(t,e,n),a=Math.min(t,e,n),o=(i+a)/2;if("l"===r)return 100*o;if(i===a)return 0;const s=i-a;if("s"===r)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return 60*((e-n)/s+(e<n?6:0));case e:return 60*((n-t)/s+2);case n:return 60*((t-e)/s+4);default:return-1}}};const lG={clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10};const uG={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}};var hG={channel:cG,lang:lG,unit:uG};const fG={};for(let t=0;t<=255;t++)fG[t]=hG.unit.dec2hex(t);const dG=0,AG=1,gG=2;var pG=class{constructor(){this.type=dG}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=dG}is(t){return this.type===t}};var mG=class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new pG}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=dG,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:r}=t;void 0===e&&(t.h=hG.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=hG.channel.rgb2hsl(t,"s")),void 0===r&&(t.l=hG.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:r}=t;void 0===e&&(t.r=hG.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=hG.channel.hsl2rgb(t,"g")),void 0===r&&(t.b=hG.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(gG)||void 0===e?(this._ensureHSL(),hG.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(gG)||void 0===e?(this._ensureHSL(),hG.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(gG)||void 0===e?(this._ensureHSL(),hG.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(AG)||void 0===e?(this._ensureRGB(),hG.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(AG)||void 0===e?(this._ensureRGB(),hG.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(AG)||void 0===e?(this._ensureRGB(),hG.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(AG),this.changed=!0,this.data.r=t}set g(t){this.type.set(AG),this.changed=!0,this.data.g=t}set b(t){this.type.set(AG),this.changed=!0,this.data.b=t}set h(t){this.type.set(gG),this.changed=!0,this.data.h=t}set s(t){this.type.set(gG),this.changed=!0,this.data.s=t}set l(t){this.type.set(gG),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}};var bG=new mG({r:0,g:0,b:0,a:0},"transparent");const vG={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(vG.re);if(!e)return;const n=e[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,c=o?8:4,l=a?0:-1,u=o?255:15;return bG.set({r:(r>>c*(l+3)&u)*s,g:(r>>c*(l+2)&u)*s,b:(r>>c*(l+1)&u)*s,a:a?(r&u)*s/255:1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`#${fG[Math.round(e)]}${fG[Math.round(n)]}${fG[Math.round(r)]}${fG[Math.round(255*i)]}`:`#${fG[Math.round(e)]}${fG[Math.round(n)]}${fG[Math.round(r)]}`}};var yG=vG;const wG={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(wG.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return hG.channel.clamp.h(.9*parseFloat(t));case"rad":return hG.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return hG.channel.clamp.h(360*parseFloat(t))}}return hG.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(wG.re);if(!n)return;const[,r,i,a,o,s]=n;return bG.set({h:wG._hue2deg(r),s:hG.channel.clamp.s(parseFloat(i)),l:hG.channel.clamp.l(parseFloat(a)),a:o?hG.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:n,l:r,a:i}=t;return i<1?`hsla(${hG.lang.round(e)}, ${hG.lang.round(n)}%, ${hG.lang.round(r)}%, ${i})`:`hsl(${hG.lang.round(e)}, ${hG.lang.round(n)}%, ${hG.lang.round(r)}%)`}};var kG=wG;const CG={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=CG.colors[t];if(e)return yG.parse(e)},stringify:t=>{const e=yG.stringify(t);for(const t in CG.colors)if(CG.colors[t]===e)return t}};var xG=CG;const EG={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(EG.re);if(!n)return;const[,r,i,a,o,s,c,l,u]=n;return bG.set({r:hG.channel.clamp.r(i?2.55*parseFloat(r):parseFloat(r)),g:hG.channel.clamp.g(o?2.55*parseFloat(a):parseFloat(a)),b:hG.channel.clamp.b(c?2.55*parseFloat(s):parseFloat(s)),a:l?hG.channel.clamp.a(u?parseFloat(l)/100:parseFloat(l)):1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`rgba(${hG.lang.round(e)}, ${hG.lang.round(n)}, ${hG.lang.round(r)}, ${hG.lang.round(i)})`:`rgb(${hG.lang.round(e)}, ${hG.lang.round(n)}, ${hG.lang.round(r)})`}};var TG=EG;const BG={format:{keyword:xG,hex:yG,rgb:TG,rgba:TG,hsl:kG,hsla:kG},parse:t=>{if("string"!=typeof t)return t;const e=yG.parse(t)||TG.parse(t)||kG.parse(t)||xG.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(gG)||void 0===t.data.r?kG.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?TG.stringify(t):yG.stringify(t)};var _G=BG;var SG=(t,e)=>{const n=_G.parse(t);for(const t in e)n[t]=hG.channel.clamp[t](e[t]);return _G.stringify(n)};var LG=(t,e,n=0,r=1)=>{if("number"!=typeof t)return SG(t,{a:e});const i=bG.set({r:hG.channel.clamp.r(t),g:hG.channel.clamp.g(e),b:hG.channel.clamp.b(n),a:hG.channel.clamp.a(r)});return _G.stringify(i)};var IG=t=>{const{r:e,g:n,b:r}=_G.parse(t),i=.2126*hG.channel.toLinear(e)+.7152*hG.channel.toLinear(n)+.0722*hG.channel.toLinear(r);return hG.lang.round(i)};var MG=t=>IG(t)>=.5;var OG=t=>!MG(t);var DG=(t,e,n)=>{const r=_G.parse(t),i=r[e],a=hG.channel.clamp[e](i+n);return i!==a&&(r[e]=a),_G.stringify(r)};var FG=(t,e)=>DG(t,"l",e);var NG=(t,e)=>DG(t,"l",-e);var PG=(t,e)=>{const n=_G.parse(t),r={};for(const t in e)e[t]&&(r[t]=n[t]+e[t]);return SG(t,r)};var RG=(t,e,n=50)=>{const{r:r,g:i,b:a,a:o}=_G.parse(t),{r:s,g:c,b:l,a:u}=_G.parse(e),h=n/100,f=2*h-1,d=o-u,A=((f*d==-1?f:(f+d)/(1+f*d))+1)/2,g=1-A;return LG(r*A+s*g,i*A+c*g,a*A+l*g,o*h+u*(1-h))};var QG=(t,e=100)=>{const n=_G.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,RG(n,t,e)},UG="object"==("undefined"==typeof global?"undefined":Ro(global))&&global&&global.Object===Object&&global,$G="object"==("undefined"==typeof self?"undefined":Ro(self))&&self&&self.Object===Object&&self,HG=UG||$G||Function("return this")(),jG=HG.Symbol,KG=Object.prototype,zG=KG.hasOwnProperty,GG=KG.toString,XG=jG?jG.toStringTag:void 0;var VG=Object.prototype.toString;var WG="[object Null]",qG="[object Undefined]",YG=jG?jG.toStringTag:void 0;function JG(t){return null==t?void 0===t?qG:WG:YG&&YG in Object(t)?function(t){var e=zG.call(t,XG),n=t[XG];try{t[XG]=void 0;var r=!0}catch(t){}var i=GG.call(t);return r&&(e?t[XG]=n:delete t[XG]),i}(t):function(t){return VG.call(t)}(t)}function ZG(t){var e=Ro(t);return null!=t&&("object"==e||"function"==e)}var tX="[object AsyncFunction]",eX="[object Function]",nX="[object GeneratorFunction]",rX="[object Proxy]";function iX(t){if(!ZG(t))return!1;var e=JG(t);return e==eX||e==nX||e==tX||e==rX}var aX=Ni("Array","keys"),oX=Array.prototype,sX={DOMTokenList:!0,NodeList:!0},cX=function(t){var e=t.keys;return t===oX||rt(oX,t)&&e===oX.keys||Bt(sX,Ue(t))?aX:e},lX=HG["__core-js_shared__"],uX=function(){var t=/[^.]+$/.exec(lX&&cX(lX)&&cX(lX).IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var hX=Function.prototype.toString;function fX(t){if(null!=t){try{return hX.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var dX=/^\[object .+?Constructor\]$/,AX=Function.prototype,gX=Object.prototype,pX=AX.toString,mX=gX.hasOwnProperty,bX=RegExp("^"+pX.call(mX).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vX(t){return!(!ZG(t)||(e=t,uX&&uX in e))&&(iX(t)?bX:dX).test(fX(t));var e}function yX(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return vX(n)?n:void 0}var wX=yX(Object,"create");var kX=Object.prototype.hasOwnProperty;var CX=Object.prototype.hasOwnProperty;function xX(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function EX(t,e){return t===e||t!=t&&e!=e}function TX(t,e){for(var n=t.length;n--;)if(EX(t[n][0],e))return n;return-1}xX.prototype.clear=function(){this.__data__=wX?wX(null):{},this.size=0},xX.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},xX.prototype.get=function(t){var e=this.__data__;if(wX){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return kX.call(e,t)?e[t]:void 0},xX.prototype.has=function(t){var e=this.__data__;return wX?void 0!==e[t]:CX.call(e,t)},xX.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wX&&void 0===e?"__lodash_hash_undefined__":e,this};var BX=Array.prototype,_X=eA(BX);function SX(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}SX.prototype.clear=function(){this.__data__=[],this.size=0},SX.prototype.delete=function(t){var e=this.__data__,n=TX(e,t);return!(n<0)&&(n==e.length-1?e.pop():_X.call(e,n,1),--this.size,!0)},SX.prototype.get=function(t){var e=this.__data__,n=TX(e,t);return n<0?void 0:e[n][1]},SX.prototype.has=function(t){return TX(this.__data__,t)>-1},SX.prototype.set=function(t,e){var n=this.__data__,r=TX(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var LX=yX(HG,"Map");function IX(t,e){var n=t.__data__;return function(t){var e=Ro(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:lA(n)}function MX(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}MX.prototype.clear=function(){this.size=0,this.__data__={hash:new xX,map:new(LX||SX),string:new xX}},MX.prototype.delete=function(t){var e=IX(this,t).delete(t);return this.size-=e?1:0,e},MX.prototype.get=function(t){return IX(this,t).get(t)},MX.prototype.has=function(t){return IX(this,t).has(t)},MX.prototype.set=function(t,e){var n=IX(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var OX="Expected a function";function DX(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(OX);var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(DX.Cache||MX),n}DX.Cache=MX;var FX="comm",NX="rule",PX="decl",RX=Math.abs,QX=String.fromCharCode;function UX(t){return t.trim()}function $X(t,e,n){return t.replace(e,n)}function HX(t,e,n){return t.indexOf(e,n)}function jX(t,e){return 0|t.charCodeAt(e)}function KX(t,e,n){return t.slice(e,n)}function zX(t){return t.length}function GX(t,e){return e.push(t),t}var XX=1,VX=1,WX=0,qX=0,YX=0,JX="";function ZX(t,e,n,r,i,a,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:XX,column:VX,length:o,return:"",siblings:s}}function tV(){return YX=qX>0?jX(JX,--qX):0,VX--,10===YX&&(VX=1,XX--),YX}function eV(){return YX=qX<WX?jX(JX,qX++):0,VX++,10===YX&&(VX=1,XX++),YX}function nV(){return jX(JX,qX)}function rV(){return qX}function iV(t,e){return KX(JX,t,e)}function aV(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oV(t){return UX(iV(qX-1,lV(91===t?t+2:40===t?t+1:t)))}function sV(t){for(;(YX=nV())&&YX<33;)eV();return aV(t)>2||aV(YX)>3?"":" "}function cV(t,e){for(;--e&&eV()&&!(YX<48||YX>102||YX>57&&YX<65||YX>70&&YX<97););return iV(t,rV()+(e<6&&32==nV()&&32==eV()))}function lV(t){for(;eV();)switch(YX){case t:return qX;case 34:case 39:34!==t&&39!==t&&lV(YX);break;case 40:41===t&&lV(t);break;case 92:eV()}return qX}function uV(t,e){for(;eV()&&t+YX!==57&&(t+YX!==84||47!==nV()););return"/*"+iV(e,qX-1)+"*"+QX(47===t?t:eV())}function hV(t){for(;!aV(nV());)eV();return iV(t,qX)}function fV(t){return function(t){return JX="",t}(dV("",null,null,null,[""],t=function(t){return XX=VX=1,WX=zX(JX=t),qX=0,[]}(t),0,[0],t))}function dV(t,e,n,r,i,a,o,s,c){for(var l=0,u=0,h=o,f=0,d=0,A=0,g=1,p=1,m=1,b=0,v="",y=i,w=a,k=r,C=v;p;)switch(A=b,b=eV()){case 40:if(108!=A&&58==jX(C,h-1)){-1!=HX(C+=$X(oV(b),"&","&\f"),"&\f",RX(l?s[l-1]:0))&&(m=-1);break}case 34:case 39:case 91:C+=oV(b);break;case 9:case 10:case 13:case 32:C+=sV(A);break;case 92:C+=cV(rV()-1,7);continue;case 47:switch(nV()){case 42:case 47:GX(gV(uV(eV(),rV()),e,n,c),c);break;default:C+="/"}break;case 123*g:s[l++]=zX(C)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:p=0;case 59+u:-1==m&&(C=$X(C,/\f/g,"")),d>0&&zX(C)-h&&GX(d>32?pV(C+";",r,n,h-1,c):pV($X(C," ","")+";",r,n,h-2,c),c);break;case 59:C+=";";default:if(GX(k=AV(C,e,n,l,u,i,s,v,y=[],w=[],h,a),a),123===b)if(0===u)dV(C,e,k,k,y,a,h,s,w);else switch(99===f&&110===jX(C,3)?100:f){case 100:case 108:case 109:case 115:dV(t,k,k,r&&GX(AV(t,k,k,0,0,i,s,v,i,y=[],h,w),w),i,w,h,s,r?y:w);break;default:dV(C,k,k,k,[""],w,0,s,w)}}l=u=d=0,g=m=1,v=C="",h=o;break;case 58:h=1+zX(C),d=A;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==tV())continue;switch(C+=QX(b),b*g){case 38:m=u>0?1:(C+="\f",-1);break;case 44:s[l++]=(zX(C)-1)*m,m=1;break;case 64:45===nV()&&(C+=oV(eV())),f=nV(),u=h=zX(v=C+=hV(rV())),b++;break;case 45:45===A&&2==zX(C)&&(g=0)}}return a}function AV(t,e,n,r,i,a,o,s,c,l,u,h){for(var f=i-1,d=0===i?a:[""],A=function(t){return t.length}(d),g=0,p=0,m=0;g<r;++g)for(var b=0,v=KX(t,f+1,f=RX(p=o[g])),y=t;b<A;++b)(y=UX(p>0?d[b]+" "+v:$X(v,/&\f/g,d[b])))&&(c[m++]=y);return ZX(t,e,n,0===i?NX:s,c,l,u,h)}function gV(t,e,n,r){return ZX(t,e,n,FX,QX(YX),KX(t,2,-2),0,r)}function pV(t,e,n,r,i){return ZX(t,e,n,PX,KX(t,0,r),KX(t,r+1,-1),r,i)}function mV(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function bV(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case PX:return t.return=t.return||t.value;case FX:return"";case"@keyframes":return t.return=t.value+"{"+mV(t.children,r)+"}";case NX:if(!zX(t.value=t.props.join(",")))return""}return zX(n=mV(t.children,r))?t.return=t.value+"{"+n+"}":""}function vV(t){return null!=t&&"object"==Ro(t)}var yV="[object Symbol]";function wV(t){return"symbol"==Ro(t)||vV(t)&&JG(t)==yV}function kV(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var CV=sd,xV=1/0,EV=jG?jG.prototype:void 0,TV=EV?EV.toString:void 0;function BV(t){if("string"==typeof t)return t;if(CV(t))return kV(t,BV)+"";if(wV(t))return TV?TV.call(t):"";var e=t+"";return"0"==e&&1/t==-xV?"-0":e}var _V=/\s/;var SV=/^\s+/;function LV(t){return t?Bf(t).call(t,0,function(t){for(var e=t.length;e--&&_V.test(t.charAt(e)););return e}(t)+1).replace(SV,""):t}var IV=NaN,MV=/^[-+]0x[0-9a-f]+$/i,OV=/^0b[01]+$/i,DV=/^0o[0-7]+$/i,FV=Ff;var NV=1/0,PV=17976931348623157e292;function RV(t){return t?(t=function(t){if("number"==typeof t)return t;if(wV(t))return IV;if(ZG(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ZG(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=LV(t);var n=OV.test(t);return n||DV.test(t)?FV(Bf(t).call(t,2),n?2:8):MV.test(t)?IV:+t}(t),t===NV||t===-NV?(t<0?-1:1)*PV:t==t?t:0):0===t?t:0}function QV(t){return t}var UV=yX(HG,"WeakMap"),$V=Tf,HV=function(){function t(){}return function(e){if(!ZG(e))return{};if($V)return $V(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),jV=HV;function KV(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var zV=Date,GV=w(zV.prototype.getTime);Dn({target:"Date",stat:!0},{now:function(){return GV(new zV)}});var XV=H.Date.now,VV=XV;function WV(t){return function(){return t}}var qV,YV,JV,ZV=function(){try{var t=yX(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),tW=ZV,eW=tW?function(t,e){return tW(t,"toString",{configurable:!0,enumerable:!1,value:WV(e),writable:!0})}:QV,nW=(qV=eW,YV=0,JV=0,function(){var t=VV(),e=16-(t-JV);if(JV=t,e>0){if(++YV>=800)return arguments[0]}else YV=0;return qV.apply(void 0,arguments)}),rW=nW;function iW(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function aW(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return-1}function oW(t){return t!=t}function sW(t,e){return!!(null==t?0:t.length)&&function(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):aW(t,oW,n)}(t,e,0)>-1}var cW=9007199254740991,lW=/^(?:0|[1-9]\d*)$/;function uW(t,e){var n=Ro(t);return!!(e=null==e?cW:e)&&("number"==n||"symbol"!=n&&lW.test(t))&&t>-1&&t%1==0&&t<e}function hW(t,e,n){"__proto__"==e&&tW?tW(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var fW=Object.prototype.hasOwnProperty;function dW(t,e,n){var r=t[e];fW.call(t,e)&&EX(r,n)&&(void 0!==n||e in t)||hW(t,e,n)}function AW(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var s=e[a],c=r?r(n[s],t[s],s,n,t):void 0;void 0===c&&(c=t[s]),i?hW(n,s,c):dW(n,s,c)}return n}var gW=Math.max;function pW(t,e,n){return e=gW(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=gW(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(o),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,s)}}function mW(t,e){return rW(pW(t,e,QV),t+"")}var bW=9007199254740991;function vW(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=bW}function yW(t){return null!=t&&vW(t.length)&&!iX(t)}function wW(t,e,n){if(!ZG(n))return!1;var r=Ro(e);return!!("number"==r?yW(n)&&uW(e,n.length):"string"==r&&e in n)&&EX(n[e],t)}var kW=Object.prototype;function CW(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||kW)}function xW(t){return vV(t)&&"[object Arguments]"==JG(t)}var EW=Object.prototype,TW=EW.hasOwnProperty,BW=EW.propertyIsEnumerable,_W=xW(function(){return arguments}())?xW:function(t){return vV(t)&&TW.call(t,"callee")&&!BW.call(t,"callee")},SW=_W;var LW="object"==(void 0===t?"undefined":Ro(t))&&t&&!t.nodeType&&t,IW=LW&&"object"==("undefined"==typeof module?"undefined":Ro(module))&&module&&!module.nodeType&&module,MW=IW&&IW.exports===LW?HG.Buffer:void 0,OW=(MW?MW.isBuffer:void 0)||function(){return!1},DW={};function FW(t){return function(e){return t(e)}}DW["[object Float32Array]"]=DW["[object Float64Array]"]=DW["[object Int8Array]"]=DW["[object Int16Array]"]=DW["[object Int32Array]"]=DW["[object Uint8Array]"]=DW["[object Uint8ClampedArray]"]=DW["[object Uint16Array]"]=DW["[object Uint32Array]"]=!0,DW["[object Arguments]"]=DW["[object Array]"]=DW["[object ArrayBuffer]"]=DW["[object Boolean]"]=DW["[object DataView]"]=DW["[object Date]"]=DW["[object Error]"]=DW["[object Function]"]=DW["[object Map]"]=DW["[object Number]"]=DW["[object Object]"]=DW["[object RegExp]"]=DW["[object Set]"]=DW["[object String]"]=DW["[object WeakMap]"]=!1;var NW="object"==(void 0===t?"undefined":Ro(t))&&t&&!t.nodeType&&t,PW=NW&&"object"==("undefined"==typeof module?"undefined":Ro(module))&&module&&!module.nodeType&&module,RW=PW&&PW.exports===NW&&UG.process,QW=function(){try{var t=PW&&PW.require&&PW.require("util").types;return t||RW&&RW.binding&&RW.binding("util")}catch(t){}}(),UW=QW&&QW.isTypedArray,$W=UW?FW(UW):function(t){return vV(t)&&vW(t.length)&&!!DW[JG(t)]},HW=Object.prototype.hasOwnProperty;function jW(t,e){var n=CV(t),r=!n&&SW(t),i=!n&&!r&&OW(t),a=!n&&!r&&!i&&$W(t),o=n||r||i||a,s=o?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=s.length;for(var l in t)!e&&!HW.call(t,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||uW(l,c))||s.push(l);return s}function KW(t,e){return function(n){return t(e(n))}}var zW=KW(Is,Object),GW=Object.prototype.hasOwnProperty;function XW(t){if(!CW(t))return zW(t);var e=[];for(var n in Object(t))GW.call(t,n)&&"constructor"!=n&&e.push(n);return e}function VW(t){return yW(t)?jW(t):XW(t)}var WW=Object.prototype.hasOwnProperty;function qW(t){if(!ZG(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=CW(t),n=[];for(var r in t)("constructor"!=r||!e&&WW.call(t,r))&&n.push(r);return n}function YW(t){return yW(t)?jW(t,!0):qW(t)}var JW=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ZW=/^\w*$/;function tq(t,e){if(CV(t))return!1;var n=Ro(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!wV(t))||(ZW.test(t)||!JW.test(t)||null!=e&&t in Object(e))}var eq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nq=/\\(\\)?/g,rq=function(t){var e=DX(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(eq,(function(t,n,r,i){e.push(r?i.replace(nq,"$1"):n||t)})),e})),iq=rq;function aq(t){return null==t?"":BV(t)}function oq(t,e){return CV(t)?t:tq(t,e)?[t]:iq(aq(t))}var sq=1/0;function cq(t){if("string"==typeof t||wV(t))return t;var e=t+"";return"0"==e&&1/t==-sq?"-0":e}function lq(t,e){for(var n=0,r=(e=oq(e,t)).length;null!=t&&n<r;)t=t[cq(e[n++])];return n&&n==r?t:void 0}function uq(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var hq=jG?jG.isConcatSpreadable:void 0;function fq(t){return CV(t)||SW(t)||!!(hq&&t&&t[hq])}function dq(t,e,n,r,i){var a=-1,o=t.length;for(n||(n=fq),i||(i=[]);++a<o;){var s=t[a];e>0&&n(s)?e>1?dq(s,e-1,n,r,i):uq(i,s):r||(i[i.length]=s)}return i}function Aq(t){return(null==t?0:t.length)?dq(t,1):[]}var gq=KW(Jo,Object),pq="[object Object]",mq=Function.prototype,bq=Object.prototype,vq=mq.toString,yq=bq.hasOwnProperty,wq=vq.call(Object);function kq(t){if(!vV(t)||JG(t)!=pq)return!1;var e=gq(t);if(null===e)return!0;var n=yq.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&vq.call(n)==wq}function Cq(t,e,n,r){var i=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}function xq(t){var e=this.__data__=new SX(t);this.size=e.size}xq.prototype.clear=function(){this.__data__=new SX,this.size=0},xq.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},xq.prototype.get=function(t){return this.__data__.get(t)},xq.prototype.has=function(t){return this.__data__.has(t)},xq.prototype.set=function(t,e){var n=this.__data__;if(n instanceof SX){var r=n.__data__;if(!LX||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new MX(r)}return n.set(t,e),this.size=n.size,this};var Eq="object"==(void 0===t?"undefined":Ro(t))&&t&&!t.nodeType&&t,Tq=Eq&&"object"==("undefined"==typeof module?"undefined":Ro(module))&&module&&!module.nodeType&&module,Bq=Tq&&Tq.exports===Eq?HG.Buffer:void 0,_q=Bq?Bq.allocUnsafe:void 0;function Sq(t,e){if(e)return Bf(t).call(t);var n=t.length,r=_q?_q(n):new t.constructor(n);return t.copy(r),r}function Lq(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}function Iq(){return[]}var Mq=Object.prototype.propertyIsEnumerable,Oq=Ii,Dq=Oq?function(t){return null==t?[]:(t=Object(t),Lq(Oq(t),(function(e){return Mq.call(t,e)})))}:Iq,Fq=Dq;var Nq=Ii?function(t){for(var e=[];t;)uq(e,Fq(t)),t=gq(t);return e}:Iq,Pq=Nq;function Rq(t,e,n){var r=e(t);return CV(t)?r:uq(r,n(t))}function Qq(t){return Rq(t,VW,Fq)}function Uq(t){return Rq(t,YW,Pq)}var $q=yX(HG,"DataView"),Hq=yX(HG,"Promise"),jq=yX(HG,"Set"),Kq="[object Map]",zq="[object Promise]",Gq="[object Set]",Xq="[object WeakMap]",Vq="[object DataView]",Wq=fX($q),qq=fX(LX),Yq=fX(Hq),Jq=fX(jq),Zq=fX(UV),tY=JG;($q&&tY(new $q(new ArrayBuffer(1)))!=Vq||LX&&tY(new LX)!=Kq||Hq&&tY(Hq.resolve())!=zq||jq&&tY(new jq)!=Gq||UV&&tY(new UV)!=Xq)&&(tY=function(t){var e=JG(t),n="[object Object]"==e?t.constructor:void 0,r=n?fX(n):"";if(r)switch(r){case Wq:return Vq;case qq:return Kq;case Yq:return zq;case Jq:return Gq;case Zq:return Xq}return e});var eY=tY,nY=Object.prototype.hasOwnProperty;var rY=HG.Uint8Array;function iY(t){var e=new t.constructor(t.byteLength);return new rY(e).set(new rY(t)),e}var aY=/\w*$/;var oY=jG?jG.prototype:void 0,sY=oY?oY.valueOf:void 0;function cY(t,e){var n=e?iY(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var lY="[object Boolean]",uY="[object Date]",hY="[object Map]",fY="[object Number]",dY="[object RegExp]",AY="[object Set]",gY="[object String]",pY="[object Symbol]",mY="[object ArrayBuffer]",bY="[object DataView]",vY="[object Float32Array]",yY="[object Float64Array]",wY="[object Int8Array]",kY="[object Int16Array]",CY="[object Int32Array]",xY="[object Uint8Array]",EY="[object Uint8ClampedArray]",TY="[object Uint16Array]",BY="[object Uint32Array]";function _Y(t,e,n){var r,i,a=t.constructor;switch(e){case mY:return iY(t);case lY:case uY:return new a(+t);case bY:return function(t,e){var n=e?iY(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case vY:case yY:case wY:case kY:case CY:case xY:case EY:case TY:case BY:return cY(t,n);case hY:return new a;case fY:case gY:return new a(t);case dY:return(i=new(r=t).constructor(r.source,aY.exec(r))).lastIndex=r.lastIndex,i;case AY:return new a;case pY:return function(t){return sY?Object(sY.call(t)):{}}(t)}}function SY(t){return"function"!=typeof t.constructor||CW(t)?{}:jV(gq(t))}var LY=QW&&QW.isMap,IY=LY?FW(LY):function(t){return vV(t)&&"[object Map]"==eY(t)};var MY=QW&&QW.isSet,OY=MY?FW(MY):function(t){return vV(t)&&"[object Set]"==eY(t)},DY=1,FY=2,NY=4,PY="[object Arguments]",RY="[object Function]",QY="[object GeneratorFunction]",UY="[object Object]",$Y={};function HY(t,e,n,r,i,a){var o,s=e&DY,c=e&FY,l=e&NY;if(n&&(o=i?n(t,r,i,a):n(t)),void 0!==o)return o;if(!ZG(t))return t;var u=CV(t);if(u){if(o=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&nY.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return KV(t,o)}else{var h=eY(t),f=h==RY||h==QY;if(OW(t))return Sq(t,s);if(h==UY||h==PY||f&&!i){if(o=c||f?{}:SY(t),!s)return c?function(t,e){return AW(t,Pq(t),e)}(t,function(t,e){return t&&AW(e,YW(e),t)}(o,t)):function(t,e){return AW(t,Fq(t),e)}(t,function(t,e){return t&&AW(e,VW(e),t)}(o,t))}else{if(!$Y[h])return i?t:{};o=_Y(t,h,s)}}a||(a=new xq);var d=a.get(t);if(d)return d;a.set(t,o),OY(t)?Qs(t).call(t,(function(r){o.add(HY(r,e,n,r,t,a))})):IY(t)&&Qs(t).call(t,(function(r,i){o.set(i,HY(r,e,n,i,t,a))}));var A=u?void 0:(l?c?Uq:Qq:c?YW:VW)(t);return iW(A||t,(function(r,i){A&&(r=t[i=r]),dW(o,i,HY(r,e,n,i,t,a))})),o}$Y[PY]=$Y["[object Array]"]=$Y["[object ArrayBuffer]"]=$Y["[object DataView]"]=$Y["[object Boolean]"]=$Y["[object Date]"]=$Y["[object Float32Array]"]=$Y["[object Float64Array]"]=$Y["[object Int8Array]"]=$Y["[object Int16Array]"]=$Y["[object Int32Array]"]=$Y["[object Map]"]=$Y["[object Number]"]=$Y[UY]=$Y["[object RegExp]"]=$Y["[object Set]"]=$Y["[object String]"]=$Y["[object Symbol]"]=$Y["[object Uint8Array]"]=$Y["[object Uint8ClampedArray]"]=$Y["[object Uint16Array]"]=$Y["[object Uint32Array]"]=!0,$Y["[object Error]"]=$Y[RY]=$Y["[object WeakMap]"]=!1;var jY=4;var KY=1,zY=4;function GY(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new MX;++e<n;)this.add(t[e])}function XY(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function VY(t,e){return t.has(e)}GY.prototype.add=GY.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},GY.prototype.has=function(t){return this.__data__.has(t)};var WY=1,qY=2;function YY(t,e,n,r,i,a){var o=n&WY,s=t.length,c=e.length;if(s!=c&&!(o&&c>s))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&qY?new GY:void 0;for(a.set(t,e),a.set(e,t);++h<s;){var A=t[h],g=e[h];if(r)var p=o?r(g,A,h,e,t,a):r(A,g,h,t,e,a);if(void 0!==p){if(p)continue;f=!1;break}if(d){if(!XY(e,(function(t,e){if(!VY(d,e)&&(A===t||i(A,t,n,r,a)))return d.push(e)}))){f=!1;break}}else if(A!==g&&!i(A,g,n,r,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function JY(t){var e=-1,n=Array(t.size);return Qs(t).call(t,(function(t,r){n[++e]=[r,t]})),n}function ZY(t){var e=-1,n=Array(t.size);return Qs(t).call(t,(function(t){n[++e]=t})),n}var tJ=1,eJ=2,nJ="[object Boolean]",rJ="[object Date]",iJ="[object Error]",aJ="[object Map]",oJ="[object Number]",sJ="[object RegExp]",cJ="[object Set]",lJ="[object String]",uJ="[object Symbol]",hJ="[object ArrayBuffer]",fJ="[object DataView]",dJ=jG?jG.prototype:void 0,AJ=dJ?dJ.valueOf:void 0;var gJ=1,pJ=Object.prototype.hasOwnProperty;var mJ=1,bJ="[object Arguments]",vJ="[object Array]",yJ="[object Object]",wJ=Object.prototype.hasOwnProperty;function kJ(t,e,n,r,i,a){var o=CV(t),s=CV(e),c=o?vJ:eY(t),l=s?vJ:eY(e),u=(c=c==bJ?yJ:c)==yJ,h=(l=l==bJ?yJ:l)==yJ,f=c==l;if(f&&OW(t)){if(!OW(e))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new xq),o||$W(t)?YY(t,e,n,r,i,a):function(t,e,n,r,i,a,o){switch(n){case fJ:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case hJ:return!(t.byteLength!=e.byteLength||!a(new rY(t),new rY(e)));case nJ:case rJ:case oJ:return EX(+t,+e);case iJ:return t.name==e.name&&t.message==e.message;case sJ:case lJ:return t==e+"";case aJ:var s=JY;case cJ:var c=r&tJ;if(s||(s=ZY),t.size!=e.size&&!c)return!1;var l=o.get(t);if(l)return l==e;r|=eJ,o.set(t,e);var u=YY(s(t),s(e),r,i,a,o);return o.delete(t),u;case uJ:if(AJ)return AJ.call(t)==AJ.call(e)}return!1}(t,e,c,n,r,i,a);if(!(n&mJ)){var d=u&&wJ.call(t,"__wrapped__"),A=h&&wJ.call(e,"__wrapped__");if(d||A){var g=d?t.value():t,p=A?e.value():e;return a||(a=new xq),i(g,p,n,r,a)}}return!!f&&(a||(a=new xq),function(t,e,n,r,i,a){var o=n&gJ,s=Qq(t),c=s.length;if(c!=Qq(e).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in e:pJ.call(e,u)))return!1}var h=a.get(t),f=a.get(e);if(h&&f)return h==e&&f==t;var d=!0;a.set(t,e),a.set(e,t);for(var A=o;++l<c;){var g=t[u=s[l]],p=e[u];if(r)var m=o?r(p,g,u,e,t,a):r(g,p,u,t,e,a);if(!(void 0===m?g===p||i(g,p,n,r,a):m)){d=!1;break}A||(A="constructor"==u)}if(d&&!A){var b=t.constructor,v=e.constructor;b==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(d=!1)}return a.delete(t),a.delete(e),d}(t,e,n,r,i,a))}function CJ(t,e,n,r,i){return t===e||(null==t||null==e||!vV(t)&&!vV(e)?t!=t&&e!=e:kJ(t,e,n,r,CJ,i))}var xJ=1,EJ=2;function TJ(t){return t==t&&!ZG(t)}function BJ(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function _J(t){var e=function(t){for(var e=VW(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,TJ(i)]}return e}(t);return 1==e.length&&e[0][2]?BJ(e[0][0],e[0][1]):function(n){return n===t||function(t,e,n,r){var i=n.length,a=i,o=!r;if(null==t)return!a;for(t=Object(t);i--;){var s=n[i];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<a;){var c=(s=n[i])[0],l=t[c],u=s[1];if(o&&s[2]){if(void 0===l&&!(c in t))return!1}else{var h=new xq;if(r)var f=r(l,u,c,t,e,h);if(!(void 0===f?CJ(u,l,xJ|EJ,r,h):f))return!1}}return!0}(n,t,e)}}function SJ(t,e){return null!=t&&e in Object(t)}function LJ(t,e,n){for(var r=-1,i=(e=oq(e,t)).length,a=!1;++r<i;){var o=cq(e[r]);if(!(a=null!=t&&n(t,o)))break;t=t[o]}return a||++r!=i?a:!!(i=null==t?0:t.length)&&vW(i)&&uW(o,i)&&(CV(t)||SW(t))}function IJ(t,e){return null!=t&&LJ(t,e,SJ)}var MJ=1,OJ=2;function DJ(t,e){return tq(t)&&TJ(e)?BJ(cq(t),e):function(n){var r=function(t,e,n){var r=null==t?void 0:lq(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?IJ(n,t):CJ(e,r,MJ|OJ)}}function FJ(t){return tq(t)?function(t){return function(e){return null==e?void 0:e[t]}}(cq(t)):function(t){return function(e){return lq(e,t)}}(t)}function NJ(t){return"function"==typeof t?t:null==t?QV:"object"==Ro(t)?CV(t)?DJ(t[0],t[1]):_J(t):FJ(t)}var PJ,RJ=function(t,e,n){for(var r=-1,i=Object(t),a=n(t),o=a.length;o--;){var s=a[PJ?o:++r];if(!1===e(i[s],s,i))break}return t},QJ=RJ;function UJ(t,e){return t&&QJ(t,e,VW)}var $J=function(t,e){return function(n,r){if(null==n)return n;if(!yW(n))return t(n,r);for(var i=n.length,a=e?i:-1,o=Object(n);(e?a--:++a<i)&&!1!==r(o[a],a,o););return n}}(UJ),HJ=$J,jJ=function(){return HG.Date.now()},KJ=Object.prototype,zJ=KJ.hasOwnProperty,GJ=mW((function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&wW(e[0],e[1],i)&&(r=1);++n<r;)for(var a=e[n],o=YW(a),s=-1,c=o.length;++s<c;){var l=o[s],u=t[l];(void 0===u||EX(u,KJ[l])&&!zJ.call(t,l))&&(t[l]=a[l])}return t})),XJ=GJ;function VJ(t,e,n){(void 0!==n&&!EX(t[e],n)||void 0===n&&!(e in t))&&hW(t,e,n)}function WJ(t){return vV(t)&&yW(t)}function qJ(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function YJ(t,e,n,r,i,a,o){var s=qJ(t,n),c=qJ(e,n),l=o.get(c);if(l)VJ(t,n,l);else{var u,h=a?a(s,c,n+"",t,e,o):void 0,f=void 0===h;if(f){var d=CV(c),A=!d&&OW(c),g=!d&&!A&&$W(c);h=c,d||A||g?CV(s)?h=s:WJ(s)?h=KV(s):A?(f=!1,h=Sq(c,!0)):g?(f=!1,h=cY(c,!0)):h=[]:kq(c)||SW(c)?(h=s,SW(s)?h=AW(u=s,YW(u)):ZG(s)&&!iX(s)||(h=SY(c))):f=!1}f&&(o.set(c,h),i(h,c,r,a,o),o.delete(c)),VJ(t,n,h)}}function JJ(t,e,n,r,i){t!==e&&QJ(e,(function(a,o){if(i||(i=new xq),ZG(a))YJ(t,e,o,n,JJ,r,i);else{var s=r?r(qJ(t,o),a,o+"",t,e,i):void 0;void 0===s&&(s=a),VJ(t,o,s)}}),YW)}function ZJ(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function tZ(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}function eZ(t){return"function"==typeof t?t:QV}function nZ(t,e){return(CV(t)?iW:HJ)(t,eZ(e))}function rZ(t,e){var n=[];return HJ(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function iZ(t,e){return(CV(t)?Lq:rZ)(t,NJ(e))}var aZ=Math.max;var oZ,sZ=(oZ=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i,a,o=null==n?0:(i=RV(n),a=i%1,i==i?a?i-a:i:0);return o<0&&(o=aZ(r+o,0)),aW(t,NJ(e),o)},function(t,e,n){var r=Object(t);if(!yW(t)){var i=NJ(e);t=VW(t),e=function(t){return i(r[t],t,r)}}var a=oZ(t,e,n);return a>-1?r[i?t[a]:a]:void 0}),cZ=sZ;function lZ(t,e){var n=-1,r=yW(t)?Array(t.length):[];return HJ(t,(function(t,i,a){r[++n]=e(t,i,a)})),r}function uZ(t,e){return(CV(t)?kV:lZ)(t,NJ(e))}function hZ(t,e){return t>e}var fZ=Object.prototype.hasOwnProperty;function dZ(t,e){return null!=t&&fZ.call(t,e)}function AZ(t,e){return null!=t&&LJ(t,e,dZ)}function gZ(t){return null==t?[]:function(t,e){return kV(e,(function(e){return t[e]}))}(t,VW(t))}var pZ="[object Map]",mZ="[object Set]",bZ=Object.prototype.hasOwnProperty;function vZ(t){if(null==t)return!0;if(yW(t)&&(CV(t)||"string"==typeof t||"function"==typeof eA(t)||OW(t)||$W(t)||SW(t)))return!t.length;var e=eY(t);if(e==pZ||e==mZ)return!t.size;if(CW(t))return!XW(t).length;for(var n in t)if(bZ.call(t,n))return!1;return!0}function yZ(t){return void 0===t}function wZ(t,e){return t<e}function kZ(t,e){var n={};return e=NJ(e),UJ(t,(function(t,r,i){hW(n,r,e(t,r,i))})),n}function CZ(t,e,n){for(var r=-1,i=t.length;++r<i;){var a=t[r],o=e(a);if(null!=o&&(void 0===s?o==o&&!wV(o):n(o,s)))var s=o,c=a}return c}function xZ(t){return t&&t.length?CZ(t,QV,hZ):void 0}var EZ,TZ=(EZ=function(t,e,n){JJ(t,e,n)},mW((function(t,e){var n=-1,r=e.length,i=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(i=EZ.length>3&&"function"==typeof i?(r--,i):void 0,a&&wW(e[0],e[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var o=e[n];o&&EZ(t,o,n,i)}return t}))),BZ=TZ;function _Z(t){return t&&t.length?CZ(t,QV,wZ):void 0}function SZ(t,e){return t&&t.length?CZ(t,NJ(e),wZ):void 0}function LZ(t,e,n,r){if(!ZG(t))return t;for(var i=-1,a=(e=oq(e,t)).length,o=a-1,s=t;null!=s&&++i<a;){var c=cq(e[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=o){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=ZG(u)?u:uW(e[i+1])?[]:{})}dW(s,c,l),s=s[c]}return t}function IZ(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,a=wV(t),o=void 0!==e,s=null===e,c=e==e,l=wV(e);if(!s&&!l&&!a&&t>e||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&t<e||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}function MZ(t,e,n){e=e.length?kV(e,(function(t){return CV(t)?function(e){return lq(e,1===t.length?t[0]:t)}:t})):[QV];var r=-1;return e=kV(e,FW(NJ)),function(t,e){var n=t.length;for(RN(t).call(t,e);n--;)t[n]=t[n].value;return t}(lZ(t,(function(t,n,i){return{criteria:kV(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,a=e.criteria,o=i.length,s=n.length;++r<o;){var c=IZ(i[r],a[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function OZ(t,e){return function(t,e,n){for(var r=-1,i=e.length,a={};++r<i;){var o=e[r],s=lq(t,o);n(s,o)&&LZ(a,oq(o,t),s)}return a}(t,e,(function(e,n){return IJ(t,n)}))}var DZ=function(t){return rW(pW(t,void 0,Aq),t+"")}((function(t,e){return null==t?{}:OZ(t,e)})),FZ=DZ,NZ=Math.ceil,PZ=Math.max;var RZ=function(t){return function(e,n,r){return r&&"number"!=typeof r&&wW(e,n,r)&&(n=r=void 0),e=RV(e),void 0===n?(n=e,e=0):n=RV(n),function(t,e,n,r){for(var i=-1,a=PZ(NZ((e-t)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=t,t+=n;return o}(e,n,r=void 0===r?e<n?1:-1:RV(r),t)}}(),QZ=RZ;function UZ(t,e,n,r,i){return i(t,(function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)})),n}function $Z(t,e,n){var r=CV(t)?Cq:UZ,i=arguments.length<3;return r(t,NJ(e),n,i,HJ)}var HZ=mW((function(t,e){if(null==t)return[];var n=e.length;return n>1&&wW(t,e[0],e[1])?e=[]:n>2&&wW(e[0],e[1],e[2])&&(e=[e[0]]),MZ(t,dq(e,1),[])})),jZ=HZ,KZ=jq&&1/ZY(new jq([,-0]))[1]==1/0?function(t){return new jq(t)}:function(){},zZ=KZ;var GZ=mW((function(t){return function(t,e,n){var r=-1,i=sW,a=t.length,o=!0,s=[],c=s;if(n)o=!1,i=ZJ;else if(a>=200){var l=e?null:zZ(t);if(l)return ZY(l);o=!1,i=VY,c=new GY}else c=e?[]:s;t:for(;++r<a;){var u=t[r],h=e?e(u):u;if(u=n||0!==u?u:0,o&&h==h){for(var f=c.length;f--;)if(c[f]===h)continue t;e&&c.push(h),s.push(u)}else i(c,h,n)||(c!==s&&c.push(h),s.push(u))}return s}(dq(t,1,WJ,!0))})),XZ=GZ,VZ=0;function WZ(t){var e=++VZ;return aq(t)+e}var qZ=X$,YZ="\0",JZ="\0",ZZ="",t1=function(){return Ho((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ra(this,t),this._isDirected=!AZ(e,"directed")||e.directed,this._isMultigraph=!!AZ(e,"multigraph")&&e.multigraph,this._isCompound=!!AZ(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=WV(void 0),this._defaultEdgeLabelFn=WV(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[JZ]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}),[{key:"isDirected",value:function(){return this._isDirected}},{key:"isMultigraph",value:function(){return this._isMultigraph}},{key:"isCompound",value:function(){return this._isCompound}},{key:"setGraph",value:function(t){return this._label=t,this}},{key:"graph",value:function(){return this._label}},{key:"setDefaultNodeLabel",value:function(t){return iX(t)||(t=WV(t)),this._defaultNodeLabelFn=t,this}},{key:"nodeCount",value:function(){return this._nodeCount}},{key:"nodes",value:function(){return VW(this._nodes)}},{key:"sources",value:function(){var t=this;return iZ(this.nodes(),(function(e){return vZ(t._in[e])}))}},{key:"sinks",value:function(){var t=this;return iZ(this.nodes(),(function(e){return vZ(t._out[e])}))}},{key:"setNodes",value:function(t,e){var n=arguments,r=this;return nZ(t,(function(t){n.length>1?r.setNode(t,e):r.setNode(t)})),this}},{key:"setNode",value:function(t,e){return AZ(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]=JZ,this._children[t]={},this._children[JZ][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}},{key:"node",value:function(t){return this._nodes[t]}},{key:"hasNode",value:function(t){return AZ(this._nodes,t)}},{key:"removeNode",value:function(t){var e=this;if(AZ(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],nZ(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),nZ(VW(this._in[t]),n),delete this._in[t],delete this._preds[t],nZ(VW(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}},{key:"setParent",value:function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(yZ(e))e=JZ;else{for(var n=e+="";!yZ(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}},{key:"_removeFromParentsChildList",value:function(t){delete this._children[this._parent[t]][t]}},{key:"parent",value:function(t){if(this._isCompound){var e=this._parent[t];if(e!==JZ)return e}}},{key:"children",value:function(t){if(yZ(t)&&(t=JZ),this._isCompound){var e=this._children[t];if(e)return VW(e)}else{if(t===JZ)return this.nodes();if(this.hasNode(t))return[]}}},{key:"predecessors",value:function(t){var e=this._preds[t];if(e)return VW(e)}},{key:"successors",value:function(t){var e=this._sucs[t];if(e)return VW(e)}},{key:"neighbors",value:function(t){var e=this.predecessors(t);if(e)return XZ(e,this.successors(t))}},{key:"isLeaf",value:function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}},{key:"filterNodes",value:function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;nZ(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),nZ(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var r={};function i(t){var a=n.parent(t);return void 0===a||e.hasNode(a)?(r[t]=a,a):a in r?r[a]:i(a)}return this._isCompound&&nZ(e.nodes(),(function(t){e.setParent(t,i(t))})),e}},{key:"setDefaultEdgeLabel",value:function(t){return iX(t)||(t=WV(t)),this._defaultEdgeLabelFn=t,this}},{key:"edgeCount",value:function(){return this._edgeCount}},{key:"edges",value:function(){return gZ(this._edgeObjs)}},{key:"setPath",value:function(t,e){var n=this,r=arguments;return $Z(t,(function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i})),this}},{key:"setEdge",value:function(){var t,e,n,r,i=!1,a=arguments[0];"object"===Ro(a)&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(r=arguments[1],i=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,yZ(n)||(n=""+n);var o=r1(this._isDirected,t,e,n);if(AZ(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!yZ(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(t,e,n);var s=function(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};r&&(s.name=r);return s}(this._isDirected,t,e,n);return t=s.v,e=s.w,qZ(s),this._edgeObjs[o]=s,e1(this._preds[e],t),e1(this._sucs[t],e),this._in[e][o]=s,this._out[t][o]=s,this._edgeCount++,this}},{key:"edge",value:function(t,e,n){var r=1===arguments.length?i1(this._isDirected,arguments[0]):r1(this._isDirected,t,e,n);return this._edgeLabels[r]}},{key:"hasEdge",value:function(t,e,n){var r=1===arguments.length?i1(this._isDirected,arguments[0]):r1(this._isDirected,t,e,n);return AZ(this._edgeLabels,r)}},{key:"removeEdge",value:function(t,e,n){var r=1===arguments.length?i1(this._isDirected,arguments[0]):r1(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],n1(this._preds[e],t),n1(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this}},{key:"inEdges",value:function(t,e){var n=this._in[t];if(n){var r=gZ(n);return e?iZ(r,(function(t){return t.v===e})):r}}},{key:"outEdges",value:function(t,e){var n=this._out[t];if(n){var r=gZ(n);return e?iZ(r,(function(t){return t.w===e})):r}}},{key:"nodeEdges",value:function(t,e){var n=this.inEdges(t,e);if(n)return hs(n).call(n,this.outEdges(t,e))}}])}();function e1(t,e){t[e]?t[e]++:t[e]=1}function n1(t,e){--t[e]||delete t[e]}function r1(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}return i+ZZ+a+ZZ+(yZ(r)?YZ:r)}function i1(t,e){return r1(t,e.v,e.w,e.name)}t1.prototype._nodeCount=0,t1.prototype._edgeCount=0;var a1=function(){return Ho((function t(){ra(this,t);var e={};e._next=e._prev=e,this._sentinel=e}),[{key:"dequeue",value:function(){var t=this._sentinel,e=t._prev;if(e!==t)return o1(e),e}},{key:"enqueue",value:function(t){var e=this._sentinel;t._prev&&t._next&&o1(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e}},{key:"toString",value:function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(Zu(n,s1)),n=n._prev;return"["+t.join(", ")+"]"}}])}();function o1(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function s1(t,e){if("_next"!==t&&"_prev"!==t)return e}var c1=WV(1);function l1(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n,r=new t1,i=0,a=0;nZ(t.nodes(),(function(t){r.setNode(t,{v:t,in:0,out:0})})),nZ(t.edges(),(function(t){var n=r.edge(t.v,t.w)||0,o=e(t),s=n+o;r.setEdge(t.v,t.w,s),a=Math.max(a,r.node(t.v).out+=o),i=Math.max(i,r.node(t.w).in+=o)}));var o=lA(n=QZ(a+i+3)).call(n,(function(){return new a1})),s=i+1;return nZ(r.nodes(),(function(t){h1(o,s,r.node(t))})),{graph:r,buckets:o,zeroIdx:s}}(t,e||c1),r=function(t,e,n){var r,i=[],a=e[e.length-1],o=e[0];for(;t.nodeCount();){for(;r=o.dequeue();)u1(t,e,n,r);for(;r=a.dequeue();)u1(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=hs(i).call(i,u1(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return Aq(uZ(r,(function(e){return t.outEdges(e.v,e.w)})))}function u1(t,e,n,r,i){var a=i?[]:void 0;return nZ(t.inEdges(r.v),(function(r){var o=t.edge(r),s=t.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,h1(e,n,s)})),nZ(t.outEdges(r.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,h1(e,n,o)})),t.removeNode(r.v),a}function h1(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 f1(t){var e="greedy"===t.graph().acyclicer?l1(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},r={};function i(a){AZ(r,a)||(r[a]=!0,n[a]=!0,nZ(t.outEdges(a),(function(t){AZ(n,t.w)?e.push(t):i(t.w)})),delete n[a])}return nZ(t.nodes(),i),e}(t);nZ(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,WZ("rev"))}))}function d1(t,e,n,r){var i;do{i=WZ(r)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function A1(t){var e=new t1({multigraph:t.isMultigraph()}).setGraph(t.graph());return nZ(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),nZ(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function g1(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,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,r=l):(o<0&&(c=-c),n=c,r=c*s/o),{x:i+n,y:a+r}}function p1(t){var e=uZ(QZ(b1(t)+1),(function(){return[]}));return nZ(t.nodes(),(function(n){var r=t.node(n),i=r.rank;yZ(i)||(e[i][r.order]=n)})),e}function m1(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),d1(t,"border",i,e)}function b1(t){return xZ(uZ(t.nodes(),(function(e){var n=t.node(e).rank;if(!yZ(n))return n})))}function v1(t,e){jJ();try{return e()}finally{jJ()}}function y1(t,e){return e()}function w1(t,e,n,r,i,a){var o={width:0,height:0,rank:a,borderType:e},s=i[e][a-1],c=d1(t,"border",o,n);i[e][a]=c,t.setParent(c,r),s&&t.setEdge(s,c,{weight:1})}function k1(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){nZ(t.nodes(),(function(e){E1(t.node(e))})),nZ(t.edges(),(function(e){var n=t.edge(e);nZ(n.points,E1),AZ(n,"y")&&E1(n)}))}(t),"lr"!==e&&"rl"!==e||(!function(t){nZ(t.nodes(),(function(e){T1(t.node(e))})),nZ(t.edges(),(function(e){var n=t.edge(e);nZ(n.points,T1),AZ(n,"x")&&T1(n)}))}(t),C1(t))}function C1(t){nZ(t.nodes(),(function(e){x1(t.node(e))})),nZ(t.edges(),(function(e){x1(t.edge(e))}))}function x1(t){var e=t.width;t.width=t.height,t.height=e}function E1(t){t.y=-t.y}function T1(t){var e=t.x;t.x=t.y,t.y=e}function B1(t){t.graph().dummyChains=[],nZ(t.edges(),(function(e){!function(t,e){var n,r,i,a=e.v,o=t.node(a).rank,s=e.w,c=t.node(s).rank,l=e.name,u=t.edge(e),h=u.labelRank;if(c===o+1)return;for(t.removeEdge(e),i=0,++o;o<c;++i,++o)u.points=[],n=d1(t,"edge",r={width:0,height:0,edgeLabel:u,edgeObj:e,rank:o},"_d"),o===h&&(r.width=u.width,r.height=u.height,r.dummy="edge-label",r.labelpos=u.labelpos),t.setEdge(a,n,{weight:u.weight},l),0===i&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,s,{weight:u.weight},l)}(t,e)}))}function _1(t){var e={};nZ(t.sources(),(function n(r){var i=t.node(r);if(AZ(e,r))return i.rank;e[r]=!0;var a=_Z(uZ(t.outEdges(r),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),i.rank=a}))}function S1(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}function L1(t){var e,n,r=new t1({directed:!1}),i=t.nodes()[0],a=t.nodeCount();for(r.setNode(i,{});I1(r,t)<a;)e=M1(r,t),n=r.hasNode(e.v)?S1(t,e):-S1(t,e),O1(r,t,n);return r}function I1(t,e){return nZ(t.nodes(),(function n(r){nZ(e.nodeEdges(r),(function(i){var a=i.v,o=r===a?i.w:a;t.hasNode(o)||S1(e,i)||(t.setNode(o,{}),t.setEdge(r,o,{}),n(o))}))})),t.nodeCount()}function M1(t,e){return SZ(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return S1(e,n)}))}function O1(t,e,n){nZ(t.nodes(),(function(t){e.node(t).rank+=n}))}function D1(t,e,n){var r;CV(e)||(e=[e]);var i=fs(r=t.isDirected()?t.successors:t.neighbors).call(r,t),a=[],o={};return nZ(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);F1(t,e,"post"===n,o,i,a)})),a}function F1(t,e,n,r,i,a){AZ(r,e)||(r[e]=!0,n||a.push(e),nZ(i(e),(function(e){F1(t,e,n,r,i,a)})),n&&a.push(e))}function N1(t){t=function(t){var e=(new t1).setGraph(t.graph());return nZ(t.nodes(),(function(n){e.setNode(n,t.node(n))})),nZ(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e}(t),_1(t);var e,n=L1(t);for(Q1(n),P1(n,t);e=$1(n);)j1(n,t,e,H1(n,t,e))}function P1(t,e){var n=function(t,e){return D1(t,e,"post")}(t,t.nodes());nZ(n=Bf(n).call(n,0,n.length-1),(function(n){!function(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=R1(t,e,n)}(t,e,n)}))}function R1(t,e,n){var r=t.node(n).parent,i=!0,a=e.edge(n,r),o=0;return a||(i=!1,a=e.edge(r,n)),o=a.weight,nZ(e.nodeEdges(n),(function(a){var s,c,l=a.v===n,u=l?a.w:a.v;if(u!==r){var h=l===i,f=e.edge(a).weight;if(o+=h?f:-f,s=n,c=u,t.hasEdge(s,c)){var d=t.edge(n,u).cutvalue;o+=h?-d:d}}})),o}function Q1(t,e){arguments.length<2&&(e=t.nodes()[0]),U1(t,{},1,e)}function U1(t,e,n,r,i){var a=n,o=t.node(r);return e[r]=!0,nZ(t.neighbors(r),(function(i){AZ(e,i)||(n=U1(t,e,n,i,r))})),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function $1(t){return cZ(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function H1(t,e,n){var r=n.v,i=n.w;e.hasEdge(r,i)||(r=n.w,i=n.v);var a=t.node(r),o=t.node(i),s=a,c=!1;a.lim>o.lim&&(s=o,c=!0);var l=iZ(e.edges(),(function(e){return c===K1(t,t.node(e.v),s)&&c!==K1(t,t.node(e.w),s)}));return SZ(l,(function(t){return S1(e,t)}))}function j1(t,e,n,r){var i=n.v,a=n.w;t.removeEdge(i,a),t.setEdge(r.v,r.w,{}),Q1(t),P1(t,e),function(t,e){var n=cZ(t.nodes(),(function(t){return!e.node(t).parent})),r=function(t,e){return D1(t,e,"pre")}(t,n);nZ(r=Bf(r).call(r,1),(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}(t,e)}function K1(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}function z1(t){switch(t.graph().ranker){case"network-simplex":default:X1(t);break;case"tight-tree":!function(t){_1(t),L1(t)}(t);break;case"longest-path":G1(t)}}new Error,N1.initLowLimValues=Q1,N1.initCutValues=P1,N1.calcCutValue=R1,N1.leaveEdge=$1,N1.enterEdge=H1,N1.exchangeEdges=j1;var G1=_1;function X1(t){N1(t)}function V1(t){var e=d1(t,"root",{},"_root"),n=function(t){var e={};function n(r,i){var a=t.children(r);a&&a.length&&nZ(a,(function(t){n(t,i+1)})),e[r]=i}return nZ(t.children(),(function(t){n(t,1)})),e}(t),r=xZ(gZ(n))-1,i=2*r+1;t.graph().nestingRoot=e,nZ(t.edges(),(function(e){t.edge(e).minlen*=i}));var a=function(t){return $Z(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;nZ(t.children(),(function(o){W1(t,e,i,a,r,n,o)})),t.graph().nodeRankFactor=i}function W1(t,e,n,r,i,a,o){var s=t.children(o);if(s.length){var c=m1(t,"_bt"),l=m1(t,"_bb"),u=t.node(o);t.setParent(c,o),u.borderTop=c,t.setParent(l,o),u.borderBottom=l,nZ(s,(function(s){W1(t,e,n,r,i,a,s);var u=t.node(s),h=u.borderTop?u.borderTop:s,f=u.borderBottom?u.borderBottom:s,d=u.borderTop?r:2*r,A=h!==f?1:i-a[o]+1;t.setEdge(c,h,{weight:d,minlen:A,nestingEdge:!0}),t.setEdge(f,l,{weight:d,minlen:A,nestingEdge:!0})})),t.parent(o)||t.setEdge(e,c,{weight:0,minlen:i+a[o]})}else o!==e&&t.setEdge(e,o,{weight:0,minlen:n})}function q1(t,e,n){var r=function(t){var e;for(;t.hasNode(e=WZ("_root")););return e}(t),i=new t1({compound:!0}).setGraph({root:r}).setDefaultNodeLabel((function(e){return t.node(e)}));return nZ(t.nodes(),(function(a){var o=t.node(a),s=t.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),nZ(t[n](a),(function(e){var n=e.v===a?e.w:e.v,r=i.edge(n,a),o=yZ(r)?0:r.weight;i.setEdge(n,a,{weight:t.edge(e).weight+o})})),AZ(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))})),i}function Y1(t,e){for(var n=0,r=1;r<e.length;++r)n+=J1(t,e[r-1],e[r]);return n}function J1(t,e,n){for(var r=function(t,e){return function(t,e,n){for(var r=-1,i=t.length,a=e.length,o={};++r<i;){var s=r<a?e[r]:void 0;n(o,t[r],s)}return o}(t||[],e||[],dW)}(n,uZ(n,(function(t,e){return e}))),i=Aq(uZ(e,(function(e){return jZ(uZ(t.outEdges(e),(function(e){return{pos:r[e.w],weight:t.edge(e).weight}})),"pos")}))),a=1;a<n.length;)a<<=1;var o=2*a-1;a-=1;var s=uZ(new Array(o),(function(){return 0})),c=0;return nZ(Qs(i).call(i,(function(t){var e=t.pos+a;s[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=s[e+1]),s[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}function Z1(t,e){var n={};return nZ(t,(function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};yZ(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)})),nZ(e.edges(),(function(t){var e=n[t.v],r=n[t.w];yZ(e)||yZ(r)||(r.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(yZ(e.barycenter)||yZ(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n,r=0,i=0;t.weight&&(r+=t.barycenter*t.weight,i+=t.weight);e.weight&&(r+=e.barycenter*e.weight,i+=e.weight);t.vs=hs(n=e.vs).call(n,t.vs),t.barycenter=r/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function r(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var i,a=t.pop();e.push(a),nZ(eP(i=a.in).call(i),n(a)),nZ(a.out,r(a))}return uZ(iZ(e,(function(t){return!t.merged})),(function(t){return FZ(t,["vs","i","barycenter","weight"])}))}(iZ(n,(function(t){return!t.indegree})))}function t0(t,e){var n,r=function(t,e){var n={lhs:[],rhs:[]};return nZ(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}(t,(function(t){return AZ(t,"barycenter")})),i=r.lhs,a=jZ(r.rhs,(function(t){return-t.i})),o=[],s=0,c=0,l=0;RN(i).call(i,(n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),l=e0(o,a,l),nZ(i,(function(t){l+=t.vs.length,o.push(t.vs),s+=t.barycenter*t.weight,c+=t.weight,l=e0(o,a,l)}));var u={vs:Aq(o)};return c&&(u.barycenter=s/c,u.weight=c),u}function e0(t,e,n){for(var r;e.length&&(r=tZ(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n}function n0(t,e,n,r){var i=t.children(e),a=t.node(e),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,c={};o&&(i=iZ(i,(function(t){return t!==o&&t!==s})));var l=function(t,e){return uZ(e,(function(e){var n=t.inEdges(e);if(n.length){var r=$Z(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}return{v:e}}))}(t,i);nZ(l,(function(e){if(t.children(e.v).length){var i=n0(t,e.v,n,r);c[e.v]=i,AZ(i,"barycenter")&&(o=i,yZ((a=e).barycenter)?(a.barycenter=o.barycenter,a.weight=o.weight):(a.barycenter=(a.barycenter*a.weight+o.barycenter*o.weight)/(a.weight+o.weight),a.weight+=o.weight))}var a,o}));var u=Z1(l,n);!function(t,e){nZ(t,(function(t){var n;t.vs=Aq(lA(n=t.vs).call(n,(function(t){return e[t]?e[t].vs:t})))}))}(u,c);var h=t0(u,r);if(o&&(h.vs=Aq([o,h.vs,s]),t.predecessors(o).length)){var f=t.node(t.predecessors(o)[0]),d=t.node(t.predecessors(s)[0]);AZ(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 r0(t){var e=b1(t),n=i0(t,QZ(1,e+1),"inEdges"),r=i0(t,QZ(e-1,-1,-1),"outEdges"),i=function(t){var e={},n=iZ(t.nodes(),(function(e){return!t.children(e).length})),r=xZ(uZ(n,(function(e){return t.node(e).rank}))),i=uZ(QZ(r+1),(function(){return[]}));return nZ(jZ(n,(function(e){return t.node(e).rank})),(function n(r){if(!AZ(e,r)){e[r]=!0;var a=t.node(r);i[a.rank].push(r),nZ(t.successors(r),n)}})),i}(t);o0(t,i);for(var a,o=Number.POSITIVE_INFINITY,s=0,c=0;c<4;++s,++c){a0(s%2?n:r,s%4>=2);var l=Y1(t,i=p1(t));l<o&&(c=0,a=HY(i,KY|zY),o=l)}o0(t,a)}function i0(t,e,n){return uZ(e,(function(e){return q1(t,e,n)}))}function a0(t,e){var n=new t1;nZ(t,(function(t){var r=t.graph().root,i=n0(t,r,n,e);nZ(i.vs,(function(e,n){t.node(e).order=n})),function(t,e,n){var r,i={};nZ(n,(function(n){for(var a,o,s=t.parent(n);s;){if((a=t.parent(s))?(o=i[a],i[a]=s):(o=r,r=s),o&&o!==s)return void e.setEdge(o,s);s=a}}))}(t,n,i.vs)}))}function o0(t,e){nZ(e,(function(e){nZ(e,(function(e,n){t.node(e).order=n}))}))}function s0(t){var e=function(t){var e={},n=0;function r(i){var a=n;nZ(t.children(i),r),e[i]={low:a,lim:n++}}return nZ(t.children(),r),e}(t);nZ(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],s=[],c=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>c||l>e[i].lim));a=i,i=r;for(;(i=t.parent(i))!==a;)s.push(i);return{path:hs(o).call(o,eP(s).call(s)),lca:a}}(t,e,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=t.node(n),u){for(;(l=o[c])!==s&&t.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&t.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}t.setParent(n,l),n=t.successors(n)[0]}}))}function c0(t,e){var n={};return $Z(e,(function(e,r){var i=0,a=0,o=e.length,s=tZ(r);return nZ(r,(function(e,c){var l=function(t,e){if(t.node(e).dummy)return cZ(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),u=l?t.node(l).order:o;(l||e===s)&&(nZ(Bf(r).call(r,a,c+1),(function(e){nZ(t.predecessors(e),(function(r){var a=t.node(r),o=a.order;!(o<i||u<o)||a.dummy&&t.node(e).dummy||l0(n,r,e)}))})),a=c+1,i=u)})),r})),n}function l0(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function u0(t,e,n){if(e>n){var r=e;e=n,n=r}return AZ(t[e],n)}function h0(t,e,n,r,i){var a,o,s={},c=function(t,e,n,r){var i=new t1,a=t.graph(),o=function(t,e,n){return function(r,i,a){var o,s=r.node(i),c=r.node(a),l=0;if(l+=s.width/2,AZ(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=-s.width/2;break;case"r":o=s.width/2}if(o&&(l+=n?o:-o),o=0,l+=(s.dummy?e:t)/2,l+=(c.dummy?e:t)/2,l+=c.width/2,AZ(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":o=c.width/2;break;case"r":o=-c.width/2}return o&&(l+=n?o:-o),o=0,l}}(a.nodesep,a.edgesep,r);return nZ(e,(function(e){var r;nZ(e,(function(e){var a=n[e];if(i.setNode(a),r){var s=n[r],c=i.edge(s,a);i.setEdge(s,a,Math.max(o(t,e,r),c||0))}r=e}))})),i}(t,e,n,i),l=i?"borderLeft":"borderRight";function u(t,e){for(var n=c.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=hs(n).call(n,e(r))),r=n.pop()}return u((function(t){var e;s[t]=zm(e=c.inEdges(t)).call(e,(function(t,e){return Math.max(t,s[e.v]+c.edge(e))}),0)}),fs(a=c.predecessors).call(a,c)),u((function(e){var n,r=zm(n=c.outEdges(e)).call(n,(function(t,e){return Math.min(t,s[e.w]-c.edge(e))}),Number.POSITIVE_INFINITY),i=t.node(e);r!==Number.POSITIVE_INFINITY&&i.borderType!==l&&(s[e]=Math.max(s[e],r))}),fs(o=c.successors).call(o,c)),nZ(r,(function(t){s[t]=s[n[t]]})),s}function f0(t,e){return SZ(gZ(e),(function(e){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return function(t,e){null==t||QJ(t,eZ(e),YW)}(e,(function(e,i){var a=function(t,e){return t.node(e).width}(t,i)/2;n=Math.max(e+a,n),r=Math.min(e-a,r)})),n-r}))}function d0(t){var e,n=p1(t),r=BZ(c0(t,n),function(t,e){var n={};function r(e,r,i,a,o){var s;nZ(QZ(r,i),(function(r){s=e[r],t.node(s).dummy&&nZ(t.predecessors(s),(function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>o)&&l0(n,e,s)}))}))}return $Z(e,(function(e,n){var i,a=-1,o=0;return nZ(n,(function(s,c){if("border"===t.node(s).dummy){var l=t.predecessors(s);l.length&&(i=t.node(l[0]).order,r(n,o,c,a,i),o=c,a=i)}r(n,o,n.length,i,e.length)})),n})),n}(t,n)),i={};nZ(["u","d"],(function(a){var o;e="u"===a?n:eP(o=gZ(n)).call(o),nZ(["l","r"],(function(n){var o;"r"===n&&(e=uZ(e,(function(t){var e;return eP(e=gZ(t)).call(e)})));var s=fs(o="u"===a?t.predecessors:t.successors).call(o,t),c=function(t,e,n,r){var i={},a={},o={};return nZ(e,(function(t){nZ(t,(function(t,e){i[t]=t,a[t]=t,o[t]=e}))})),nZ(e,(function(t){var e=-1;nZ(t,(function(t){var s=r(t);if(s.length){s=jZ(s,(function(t){return o[t]}));for(var c=(s.length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var h=s[l];a[t]===t&&e<o[h]&&!u0(n,t,h)&&(a[h]=t,a[t]=i[t]=i[h],e=o[h])}}}))})),{root:i,align:a}}(0,e,r,s),l=h0(t,e,c.root,c.align,"r"===n);"r"===n&&(l=kZ(l,(function(t){return-t}))),i[a+n]=l}))}));var a=f0(t,i);return function(t,e){var n=gZ(e),r=_Z(n),i=xZ(n);nZ(["u","d"],(function(n){nZ(["l","r"],(function(a){var o,s=n+a,c=t[s];if(c!==e){var l=gZ(c);(o="l"===a?r-_Z(l):i-xZ(l))&&(t[s]=kZ(c,(function(t){return t+o})))}}))}))}(i,a),function(t,e){return kZ(t.ul,(function(n,r){if(e)return t[e.toLowerCase()][r];var i=jZ(uZ(t,r));return(i[1]+i[2])/2}))}(i,t.graph().align)}function A0(t){(function(t){var e=p1(t),n=t.graph().ranksep,r=0;nZ(e,(function(e){var i=xZ(uZ(e,(function(e){return t.node(e).height})));nZ(e,(function(e){t.node(e).y=r+i/2})),r+=i+n}))})(t=A1(t)),nZ(d0(t),(function(e,n){t.node(n).x=e}))}function g0(t,e){var n=e&&e.debugTiming?v1:y1;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new t1({multigraph:!0,compound:!0}),n=E0(t.graph());return e.setGraph(BZ({},m0,x0(n,p0),FZ(n,b0))),nZ(t.nodes(),(function(n){var r=E0(t.node(n));e.setNode(n,XJ(x0(r,v0),y0)),e.setParent(n,t.parent(n))})),nZ(t.edges(),(function(n){var r=E0(t.edge(n));e.setEdge(n,BZ({},k0,x0(r,w0),FZ(r,C0)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,nZ(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){nZ(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){f1(t)})),e(" nestingGraph.run",(function(){V1(t)})),e(" rank",(function(){z1(A1(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){nZ(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};d1(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){!function(t){var e=_Z(uZ(t.nodes(),(function(e){return t.node(e).rank}))),n=[];nZ(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var r=0,i=t.graph().nodeRankFactor;nZ(n,(function(e,n){yZ(e)&&n%i!=0?--r:r&&nZ(e,(function(e){t.node(e).rank+=r}))}))}(t)})),e(" nestingGraph.cleanup",(function(){!function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,nZ(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}(t)})),e(" normalizeRanks",(function(){!function(t){var e=_Z(uZ(t.nodes(),(function(e){return t.node(e).rank})));nZ(t.nodes(),(function(n){var r=t.node(n);AZ(r,"rank")&&(r.rank-=e)}))}(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;nZ(t.nodes(),(function(n){var r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=xZ(e,r.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){nZ(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){B1(t)})),e(" parentDummyChains",(function(){s0(t)})),e(" addBorderSegments",(function(){!function(t){nZ(t.children(),(function e(n){var r=t.children(n),i=t.node(n);if(r.length&&nZ(r,e),AZ(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)w1(t,"borderLeft","_bl",n,i,a),w1(t,"borderRight","_br",n,i,a)}}))}(t)})),e(" order",(function(){r0(t)})),e(" insertSelfEdges",(function(){!function(t){var e=p1(t);nZ(e,(function(e){var n=0;nZ(e,(function(e,r){var i=t.node(e);i.order=r+n,nZ(i.selfEdges,(function(e){d1(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:r+ ++n,e:e.e,label:e.label},"_se")})),delete i.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){!function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||C1(t)}(t)})),e(" position",(function(){A0(t)})),e(" positionSelfEdges",(function(){!function(t){nZ(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){nZ(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),r=t.node(n.borderTop),i=t.node(n.borderBottom),a=t.node(tZ(n.borderLeft)),o=t.node(tZ(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}})),nZ(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){!function(t){nZ(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)}))}(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){nZ(t.edges(),(function(e){var n=t.edge(e);if(AZ(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){k1(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,a=t.graph(),o=a.marginx||0,s=a.marginy||0;function c(t){var a=t.x,o=t.y,s=t.width,c=t.height;e=Math.min(e,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-c/2),i=Math.max(i,o+c/2)}nZ(t.nodes(),(function(e){c(t.node(e))})),nZ(t.edges(),(function(e){var n=t.edge(e);AZ(n,"x")&&c(n)})),e-=o,r-=s,nZ(t.nodes(),(function(n){var i=t.node(n);i.x-=e,i.y-=r})),nZ(t.edges(),(function(n){var i=t.edge(n);nZ(i.points,(function(t){t.x-=e,t.y-=r})),AZ(i,"x")&&(i.x-=e),AZ(i,"y")&&(i.y-=r)})),a.width=n-e+o,a.height=i-r+s}(t)})),e(" assignNodeIntersects",(function(){!function(t){nZ(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(g1(a,n)),i.points.push(g1(o,r))}))}(t)})),e(" reversePoints",(function(){!function(t){nZ(t.edges(),(function(e){var n,r=t.edge(e);r.reversed&&eP(n=r.points).call(n)}))}(t)})),e(" acyclic.undo",(function(){!function(t){nZ(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){nZ(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),nZ(t.edges(),(function(n){var r=t.edge(n),i=e.edge(n);r.points=i.points,AZ(i,"x")&&(r.x=i.x,r.y=i.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))}var p0=["nodesep","edgesep","ranksep","marginx","marginy"],m0={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b0=["acyclicer","ranker","rankdir","align"],v0=["width","height"],y0={width:0,height:0},w0=["minlen","weight","width","height","labeloffset"],k0={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},C0=["labelpos"];function x0(t,e){return kZ(FZ(t,e),Number)}function E0(t){var e={};return nZ(t,(function(t,n){e[n.toLowerCase()]=t})),e}function T0(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:B0(t),edges:_0(t)};return yZ(t.graph())||(e.value=HY(t.graph(),jY)),e}function B0(t){return uZ(t.nodes(),(function(e){var n=t.node(e),r=t.parent(e),i={v:e};return yZ(n)||(i.value=n),yZ(r)||(i.parent=r),i}))}function _0(t){return uZ(t.edges(),(function(e){var n=t.edge(e),r={v:e.v,w:e.w};return yZ(e.name)||(r.name=e.name),yZ(n)||(r.value=n),r}))}var S0=/^(?:[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;const L0=[];for(let t=0;t<256;++t)L0.push((t+256).toString(16).slice(1));function I0(t){if(!function(t){return"string"==typeof t&&S0.test(t)}(t))throw TypeError("Invalid UUID");let e;const n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>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}function M0(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:case 3:return e^n^r;case 2:return e&n^e&r^n&r}}function O0(t,e){return t<<e|t>>>32-e}const D0=function(t,e,n){function r(t,r,i,a){var o;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"==typeof r&&(r=I0(r)),16!==(null===(o=r)||void 0===o?void 0:o.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+t.length);if(s.set(r),s.set(t,r.length),s=n(s),s[6]=15&s[6]|e,s[8]=63&s[8]|128,i){a=a||0;for(let t=0;t<16;++t)i[a+t]=s[t];return i}return function(t,e=0){return L0[t[e+0]]+L0[t[e+1]]+L0[t[e+2]]+L0[t[e+3]]+"-"+L0[t[e+4]]+L0[t[e+5]]+"-"+L0[t[e+6]]+L0[t[e+7]]+"-"+L0[t[e+8]]+L0[t[e+9]]+"-"+L0[t[e+10]]+L0[t[e+11]]+L0[t[e+12]]+L0[t[e+13]]+L0[t[e+14]]+L0[t[e+15]]}(s)}try{r.name=t}catch(t){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}("v5",80,(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<e.length;++n)t.push(e.charCodeAt(n))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const r=t.length/4+2,i=Math.ceil(r/16),a=new Array(i);for(let e=0;e<i;++e){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=t[64*e+4*r]<<24|t[64*e+4*r+1]<<16|t[64*e+4*r+2]<<8|t[64*e+4*r+3];a[e]=n}a[i-1][14]=8*(t.length-1)/Math.pow(2,32),a[i-1][14]=Math.floor(a[i-1][14]),a[i-1][15]=8*(t.length-1)&4294967295;for(let t=0;t<i;++t){const r=new Uint32Array(80);for(let e=0;e<16;++e)r[e]=a[t][e];for(let t=16;t<80;++t)r[t]=O0(r[t-3]^r[t-8]^r[t-14]^r[t-16],1);let i=n[0],o=n[1],s=n[2],c=n[3],l=n[4];for(let t=0;t<80;++t){const n=Math.floor(t/20),a=O0(i,5)+M0(n,o,s,c)+l+e[n]+r[t]>>>0;l=c,c=s,s=O0(o,30)>>>0,o=i,i=a}n[0]=n[0]+i>>>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]]}));var F0=D0;function N0(t,e){e&&t.attr("style",e)}function P0(t,e){var n=t.append("foreignObject").attr("width","100000"),r=n.append("xhtml:div");r.attr("xmlns","http://www.w3.org/1999/xhtml");var i=e.label;switch(Ro(i)){case"function":r.insert(i);break;case"object":r.insert((function(){return i}));break;default:r.html(i)}N0(r,e.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap");var a=r.node().getBoundingClientRect();return n.attr("width",a.width).attr("height",a.height),n}var R0=r((function(t,e){var n;t.exports=(n="day",function(t,e,r){var i=function(t){return t.add(4-t.isoWeekday(),n)},a=e.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),n);var e,a,o,s=i(this),c=(e=this.isoWeekYear(),o=4-(a=(this.$u?r.utc:r)().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(),r=!!n.u(e)||e;return"isoweek"===n.p(t)?r?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)}})})),Q0=r((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/,r=/\d\d?/,i=/\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)return 0;if("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,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[i,function(t){this.afternoon=u(t,!1)}],a:[i,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:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,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:[i,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};function f(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var a=r&&r.toUpperCase();return n||i[r]||t[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),s=o.length,c=0;c<s;c+=1){var l=o[c],u=h[l],f=u&&u[0],d=u&&u[1];o[c]=d?{regex:f,parser:d}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,c=i.parser,l=t.slice(r),u=a.exec(l)[0];c.call(e,u),t=t.replace(u,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(o=t.parseTwoDigitYear);var r=e.prototype,i=r.parse;r.parse=function(t){var e=t.date,r=t.utc,o=t.args;this.$u=r;var s=o[1];if("string"==typeof s){var c=!0===o[2],l=!0===o[3],u=c||l,h=o[2];l&&(h=o[2]),a=this.$locale(),!c&&h&&(a=n.Ls[h]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var r=f(e)(t),i=r.year,a=r.month,o=r.day,s=r.hours,c=r.minutes,l=r.seconds,u=r.milliseconds,h=r.zone,d=new Date,A=o||(i||a?1:d.getDate()),g=i||d.getFullYear(),p=0;i&&!a||(p=a>0?a-1:d.getMonth());var m=s||0,b=c||0,v=l||0,y=u||0;return h?new Date(Date.UTC(g,p,A,m,b,v,y+60*h.offset*1e3)):n?new Date(Date.UTC(g,p,A,m,b,v,y)):new Date(g,p,A,m,b,v,y)}catch(t){return new Date("")}}(e,s,r),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&e!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var d=s.length,A=1;A<=d;A+=1){o[1]=s[A-1];var g=n.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}A===d&&(this.$d=new Date(""))}else i.call(this,t)}}}()})),U0=r((function(t,e){t.exports=function(t,e){var n=e.prototype,r=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return r.bind(this)(t);var i=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 i.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return i.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return i.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 r.bind(this)(a)}}}));const $0={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},H0={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},j0=function(t="fatal"){let e=$0.fatal;"string"==typeof t?(t=t.toLowerCase())in $0&&(e=$0[t]):"number"==typeof t&&(e=t),H0.trace=()=>{},H0.debug=()=>{},H0.info=()=>{},H0.warn=()=>{},H0.error=()=>{},H0.fatal=()=>{},e<=$0.fatal&&(H0.fatal=console.error?console.error.bind(console,K0("FATAL"),"color: orange"):console.log.bind(console,"",K0("FATAL"))),e<=$0.error&&(H0.error=console.error?console.error.bind(console,K0("ERROR"),"color: orange"):console.log.bind(console,"",K0("ERROR"))),e<=$0.warn&&(H0.warn=console.warn?console.warn.bind(console,K0("WARN"),"color: orange"):console.log.bind(console,"",K0("WARN"))),e<=$0.info&&(H0.info=console.info?console.info.bind(console,K0("INFO"),"color: lightblue"):console.log.bind(console,"",K0("INFO"))),e<=$0.debug&&(H0.debug=console.debug?console.debug.bind(console,K0("DEBUG"),"color: lightgreen"):console.log.bind(console,"",K0("DEBUG"))),e<=$0.trace&&(H0.trace=console.debug?console.debug.bind(console,K0("TRACE"),"color: lightgreen"):console.log.bind(console,"",K0("TRACE")))},K0=t=>`%c${lN().format("ss.SSS")} : ${t} : `,z0=t=>sG.sanitize(t),G0=(t,e)=>{var n;if(!1!==(null==(n=e.flowchart)?void 0:n.htmlLabels)){const n=e.securityLevel;"antiscript"===n||"strict"===n?t=z0(t):"loose"!==n&&(t=(t=(t=q0(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=W0(t))}return t},X0=(t,e)=>t?t=e.dompurifyConfig?sG.sanitize(G0(t,e),e.dompurifyConfig).toString():sG.sanitize(G0(t,e),{FORBID_TAGS:["style"]}).toString():t,V0=/<br\s*\/?>/gi,W0=t=>t.replace(/#br#/g,"<br/>"),q0=t=>t.replace(V0,"#br#"),Y0=t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase()),J0=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 J0(t)}return e},Z0={getRows:t=>{if(!t)return[""];return q0(t).replace(/\\n/g,"#br#").split("#br#")},sanitizeText:X0,sanitizeTextOrArray:(t,e)=>"string"==typeof t?X0(t,e):t.flat().map((t=>X0(t,e))),hasBreaks:t=>V0.test(t),splitBreaks:t=>t.split(V0),lineBreakRegex:V0,removeScript:z0,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:Y0},t2=(t,e)=>PG(t,e?{s:-40,l:10}:{s:-40,l:-10}),e2="#ffffff",n2="#f2f2f2";let r2=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||PG(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||PG(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||t2(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||t2(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||t2(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||t2(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||QG(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||QG(this.tertiaryColor),this.lineColor=this.lineColor||QG(this.background),this.textColor=this.textColor||this.primaryTextColor,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?NG(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||NG(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||QG(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||FG(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||PG(this.primaryColor,{h:30}),this.cScale4=this.cScale4||PG(this.primaryColor,{h:60}),this.cScale5=this.cScale5||PG(this.primaryColor,{h:90}),this.cScale6=this.cScale6||PG(this.primaryColor,{h:120}),this.cScale7=this.cScale7||PG(this.primaryColor,{h:150}),this.cScale8=this.cScale8||PG(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||PG(this.primaryColor,{h:270}),this.cScale10=this.cScale10||PG(this.primaryColor,{h:300}),this.cScale11=this.cScale11||PG(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=NG(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=NG(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||QG(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||FG(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||NG(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||PG(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||PG(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||PG(this.primaryColor,{h:64}),this.fillType3=this.fillType3||PG(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||PG(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||PG(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||PG(this.primaryColor,{h:128}),this.fillType7=this.fillType7||PG(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||PG(this.primaryColor,{l:-10}),this.pie5=this.pie5||PG(this.secondaryColor,{l:-10}),this.pie6=this.pie6||PG(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||PG(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||PG(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||PG(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||PG(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||PG(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||PG(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?NG(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||PG(this.primaryColor,{h:-30}),this.git4=this.git4||PG(this.primaryColor,{h:-60}),this.git5=this.git5||PG(this.primaryColor,{h:-90}),this.git6=this.git6||PG(this.primaryColor,{h:60}),this.git7=this.git7||PG(this.primaryColor,{h:120}),this.darkMode?(this.git0=FG(this.git0,25),this.git1=FG(this.git1,25),this.git2=FG(this.git2,25),this.git3=FG(this.git3,25),this.git4=FG(this.git4,25),this.git5=FG(this.git5,25),this.git6=FG(this.git6,25),this.git7=FG(this.git7,25)):(this.git0=NG(this.git0,25),this.git1=NG(this.git1,25),this.git2=NG(this.git2,25),this.git3=NG(this.git3,25),this.git4=NG(this.git4,25),this.git5=NG(this.git5,25),this.git6=NG(this.git6,25),this.git7=NG(this.git7,25)),this.gitInv0=this.gitInv0||QG(this.git0),this.gitInv1=this.gitInv1||QG(this.git1),this.gitInv2=this.gitInv2||QG(this.git2),this.gitInv3=this.gitInv3||QG(this.git3),this.gitInv4=this.gitInv4||QG(this.git4),this.gitInv5=this.gitInv5||QG(this.git5),this.gitInv6=this.gitInv6||QG(this.git6),this.gitInv7=this.gitInv7||QG(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||e2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||n2}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};let i2=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=FG(this.primaryColor,16),this.tertiaryColor=PG(this.primaryColor,{h:-160}),this.primaryBorderColor=QG(this.background),this.secondaryBorderColor=t2(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=t2(this.tertiaryColor,this.darkMode),this.primaryTextColor=QG(this.primaryColor),this.secondaryTextColor=QG(this.secondaryColor),this.tertiaryTextColor=QG(this.tertiaryColor),this.lineColor=QG(this.background),this.textColor=QG(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=FG(QG("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=LG(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=NG("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=LG(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=LG(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="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=FG(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=FG(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=FG(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=PG(this.primaryColor,{h:64}),this.fillType3=PG(this.secondaryColor,{h:64}),this.fillType4=PG(this.primaryColor,{h:-64}),this.fillType5=PG(this.secondaryColor,{h:-64}),this.fillType6=PG(this.primaryColor,{h:128}),this.fillType7=PG(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||PG(this.primaryColor,{h:30}),this.cScale4=this.cScale4||PG(this.primaryColor,{h:60}),this.cScale5=this.cScale5||PG(this.primaryColor,{h:90}),this.cScale6=this.cScale6||PG(this.primaryColor,{h:120}),this.cScale7=this.cScale7||PG(this.primaryColor,{h:150}),this.cScale8=this.cScale8||PG(this.primaryColor,{h:210}),this.cScale9=this.cScale9||PG(this.primaryColor,{h:270}),this.cScale10=this.cScale10||PG(this.primaryColor,{h:300}),this.cScale11=this.cScale11||PG(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||QG(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||FG(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||PG(this.mainBkg,{h:30,s:-30,l:-(4*t-10)}),this["surfacePeer"+t]=this["surfacePeer"+t]||PG(this.mainBkg,{h:30,s:-30,l:-(4*t-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?NG(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=FG(this.secondaryColor,20),this.git1=FG(this.pie2||this.secondaryColor,20),this.git2=FG(this.pie3||this.tertiaryColor,20),this.git3=FG(this.pie4||PG(this.primaryColor,{h:-30}),20),this.git4=FG(this.pie5||PG(this.primaryColor,{h:-60}),20),this.git5=FG(this.pie6||PG(this.primaryColor,{h:-90}),10),this.git6=FG(this.pie7||PG(this.primaryColor,{h:60}),10),this.git7=FG(this.pie8||PG(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||QG(this.git0),this.gitInv1=this.gitInv1||QG(this.git1),this.gitInv2=this.gitInv2||QG(this.git2),this.gitInv3=this.gitInv3||QG(this.git3),this.gitInv4=this.gitInv4||QG(this.git4),this.gitInv5=this.gitInv5||QG(this.git5),this.gitInv6=this.gitInv6||QG(this.git6),this.gitInv7=this.gitInv7||QG(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||FG(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||FG(this.background,2)}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};let a2=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=PG(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=PG(this.primaryColor,{h:-160}),this.primaryBorderColor=t2(this.primaryColor,this.darkMode),this.secondaryBorderColor=t2(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=t2(this.tertiaryColor,this.darkMode),this.primaryTextColor=QG(this.primaryColor),this.secondaryTextColor=QG(this.secondaryColor),this.tertiaryTextColor=QG(this.tertiaryColor),this.lineColor=QG(this.background),this.textColor=QG(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=LG(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="calculated",this.personBkg="calculated",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||PG(this.primaryColor,{h:30}),this.cScale4=this.cScale4||PG(this.primaryColor,{h:60}),this.cScale5=this.cScale5||PG(this.primaryColor,{h:90}),this.cScale6=this.cScale6||PG(this.primaryColor,{h:120}),this.cScale7=this.cScale7||PG(this.primaryColor,{h:150}),this.cScale8=this.cScale8||PG(this.primaryColor,{h:210}),this.cScale9=this.cScale9||PG(this.primaryColor,{h:270}),this.cScale10=this.cScale10||PG(this.primaryColor,{h:300}),this.cScale11=this.cScale11||PG(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||NG(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||NG(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=NG(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||NG(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||PG(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||PG(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||PG(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||QG(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||QG(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=FG(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=PG(this.primaryColor,{h:64}),this.fillType3=PG(this.secondaryColor,{h:64}),this.fillType4=PG(this.primaryColor,{h:-64}),this.fillType5=PG(this.secondaryColor,{h:-64}),this.fillType6=PG(this.primaryColor,{h:128}),this.fillType7=PG(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||PG(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||PG(this.primaryColor,{l:-10}),this.pie5=this.pie5||PG(this.secondaryColor,{l:-30}),this.pie6=this.pie6||PG(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||PG(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||PG(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||PG(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||PG(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||PG(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||PG(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||PG(this.primaryColor,{h:-30}),this.git4=this.git4||PG(this.primaryColor,{h:-60}),this.git5=this.git5||PG(this.primaryColor,{h:-90}),this.git6=this.git6||PG(this.primaryColor,{h:60}),this.git7=this.git7||PG(this.primaryColor,{h:120}),this.darkMode?(this.git0=FG(this.git0,25),this.git1=FG(this.git1,25),this.git2=FG(this.git2,25),this.git3=FG(this.git3,25),this.git4=FG(this.git4,25),this.git5=FG(this.git5,25),this.git6=FG(this.git6,25),this.git7=FG(this.git7,25)):(this.git0=NG(this.git0,25),this.git1=NG(this.git1,25),this.git2=NG(this.git2,25),this.git3=NG(this.git3,25),this.git4=NG(this.git4,25),this.git5=NG(this.git5,25),this.git6=NG(this.git6,25),this.git7=NG(this.git7,25)),this.gitInv0=this.gitInv0||NG(QG(this.git0),25),this.gitInv1=this.gitInv1||QG(this.git1),this.gitInv2=this.gitInv2||QG(this.git2),this.gitInv3=this.gitInv3||QG(this.git3),this.gitInv4=this.gitInv4||QG(this.git4),this.gitInv5=this.gitInv5||QG(this.git5),this.gitInv6=this.gitInv6||QG(this.git6),this.gitInv7=this.gitInv7||QG(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||QG(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||QG(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||e2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||n2}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};let o2=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=FG("#cde498",10),this.primaryBorderColor=t2(this.primaryColor,this.darkMode),this.secondaryBorderColor=t2(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=t2(this.tertiaryColor,this.darkMode),this.primaryTextColor=QG(this.primaryColor),this.secondaryTextColor=QG(this.secondaryColor),this.tertiaryTextColor=QG(this.primaryColor),this.lineColor=QG(this.background),this.textColor=QG(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="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||PG(this.primaryColor,{h:30}),this.cScale4=this.cScale4||PG(this.primaryColor,{h:60}),this.cScale5=this.cScale5||PG(this.primaryColor,{h:90}),this.cScale6=this.cScale6||PG(this.primaryColor,{h:120}),this.cScale7=this.cScale7||PG(this.primaryColor,{h:150}),this.cScale8=this.cScale8||PG(this.primaryColor,{h:210}),this.cScale9=this.cScale9||PG(this.primaryColor,{h:270}),this.cScale10=this.cScale10||PG(this.primaryColor,{h:300}),this.cScale11=this.cScale11||PG(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||NG(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||NG(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=NG(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||NG(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||PG(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||PG(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||PG(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=NG(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.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=PG(this.primaryColor,{h:64}),this.fillType3=PG(this.secondaryColor,{h:64}),this.fillType4=PG(this.primaryColor,{h:-64}),this.fillType5=PG(this.secondaryColor,{h:-64}),this.fillType6=PG(this.primaryColor,{h:128}),this.fillType7=PG(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||PG(this.primaryColor,{l:-30}),this.pie5=this.pie5||PG(this.secondaryColor,{l:-30}),this.pie6=this.pie6||PG(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||PG(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||PG(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||PG(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||PG(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||PG(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||PG(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||PG(this.primaryColor,{h:-30}),this.git4=this.git4||PG(this.primaryColor,{h:-60}),this.git5=this.git5||PG(this.primaryColor,{h:-90}),this.git6=this.git6||PG(this.primaryColor,{h:60}),this.git7=this.git7||PG(this.primaryColor,{h:120}),this.darkMode?(this.git0=FG(this.git0,25),this.git1=FG(this.git1,25),this.git2=FG(this.git2,25),this.git3=FG(this.git3,25),this.git4=FG(this.git4,25),this.git5=FG(this.git5,25),this.git6=FG(this.git6,25),this.git7=FG(this.git7,25)):(this.git0=NG(this.git0,25),this.git1=NG(this.git1,25),this.git2=NG(this.git2,25),this.git3=NG(this.git3,25),this.git4=NG(this.git4,25),this.git5=NG(this.git5,25),this.git6=NG(this.git6,25),this.git7=NG(this.git7,25)),this.gitInv0=this.gitInv0||QG(this.git0),this.gitInv1=this.gitInv1||QG(this.git1),this.gitInv2=this.gitInv2||QG(this.git2),this.gitInv3=this.gitInv3||QG(this.git3),this.gitInv4=this.gitInv4||QG(this.git4),this.gitInv5=this.gitInv5||QG(this.git5),this.gitInv6=this.gitInv6||QG(this.git6),this.gitInv7=this.gitInv7||QG(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||e2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||n2}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};class s2{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=FG(this.contrast,55),this.background="#ffffff",this.tertiaryColor=PG(this.primaryColor,{h:-160}),this.primaryBorderColor=t2(this.primaryColor,this.darkMode),this.secondaryBorderColor=t2(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=t2(this.tertiaryColor,this.darkMode),this.primaryTextColor=QG(this.primaryColor),this.secondaryTextColor=QG(this.secondaryColor),this.tertiaryTextColor=QG(this.tertiaryColor),this.lineColor=QG(this.background),this.textColor=QG(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="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=FG(this.contrast,55),this.border2=this.contrast,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.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||QG(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||FG(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||NG(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||PG(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||PG(this.mainBkg,{l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=FG(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.sectionBkgColor=FG(this.contrast,30),this.sectionBkgColor2=FG(this.contrast,30),this.taskBorderColor=NG(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=FG(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=NG(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=PG(this.primaryColor,{h:64}),this.fillType3=PG(this.secondaryColor,{h:64}),this.fillType4=PG(this.primaryColor,{h:-64}),this.fillType5=PG(this.secondaryColor,{h:-64}),this.fillType6=PG(this.primaryColor,{h:128}),this.fillType7=PG(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=NG(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||PG(this.primaryColor,{h:-30}),this.git4=this.pie5||PG(this.primaryColor,{h:-60}),this.git5=this.pie6||PG(this.primaryColor,{h:-90}),this.git6=this.pie7||PG(this.primaryColor,{h:60}),this.git7=this.pie8||PG(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||QG(this.git0),this.gitInv1=this.gitInv1||QG(this.git1),this.gitInv2=this.gitInv2||QG(this.git2),this.gitInv3=this.gitInv3||QG(this.git3),this.gitInv4=this.gitInv4||QG(this.git4),this.gitInv5=this.gitInv5||QG(this.git5),this.gitInv6=this.gitInv6||QG(this.git6),this.gitInv7=this.gitInv7||QG(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||e2,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||n2}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}}const c2={base:{getThemeVariables:t=>{const e=new r2;return e.calculate(t),e}},dark:{getThemeVariables:t=>{const e=new i2;return e.calculate(t),e}},default:{getThemeVariables:t=>{const e=new a2;return e.calculate(t),e}},forest:{getThemeVariables:t=>{const e=new o2;return e.calculate(t),e}},neutral:{getThemeVariables:t=>{const e=new s2;return e.calculate(t),e}}},l2={theme:"default",themeVariables:c2.default.getThemeVariables(),themeCSS:void 0,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,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},sequence:{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,useMaxWidth:!0,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,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:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,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"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,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},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{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,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,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},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,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,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}},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"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};l2.class&&(l2.class.arrowMarkerAbsolute=l2.arrowMarkerAbsolute),l2.gitGraph&&(l2.gitGraph.arrowMarkerAbsolute=l2.arrowMarkerAbsolute);const u2=(t,e="")=>Object.keys(t).reduce(((n,r)=>Array.isArray(t[r])?n:"object"==typeof t[r]&&null!==t[r]?[...n,e+r,...u2(t[r],"")]:[...n,e+r]),[]),h2=u2(l2,""),f2=l2;function d2(t){return null==t}var A2=function(t,e){var n,r="";for(n=0;n<e;n+=1)r+=t;return r},g2=function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},p2=function(t,e){var n,r,i,a;if(e)for(n=0,r=(a=Object.keys(e)).length;n<r;n+=1)t[i=a[n]]=e[i];return t},m2={isNothing:d2,isObject:function(t){return"object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:d2(t)?[]:[t]},repeat:A2,isNegativeZero:g2,extend:p2};function b2(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),r+" "+n):r}function v2(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=b2(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}v2.prototype=Object.create(Error.prototype),v2.prototype.constructor=v2,v2.prototype.toString=function(t){return this.name+": "+b2(this,t)};var y2=v2;function w2(t,e,n,r,i){var a="",o="",s=Math.floor(i/2)-1;return r-e>s&&(e=r-s+(a=" ... ").length),n-r>s&&(n=r+s-(o=" ...").length),{str:a+t.slice(e,n).replace(/\t/g,"→")+o,pos:r-e+a.length}}function k2(t,e){return m2.repeat(" ",e-t.length)+t}var C2=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,r=/\r?\n|\r|\0/g,i=[0],a=[],o=-1;n=r.exec(t.buffer);)a.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&o<0&&(o=i.length-2);o<0&&(o=i.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=w2(t.buffer,i[o-s],a[o-s],t.position-(i[o]-i[o-s]),h),l=m2.repeat(" ",e.indent)+k2((t.line-s+1).toString(),u)+" | "+c.str+"\n"+l;for(c=w2(t.buffer,i[o],a[o],t.position,h),l+=m2.repeat(" ",e.indent)+k2((t.line+1).toString(),u)+" | "+c.str+"\n",l+=m2.repeat("-",e.indent+u+3+c.pos)+"^\n",s=1;s<=e.linesAfter&&!(o+s>=a.length);s++)c=w2(t.buffer,i[o+s],a[o+s],t.position-(i[o]-i[o+s]),h),l+=m2.repeat(" ",e.indent)+k2((t.line+s+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},x2=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],E2=["scalar","sequence","mapping"];var T2=function(t,e){var n,r;if(e=e||{},Object.keys(e).forEach((function(e){if(-1===x2.indexOf(e))throw new y2('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=(n=e.styleAliases||null,r={},null!==n&&Object.keys(n).forEach((function(t){n[t].forEach((function(e){r[String(e)]=t}))})),r),-1===E2.indexOf(this.kind))throw new y2('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function B2(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,r){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=r)})),n[e]=t})),n}function _2(t){return this.extend(t)}_2.prototype.extend=function(t){var e=[],n=[];if(t instanceof T2)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 y2("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 T2))throw new y2("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new y2("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 y2("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 T2))throw new y2("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(_2.prototype);return r.implicit=(this.implicit||[]).concat(e),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=B2(r,"implicit"),r.compiledExplicit=B2(r,"explicit"),r.compiledTypeMap=function(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var S2=_2,L2=new T2("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),I2=new T2("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),M2=new T2("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),O2=new S2({explicit:[L2,I2,M2]});var D2=new T2("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var F2=new T2("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function N2(t){return 48<=t&&t<=55}function P2(t){return 48<=t&&t<=57}var R2=new T2("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,n,r=t.length,i=0,a=!1;if(!r)return!1;if("-"!==(e=t[i])&&"+"!==e||(e=t[++i]),"0"===e){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;a=!0}return a&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!(48<=(n=t.charCodeAt(i))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;a=!0}return a&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!N2(t.charCodeAt(i)))return!1;a=!0}return a&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!P2(t.charCodeAt(i)))return!1;a=!0}return!(!a||"_"===e)},construct:function(t){var e,n=t,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(e=n[0])&&"+"!==e||("-"===e&&(r=-1),e=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===e){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!m2.isNegativeZero(t)},represent:{binary:function(t){return 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"]}}),Q2=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var U2=/^[-+]?[0-9]+e/;var $2=new T2("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!Q2.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||m2.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(m2.isNegativeZero(t))return"-0.0";return n=t.toString(10),U2.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),H2=O2.extend({implicit:[D2,F2,R2,$2]}),j2=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),K2=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]))?))?$");var z2=new T2("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==j2.exec(t)||null!==K2.exec(t))},construct:function(t){var e,n,r,i,a,o,s,c,l=0,u=null;if(null===(e=j2.exec(t))&&(e=K2.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(n,r,i));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,r,i,a,o,s,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(t){return t.toISOString()}});var G2=new T2("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),X2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var V2=new T2("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,n,r=0,i=t.length,a=X2;for(n=0;n<i;n++)if(!((e=a.indexOf(t.charAt(n)))>64)){if(e<0)return!1;r+=6}return r%8==0},construct:function(t){var e,n,r=t.replace(/[\r\n=]/g,""),i=r.length,a=X2,o=0,s=[];for(e=0;e<i;e++)e%4==0&&e&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|a.indexOf(r.charAt(e));return 0===(n=i%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,r="",i=0,a=t.length,o=X2;for(e=0;e<a;e++)e%3==0&&e&&(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[63&i]),i=(i<<8)+t[e];return 0===(n=a%3)?(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[63&i]):2===n?(r+=o[i>>10&63],r+=o[i>>4&63],r+=o[i<<2&63],r+=o[64]):1===n&&(r+=o[i>>2&63],r+=o[i<<4&63],r+=o[64],r+=o[64]),r}}),W2=Object.prototype.hasOwnProperty,q2=Object.prototype.toString;var Y2=new T2("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,n,r,i,a,o=[],s=t;for(e=0,n=s.length;e<n;e+=1){if(r=s[e],a=!1,"[object Object]"!==q2.call(r))return!1;for(i in r)if(W2.call(r,i)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==o.indexOf(i))return!1;o.push(i)}return!0},construct:function(t){return null!==t?t:[]}}),J2=Object.prototype.toString;var Z2=new T2("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,n,r,i,a,o=t;for(a=new Array(o.length),e=0,n=o.length;e<n;e+=1){if(r=o[e],"[object Object]"!==J2.call(r))return!1;if(1!==(i=Object.keys(r)).length)return!1;a[e]=[i[0],r[i[0]]]}return!0},construct:function(t){if(null===t)return[];var e,n,r,i,a,o=t;for(a=new Array(o.length),e=0,n=o.length;e<n;e+=1)r=o[e],i=Object.keys(r),a[e]=[i[0],r[i[0]]];return a}}),t3=Object.prototype.hasOwnProperty;var e3=new T2("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,n=t;for(e in n)if(t3.call(n,e)&&null!==n[e])return!1;return!0},construct:function(t){return null!==t?t:{}}}),n3=H2.extend({implicit:[z2,G2],explicit:[V2,Y2,Z2,e3]}),r3=Object.prototype.hasOwnProperty,i3=1,a3=2,o3=3,s3=4,c3=1,l3=2,u3=3,h3=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f3=/[\x85\u2028\u2029]/,d3=/[,\[\]\{\}]/,A3=/^(?:!|!!|![a-z\-]+!)$/i,g3=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function p3(t){return Object.prototype.toString.call(t)}function m3(t){return 10===t||13===t}function b3(t){return 9===t||32===t}function v3(t){return 9===t||32===t||10===t||13===t}function y3(t){return 44===t||91===t||93===t||123===t||125===t}function w3(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function k3(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function C3(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var x3=new Array(256),E3=new Array(256),T3=0;T3<256;T3++)x3[T3]=k3(T3)?1:0,E3[T3]=k3(T3);function B3(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||n3,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 _3(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=C2(n),new y2(e,n)}function S3(t,e){throw _3(t,e)}function L3(t,e){t.onWarning&&t.onWarning.call(null,_3(t,e))}var I3={YAML:function(t,e,n){var r,i,a;null!==t.version&&S3(t,"duplication of %YAML directive"),1!==n.length&&S3(t,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&S3(t,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),a=parseInt(r[2],10),1!==i&&S3(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&L3(t,"unsupported YAML version of the document")},TAG:function(t,e,n){var r,i;2!==n.length&&S3(t,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],A3.test(r)||S3(t,"ill-formed tag handle (first argument) of the TAG directive"),r3.call(t.tagMap,r)&&S3(t,'there is a previously declared suffix for "'+r+'" tag handle'),g3.test(i)||S3(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(e){S3(t,"tag prefix is malformed: "+i)}t.tagMap[r]=i}};function M3(t,e,n,r){var i,a,o,s;if(e<n){if(s=t.input.slice(e,n),r)for(i=0,a=s.length;i<a;i+=1)9===(o=s.charCodeAt(i))||32<=o&&o<=1114111||S3(t,"expected valid JSON character");else h3.test(s)&&S3(t,"the stream contains non-printable characters");t.result+=s}}function O3(t,e,n,r){var i,a,o,s;for(m2.isObject(n)||S3(t,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(i=Object.keys(n)).length;o<s;o+=1)a=i[o],r3.call(e,a)||(e[a]=n[a],r[a]=!0)}function D3(t,e,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(l=0,u=(i=Array.prototype.slice.call(i)).length;l<u;l+=1)Array.isArray(i[l])&&S3(t,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===p3(i[l])&&(i[l]="[object Object]");if("object"==typeof i&&"[object Object]"===p3(i)&&(i="[object Object]"),i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)O3(t,e,a[l],n);else O3(t,e,a,n);else t.json||r3.call(n,i)||!r3.call(e,i)||(t.line=o||t.line,t.lineStart=s||t.lineStart,t.position=c||t.position,S3(t,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[i]=a,delete n[i];return e}function F3(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):S3(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function N3(t,e,n){for(var r=0,i=t.input.charCodeAt(t.position);0!==i;){for(;b3(i);)9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&35===i)do{i=t.input.charCodeAt(++t.position)}while(10!==i&&13!==i&&0!==i);if(!m3(i))break;for(F3(t),i=t.input.charCodeAt(t.position),r++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return-1!==n&&0!==r&&t.lineIndent<n&&L3(t,"deficient indentation"),r}function P3(t){var e,n=t.position;return!(45!==(e=t.input.charCodeAt(n))&&46!==e||e!==t.input.charCodeAt(n+1)||e!==t.input.charCodeAt(n+2)||(n+=3,0!==(e=t.input.charCodeAt(n))&&!v3(e)))}function R3(t,e){1===e?t.result+=" ":e>1&&(t.result+=m2.repeat("\n",e-1))}function Q3(t,e){var n,r,i=t.tag,a=t.anchor,o=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),r=t.input.charCodeAt(t.position);0!==r&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,S3(t,"tab characters must not be used in indentation")),45===r)&&v3(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,N3(t,!0,-1)&&t.lineIndent<=e)o.push(null),r=t.input.charCodeAt(t.position);else if(n=t.line,H3(t,e,o3,!1,!0),o.push(t.result),N3(t,!0,-1),r=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==r)S3(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=i,t.anchor=a,t.kind="sequence",t.result=o,!0)}function U3(t){var e,n,r,i,a=!1,o=!1;if(33!==(i=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&S3(t,"duplication of a tag property"),60===(i=t.input.charCodeAt(++t.position))?(a=!0,i=t.input.charCodeAt(++t.position)):33===i?(o=!0,n="!!",i=t.input.charCodeAt(++t.position)):n="!",e=t.position,a){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&62!==i);t.position<t.length?(r=t.input.slice(e,t.position),i=t.input.charCodeAt(++t.position)):S3(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!v3(i);)33===i&&(o?S3(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),A3.test(n)||S3(t,"named tag handle cannot contain such characters"),o=!0,e=t.position+1)),i=t.input.charCodeAt(++t.position);r=t.input.slice(e,t.position),d3.test(r)&&S3(t,"tag suffix cannot contain flow indicator characters")}r&&!g3.test(r)&&S3(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(e){S3(t,"tag name is malformed: "+r)}return a?t.tag=r:r3.call(t.tagMap,n)?t.tag=t.tagMap[n]+r:"!"===n?t.tag="!"+r:"!!"===n?t.tag="tag:yaml.org,2002:"+r:S3(t,'undeclared tag handle "'+n+'"'),!0}function $3(t){var e,n;if(38!==(n=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&S3(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!v3(n)&&!y3(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&S3(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function H3(t,e,n,r,i){var a,o,s,c,l,u,h,f,d,A=1,g=!1,p=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=o=s=s3===n||o3===n,r&&N3(t,!0,-1)&&(g=!0,t.lineIndent>e?A=1:t.lineIndent===e?A=0:t.lineIndent<e&&(A=-1)),1===A)for(;U3(t)||$3(t);)N3(t,!0,-1)?(g=!0,s=a,t.lineIndent>e?A=1:t.lineIndent===e?A=0:t.lineIndent<e&&(A=-1)):s=!1;if(s&&(s=g||i),1!==A&&s3!==n||(f=i3===n||a3===n?e:e+1,d=t.position-t.lineStart,1===A?s&&(Q3(t,d)||function(t,e,n){var r,i,a,o,s,c,l,u=t.tag,h=t.anchor,f={},d=Object.create(null),A=null,g=null,p=null,m=!1,b=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=f),l=t.input.charCodeAt(t.position);0!==l;){if(m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,S3(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),a=t.line,63!==l&&58!==l||!v3(r)){if(o=t.line,s=t.lineStart,c=t.position,!H3(t,n,a3,!1,!0))break;if(t.line===a){for(l=t.input.charCodeAt(t.position);b3(l);)l=t.input.charCodeAt(++t.position);if(58===l)v3(l=t.input.charCodeAt(++t.position))||S3(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(D3(t,f,d,A,g,null,o,s,c),A=g=p=null),b=!0,m=!1,i=!1,A=t.tag,g=t.result;else{if(!b)return t.tag=u,t.anchor=h,!0;S3(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return t.tag=u,t.anchor=h,!0;S3(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(m&&(D3(t,f,d,A,g,null,o,s,c),A=g=p=null),b=!0,m=!0,i=!0):m?(m=!1,i=!0):S3(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,l=r;if((t.line===a||t.lineIndent>e)&&(m&&(o=t.line,s=t.lineStart,c=t.position),H3(t,e,s3,!0,i)&&(m?g=t.result:p=t.result),m||(D3(t,f,d,A,g,p,o,s,c),A=g=p=null),N3(t,!0,-1),l=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==l)S3(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&D3(t,f,d,A,g,null,o,s,c),b&&(t.tag=u,t.anchor=h,t.kind="mapping",t.result=f),b}(t,d,f))||function(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A=!0,g=t.tag,p=t.anchor,m=Object.create(null);if(91===(d=t.input.charCodeAt(t.position)))o=93,l=!1,a=[];else{if(123!==d)return!1;o=125,l=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),d=t.input.charCodeAt(++t.position);0!==d;){if(N3(t,!0,e),(d=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=g,t.anchor=p,t.kind=l?"mapping":"sequence",t.result=a,!0;A?44===d&&S3(t,"expected the node content, but found ','"):S3(t,"missed comma between flow collection entries"),f=null,s=c=!1,63===d&&v3(t.input.charCodeAt(t.position+1))&&(s=c=!0,t.position++,N3(t,!0,e)),n=t.line,r=t.lineStart,i=t.position,H3(t,e,i3,!1,!0),h=t.tag,u=t.result,N3(t,!0,e),d=t.input.charCodeAt(t.position),!c&&t.line!==n||58!==d||(s=!0,d=t.input.charCodeAt(++t.position),N3(t,!0,e),H3(t,e,i3,!1,!0),f=t.result),l?D3(t,a,m,h,u,f,n,r,i):s?a.push(D3(t,null,m,h,u,f,n,r,i)):a.push(u),N3(t,!0,e),44===(d=t.input.charCodeAt(t.position))?(A=!0,d=t.input.charCodeAt(++t.position)):A=!1}S3(t,"unexpected end of the stream within a flow collection")}(t,f)?p=!0:(o&&function(t,e){var n,r,i,a,o,s=c3,c=!1,l=!1,u=e,h=0,f=!1;if(124===(a=t.input.charCodeAt(t.position)))r=!1;else{if(62!==a)return!1;r=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)c3===s?s=43===a?u3:l3:S3(t,"repeat of a chomping mode identifier");else{if(!((i=48<=(o=a)&&o<=57?o-48:-1)>=0))break;0===i?S3(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?S3(t,"repeat of an indentation width identifier"):(u=e+i-1,l=!0)}if(b3(a)){do{a=t.input.charCodeAt(++t.position)}while(b3(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!m3(a)&&0!==a)}for(;0!==a;){for(F3(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!l||t.lineIndent<u)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>u&&(u=t.lineIndent),m3(a))h++;else{if(t.lineIndent<u){s===u3?t.result+=m2.repeat("\n",c?1+h:h):s===c3&&c&&(t.result+="\n");break}for(r?b3(a)?(f=!0,t.result+=m2.repeat("\n",c?1+h:h)):f?(f=!1,t.result+=m2.repeat("\n",h+1)):0===h?c&&(t.result+=" "):t.result+=m2.repeat("\n",h):t.result+=m2.repeat("\n",c?1+h:h),c=!0,l=!0,h=0,n=t.position;!m3(a)&&0!==a;)a=t.input.charCodeAt(++t.position);M3(t,n,t.position,!1)}}return!0}(t,f)||function(t,e){var n,r,i;if(39!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(M3(t,r,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,i=t.position}else m3(n)?(M3(t,r,i,!0),R3(t,N3(t,!1,e)),r=i=t.position):t.position===t.lineStart&&P3(t)?S3(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);S3(t,"unexpected end of the stream within a single quoted scalar")}(t,f)||function(t,e){var n,r,i,a,o,s,c;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return M3(t,n,t.position,!0),t.position++,!0;if(92===s){if(M3(t,n,t.position,!0),m3(s=t.input.charCodeAt(++t.position)))N3(t,!1,e);else if(s<256&&x3[s])t.result+=E3[s],t.position++;else if((o=120===(c=s)?2:117===c?4:85===c?8:0)>0){for(i=o,a=0;i>0;i--)(o=w3(s=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+o:S3(t,"expected hexadecimal character");t.result+=C3(a),t.position++}else S3(t,"unknown escape sequence");n=r=t.position}else m3(s)?(M3(t,n,r,!0),R3(t,N3(t,!1,e)),n=r=t.position):t.position===t.lineStart&&P3(t)?S3(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}S3(t,"unexpected end of the stream within a double quoted scalar")}(t,f)?p=!0:!function(t){var e,n,r;if(42!==(r=t.input.charCodeAt(t.position)))return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!v3(r)&&!y3(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&S3(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),r3.call(t.anchorMap,n)||S3(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],N3(t,!0,-1),!0}(t)?function(t,e,n){var r,i,a,o,s,c,l,u,h=t.kind,f=t.result;if(v3(u=t.input.charCodeAt(t.position))||y3(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(v3(r=t.input.charCodeAt(t.position+1))||n&&y3(r)))return!1;for(t.kind="scalar",t.result="",i=a=t.position,o=!1;0!==u;){if(58===u){if(v3(r=t.input.charCodeAt(t.position+1))||n&&y3(r))break}else if(35===u){if(v3(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&P3(t)||n&&y3(u))break;if(m3(u)){if(s=t.line,c=t.lineStart,l=t.lineIndent,N3(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&&(M3(t,i,a,!1),R3(t,t.line-s),i=a=t.position,o=!1),b3(u)||(a=t.position+1),u=t.input.charCodeAt(++t.position)}return M3(t,i,a,!1),!!t.result||(t.kind=h,t.result=f,!1)}(t,f,i3===n)&&(p=!0,null===t.tag&&(t.tag="?")):(p=!0,null===t.tag&&null===t.anchor||S3(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===A&&(p=s&&Q3(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&&S3(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),c=0,l=t.implicitTypes.length;c<l;c+=1)if((h=t.implicitTypes[c]).resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(r3.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(h=null,c=0,l=(u=t.typeMap.multi[t.kind||"fallback"]).length;c<l;c+=1)if(t.tag.slice(0,u[c].tag.length)===u[c].tag){h=u[c];break}h||S3(t,"unknown tag !<"+t.tag+">"),null!==t.result&&h.kind!==t.kind&&S3(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)):S3(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||p}function j3(t){var e,n,r,i,a=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(i=t.input.charCodeAt(t.position))&&(N3(t,!0,-1),i=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==i));){for(o=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!v3(i);)i=t.input.charCodeAt(++t.position);for(r=[],(n=t.input.slice(e,t.position)).length<1&&S3(t,"directive name must not be less than one character in length");0!==i;){for(;b3(i);)i=t.input.charCodeAt(++t.position);if(35===i){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&!m3(i));break}if(m3(i))break;for(e=t.position;0!==i&&!v3(i);)i=t.input.charCodeAt(++t.position);r.push(t.input.slice(e,t.position))}0!==i&&F3(t),r3.call(I3,n)?I3[n](t,n,r):L3(t,'unknown document directive "'+n+'"')}N3(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,N3(t,!0,-1)):o&&S3(t,"directives end mark is expected"),H3(t,t.lineIndent-1,s3,!1,!0),N3(t,!0,-1),t.checkLineBreaks&&f3.test(t.input.slice(a,t.position))&&L3(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&P3(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,N3(t,!0,-1)):t.position<t.length-1&&S3(t,"end of the stream or a document separator is expected")}function K3(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var n=new B3(t,e),r=t.indexOf("\0");for(-1!==r&&(n.position=r,S3(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)j3(n);return n.documents}var z3=function(t,e,n){null!==e&&"object"==typeof e&&void 0===n&&(n=e,e=null);var r=K3(t,n);if("function"!=typeof e)return r;for(var i=0,a=r.length;i<a;i+=1)e(r[i])},G3=O2,X3={loadAll:z3,load:function(t,e){var n=K3(t,e);if(0!==n.length){if(1===n.length)return n[0];throw new y2("expected a single document in the stream, but found more")}}}.load;const V3=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;const W3=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,q3=/\s*%%.*\n/gm,Y3={},J3=function(t,e){t=t.replace(V3,"").replace(W3,"").replace(q3,"\n");for(const[n,{detector:r}]of Object.entries(Y3)){if(r(t,e))return n}throw new Error(`No diagram type detected for text: ${t}`)},Z3=(...t)=>{for(const{id:e,detector:n,loader:r}of t)t4(e,n,r)},t4=(t,e,n)=>{Y3[t]?H0.error(`Detector with key ${t} already exists`):Y3[t]={detector:e,loader:n},H0.debug(`Detector with key ${t} added${n?" with loader":""}`)},e4=function(t,e,n){const{depth:r,clobber:i}=Object.assign({depth:2,clobber:!1},n);return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>e4(t,e,n))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||r<=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]?(i||"object"!=typeof t[n]&&"object"!=typeof e[n])&&(t[n]=e[n]):(void 0===t[n]&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=e4(t[n],e[n],{depth:r-1,clobber:i}))})),t)},n4=e4,r4={curveBasis:Lz,curveBasisClosed:function(t){return new Iz(t)},curveBasisOpen:function(t){return new Mz(t)},curveBumpX:function(t){return new Tz(t,!0)},curveBumpY:function(t){return new Tz(t,!1)},curveBundle:Dz,curveCardinalClosed:Qz,curveCardinalOpen:$z,curveCardinal:Pz,curveCatmullRomClosed:Gz,curveCatmullRomOpen:Vz,curveCatmullRom:Kz,curveLinear:yz,curveLinearClosed:function(t){return new Wz(t)},curveMonotoneX:function(t){return new tG(t)},curveMonotoneY:function(t){return new eG(t)},curveNatural:function(t){return new rG(t)},curveStep:function(t){return new aG(t,.5)},curveStepAfter:function(t){return new aG(t,1)},curveStepBefore:function(t){return new aG(t,0)}},i4=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,a4=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,o4=function(t,e=null){try{const n=new RegExp(`[%]{2}(?![{]${a4.source})(?=[}][%]{2}).*\n`,"ig");let r;t=t.trim().replace(n,"").replace(/'/gm,'"'),H0.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const i=[];for(;null!==(r=i4.exec(t));)if(r.index===i4.lastIndex&&i4.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:t,args:e})}return 0===i.length&&i.push({type:t,args:null}),1===i.length?i[0]:i}catch(n){return H0.error(`ERROR: ${n.message} - Unable to parse directive\n ${null!==e?" type:"+e:""} based on the text:${t}`),{type:null,args:null}}};function s4(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return r4[n]||e}function c4(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function l4(t){let e="",n="";for(const r of t)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":e=e+r+";");return{style:e,labelStyle:n}}let u4=0;const h4=()=>(u4++,"id-"+Math.random().toString(36).substr(2,12)+"-"+u4);const f4=t=>function(t){let e="";const n="0123456789abcdef";for(let r=0;r<t;r++)e+=n.charAt(Math.floor(16*Math.random()));return e}(t.length),d4=function(t,e){const n=e.text.replace(Z0.lineBreakRegex," "),[,r]=C4(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",r),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),void 0!==e.class&&i.attr("class",e.class);const a=i.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.attr("fill",e.fill),a.text(n),i},A4=DX(((t,e,n)=>{if(!t)return t;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),Z0.lineBreakRegex.test(t))return t;const r=t.split(" "),i=[];let a="";return r.forEach(((t,o)=>{const s=m4(`${t} `,n),c=m4(a,n);if(s>e){const{hyphenatedStrings:r,remainingWord:o}=g4(t,e,"-",n);i.push(a,...r),a=o}else c+s>=e?(i.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===r.length&&i.push(a)})),i.filter((t=>""!==t)).join(n.joinWith)}),((t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),g4=DX(((t,e,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...t],a=[];let o="";return i.forEach(((t,s)=>{const c=`${o}${t}`;if(m4(c,r)>=e){const t=s+1,e=i.length===t,r=`${c}${n}`;a.push(e?c:r),o=""}else o=c})),{hyphenatedStrings:a,remainingWord:o}}),((t,e,n="-",r)=>`${t}${e}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`));function p4(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),b4(t,e).height}function m4(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),b4(t,e).width}const b4=DX(((t,e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e);const{fontSize:n,fontFamily:r,fontWeight:i}=e;if(!t)return{width:0,height:0};const[,a]=C4(n),o=["sans-serif",r],s=t.split(Z0.lineBreakRegex),c=[],l=JR("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 r 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=r;const s=d4(u,o).style("font-size",a).style("font-weight",i).style("font-family",t),c=(s._groups||s)[0][0].getBBox();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)}u.remove();return 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 v4;const y4=t=>{if(H0.debug("directiveSanitizer called with",t),"object"==typeof t&&(t.length?t.forEach((t=>y4(t))):Object.keys(t).forEach((e=>{H0.debug("Checking key",e),e.startsWith("__")&&(H0.debug("sanitize deleting __ option",e),delete t[e]),e.includes("proto")&&(H0.debug("sanitize deleting proto option",e),delete t[e]),e.includes("constr")&&(H0.debug("sanitize deleting constr option",e),delete t[e]),e.includes("themeCSS")&&(H0.debug("sanitizing themeCss option"),t[e]=w4(t[e])),e.includes("fontFamily")&&(H0.debug("sanitizing fontFamily option"),t[e]=w4(t[e])),e.includes("altFontFamily")&&(H0.debug("sanitizing altFontFamily option"),t[e]=w4(t[e])),h2.includes(e)?"object"==typeof t[e]&&(H0.debug("sanitize deleting object",e),y4(t[e])):(H0.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]="")}}H0.debug("After sanitization",t)},w4=t=>{let e=0,n=0;for(const r of t){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===r?e++:"}"===r&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t};function k4(t){return"str"in t}const C4=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]},x4={assignWithDepth:n4,wrapLabel:A4,calculateTextHeight:p4,calculateTextWidth:m4,calculateTextDimensions:b4,detectInit:function(t,e){const n=o4(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const t=n.map((t=>t.args));y4(t),r=n4(r,[...t])}else r=n.args;if(r){let n=J3(t,e);["config"].forEach((t=>{void 0!==r[t]&&("flowchart-v2"===n&&(n="flowchart"),r[n]=r[t],delete r[t])}))}return r},detectDirective:o4,isSubstringInArray:function(t,e){for(const[n,r]of e.entries())if(r.match(t))return n;return-1},interpolateToCurve:s4,calcLabelPosition:function(t){return 1===t.length?t[0]:function(t){let e,n=0;t.forEach((t=>{n+=c4(t,e),e=t}));let r,i=n/2;return e=void 0,t.forEach((t=>{if(e&&!r){const n=c4(t,e);if(n<i)i-=n;else{const a=i/n;a<=0&&(r=e),a>=1&&(r={x:t.x,y:t.y}),a>0&&a<1&&(r={x:(1-a)*e.x+a*t.x,y:(1-a)*e.y+a*t.y})}}e=t})),r}(t)},calcCardinalityPosition:(t,e,n)=>{let r;H0.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());let i,a=25;r=void 0,e.forEach((t=>{if(r&&!i){const e=c4(t,r);if(e<a)a-=e;else{const n=a/e;n<=0&&(i=r),n>=1&&(i={x:t.x,y:t.y}),n>0&&n<1&&(i={x:(1-n)*r.x+n*t.x,y:(1-n)*r.y+n*t.y})}}r=t}));const o=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),c={x:0,y:0};return c.x=Math.sin(s)*o+(e[0].x+i.x)/2,c.y=-Math.cos(s)*o+(e[0].y+i.y)/2,c},calcTerminalLabelPosition:function(t,e,n){let r,i=JSON.parse(JSON.stringify(n));H0.info("our points",i),"start_left"!==e&&"start_right"!==e&&(i=i.reverse()),i.forEach((t=>{r=t}));let a,o=25+t;r=void 0,i.forEach((t=>{if(r&&!a){const e=c4(t,r);if(e<o)o-=e;else{const n=o/e;n<=0&&(a=r),n>=1&&(a={x:t.x,y:t.y}),n>0&&n<1&&(a={x:(1-n)*r.x+n*t.x,y:(1-n)*r.y+n*t.y})}}r=t}));const s=10+.5*t,c=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return l.x=Math.sin(c)*s+(i[0].x+a.x)/2,l.y=-Math.cos(c)*s+(i[0].y+a.y)/2,"start_left"===e&&(l.x=Math.sin(c+Math.PI)*s+(i[0].x+a.x)/2,l.y=-Math.cos(c+Math.PI)*s+(i[0].y+a.y)/2),"end_right"===e&&(l.x=Math.sin(c-Math.PI)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(c-Math.PI)*s+(i[0].y+a.y)/2-5),"end_left"===e&&(l.x=Math.sin(c)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(c)*s+(i[0].y+a.y)/2-5),l},formatUrl:function(t,e){const n=t.trim();if(n)return"loose"!==e.securityLevel?hN(n):n},getStylesFromArray:l4,generateId:h4,random:f4,runFunc:(t,...e)=>{const n=t.split("."),r=n.length-1,i=n[r];let a=window;for(let t=0;t<r;t++)if(a=a[n[t]],!a)return;a[i](...e)},entityDecode:function(t){return v4=v4||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),v4.innerHTML=t,unescape(v4.textContent)},initIdGenerator:class{constructor(t,e){this.deterministic=t,this.seed=e,this.count=e?e.length:0}next(){return this.deterministic?this.count++:Date.now()}},directiveSanitizer:y4,sanitizeCss:w4,insertTitle:(t,e,n,r)=>{if(!r)return;const i=t.node().getBBox();t.append("text").text(r).attr("x",i.x+i.width/2).attr("y",-n).attr("class",e)},parseFontSize:C4},E4="9.4.3",T4=Object.freeze(f2);let B4,_4=n4({},T4),S4=[],L4=n4({},T4);const I4=(t,e)=>{let n=n4({},t),r={};for(const t of e)F4(t),r=n4(r,t);if(n=n4(n,r),r.theme&&r.theme in c2){const t=n4({},B4),e=n4(t.themeVariables||{},r.themeVariables);n.theme&&n.theme in c2&&(n.themeVariables=c2[n.theme].getThemeVariables(e))}return L4=n,U4(L4),L4},M4=()=>n4({},_4),O4=t=>(U4(t),n4(L4,t),D4()),D4=()=>n4({},L4),F4=t=>{["secure",..._4.secure??[]].forEach((e=>{void 0!==t[e]&&(H0.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]&&F4(t[e])}))},N4=t=>{t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),S4.push(t),I4(_4,S4)},P4=(t=_4)=>{S4=[],I4(t,S4)};var R4=(t=>(t.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",t))(R4||{});const Q4={},U4=t=>{var e;t&&((t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&(Q4[e="LAZY_LOAD_DEPRECATED"]||(H0.warn(R4[e]),Q4[e]=!0)))},$4=function(t,e,n,r){const i=function(t,e,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r}(e,n,r);!function(t,e){for(let n of e)t.attr(n[0],n[1])}(t,i)},H4=function(t,e,n,r){const i=e.node().getBBox(),a=i.width,o=i.height;H0.info(`SVG bounds: ${a}x${o}`,i);let s=0,c=0;H0.info(`Graph bounds: ${s}x${c}`,t),s=a+2*n,c=o+2*n,H0.info(`Calculated bounds: ${s}x${c}`),$4(e,c,s,r);const l=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;e.attr("viewBox",l)},j4=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: 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`,K4=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`,z4=()=>"",G4=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.5;\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`,X4=t=>`\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`,V4=()=>"",W4=t=>`\n .pieCircle{\n stroke: ${t.pieStrokeColor};\n stroke-width : ${t.pieStrokeWidth};\n opacity : ${t.pieOpacity};\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`,q4=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: 100%;\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: 100%;\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`,Y4=t=>`.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`,J4=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`,Z4=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`,t5=t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`,e5={flowchart:G4,"flowchart-v2":G4,sequence:Y4,gantt:X4,classDiagram:j4,"classDiagram-v2":j4,class:j4,stateDiagram:J4,state:J4,info:V4,pie:W4,er:K4,error:z4,journey:Z4,requirement:q4,c4:t5},n5=(t,e,n)=>{let r="";return t in e5&&e5[t]?r=e5[t](n):H0.warn(`No theme found for ${t}`),` & {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n\n ${r}\n\n ${e}\n`};let r5="",i5="",a5="";const o5=t=>X0(t,D4()),s5=function(){r5="",a5="",i5=""},c5=function(t){r5=o5(t).replace(/^\s+/g,"")},l5=function(){return r5||i5},u5=function(t){a5=o5(t).replace(/\n\s+/g,"\n")},h5=function(){return a5},f5=function(t){i5=o5(t)},d5=function(){return i5},A5={setAccTitle:c5,getAccTitle:l5,setDiagramTitle:f5,getDiagramTitle:d5,getAccDescription:h5,setAccDescription:u5,clear:s5},g5=Object.freeze(Object.defineProperty({__proto__:null,clear:s5,default:A5,getAccDescription:h5,getAccTitle:l5,getDiagramTitle:d5,setAccDescription:u5,setAccTitle:c5,setDiagramTitle:f5},Symbol.toStringTag,{value:"Module"}));let p5={};const m5=function(t,e,n,r){H0.debug("parseDirective is being called",e,n,r);try{if(void 0!==e)switch(e=e.trim(),n){case"open_directive":p5={};break;case"type_directive":if(!p5)throw new Error("currentDirective is undefined");p5.type=e.toLowerCase();break;case"arg_directive":if(!p5)throw new Error("currentDirective is undefined");p5.args=JSON.parse(e);break;case"close_directive":b5(t,p5,r),p5=void 0}}catch(t){H0.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${n}`),H0.error(t.message)}},b5=function(t,e,n){switch(H0.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])})),H0.info("sanitize in handleDirective",e.args),y4(e.args),H0.info("sanitize in handleDirective (done)",e.args),N4(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":H0.warn("themeCss encountered");break;default:H0.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e)}},v5=H0,y5=j0,w5=D4,k5=t=>X0(t,w5()),C5=H4,x5=(t,e,n,r)=>m5(t,e,n,r),E5={},T5=(t,e,n)=>{if(E5[t])throw new Error(`Diagram ${t} already registered.`);var r,i;E5[t]=e,n&&t4(t,n),r=t,i=e.styles,e5[r]=i,e.injectUtils&&e.injectUtils(v5,y5,w5,k5,C5,g5,x5)},B5=t=>{if(t in E5)return E5[t];throw new Error(`Diagram ${t} not found.`)};var _5=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,4],r=[1,7],i=[1,5],a=[1,9],o=[1,6],s=[2,6],c=[1,16],l=[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],h=[8,13,14,20,22,24,25,27,29,32,37,40],f=[1,26],d=[6,8,14,50,55],A=[8,14,55],g=[1,53],p=[1,52],m=[8,14,30,33,35,38,55],b=[1,67],v=[1,68],y=[1,69],w=[8,14,33,35,42,55],k={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,r,i,a,o){var s=a.length-1;switch(i){case 3:return a[s];case 4:return a[s-1];case 5:return r.setDirection(a[s-3]),a[s-1];case 7:r.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(),r.setAccTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 20:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 22:r.checkout(a[s]);break;case 23:r.branch(a[s]);break;case 24:r.branch(a[s-2],a[s]);break;case 25:r.cherryPick(a[s],"",void 0);break;case 26:r.cherryPick(a[s-2],"",a[s]);break;case 27:case 29:r.cherryPick(a[s-2],"","");break;case 28:r.cherryPick(a[s],"",a[s-2]);break;case 30:r.merge(a[s],"","","");break;case 31:r.merge(a[s-2],a[s],"","");break;case 32:r.merge(a[s-2],"",a[s],"");break;case 33:r.merge(a[s-2],"","",a[s]);break;case 34:r.merge(a[s-4],a[s],"",a[s-2]);break;case 35:r.merge(a[s-4],"",a[s],a[s-2]);break;case 36:r.merge(a[s-4],"",a[s-2],a[s]);break;case 37:r.merge(a[s-4],a[s-2],a[s],"");break;case 38:r.merge(a[s-4],a[s-2],"",a[s]);break;case 39:r.merge(a[s-4],a[s],a[s-2],"");break;case 40:r.merge(a[s-6],a[s-4],a[s-2],a[s]);break;case 41:r.merge(a[s-6],a[s],a[s-4],a[s-2]);break;case 42:r.merge(a[s-6],a[s-4],a[s],a[s-2]);break;case 43:r.merge(a[s-6],a[s-2],a[s-4],a[s]);break;case 44:r.merge(a[s-6],a[s],a[s-2],a[s-4]);break;case 45:r.merge(a[s-6],a[s-2],a[s],a[s-4]);break;case 46:r.commit(a[s]);break;case 47:r.commit("","",r.commitType.NORMAL,a[s]);break;case 48:r.commit("","",a[s],"");break;case 49:r.commit("","",a[s],a[s-2]);break;case 50:r.commit("","",a[s-2],a[s]);break;case 51:r.commit("",a[s],r.commitType.NORMAL,"");break;case 52:r.commit("",a[s-2],r.commitType.NORMAL,a[s]);break;case 53:r.commit("",a[s],r.commitType.NORMAL,a[s-2]);break;case 54:r.commit("",a[s-2],a[s],"");break;case 55:r.commit("",a[s],a[s-2],"");break;case 56:r.commit("",a[s-4],a[s-2],a[s]);break;case 57:r.commit("",a[s-4],a[s],a[s-2]);break;case 58:r.commit("",a[s-2],a[s-4],a[s]);break;case 59:r.commit("",a[s],a[s-4],a[s-2]);break;case 60:r.commit("",a[s],a[s-2],a[s-4]);break;case 61:r.commit("",a[s-2],a[s],a[s-4]);break;case 62:r.commit(a[s],"",r.commitType.NORMAL,"");break;case 63:r.commit(a[s],"",r.commitType.NORMAL,a[s-2]);break;case 64:r.commit(a[s-2],"",r.commitType.NORMAL,a[s]);break;case 65:r.commit(a[s-2],"",a[s],"");break;case 66:r.commit(a[s],"",a[s-2],"");break;case 67:r.commit(a[s],a[s-2],r.commitType.NORMAL,"");break;case 68:r.commit(a[s-2],a[s],r.commitType.NORMAL,"");break;case 69:r.commit(a[s-4],"",a[s-2],a[s]);break;case 70:r.commit(a[s-4],"",a[s],a[s-2]);break;case 71:r.commit(a[s-2],"",a[s-4],a[s]);break;case 72:r.commit(a[s],"",a[s-4],a[s-2]);break;case 73:r.commit(a[s],"",a[s-2],a[s-4]);break;case 74:r.commit(a[s-2],"",a[s],a[s-4]);break;case 75:r.commit(a[s-4],a[s],a[s-2],"");break;case 76:r.commit(a[s-4],a[s-2],a[s],"");break;case 77:r.commit(a[s-2],a[s],a[s-4],"");break;case 78:r.commit(a[s],a[s-2],a[s-4],"");break;case 79:r.commit(a[s],a[s-4],a[s-2],"");break;case 80:r.commit(a[s-2],a[s-4],a[s],"");break;case 81:r.commit(a[s-4],a[s],r.commitType.NORMAL,a[s-2]);break;case 82:r.commit(a[s-4],a[s-2],r.commitType.NORMAL,a[s]);break;case 83:r.commit(a[s-2],a[s],r.commitType.NORMAL,a[s-4]);break;case 84:r.commit(a[s],a[s-2],r.commitType.NORMAL,a[s-4]);break;case 85:r.commit(a[s],a[s-4],r.commitType.NORMAL,a[s-2]);break;case 86:r.commit(a[s-2],a[s-4],r.commitType.NORMAL,a[s]);break;case 87:r.commit(a[s-6],a[s-4],a[s-2],a[s]);break;case 88:r.commit(a[s-6],a[s-4],a[s],a[s-2]);break;case 89:r.commit(a[s-6],a[s-2],a[s-4],a[s]);break;case 90:r.commit(a[s-6],a[s],a[s-4],a[s-2]);break;case 91:r.commit(a[s-6],a[s-2],a[s],a[s-4]);break;case 92:r.commit(a[s-6],a[s],a[s-2],a[s-4]);break;case 93:r.commit(a[s-4],a[s-6],a[s-2],a[s]);break;case 94:r.commit(a[s-4],a[s-6],a[s],a[s-2]);break;case 95:r.commit(a[s-2],a[s-6],a[s-4],a[s]);break;case 96:r.commit(a[s],a[s-6],a[s-4],a[s-2]);break;case 97:r.commit(a[s-2],a[s-6],a[s],a[s-4]);break;case 98:r.commit(a[s],a[s-6],a[s-2],a[s-4]);break;case 99:r.commit(a[s],a[s-4],a[s-2],a[s-6]);break;case 100:r.commit(a[s-2],a[s-4],a[s],a[s-6]);break;case 101:r.commit(a[s],a[s-2],a[s-4],a[s-6]);break;case 102:r.commit(a[s-2],a[s],a[s-4],a[s-6]);break;case 103:r.commit(a[s-4],a[s-2],a[s],a[s-6]);break;case 104:r.commit(a[s-4],a[s],a[s-2],a[s-6]);break;case 105:r.commit(a[s-2],a[s-4],a[s-6],a[s]);break;case 106:r.commit(a[s],a[s-4],a[s-6],a[s-2]);break;case 107:r.commit(a[s-2],a[s],a[s-6],a[s-4]);break;case 108:r.commit(a[s],a[s-2],a[s-6],a[s-4]);break;case 109:r.commit(a[s-4],a[s-2],a[s-6],a[s]);break;case 110:r.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.$=r.commitType.NORMAL;break;case 114:this.$=r.commitType.REVERSE;break;case 115:this.$=r.commitType.HIGHLIGHT;break;case 118:r.parseDirective("%%{","open_directive");break;case 119:r.parseDirective(a[s],"type_directive");break;case 120:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 121:r.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:n,8:r,14:i,46:8,50:a,55:o},{1:[3]},{3:10,4:2,5:3,6:n,8:r,14:i,46:8,50:a,55:o},{3:11,4:2,5:3,6:n,8:r,14:i,46:8,50:a,55:o},{7:12,8:s,9:[1,13],10:[1,14],11:15,14:c},e(l,[2,124]),e(l,[2,125]),e(l,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:s,11:15,14:c},{9:[1,21]},e(u,[2,10],{12:22,13:[1,23]}),e(h,[2,9]),{9:[1,25],48:24,53:f},e([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:s,11:15,14:c},{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]},e(h,[2,8]),e(d,[2,116]),{49:45,52:[1,46]},e(d,[2,121]),{1:[2,4]},{8:[1,47]},e(u,[2,11]),{4:48,8:r,14:i,55:o},e(u,[2,13]),e(A,[2,14]),e(A,[2,15]),e(A,[2,16]),{21:[1,49]},{23:[1,50]},e(A,[2,19]),e(A,[2,20]),e(A,[2,21]),{28:51,34:g,54:p},e(A,[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:f},{53:[2,120]},{1:[2,5]},e(u,[2,12]),e(A,[2,17]),e(A,[2,18]),e(A,[2,22]),e(m,[2,122]),e(m,[2,123]),e(A,[2,46]),{34:[1,65]},{39:66,43:b,44:v,45:y},{34:[1,70]},{34:[1,71]},e(A,[2,112]),e(A,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},e(A,[2,23],{30:[1,78]}),e(d,[2,117]),e(A,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),e(A,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),e(w,[2,113]),e(w,[2,114]),e(w,[2,115]),e(A,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),e(A,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:b,44:v,45:y},{34:[1,93]},e(A,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:b,44:v,45:y},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:b,44:v,45:y},{34:[1,106]},{34:[1,107]},{39:108,43:b,44:v,45:y},{34:[1,109]},e(A,[2,31],{35:[1,111],38:[1,110]}),e(A,[2,32],{33:[1,113],35:[1,112]}),e(A,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},e(A,[2,24]),e(A,[2,49],{33:[1,120],42:[1,121]}),e(A,[2,53],{38:[1,122],42:[1,123]}),e(A,[2,63],{33:[1,125],38:[1,124]}),e(A,[2,50],{33:[1,126],42:[1,127]}),e(A,[2,55],{35:[1,128],42:[1,129]}),e(A,[2,66],{33:[1,131],35:[1,130]}),e(A,[2,52],{38:[1,132],42:[1,133]}),e(A,[2,54],{35:[1,134],42:[1,135]}),e(A,[2,67],{35:[1,137],38:[1,136]}),e(A,[2,64],{33:[1,139],38:[1,138]}),e(A,[2,65],{33:[1,141],35:[1,140]}),e(A,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:b,44:v,45:y},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:b,44:v,45:y},e(A,[2,26]),e(A,[2,27]),e(A,[2,28]),e(A,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:b,44:v,45:y},{34:[1,153]},{39:154,43:b,44:v,45:y},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:b,44:v,45:y},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:b,44:v,45:y},{34:[1,167]},{39:168,43:b,44:v,45:y},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:b,44:v,45:y},{34:[1,173]},e(A,[2,37],{35:[1,174]}),e(A,[2,38],{38:[1,175]}),e(A,[2,36],{33:[1,176]}),e(A,[2,39],{35:[1,177]}),e(A,[2,34],{38:[1,178]}),e(A,[2,35],{33:[1,179]}),e(A,[2,60],{42:[1,180]}),e(A,[2,73],{33:[1,181]}),e(A,[2,61],{42:[1,182]}),e(A,[2,84],{38:[1,183]}),e(A,[2,74],{33:[1,184]}),e(A,[2,83],{38:[1,185]}),e(A,[2,59],{42:[1,186]}),e(A,[2,72],{33:[1,187]}),e(A,[2,58],{42:[1,188]}),e(A,[2,78],{35:[1,189]}),e(A,[2,71],{33:[1,190]}),e(A,[2,77],{35:[1,191]}),e(A,[2,57],{42:[1,192]}),e(A,[2,85],{38:[1,193]}),e(A,[2,56],{42:[1,194]}),e(A,[2,79],{35:[1,195]}),e(A,[2,80],{35:[1,196]}),e(A,[2,86],{38:[1,197]}),e(A,[2,70],{33:[1,198]}),e(A,[2,81],{38:[1,199]}),e(A,[2,69],{33:[1,200]}),e(A,[2,75],{35:[1,201]}),e(A,[2,76],{35:[1,202]}),e(A,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:b,44:v,45:y},{34:[1,206]},{34:[1,207]},{39:208,43:b,44:v,45:y},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:b,44:v,45:y},{34:[1,214]},{39:215,43:b,44:v,45:y},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:b,44:v,45:y},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:b,44:v,45:y},{34:[1,228]},{39:229,43:b,44:v,45:y},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:b,44:v,45:y},e(A,[2,40]),e(A,[2,42]),e(A,[2,41]),e(A,[2,43]),e(A,[2,45]),e(A,[2,44]),e(A,[2,101]),e(A,[2,102]),e(A,[2,99]),e(A,[2,100]),e(A,[2,104]),e(A,[2,103]),e(A,[2,108]),e(A,[2,107]),e(A,[2,106]),e(A,[2,105]),e(A,[2,110]),e(A,[2,109]),e(A,[2,98]),e(A,[2,97]),e(A,[2,96]),e(A,[2,95]),e(A,[2,93]),e(A,[2,94]),e(A,[2,92]),e(A,[2,91]),e(A,[2,90]),e(A,[2,89]),e(A,[2,87]),e(A,[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},C=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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,/^(?:BT\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}}},t);function x(){this.yy={}}return k.lexer=C,x.prototype=k,k.Parser=x,new x}();_5.parser=_5;const S5=_5,L5=t=>null!==t.match(/^\s*gitGraph/);let I5=D4().gitGraph.mainBranchName,M5=D4().gitGraph.mainBranchOrder,O5={},D5=null,F5={};F5[I5]={name:I5,order:M5};let N5={};N5[I5]=D5;let P5=I5,R5="LR",Q5=0;function U5(){return f4({length:7})}let $5={};const H5=function(t){if(t=Z0.sanitizeText(t,D4()),void 0===N5[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}{P5=t;const e=N5[P5];D5=O5[e]}};function j5(t,e,n){const r=t.indexOf(e);-1===r?t.push(n):t.splice(r,1,n)}function K5(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 r=[n,e.id,e.seq];for(let t in N5)N5[t]===e.id&&r.push(t);if(H0.debug(r.join(" ")),e.parents&&2==e.parents.length){const n=O5[e.parents[0]];j5(t,e,n),t.push(O5[e.parents[1]])}else{if(0==e.parents.length)return;{const n=O5[e.parents];j5(t,e,n)}}t=function(t,e){const n=Object.create(null);return t.reduce(((t,r)=>{const i=e(r);return n[i]||(n[i]=!0,t.push(r)),t}),[])}(t,(t=>t.id)),K5(t)}const z5=function(){const t=Object.keys(O5).map((function(t){return O5[t]}));return t.forEach((function(t){H0.debug(t.id)})),t.sort(((t,e)=>t.seq-e.seq)),t},G5={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},X5={parseDirective:function(t,e,n){Git.parseDirective(this,t,e,n)},getConfig:()=>D4().gitGraph,setDirection:function(t){R5=t},setOptions:function(t){H0.debug("options str",t),t=(t=t&&t.trim())||"{}";try{$5=JSON.parse(t)}catch(t){H0.error("error while parsing gitGraph options",t.message)}},getOptions:function(){return $5},commit:function(t,e,n,r){H0.debug("Entering commit:",t,e,n,r),e=Z0.sanitizeText(e,D4()),t=Z0.sanitizeText(t,D4()),r=Z0.sanitizeText(r,D4());const i={id:e||Q5+"-"+U5(),message:t,seq:Q5++,type:n||G5.NORMAL,tag:r||"",parents:null==D5?[]:[D5.id],branch:P5};D5=i,O5[i.id]=i,N5[P5]=i.id,H0.debug("in pushCommit "+i.id)},branch:function(t,e){if(t=Z0.sanitizeText(t,D4()),void 0!==N5[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}N5[t]=null!=D5?D5.id:null,F5[t]={name:t,order:e?parseInt(e,10):null},H5(t),H0.debug("in createBranch")},merge:function(t,e,n,r){t=Z0.sanitizeText(t,D4()),e=Z0.sanitizeText(e,D4());const i=O5[N5[P5]],a=O5[N5[t]];if(P5===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===i||!i){let e=new Error('Incorrect usage of "merge". Current branch ('+P5+")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===N5[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(i===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!==O5[e]){let i=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom Id");throw i.hash={text:"merge "+t+e+n+r,token:"merge "+t+e+n+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+t+" "+e+"_UNIQUE "+n+" "+r]},i}const o={id:e||Q5+"-"+U5(),message:"merged branch "+t+" into "+P5,seq:Q5++,parents:[null==D5?null:D5.id,N5[t]],branch:P5,type:G5.MERGE,customType:n,customId:!!e,tag:r||""};D5=o,O5[o.id]=o,N5[P5]=o.id,H0.debug(N5),H0.debug("in mergeBranch")},cherryPick:function(t,e,n){if(H0.debug("Entering cherryPick:",t,e,n),t=Z0.sanitizeText(t,D4()),e=Z0.sanitizeText(e,D4()),n=Z0.sanitizeText(n,D4()),!t||void 0===O5[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=O5[t],i=r.branch;if(r.type===G5.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===O5[e]){if(i===P5){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=O5[N5[P5]];if(void 0===a||!a){let n=new Error('Incorrect usage of "cherry-pick". Current branch ('+P5+")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 o={id:Q5+"-"+U5(),message:"cherry-picked "+r+" into "+P5,seq:Q5++,parents:[null==D5?null:D5.id,r.id],branch:P5,type:G5.CHERRY_PICK,tag:n??"cherry-pick:"+r.id};D5=o,O5[o.id]=o,N5[P5]=o.id,H0.debug(N5),H0.debug("in cherryPick")}},checkout:H5,prettyPrint:function(){H0.debug(O5);K5([z5()[0]])},clear:function(){O5={},D5=null;let t=D4().gitGraph.mainBranchName,e=D4().gitGraph.mainBranchOrder;N5={},N5[t]=null,F5={},F5[t]={name:t,order:e},P5=t,Q5=0,s5()},getBranchesAsObjArray:function(){const t=Object.values(F5).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})));return t},getBranches:function(){return N5},getCommits:function(){return O5},getCommitsArray:z5,getCurrentBranch:function(){return P5},getDirection:function(){return R5},getHead:function(){return D5},setAccTitle:c5,getAccTitle:l5,getAccDescription:h5,setAccDescription:u5,setDiagramTitle:f5,getDiagramTitle:d5,commitType:G5};let V5={};const W5=0,q5=1,Y5=2,J5=3,Z5=4;let t6={},e6={},n6=[],r6=0;const i6=(t,e,n)=>{const r=w5().gitGraph,i=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels");let o=0;Object.keys(e).sort(((t,n)=>e[t].seq-e[n].seq)).forEach((t=>{const s=e[t],c=t6[s.branch].pos,l=o+10;if(n){let t,e=void 0!==s.customType&&""!==s.customType?s.customType:s.type;switch(e){case W5:t="commit-normal";break;case q5:t="commit-reverse";break;case Y5:t="commit-highlight";break;case J5:t="commit-merge";break;case Z5:t="commit-cherry-pick";break;default:t="commit-normal"}if(e===Y5){const e=i.append("rect");e.attr("x",l-10),e.attr("y",c-10),e.attr("height",20),e.attr("width",20),e.attr("class",`commit ${s.id} commit-highlight${t6[s.branch].index%8} ${t}-outer`),i.append("rect").attr("x",l-6).attr("y",c-6).attr("height",12).attr("width",12).attr("class",`commit ${s.id} commit${t6[s.branch].index%8} ${t}-inner`)}else if(e===Z5)i.append("circle").attr("cx",l).attr("cy",c).attr("r",10).attr("class",`commit ${s.id} ${t}`),i.append("circle").attr("cx",l-3).attr("cy",c+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${t}`),i.append("circle").attr("cx",l+3).attr("cy",c+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${t}`),i.append("line").attr("x1",l+3).attr("y1",c+1).attr("x2",l).attr("y2",c-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${t}`),i.append("line").attr("x1",l-3).attr("y1",c+1).attr("x2",l).attr("y2",c-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${t}`);else{const n=i.append("circle");if(n.attr("cx",l),n.attr("cy",c),n.attr("r",s.type===J5?9:10),n.attr("class",`commit ${s.id} commit${t6[s.branch].index%8}`),e===J5){const e=i.append("circle");e.attr("cx",l),e.attr("cy",c),e.attr("r",6),e.attr("class",`commit ${t} ${s.id} commit${t6[s.branch].index%8}`)}if(e===q5){i.append("path").attr("d",`M ${l-5},${c-5}L${l+5},${c+5}M${l-5},${c+5}L${l+5},${c-5}`).attr("class",`commit ${t} ${s.id} commit${t6[s.branch].index%8}`)}}}if(e6[s.id]={x:o+10,y:c},n){const t=4,e=2;if(s.type!==Z5&&(s.customId&&s.type===J5||s.type!==J5)&&r.showCommitLabel){const t=a.append("g"),n=t.insert("rect").attr("class","commit-label-bkg"),i=t.append("text").attr("x",o).attr("y",c+25).attr("class","commit-label").text(s.id);let l=i.node().getBBox();if(n.attr("x",o+10-l.width/2-e).attr("y",c+13.5).attr("width",l.width+2*e).attr("height",l.height+2*e),i.attr("x",o+10-l.width/2),r.rotateCommitLabel){let e=-7.5-(l.width+10)/25*9.5,n=10+l.width/25*8.5;t.attr("transform","translate("+e+", "+n+") rotate("+"-45, "+o+", "+c+")")}}if(s.tag){const n=a.insert("polygon"),r=a.append("circle"),i=a.append("text").attr("y",c-16).attr("class","tag-label").text(s.tag);let l=i.node().getBBox();i.attr("x",o+10-l.width/2);const u=l.height/2,h=c-19.2;n.attr("class","tag-label-bkg").attr("points",`\n ${o-l.width/2-t/2},${h+e}\n ${o-l.width/2-t/2},${h-e}\n ${o+10-l.width/2-t},${h-u-e}\n ${o+10+l.width/2+t},${h-u-e}\n ${o+10+l.width/2+t},${h+u+e}\n ${o+10-l.width/2-t},${h+u+e}`),r.attr("cx",o-l.width/2+t/2).attr("cy",h).attr("r",1.5).attr("class","tag-hole")}}o+=50,o>r6&&(r6=o)}))},a6=(t,e,n=0)=>{const r=t+Math.abs(t-e)/2;if(n>5)return r;if(n6.every((t=>Math.abs(t-r)>=10)))return n6.push(r),r;const i=Math.abs(t-e);return a6(t,e-i/5,n+1)},o6=(t,e,n,r)=>{const i=e6[e.id],a=e6[n.id],o=((t,e,n)=>{const r=Object.keys(n).filter((r=>n[r].branch===e.branch&&n[r].seq>t.seq&&n[r].seq<e.seq));return r.length>0})(e,n,r);let s,c="",l="",u=0,h=0,f=t6[n.branch].index;if(o){c="A 10 10, 0, 0, 0,",l="A 10 10, 0, 0, 1,",u=10,h=10,f=t6[n.branch].index;const t=i.y<a.y?a6(i.y,a.y):a6(a.y,i.y);s=i.y<a.y?`M ${i.x} ${i.y} L ${i.x} ${t-u} ${c} ${i.x+h} ${t} L ${a.x-u} ${t} ${l} ${a.x} ${t+h} L ${a.x} ${a.y}`:`M ${i.x} ${i.y} L ${i.x} ${t+u} ${l} ${i.x+h} ${t} L ${a.x-u} ${t} ${c} ${a.x} ${t-h} L ${a.x} ${a.y}`}else i.y<a.y&&(c="A 20 20, 0, 0, 0,",u=20,h=20,f=t6[n.branch].index,s=`M ${i.x} ${i.y} L ${i.x} ${a.y-u} ${c} ${i.x+h} ${a.y} L ${a.x} ${a.y}`),i.y>a.y&&(c="A 20 20, 0, 0, 0,",u=20,h=20,f=t6[e.branch].index,s=`M ${i.x} ${i.y} L ${a.x-u} ${i.y} ${c} ${a.x} ${i.y-h} L ${a.x} ${a.y}`),i.y===a.y&&(f=t6[e.branch].index,s=`M ${i.x} ${i.y} L ${i.x} ${a.y-u} ${c} ${i.x+h} ${a.y} L ${a.x} ${a.y}`);t.append("path").attr("d",s).attr("class","arrow arrow"+f%8)},s6=(t,e)=>{const n=w5().gitGraph,r=t.append("g");e.forEach(((t,e)=>{const i=e%8,a=t6[t.name].pos,o=r.append("line");o.attr("x1",0),o.attr("y1",a),o.attr("x2",r6),o.attr("y2",a),o.attr("class","branch branch"+i),n6.push(a);const s=(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");let n=[];n="string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/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})(t.name),c=r.insert("rect"),l=r.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+i);l.node().appendChild(s);let u=s.getBBox();c.attr("class","branchLabelBkg label"+i).attr("rx",4).attr("ry",4).attr("x",-u.width-4-(!0===n.rotateCommitLabel?30:0)).attr("y",-u.height/2+8).attr("width",u.width+18).attr("height",u.height+4),l.attr("transform","translate("+(-u.width-14-(!0===n.rotateCommitLabel?30:0))+", "+(a-u.height/2-1)+")"),c.attr("transform","translate(-19, "+(a-u.height/2)+")")}))},c6={draw:function(t,e,n,r){t6={},e6={},V5={},r6=0,n6=[];const i=w5(),a=i.gitGraph;H0.debug("in gitgraph renderer",t+"\n","id:",e,n),V5=r.db.getCommits();const o=r.db.getBranchesAsObjArray();let s=0;o.forEach(((t,e)=>{t6[t.name]={pos:s,index:e},s+=50+(a.rotateCommitLabel?40:0)}));const c=JR(`[id="${e}"]`);i6(c,V5,!1),a.showBranches&&s6(c,o),((t,e)=>{const n=t.append("g").attr("class","commit-arrows");Object.keys(e).forEach((t=>{const r=e[t];r.parents&&r.parents.length>0&&r.parents.forEach((t=>{o6(n,e[t],r,e)}))}))})(c,V5),i6(c,V5,!0),x4.insertTitle(c,"gitTitleText",a.titleTopMargin,r.db.getDiagramTitle()),C5(void 0,c,a.diagramPadding,a.useMaxWidth??i.useMaxWidth)}},l6=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 }\n`;var u6=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,6],r=[1,7],i=[1,8],a=[1,9],o=[1,16],s=[1,11],l=[1,12],u=[1,13],h=[1,14],f=[1,15],d=[1,27],A=[1,33],g=[1,34],p=[1,35],m=[1,36],b=[1,37],v=[1,72],y=[1,73],w=[1,74],k=[1,75],C=[1,76],x=[1,77],E=[1,78],T=[1,38],B=[1,39],_=[1,40],S=[1,41],L=[1,42],I=[1,43],M=[1,44],O=[1,45],D=[1,46],F=[1,47],N=[1,48],P=[1,49],R=[1,50],Q=[1,51],U=[1,52],$=[1,53],H=[1,54],j=[1,55],K=[1,56],z=[1,57],G=[1,59],X=[1,60],V=[1,61],W=[1,62],q=[1,63],Y=[1,64],J=[1,65],Z=[1,66],tt=[1,67],et=[1,68],nt=[1,69],rt=[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],at=[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],ot=[1,94],st=[1,95],ct=[1,96],lt=[1,97],ut=[15,24,52],ht=[7,8,9,10,18,22,25,26,27,28],ft=[15,24,43,52],dt=[15,24,43,52,86,87,89,90],At=[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,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setDirection("TB");break;case 5:r.setDirection("BT");break;case 6:r.setDirection("RL");break;case 7:r.setDirection("LR");break;case 11:r.parseDirective("%%{","open_directive");break;case 12:break;case 13:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 14:r.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:r.setC4Type(a[s-3]);break;case 26:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 27:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 28:this.$=a[s].trim(),r.setTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:case 36:a[s].splice(2,0,"ENTERPRISE"),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 37:r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 38:a[s].splice(2,0,"CONTAINER"),r.addContainerBoundary(...a[s]),this.$=a[s];break;case 39:r.addDeploymentNode("node",...a[s]),this.$=a[s];break;case 40:r.addDeploymentNode("nodeL",...a[s]),this.$=a[s];break;case 41:r.addDeploymentNode("nodeR",...a[s]),this.$=a[s];break;case 42:r.popBoundaryParseStack();break;case 46:r.addPersonOrSystem("person",...a[s]),this.$=a[s];break;case 47:r.addPersonOrSystem("external_person",...a[s]),this.$=a[s];break;case 48:r.addPersonOrSystem("system",...a[s]),this.$=a[s];break;case 49:r.addPersonOrSystem("system_db",...a[s]),this.$=a[s];break;case 50:r.addPersonOrSystem("system_queue",...a[s]),this.$=a[s];break;case 51:r.addPersonOrSystem("external_system",...a[s]),this.$=a[s];break;case 52:r.addPersonOrSystem("external_system_db",...a[s]),this.$=a[s];break;case 53:r.addPersonOrSystem("external_system_queue",...a[s]),this.$=a[s];break;case 54:r.addContainer("container",...a[s]),this.$=a[s];break;case 55:r.addContainer("container_db",...a[s]),this.$=a[s];break;case 56:r.addContainer("container_queue",...a[s]),this.$=a[s];break;case 57:r.addContainer("external_container",...a[s]),this.$=a[s];break;case 58:r.addContainer("external_container_db",...a[s]),this.$=a[s];break;case 59:r.addContainer("external_container_queue",...a[s]),this.$=a[s];break;case 60:r.addComponent("component",...a[s]),this.$=a[s];break;case 61:r.addComponent("component_db",...a[s]),this.$=a[s];break;case 62:r.addComponent("component_queue",...a[s]),this.$=a[s];break;case 63:r.addComponent("external_component",...a[s]),this.$=a[s];break;case 64:r.addComponent("external_component_db",...a[s]),this.$=a[s];break;case 65:r.addComponent("external_component_queue",...a[s]),this.$=a[s];break;case 67:r.addRel("rel",...a[s]),this.$=a[s];break;case 68:r.addRel("birel",...a[s]),this.$=a[s];break;case 69:r.addRel("rel_u",...a[s]),this.$=a[s];break;case 70:r.addRel("rel_d",...a[s]),this.$=a[s];break;case 71:r.addRel("rel_l",...a[s]),this.$=a[s];break;case 72:r.addRel("rel_r",...a[s]),this.$=a[s];break;case 73:r.addRel("rel_b",...a[s]),this.$=a[s];break;case 74:a[s].splice(0,1),r.addRel("rel",...a[s]),this.$=a[s];break;case 75:r.updateElStyle("update_el_style",...a[s]),this.$=a[s];break;case 76:r.updateRelStyle("update_rel_style",...a[s]),this.$=a[s];break;case 77:r.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:n,8:r,9:i,10:a,11:5,12:10,18:o,22:s,25:l,26:u,27:h,28:f},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:n,8:r,9:i,10:a,11:5,12:10,18:o,22:s,25:l,26:u,27:h,28:f},{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:d},e([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:A,33:g,34:p,36:m,38:b,39:58,40:70,42:71,44:v,46:y,47:w,48:k,49:C,50:x,51:E,53:32,54:T,55:B,56:_,57:S,58:L,59:I,60:M,61:O,62:D,63:F,64:N,65:P,66:R,67:Q,68:U,69:$,70:H,71:j,72:K,73:z,74:G,75:X,76:V,77:W,78:q,79:Y,80:J,81:Z,82:tt,83:et,84:nt},{23:79,29:29,30:30,31:31,32:A,33:g,34:p,36:m,38:b,39:58,40:70,42:71,44:v,46:y,47:w,48:k,49:C,50:x,51:E,53:32,54:T,55:B,56:_,57:S,58:L,59:I,60:M,61:O,62:D,63:F,64:N,65:P,66:R,67:Q,68:U,69:$,70:H,71:j,72:K,73:z,74:G,75:X,76:V,77:W,78:q,79:Y,80:J,81:Z,82:tt,83:et,84:nt},{23:80,29:29,30:30,31:31,32:A,33:g,34:p,36:m,38:b,39:58,40:70,42:71,44:v,46:y,47:w,48:k,49:C,50:x,51:E,53:32,54:T,55:B,56:_,57:S,58:L,59:I,60:M,61:O,62:D,63:F,64:N,65:P,66:R,67:Q,68:U,69:$,70:H,71:j,72:K,73:z,74:G,75:X,76:V,77:W,78:q,79:Y,80:J,81:Z,82:tt,83:et,84:nt},{23:81,29:29,30:30,31:31,32:A,33:g,34:p,36:m,38:b,39:58,40:70,42:71,44:v,46:y,47:w,48:k,49:C,50:x,51:E,53:32,54:T,55:B,56:_,57:S,58:L,59:I,60:M,61:O,62:D,63:F,64:N,65:P,66:R,67:Q,68:U,69:$,70:H,71:j,72:K,73:z,74:G,75:X,76:V,77:W,78:q,79:Y,80:J,81:Z,82:tt,83:et,84:nt},{23:82,29:29,30:30,31:31,32:A,33:g,34:p,36:m,38:b,39:58,40:70,42:71,44:v,46:y,47:w,48:k,49:C,50:x,51:E,53:32,54:T,55:B,56:_,57:S,58:L,59:I,60:M,61:O,62:D,63:F,64:N,65:P,66:R,67:Q,68:U,69:$,70:H,71:j,72:K,73:z,74:G,75:X,76:V,77:W,78:q,79:Y,80:J,81:Z,82:tt,83:et,84:nt},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},e(rt,[2,20],{53:32,39:58,40:70,42:71,30:87,44:v,46:y,47:w,48:k,49:C,50:x,51:E,54:T,55:B,56:_,57:S,58:L,59:I,60:M,61:O,62:D,63:F,64:N,65:P,66:R,67:Q,68:U,69:$,70:H,71:j,72:K,73:z,74:G,75:X,76:V,77:W,78:q,79:Y,80:J,81:Z,82:tt,83:et,84:nt}),e(rt,[2,21]),e(it,[2,23],{15:[1,88]}),e(rt,[2,43],{15:[1,89]}),e(at,[2,26]),e(at,[2,27]),{35:[1,90]},{37:[1,91]},e(at,[2,30]),{45:92,85:93,86:ot,87:st,89:ct,90:lt},{45:98,85:93,86:ot,87:st,89:ct,90:lt},{45:99,85:93,86:ot,87:st,89:ct,90:lt},{45:100,85:93,86:ot,87:st,89:ct,90:lt},{45:101,85:93,86:ot,87:st,89:ct,90:lt},{45:102,85:93,86:ot,87:st,89:ct,90:lt},{45:103,85:93,86:ot,87:st,89:ct,90:lt},{45:104,85:93,86:ot,87:st,89:ct,90:lt},{45:105,85:93,86:ot,87:st,89:ct,90:lt},{45:106,85:93,86:ot,87:st,89:ct,90:lt},{45:107,85:93,86:ot,87:st,89:ct,90:lt},{45:108,85:93,86:ot,87:st,89:ct,90:lt},{45:109,85:93,86:ot,87:st,89:ct,90:lt},{45:110,85:93,86:ot,87:st,89:ct,90:lt},{45:111,85:93,86:ot,87:st,89:ct,90:lt},{45:112,85:93,86:ot,87:st,89:ct,90:lt},{45:113,85:93,86:ot,87:st,89:ct,90:lt},{45:114,85:93,86:ot,87:st,89:ct,90:lt},{45:115,85:93,86:ot,87:st,89:ct,90:lt},{45:116,85:93,86:ot,87:st,89:ct,90:lt},e(ut,[2,66]),{45:117,85:93,86:ot,87:st,89:ct,90:lt},{45:118,85:93,86:ot,87:st,89:ct,90:lt},{45:119,85:93,86:ot,87:st,89:ct,90:lt},{45:120,85:93,86:ot,87:st,89:ct,90:lt},{45:121,85:93,86:ot,87:st,89:ct,90:lt},{45:122,85:93,86:ot,87:st,89:ct,90:lt},{45:123,85:93,86:ot,87:st,89:ct,90:lt},{45:124,85:93,86:ot,87:st,89:ct,90:lt},{45:125,85:93,86:ot,87:st,89:ct,90:lt},{45:126,85:93,86:ot,87:st,89:ct,90:lt},{45:127,85:93,86:ot,87:st,89:ct,90:lt},{30:128,39:58,40:70,42:71,44:v,46:y,47:w,48:k,49:C,50:x,51:E,53:32,54:T,55:B,56:_,57:S,58:L,59:I,60:M,61:O,62:D,63:F,64:N,65:P,66:R,67:Q,68:U,69:$,70:H,71:j,72:K,73:z,74:G,75:X,76:V,77:W,78:q,79:Y,80:J,81:Z,82:tt,83:et,84:nt},{15:[1,130],43:[1,129]},{45:131,85:93,86:ot,87:st,89:ct,90:lt},{45:132,85:93,86:ot,87:st,89:ct,90:lt},{45:133,85:93,86:ot,87:st,89:ct,90:lt},{45:134,85:93,86:ot,87:st,89:ct,90:lt},{45:135,85:93,86:ot,87:st,89:ct,90:lt},{45:136,85:93,86:ot,87:st,89:ct,90:lt},{45:137,85:93,86:ot,87:st,89:ct,90:lt},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},e(ht,[2,9]),{14:142,21:d},{21:[2,13]},{1:[2,15]},e(rt,[2,22]),e(it,[2,24],{31:31,29:143,32:A,33:g,34:p,36:m,38:b}),e(rt,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:A,33:g,34:p,36:m,38:b,44:v,46:y,47:w,48:k,49:C,50:x,51:E,54:T,55:B,56:_,57:S,58:L,59:I,60:M,61:O,62:D,63:F,64:N,65:P,66:R,67:Q,68:U,69:$,70:H,71:j,72:K,73:z,74:G,75:X,76:V,77:W,78:q,79:Y,80:J,81:Z,82:tt,83:et,84:nt}),e(at,[2,28]),e(at,[2,29]),e(ut,[2,46]),e(ft,[2,78],{85:93,45:145,86:ot,87:st,89:ct,90:lt}),e(dt,[2,80]),{88:[1,146]},e(dt,[2,82]),e(dt,[2,83]),e(ut,[2,47]),e(ut,[2,48]),e(ut,[2,49]),e(ut,[2,50]),e(ut,[2,51]),e(ut,[2,52]),e(ut,[2,53]),e(ut,[2,54]),e(ut,[2,55]),e(ut,[2,56]),e(ut,[2,57]),e(ut,[2,58]),e(ut,[2,59]),e(ut,[2,60]),e(ut,[2,61]),e(ut,[2,62]),e(ut,[2,63]),e(ut,[2,64]),e(ut,[2,65]),e(ut,[2,67]),e(ut,[2,68]),e(ut,[2,69]),e(ut,[2,70]),e(ut,[2,71]),e(ut,[2,72]),e(ut,[2,73]),e(ut,[2,74]),e(ut,[2,75]),e(ut,[2,76]),e(ut,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},e(At,[2,35]),e(At,[2,36]),e(At,[2,37]),e(At,[2,38]),e(At,[2,39]),e(At,[2,40]),e(At,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},e(it,[2,25]),e(rt,[2,45]),e(ft,[2,79]),e(dt,[2,81]),e(ut,[2,31]),e(ut,[2,42]),e(gt,[2,32]),e(gt,[2,33],{15:[1,152]}),e(ht,[2,10]),e(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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},mt=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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:[],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}}},t);function bt(){this.yy={}}return pt.lexer=mt,bt.prototype=pt,pt.Parser=bt,new bt}();u6.parser=u6;const h6=u6,f6=t=>null!==t.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/);let d6=[],A6=[""],g6="global",p6="",m6=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],b6=[],v6="",y6=!1,w6=4,k6=2;var C6;const x6=function(t){return null==t?d6:d6.filter((e=>e.parentBoundary===t))},E6=function(){return y6},T6={addPersonOrSystem:function(t,e,n,r,i,a,o){if(null===e||null===n)return;let s={};const c=d6.find((t=>t.alias===e));if(c&&e===c.alias?s=c:(s.alias=e,d6.push(s)),s.label=null==n?{text:""}:{text:n},null==r)s.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];s[t]={text:e}}else s.descr={text:r};if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]=e}else s.sprite=i;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=g6,s.wrap=E6()},addPersonOrSystemBoundary:function(t,e,n,r,i){if(null===t||null===e)return;let a={};const o=m6.find((e=>e.alias===t));if(o&&t===o.alias?a=o:(a.alias=t,m6.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 r){let[t,e]=Object.entries(r)[0];a[t]=e}else a.tags=r;if("object"==typeof i){let[t,e]=Object.entries(i)[0];a[t]=e}else a.link=i;a.parentBoundary=g6,a.wrap=E6(),p6=g6,g6=t,A6.push(p6)},addContainer:function(t,e,n,r,i,a,o,s){if(null===e||null===n)return;let c={};const l=d6.find((t=>t.alias===e));if(l&&e===l.alias?c=l:(c.alias=e,d6.push(c)),c.label=null==n?{text:""}:{text:n},null==r)c.techn={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.techn={text:r};if(null==i)c.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.descr={text:i};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=E6(),c.typeC4Shape={text:t},c.parentBoundary=g6},addContainerBoundary:function(t,e,n,r,i){if(null===t||null===e)return;let a={};const o=m6.find((e=>e.alias===t));if(o&&t===o.alias?a=o:(a.alias=t,m6.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 r){let[t,e]=Object.entries(r)[0];a[t]=e}else a.tags=r;if("object"==typeof i){let[t,e]=Object.entries(i)[0];a[t]=e}else a.link=i;a.parentBoundary=g6,a.wrap=E6(),p6=g6,g6=t,A6.push(p6)},addComponent:function(t,e,n,r,i,a,o,s){if(null===e||null===n)return;let c={};const l=d6.find((t=>t.alias===e));if(l&&e===l.alias?c=l:(c.alias=e,d6.push(c)),c.label=null==n?{text:""}:{text:n},null==r)c.techn={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.techn={text:r};if(null==i)c.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.descr={text:i};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=E6(),c.typeC4Shape={text:t},c.parentBoundary=g6},addDeploymentNode:function(t,e,n,r,i,a,o,s){if(null===e||null===n)return;let c={};const l=m6.find((t=>t.alias===e));if(l&&e===l.alias?c=l:(c.alias=e,m6.push(c)),c.label=null==n?{text:""}:{text:n},null==r)c.type={text:"node"};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.type={text:r};if(null==i)c.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.descr={text:i};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=g6,c.wrap=E6(),p6=g6,g6=e,A6.push(p6)},popBoundaryParseStack:function(){g6=p6,A6.pop(),p6=A6.pop(),A6.push(p6)},addRel:function(t,e,n,r,i,a,o,s,c){if(null==t||null==e||null==n||null==r)return;let l={};const u=b6.find((t=>t.from===e&&t.to===n));if(u?l=u:b6.push(l),l.type=t,l.from=e,l.to=n,l.label={text:r},null==i)l.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]={text:e}}else l.techn={text:i};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=E6()},updateElStyle:function(t,e,n,r,i,a,o,s,c,l,u){let h=d6.find((t=>t.alias===e));if(void 0!==h||(h=m6.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!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];h[t]=e}else h.fontColor=r;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];h[t]=e}else h.borderColor=i;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,r,i,a,o){const s=b6.find((t=>t.from===e&&t.to===n));if(void 0!==s){if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];s[t]=e}else s.textColor=r;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]=e}else s.lineColor=i;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 r=w6,i=k6;if("object"==typeof e){const t=Object.values(e)[0];r=parseInt(t)}else r=parseInt(e);if("object"==typeof n){const t=Object.values(n)[0];i=parseInt(t)}else i=parseInt(n);r>=1&&(w6=r),i>=1&&(k6=i)},autoWrap:E6,setWrap:function(t){y6=t},getC4ShapeArray:x6,getC4Shape:function(t){return d6.find((e=>e.alias===t))},getC4ShapeKeys:function(t){return Object.keys(x6(t))},getBoundarys:function(t){return null==t?m6:m6.filter((e=>e.parentBoundary===t))},getCurrentBoundaryParse:function(){return g6},getParentBoundaryParse:function(){return p6},getRels:function(){return b6},getTitle:function(){return v6},getC4Type:function(){return C6},getC4ShapeInRow:function(){return w6},getC4BoundaryInRow:function(){return k6},setAccTitle:c5,getAccTitle:l5,getAccDescription:h5,setAccDescription:u5,parseDirective:function(t,e,n){Git.parseDirective(this,t,e,n)},getConfig:()=>D4().c4,clear:function(){d6=[],m6=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],p6="",g6="global",A6=[""],b6=[],A6=[""],v6="",y6=!1,w6=4,k6=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){let e=X0(t,D4());v6=e},setC4Type:function(t){let e=X0(t,D4());C6=e}},B6=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},_6=function(t,e,n,r,i,a){const o=t.append("image");o.attr("width",e),o.attr("height",n),o.attr("x",r),o.attr("y",i);let s=a.startsWith("data:image/png;base64")?a:hN(a);o.attr("xlink:href",s)},S6=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},L6=(t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),I6=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{fontSize:l,fontFamily:u,fontWeight:h}=c,f=t.split(Z0.lineBreakRegex);for(let t=0;t<f.length;t++){const o=t*l-l*(f.length-1)/2,c=e.append("text").attr("x",n+a/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",l).style("font-weight",h).style("font-family",u);c.append("tspan").attr("dy",o).text(f[t]).attr("alignment-baseline","mathematical"),r(c,s)}}function n(t,n,i,a,o,s,c,l){const u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,o,0,c,l),r(h,c)}function r(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}(),M6=function(t,e,n){const r=t.append("g");let i=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:i,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:s};B6(r,c);let l=n.boundaryFont();l.fontWeight="bold",l.fontSize=l.fontSize+2,l.fontColor=o,I6(n)(e.label.text,r,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,I6(n)(e.type.text,r,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,I6(n)(e.descr.text,r,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},l))},O6=function(t,e,n){var r;let i=e.bgColor?e.bgColor:n[e.typeC4Shape.text+"_bg_color"],a=e.borderColor?e.borderColor:n[e.typeC4Shape.text+"_border_color"],o=e.fontColor?e.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}const c=t.append("g");c.attr("class","person-man");const l=S6();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":l.x=e.x,l.y=e.y,l.fill=i,l.width=e.width,l.height=e.height,l.stroke=a,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},B6(c,l);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":c.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),c.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":c.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),c.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}let u=L6(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":_6(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,I6(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==(r=e.techn)?void 0:r.text)?I6(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&&I6(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,I6(n)(e.descr.text,c,e.x,e.y+e.descr.Y,e.width,e.height,{fill:o},h)),e.height},D6=(t,e,n)=>{const r=t.append("g");let i=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===i){let e=r.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)"),i=-1}else{let e=r.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();I6(n)(t.label.text,r,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(),I6(n)("["+t.techn.text+"]",r,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))}},F6=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")},N6=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")},P6=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")},R6=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")},Q6=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")},U6=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")},$6=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 H6=0,j6=0,K6=4,z6=2;u6.yy=T6;let G6={};class X6{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,V6(t.db.getConfig())}setData(t,e,n,r){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=r}updateVal(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(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,r=this.nextData.starty+2*t.margin,i=r+t.height;(e>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>K6)&&(e=this.nextData.startx+t.margin+G6.nextLinePaddingX,r=this.nextData.stopy+2*t.margin,this.nextData.stopx=n=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=r+t.height,this.nextData.cnt=1),t.x=e,t.y=r,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",r,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",r,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",i,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},V6(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const V6=function(t){n4(G6,t),t.fontFamily&&(G6.personFontFamily=G6.systemFontFamily=G6.messageFontFamily=t.fontFamily),t.fontSize&&(G6.personFontSize=G6.systemFontSize=G6.messageFontSize=t.fontSize),t.fontWeight&&(G6.personFontWeight=G6.systemFontWeight=G6.messageFontWeight=t.fontWeight)},W6=(t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),q6=t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight});function Y6(t,e,n,r,i){if(!e[t].width)if(n)e[t].text=A4(e[t].text,i,r),e[t].textLines=e[t].text.split(Z0.lineBreakRegex).length,e[t].width=i,e[t].height=p4(e[t].text,r);else{let n=e[t].text.split(Z0.lineBreakRegex);e[t].textLines=n.length;let i=0;e[t].height=0,e[t].width=0;for(const a of n)e[t].width=Math.max(m4(a,r),e[t].width),i=p4(a,r),e[t].height=e[t].height+i}}const J6=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=G6.c4ShapeMargin-35;let r=e.wrap&&G6.wrap,i=q6(G6);i.fontSize=i.fontSize+2,i.fontWeight="bold",Y6("label",e,r,i,m4(e.label.text,i)),M6(t,e,G6)},Z6=function(t,e,n,r){let i=0;for(const a of r){i=0;const r=n[a];let o=W6(G6,r.typeC4Shape.text);switch(o.fontSize=o.fontSize-2,r.typeC4Shape.width=m4("<<"+r.typeC4Shape.text+">>",o),r.typeC4Shape.height=o.fontSize+2,r.typeC4Shape.Y=G6.c4ShapePadding,i=r.typeC4Shape.Y+r.typeC4Shape.height-4,r.image={width:0,height:0,Y:0},r.typeC4Shape.text){case"person":case"external_person":r.image.width=48,r.image.height=48,r.image.Y=i,i=r.image.Y+r.image.height}r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=i,i=r.image.Y+r.image.height);let s=r.wrap&&G6.wrap,c=G6.width-2*G6.c4ShapePadding,l=W6(G6,r.typeC4Shape.text);if(l.fontSize=l.fontSize+2,l.fontWeight="bold",Y6("label",r,s,l,c),r.label.Y=i+8,i=r.label.Y+r.label.height,r.type&&""!==r.type.text){r.type.text="["+r.type.text+"]",Y6("type",r,s,W6(G6,r.typeC4Shape.text),c),r.type.Y=i+5,i=r.type.Y+r.type.height}else if(r.techn&&""!==r.techn.text){r.techn.text="["+r.techn.text+"]",Y6("techn",r,s,W6(G6,r.techn.text),c),r.techn.Y=i+5,i=r.techn.Y+r.techn.height}let u=i,h=r.label.width;if(r.descr&&""!==r.descr.text){Y6("descr",r,s,W6(G6,r.typeC4Shape.text),c),r.descr.Y=i+20,i=r.descr.Y+r.descr.height,h=Math.max(r.label.width,r.descr.width),u=i-5*r.descr.textLines}h+=G6.c4ShapePadding,r.width=Math.max(r.width||G6.width,h,G6.width),r.height=Math.max(r.height||G6.height,u,G6.height),r.margin=r.margin||G6.c4ShapeMargin,t.insert(r),O6(e,r,G6)}t.bumpLastMargin(G6.c4ShapeMargin)};class t8{constructor(t,e){this.x=t,this.y=e}}let e8=function(t,e){let n=t.x,r=t.y,i=e.x,a=e.y,o=n+t.width/2,s=r+t.height/2,c=Math.abs(n-i),l=Math.abs(r-a),u=l/c,h=t.height/t.width,f=null;return r==a&&n<i?f=new t8(n+t.width,s):r==a&&n>i?f=new t8(n,s):n==i&&r<a?f=new t8(o,r+t.height):n==i&&r>a&&(f=new t8(o,r)),n>i&&r<a?f=h>=u?new t8(n,s+u*t.width/2):new t8(o-c/l*t.height/2,r+t.height):n<i&&r<a?f=h>=u?new t8(n+t.width,s+u*t.width/2):new t8(o+c/l*t.height/2,r+t.height):n<i&&r>a?f=h>=u?new t8(n+t.width,s-u*t.width/2):new t8(o+t.height/2*c/l,r):n>i&&r>a&&(f=h>=u?new t8(n,s-t.width/2*u):new t8(o-t.height/2*c/l,r)),f},n8=function(t,e){let n={x:0,y:0};n.x=e.x+e.width/2,n.y=e.y+e.height/2;let r=e8(t,n);return n.x=t.x+t.width/2,n.y=t.y+t.height/2,{startPoint:r,endPoint:e8(e,n)}};function r8(t,e,n,r,i){let a=new X6(i);a.data.widthLimit=n.data.widthLimit/Math.min(z6,r.length);for(let[o,s]of r.entries()){let r=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=r,r=s.image.Y+s.image.height);let c=s.wrap&&G6.wrap,l=q6(G6);if(l.fontSize=l.fontSize+2,l.fontWeight="bold",Y6("label",s,c,l,a.data.widthLimit),s.label.Y=r+8,r=s.label.Y+s.label.height,s.type&&""!==s.type.text){s.type.text="["+s.type.text+"]",Y6("type",s,c,q6(G6),a.data.widthLimit),s.type.Y=r+5,r=s.type.Y+s.type.height}if(s.descr&&""!==s.descr.text){let t=q6(G6);t.fontSize=t.fontSize-2,Y6("descr",s,c,t,a.data.widthLimit),s.descr.Y=r+20,r=s.descr.Y+s.descr.height}if(0==o||o%z6==0){let t=n.data.startx+G6.diagramMarginX,e=n.data.stopy+G6.diagramMarginY+r;a.setData(t,t,e,e)}else{let t=a.data.stopx!==a.data.startx?a.data.stopx+G6.diagramMarginX:a.data.startx,e=a.data.starty;a.setData(t,t,e,e)}a.name=s.alias;let u=i.db.getC4ShapeArray(s.alias),h=i.db.getC4ShapeKeys(s.alias);h.length>0&&Z6(a,t,u,h),e=s.alias;let f=i.db.getBoundarys(e);f.length>0&&r8(t,e,a,f,i),"global"!==s.alias&&J6(t,s,a),n.data.stopy=Math.max(a.data.stopy+G6.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(a.data.stopx+G6.c4ShapeMargin,n.data.stopx),H6=Math.max(H6,n.data.stopx),j6=Math.max(j6,n.data.stopy)}}const i8={drawPersonOrSystemArray:Z6,drawBoundary:J6,setConf:V6,draw:function(t,e,n,r){G6=D4().c4;const i=D4().securityLevel;let a;"sandbox"===i&&(a=JR("#i"+e));const o=JR("sandbox"===i?a.nodes()[0].contentDocument.body:"body");let s=r.db;r.db.setWrap(G6.wrap),K6=s.getC4ShapeInRow(),z6=s.getC4BoundaryInRow(),H0.debug(`C:${JSON.stringify(G6,null,2)}`);const c="sandbox"===i?o.select(`[id="${e}"]`):JR(`[id="${e}"]`);U6(c),Q6(c),$6(c);let l=new X6(r);l.setData(G6.diagramMarginX,G6.diagramMarginX,G6.diagramMarginY,G6.diagramMarginY),l.data.widthLimit=screen.availWidth,H6=G6.diagramMarginX,j6=G6.diagramMarginY;const u=r.db.getTitle();r8(c,"",l,r.db.getBoundarys(""),r),F6(c),N6(c),R6(c),P6(c),function(t,e,n,r){let i=0;for(let t of e){i+=1;let e=t.wrap&&G6.wrap,o={fontFamily:(a=G6).messageFontFamily,fontSize:a.messageFontSize,fontWeight:a.messageFontWeight};"C4Dynamic"===r.db.getC4Type()&&(t.label.text=i+": "+t.label.text);let s=m4(t.label.text,o);Y6("label",t,e,o,s),t.techn&&""!==t.techn.text&&(s=m4(t.techn.text,o),Y6("techn",t,e,o,s)),t.descr&&""!==t.descr.text&&(s=m4(t.descr.text,o),Y6("descr",t,e,o,s));let c=n(t.from),l=n(t.to),u=n8(c,l);t.startPoint=u.startPoint,t.endPoint=u.endPoint}var a;D6(t,e,G6)}(c,r.db.getRels(),r.db.getC4Shape,r),l.data.stopx=H6,l.data.stopy=j6;const h=l.data;let f=h.stopy-h.starty+2*G6.diagramMarginY;const d=h.stopx-h.startx+2*G6.diagramMarginX;u&&c.append("text").text(u).attr("x",(h.stopx-h.startx)/2-4*G6.diagramMarginX).attr("y",h.starty+G6.diagramMarginY),$4(c,f,d,G6.useMaxWidth);const A=u?60:0;c.attr("viewBox",h.startx-G6.diagramMarginX+" -"+(G6.diagramMarginY+A)+" "+d+" "+(f+A)),H0.debug("models:",h)}};var a8=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,3],r=[1,7],i=[1,8],a=[1,9],o=[1,10],s=[1,13],c=[1,12],l=[1,16,25],u=[1,20],h=[1,32],f=[1,33],d=[1,34],A=[1,36],g=[1,39],p=[1,37],m=[1,38],b=[1,44],v=[1,45],y=[1,40],w=[1,41],k=[1,42],C=[1,43],x=[1,48],E=[1,49],T=[1,50],B=[1,51],_=[16,25],S=[1,65],L=[1,66],I=[1,67],M=[1,68],O=[1,69],D=[1,70],F=[1,71],N=[1,80],P=[16,25,32,45,46,54,60,61,62,63,64,65,66,71,73],R=[16,25,30,32,45,46,50,54,60,61,62,63,64,65,66,71,73,88,89,90,91],Q=[5,8,9,10,11,16,19,23,25],U=[54,88,89,90,91],$=[54,65,66,88,89,90,91],H=[54,60,61,62,63,64,88,89,90,91],j=[16,25,32],K=[1,107],z={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive: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,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,noteStatement:38,acc_title:39,acc_title_value:40,acc_descr:41,acc_descr_value:42,acc_descr_multiline_value:43,CLASS:44,STYLE_SEPARATOR:45,STRUCT_START:46,members:47,STRUCT_STOP:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,STR:54,NOTE_FOR:55,noteText:56,NOTE:57,relationType:58,lineType: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,CSSCLASS:74,commentToken:75,textToken:76,graphCodeTokens:77,textNoTagsToken:78,TAGSTART:79,TAGEND:80,"==":81,"--":82,PCT:83,DEFAULT:84,SPACE:85,MINUS:86,keywords:87,UNICODE_TEXT:88,NUM:89,ALPHA:90,BQUOTE_STR:91,$accept:0,$end:1},terminals_:{2:"error",5:"statments",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",25:"EOF",30:"GENERICTYPE",32:"LABEL",39:"acc_title",40:"acc_title_value",41:"acc_descr",42:"acc_descr_value",43:"acc_descr_multiline_value",44:"CLASS",45:"STYLE_SEPARATOR",46:"STRUCT_START",48:"STRUCT_STOP",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"STR",55:"NOTE_FOR",57:"NOTE",60:"AGGREGATION",61:"EXTENSION",62:"COMPOSITION",63:"DEPENDENCY",64:"LOLLIPOP",65:"LINE",66:"DOTTED_LINE",67:"CALLBACK",68:"LINK",69:"LINK_TARGET",70:"CLICK",71:"CALLBACK_NAME",72:"CALLBACK_ARGS",73:"HREF",74:"CSSCLASS",77:"graphCodeTokens",79:"TAGSTART",80:"TAGEND",81:"==",82:"--",83:"PCT",84:"DEFAULT",85:"SPACE",86:"MINUS",87:"keywords",88:"UNICODE_TEXT",89:"NUM",90:"ALPHA",91:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[47,1],[47,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[38,3],[38,2],[53,3],[53,2],[53,2],[53,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[75,1],[75,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[78,1],[78,1],[78,1],[78,1],[28,1],[28,1],[28,1],[29,1],[56,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setDirection("TB");break;case 6:r.setDirection("BT");break;case 7:r.setDirection("RL");break;case 8:r.setDirection("LR");break;case 12:r.parseDirective("%%{","open_directive");break;case 13:r.parseDirective(a[s],"type_directive");break;case 14:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 15:r.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=a[s];break;case 22:this.$=a[s-1]+a[s];break;case 23:case 24:this.$=a[s-1]+"~"+a[s];break;case 25:r.addRelation(a[s]);break;case 26:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 35:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 36:case 37:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 38:r.addClass(a[s]);break;case 39:r.addClass(a[s-2]),r.setCssClass(a[s-2],a[s]);break;case 40:r.addClass(a[s-3]),r.addMembers(a[s-3],a[s-1]);break;case 41:r.addClass(a[s-5]),r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 42:r.addAnnotation(a[s],a[s-2]);break;case 43:this.$=[a[s]];break;case 44:a[s].push(a[s-1]),this.$=a[s];break;case 45:case 47:case 48:break;case 46:r.addMember(a[s-1],r.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:r.addNote(a[s],a[s-1]);break;case 54:r.addNote(a[s]);break;case 55:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 56:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 57:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 58:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 59:this.$=r.relationType.AGGREGATION;break;case 60:this.$=r.relationType.EXTENSION;break;case 61:this.$=r.relationType.COMPOSITION;break;case 62:this.$=r.relationType.DEPENDENCY;break;case 63:this.$=r.relationType.LOLLIPOP;break;case 64:this.$=r.lineType.LINE;break;case 65:this.$=r.lineType.DOTTED_LINE;break;case 66:case 72:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 67:case 73:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 68:case 76:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 69:case 77:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 70:case 78:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 71:case 79:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 74:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 75:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 80:r.setCssClass(a[s-1],a[s])}},table:[{3:1,4:2,5:n,6:4,7:5,8:r,9:i,10:a,11:o,12:6,13:11,19:s,23:c},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:n,6:4,7:5,8:r,9:i,10:a,11:o,12:6,13:11,19:s,23:c},{1:[2,9]},e(l,[2,5]),e(l,[2,6]),e(l,[2,7]),e(l,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:u},e([17,22],[2,13]),{6:31,7:30,8:r,9:i,10:a,11:o,13:11,19:s,24:21,26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:h,41:f,43:d,44:A,49:g,51:p,52:m,55:b,57:v,67:y,68:w,70:k,74:C,88:x,89:E,90:T,91:B},{16:[1,52]},{18:53,21:[1,54]},{16:[2,15]},{25:[1,55]},{16:[1,56],25:[2,17]},e(_,[2,25],{32:[1,57]}),e(_,[2,27]),e(_,[2,28]),e(_,[2,29]),e(_,[2,30]),e(_,[2,31]),e(_,[2,32]),e(_,[2,33]),e(_,[2,34]),{40:[1,58]},{42:[1,59]},e(_,[2,37]),e(_,[2,45],{53:60,58:63,59:64,32:[1,62],54:[1,61],60:S,61:L,62:I,63:M,64:O,65:D,66:F}),{27:72,28:46,29:47,88:x,89:E,90:T,91:B},e(_,[2,47]),e(_,[2,48]),{28:73,88:x,89:E,90:T},{27:74,28:46,29:47,88:x,89:E,90:T,91:B},{27:75,28:46,29:47,88:x,89:E,90:T,91:B},{27:76,28:46,29:47,88:x,89:E,90:T,91:B},{54:[1,77]},{27:78,28:46,29:47,88:x,89:E,90:T,91:B},{54:N,56:79},e(P,[2,20],{28:46,29:47,27:81,30:[1,82],88:x,89:E,90:T,91:B}),e(P,[2,21],{30:[1,83]}),e(R,[2,94]),e(R,[2,95]),e(R,[2,96]),e([16,25,30,32,45,46,54,60,61,62,63,64,65,66,71,73],[2,97]),e(Q,[2,10]),{15:84,22:u},{22:[2,14]},{1:[2,16]},{6:31,7:30,8:r,9:i,10:a,11:o,13:11,19:s,24:85,25:[2,18],26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:h,41:f,43:d,44:A,49:g,51:p,52:m,55:b,57:v,67:y,68:w,70:k,74:C,88:x,89:E,90:T,91:B},e(_,[2,26]),e(_,[2,35]),e(_,[2,36]),{27:86,28:46,29:47,54:[1,87],88:x,89:E,90:T,91:B},{53:88,58:63,59:64,60:S,61:L,62:I,63:M,64:O,65:D,66:F},e(_,[2,46]),{59:89,65:D,66:F},e(U,[2,58],{58:90,60:S,61:L,62:I,63:M,64:O}),e($,[2,59]),e($,[2,60]),e($,[2,61]),e($,[2,62]),e($,[2,63]),e(H,[2,64]),e(H,[2,65]),e(_,[2,38],{45:[1,91],46:[1,92]}),{50:[1,93]},{54:[1,94]},{54:[1,95]},{71:[1,96],73:[1,97]},{28:98,88:x,89:E,90:T},{54:N,56:99},e(_,[2,54]),e(_,[2,98]),e(P,[2,22]),e(P,[2,23]),e(P,[2,24]),{16:[1,100]},{25:[2,19]},e(j,[2,49]),{27:101,28:46,29:47,88:x,89:E,90:T,91:B},{27:102,28:46,29:47,54:[1,103],88:x,89:E,90:T,91:B},e(U,[2,57],{58:104,60:S,61:L,62:I,63:M,64:O}),e(U,[2,56]),{28:105,88:x,89:E,90:T},{47:106,51:K},{27:108,28:46,29:47,88:x,89:E,90:T,91:B},e(_,[2,66],{54:[1,109]}),e(_,[2,68],{54:[1,111],69:[1,110]}),e(_,[2,72],{54:[1,112],72:[1,113]}),e(_,[2,76],{54:[1,115],69:[1,114]}),e(_,[2,80]),e(_,[2,53]),e(Q,[2,11]),e(j,[2,51]),e(j,[2,50]),{27:116,28:46,29:47,88:x,89:E,90:T,91:B},e(U,[2,55]),e(_,[2,39],{46:[1,117]}),{48:[1,118]},{47:119,48:[2,43],51:K},e(_,[2,42]),e(_,[2,67]),e(_,[2,69]),e(_,[2,70],{69:[1,120]}),e(_,[2,73]),e(_,[2,74],{54:[1,121]}),e(_,[2,77]),e(_,[2,78],{69:[1,122]}),e(j,[2,52]),{47:123,51:K},e(_,[2,40]),{48:[2,44]},e(_,[2,71]),e(_,[2,75]),e(_,[2,79]),{48:[1,124]},e(_,[2,41])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],54:[2,14],55:[2,16],85:[2,19],119:[2,44]},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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},G=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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 27:break;case 11:return this.begin("acc_title"),39;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),41;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 39:case 42:case 45:case 48:case 51:case 54:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),46;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),48;case 28:return"MEMBER";case 29:return 44;case 30:return 74;case 31:return 67;case 32:return 68;case 33:return 70;case 34:return 55;case 35:return 57;case 36:return 49;case 37:return 50;case 38:this.begin("generic");break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 43:return"STR";case 44:this.begin("bqstring");break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 49:return 73;case 50:this.begin("callback_name");break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 71;case 55:return 72;case 56:case 57:case 58:case 59:return 69;case 60:case 61:return 61;case 62:case 63:return 63;case 64:return 62;case 65:return 60;case 66:return 64;case 67:return 65;case 68:return 66;case 69:return 32;case 70:return 45;case 71:return 86;case 72:return"DOT";case 73:return"PLUS";case 74:return 83;case 75:case 76:return"EQUALS";case 77:return 90;case 78:return"PUNCTUATION";case 79:return 89;case 80:return 88;case 81:return 85;case 82:return 25}},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)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_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:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[54,55],inclusive:!1},callback_name:{rules:[51,52,53],inclusive:!1},href:{rules:[48,49],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[39,40],inclusive:!1},bqstring:{rules:[45,46],inclusive:!1},string:{rules:[42,43],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,37,38,41,44,47,50,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],inclusive:!0}}},t);function X(){this.yy={}}return z.lexer=G,X.prototype=z,z.Parser=X,new X}();a8.parser=a8;const o8=a8,s8=(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.class)?void 0:n.defaultRenderer)&&null!==t.match(/^\s*classDiagram/)},c8=(t,e)=>{var n;return null!==t.match(/^\s*classDiagram/)&&"dagre-wrapper"===(null==(n=null==e?void 0:e.class)?void 0:n.defaultRenderer)||null!==t.match(/^\s*classDiagram-v2/)},l8="classid-";let u8=[],h8={},f8=[],d8=0,A8=[];const g8=t=>Z0.sanitizeText(t,D4()),p8=function(t){let e="",n=t;if(t.indexOf("~")>0){let r=t.split("~");n=r[0],e=Z0.sanitizeText(r[1],D4())}return{className:n,type:e}},m8=function(t){let e=p8(t);void 0===h8[e.className]&&(h8[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:l8+e.className+"-"+d8},d8++)},b8=function(t){const e=Object.keys(h8);for(const n of e)if(h8[n].id===t)return h8[n].domId},v8=function(t,e){const n=p8(t).className,r=h8[n];if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?r.annotations.push(g8(t.substring(2,t.length-2))):t.indexOf(")")>0?r.methods.push(g8(t)):t&&r.members.push(g8(t))}},y8=function(t,e){t.split(",").forEach((function(t){let n=t;t[0].match(/\d/)&&(n=l8+n),void 0!==h8[n]&&h8[n].cssClasses.push(e)}))},w8=function(t,e,n){const r=D4();let i=t,a=b8(i);if("loose"===r.securityLevel&&void 0!==e&&void 0!==h8[i]){let t=[];if("string"==typeof n){t=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<t.length;e++){let n=t[e].trim();'"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substr(1,n.length-2)),t[e]=n}}0===t.length&&t.push(a),A8.push((function(){const n=document.querySelector(`[id="${a}"]`);null!==n&&n.addEventListener("click",(function(){x4.runFunc(e,...t)}),!1)}))}},k8=function(t){let e=JR(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=JR("body").append("div").attr("class","mermaidTooltip").style("opacity",0));JR(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=JR(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(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0);JR(this).classed("hover",!1)}))};A8.push(k8);let C8="TB";const x8={parseDirective:function(t,e,n){Git.parseDirective(this,t,e,n)},setAccTitle:c5,getAccTitle:l5,getAccDescription:h5,setAccDescription:u5,getConfig:()=>D4().class,addClass:m8,bindFunctions:function(t){A8.forEach((function(e){e(t)}))},clear:function(){u8=[],h8={},f8=[],A8=[],A8.push(k8),s5()},getClass:function(t){return h8[t]},getClasses:function(){return h8},getNotes:function(){return f8},addAnnotation:function(t,e){const n=p8(t).className;h8[n].annotations.push(e)},addNote:function(t,e){const n={id:`note${f8.length}`,class:e,text:t};f8.push(n)},getRelations:function(){return u8},addRelation:function(t){H0.debug("Adding relation: "+JSON.stringify(t)),m8(t.id1),m8(t.id2),t.id1=p8(t.id1).className,t.id2=p8(t.id2).className,t.relationTitle1=Z0.sanitizeText(t.relationTitle1.trim(),D4()),t.relationTitle2=Z0.sanitizeText(t.relationTitle2.trim(),D4()),u8.push(t)},getDirection:()=>C8,setDirection:t=>{C8=t},addMember:v8,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((e=>v8(t,e))))},cleanupLabel:function(t){return":"===t.substring(0,1)?Z0.sanitizeText(t.substr(1).trim(),D4()):g8(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){w8(t,e,n),h8[t].haveCallback=!0})),y8(t,"clickable")},setCssClass:y8,setLink:function(t,e,n){const r=D4();t.split(",").forEach((function(t){let i=t;t[0].match(/\d/)&&(i=l8+i),void 0!==h8[i]&&(h8[i].link=x4.formatUrl(e,r),"sandbox"===r.securityLevel?h8[i].linkTarget="_top":h8[i].linkTarget="string"==typeof n?g8(n):"_blank")})),y8(t,"clickable")},getTooltip:function(t){return h8[t].tooltip},setTooltip:function(t,e){const n=D4();t.split(",").forEach((function(t){void 0!==e&&(h8[t].tooltip=Z0.sanitizeText(e,n))}))},lookUpDomId:b8,setDiagramTitle:f5,getDiagramTitle:d5};let E8=0;const T8=function(t){let e=t.match(/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/),n=t.match(/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/);return e&&!n?B8(e):n?_8(n):S8(t)},B8=function(t){let e="",n="";try{let r=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?J0(t[3].trim()):"",o=t[4]?t[4].trim():"",s=t[5]?t[5].trim():"";n=r+i+a+" "+o,e=I8(s)}catch(e){n=t}return{displayText:n,cssStyle:e}},_8=function(t){let e="",n="";try{let r=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?J0(t[3].trim()):"",o=t[4]?t[4].trim():"";n=r+i+"("+a+")"+(t[5]?" : "+J0(t[5]).trim():""),e=I8(o)}catch(e){n=t}return{displayText:n,cssStyle:e}},S8=function(t){let e="",n="",r="",i=t.indexOf("("),a=t.indexOf(")");if(i>1&&a>i&&a<=t.length){let o="",s="",c=t.substring(0,1);c.match(/\w/)?s=t.substring(0,i).trim():(c.match(/[#+~-]/)&&(o=c),s=t.substring(1,i).trim());const l=t.substring(i+1,a);t.substring(a+1,1),n=I8(t.substring(a+1,a+2)),e=o+s+"("+J0(l.trim())+")",a<t.length&&(r=t.substring(a+2).trim(),""!==r&&(r=" : "+J0(r),e+=r))}else e=J0(t);return{displayText:e,cssStyle:n}},L8=function(t,e,n,r){let i=T8(e);const a=t.append("tspan").attr("x",r.padding).text(i.displayText);""!==i.cssStyle&&a.attr("style",i.cssStyle),n||a.attr("dy",r.textHeight)},I8=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},M8=function(t,e,n,r){H0.debug("Rendering class ",e,n);const i=e.id,a={id:i,label:e.id,width:0,height:0},o=t.append("g").attr("id",r.db.lookUpDomId(i)).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 l=e.id;void 0!==e.type&&""!==e.type&&(l+="<"+e.type+">");const u=s.append("tspan").text(l).attr("class","title");c||u.attr("dy",n.textHeight);const h=s.node().getBBox().height,f=o.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin/2).attr("y2",n.padding+h+n.dividerMargin/2),d=o.append("text").attr("x",n.padding).attr("y",h+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.members.forEach((function(t){L8(d,t,c,n),c=!1}));const A=d.node().getBBox(),g=o.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin+A.height).attr("y2",n.padding+h+n.dividerMargin+A.height),p=o.append("text").attr("x",n.padding).attr("y",h+2*n.dividerMargin+A.height+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.methods.forEach((function(t){L8(p,t,c,n),c=!1}));const m=o.node().getBBox();var b=" ";e.cssClasses.length>0&&(b+=e.cssClasses.join(" "));const v=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*n.padding).attr("height",m.height+n.padding+.5*n.dividerMargin).attr("class",b).node().getBBox().width;return s.node().childNodes.forEach((function(t){t.setAttribute("x",(v-t.getBBox().width)/2)})),e.tooltip&&s.insert("title").text(e.tooltip),f.attr("x2",v),g.attr("x2",v),a.width=v,a.height=m.height+n.padding+.5*n.dividerMargin,a},O8=function(t,e,n,r,i){const a=function(t){switch(t){case i.db.relationType.AGGREGATION:return"aggregation";case i.db.relationType.EXTENSION:return"extension";case i.db.relationType.COMPOSITION:return"composition";case i.db.relationType.DEPENDENCY:return"dependency";case i.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter((t=>!Number.isNaN(t.y)));const o=e.points,s=Cz().x((function(t){return t.x})).y((function(t){return t.y})).curve(Lz),c=t.append("path").attr("d",s(o)).attr("id","edge"+E8).attr("class","relation");let l,u,h="";r.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.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("+h+"#"+a(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&c.attr("marker-end","url("+h+"#"+a(n.relation.type2)+"End)");const f=e.points.length;let d,A,g,p,m=x4.calcLabelPosition(e.points);if(l=m.x,u=m.y,f%2!=0&&f>1){let t=x4.calcCardinalityPosition("none"!==n.relation.type1,e.points,e.points[0]),r=x4.calcCardinalityPosition("none"!==n.relation.type2,e.points,e.points[f-1]);H0.debug("cardinality_1_point "+JSON.stringify(t)),H0.debug("cardinality_2_point "+JSON.stringify(r)),d=t.x,A=t.y,g=r.x,p=r.y}if(void 0!==n.title){const e=t.append("g").attr("class","classLabel"),i=e.append("text").attr("class","label").attr("x",l).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=i;const a=i.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",a.x-r.padding/2).attr("y",a.y-r.padding/2).attr("width",a.width+r.padding).attr("height",a.height+r.padding)}if(H0.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",d).attr("y",A).attr("fill","black").attr("font-size","6").text(n.relationTitle1)}if(void 0!==n.relationTitle2&&"none"!==n.relationTitle2){t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",g).attr("y",p).attr("fill","black").attr("font-size","6").text(n.relationTitle2)}E8++},D8=function(t,e,n,r){H0.debug("Rendering note ",e,n);const i=e.id,a={id:i,text:e.text,width:0,height:0},o=t.append("g").attr("id",i).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){H0.debug(`Adding line: ${t}`),s.append("tspan").text(t).attr("class","title").attr("dy",n.textHeight)}));const l=o.node().getBBox(),u=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",l.width+2*n.padding).attr("height",l.height+c.length*n.textHeight+n.padding+.5*n.dividerMargin).node().getBBox().width;return s.node().childNodes.forEach((function(t){t.setAttribute("x",(u-t.getBBox().width)/2)})),a.width=u,a.height=l.height+c.length*n.textHeight+n.padding+.5*n.dividerMargin,a};let F8={};const N8=function(t){const e=Object.entries(F8).find((e=>e[1].label===t));if(e)return e[0]},P8={draw:function(t,e,n,r){const i=D4().class;F8={},H0.info("Rendering diagram "+t);const a=D4().securityLevel;let o;"sandbox"===a&&(o=JR("#i"+e));const s=JR("sandbox"===a?o.nodes()[0].contentDocument.body:"body"),c=s.select(`[id='${e}']`);var l;(l=c).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"),l.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"),l.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"),l.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"),l.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"),l.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"),l.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"),l.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");const u=new t1({multigraph:!0});u.setGraph({isMultiGraph:!0}),u.setDefaultEdgeLabel((function(){return{}}));const h=r.db.getClasses(),f=Object.keys(h);for(const t of f){const e=h[t],n=M8(c,e,i,r);F8[n.id]=n,u.setNode(n.id,n),H0.info("Org height: "+n.height)}r.db.getRelations().forEach((function(t){H0.info("tjoho"+N8(t.id1)+N8(t.id2)+JSON.stringify(t)),u.setEdge(N8(t.id1),N8(t.id2),{relation:t},t.title||"DEFAULT")}));r.db.getNotes().forEach((function(t){H0.debug(`Adding note: ${JSON.stringify(t)}`);const e=D8(c,t,i,r);F8[e.id]=e,u.setNode(e.id,e),t.class&&t.class in h&&u.setEdge(t.id,N8(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")})),g0(u),u.nodes().forEach((function(t){void 0!==t&&void 0!==u.node(t)&&(H0.debug("Node "+t+": "+JSON.stringify(u.node(t))),s.select("#"+(r.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)&&(H0.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(u.edge(t))),O8(c,u.edge(t),u.edge(t).relation,i,r))}));const d=c.node().getBBox(),A=d.width+40,g=d.height+40;$4(c,g,A,i.useMaxWidth);const p=`${d.x-20} ${d.y-20} ${A} ${g}`;H0.debug(`viewBox ${p}`),c.attr("viewBox",p)}},R8={extension:(t,e,n)=>{H0.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 12 20").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")}},Q8=(t,e,n,r)=>{e.forEach((e=>{R8[e](t,n,r)}))};const U8=(t,e,n,r)=>{let i=t||"";if("object"==typeof i&&(i=i[0]),Y0(D4().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),H0.info("vertexText"+i);let t=function(t){const e=JR(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=e.append("xhtml:div"),r=t.label,i=t.isNode?"nodeLabel":"edgeLabel";var a,o;return n.html('<span class="'+i+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+r+"</span>"),a=n,(o=t.labelStyle)&&a.attr("style",o),n.style("display","inline-block"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}({isNode:r,label:Pit(i).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`)),labelStyle:e.replace("fill:","color:")});return t}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let r=[];r="string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[];for(const e of r){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),n?r.setAttribute("class","title-row"):r.setAttribute("class","row"),r.textContent=e.trim(),t.appendChild(r)}return t}},$8=(t,e,n,r)=>{let i;i=n||"node default";const a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),o=a.insert("g").attr("class","label").attr("style",e.labelStyle);let s;s=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];const c=o.node().appendChild(U8(X0(Pit(s),D4()),e.labelStyle,!1,r));let l=c.getBBox();if(Y0(D4().flowchart.htmlLabels)){const t=c.children[0],e=JR(c);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}const u=e.padding/2;return o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),{shapeSvg:a,bbox:l,halfPadding:u,label:o}},H8=(t,e)=>{const n=e.node().getBBox();t.width=n.width,t.height=n.height};function j8(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}let K8={},z8={},G8={};const X8=(t,e)=>(H0.trace("In isDecendant",e," ",t," = ",z8[e].includes(t)),!!z8[e].includes(t)),V8=(t,e,n,r)=>{H0.warn("Copying children of ",t,"root",r,"data",e.node(t),r);const i=e.children(t)||[];t!==r&&i.push(t),H0.warn("Copying (nodes) clusterId",t,"nodes",i),i.forEach((i=>{if(e.children(i).length>0)V8(i,e,n,r);else{const a=e.node(i);H0.info("cp ",i," to ",r," with parent ",t),n.setNode(i,a),r!==e.parent(i)&&(H0.warn("Setting parent",i,e.parent(i)),n.setParent(i,e.parent(i))),t!==r&&i!==t?(H0.debug("Setting parent",i,t),n.setParent(i,t)):(H0.info("In copy ",t,"root",r,"data",e.node(t),r),H0.debug("Not Setting parent for node=",i,"cluster!==rootId",t!==r,"node!==clusterId",i!==t));const o=e.edges(i);H0.debug("Copying Edges",o),o.forEach((i=>{H0.info("Edge",i);const a=e.edge(i.v,i.w,i.name);H0.info("Edge data",a,r);try{((t,e)=>(H0.info("Decendants of ",e," is ",z8[e]),H0.info("Edge is ",t),t.v!==e&&t.w!==e&&(z8[e]?z8[e].includes(t.v)||X8(t.v,e)||X8(t.w,e)||z8[e].includes(t.w):(H0.debug("Tilt, ",e,",not in decendants"),!1))))(i,r)?(H0.info("Copying as ",i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),H0.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):H0.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",r," clusterId:",t)}catch(t){H0.error(t)}}))}H0.debug("Removing node",i),e.removeNode(i)}))},W8=(t,e)=>{const n=e.children(t);let r=[...n];for(const i of n)G8[i]=t,r=[...r,...W8(i,e)];return r},q8=(t,e)=>{H0.trace("Searching",t);const n=e.children(t);if(H0.trace("Searching children of id ",t,n),n.length<1)return H0.trace("This is a valid node",t),t;for(const r of n){const n=q8(r,e);if(n)return H0.trace("Found replacement for",t," => ",n),n}},Y8=t=>K8[t]&&K8[t].externalConnections&&K8[t]?K8[t].id:t,J8=(t,e)=>{if(H0.warn("extractor - ",e,T0(t),t.children("D")),e>10)return void H0.error("Bailing out");let n=t.nodes(),r=!1;for(const e of n){const n=t.children(e);r=r||n.length>0}if(r){H0.debug("Nodes = ",n,e);for(const r of n)if(H0.debug("Extracting node",r,K8,K8[r]&&!K8[r].externalConnections,!t.parent(r),t.node(r),t.children("D")," Depth ",e),K8[r])if(!K8[r].externalConnections&&t.children(r)&&t.children(r).length>0){H0.warn("Cluster without external connections, without a parent and with children",r,e);let n="TB"===t.graph().rankdir?"LR":"TB";K8[r]&&K8[r].clusterData&&K8[r].clusterData.dir&&(n=K8[r].clusterData.dir,H0.warn("Fixing dir",K8[r].clusterData.dir,n));const i=new t1({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));H0.warn("Old graph before copy",T0(t)),V8(r,t,i,r),t.setNode(r,{clusterNode:!0,id:r,clusterData:K8[r].clusterData,labelText:K8[r].labelText,graph:i}),H0.warn("New graph after copy node: (",r,")",T0(i)),H0.debug("Old graph after copy",T0(t))}else H0.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!K8[r].externalConnections," no parent: ",!t.parent(r)," children ",t.children(r)&&t.children(r).length>0,t.children("D"),e),H0.debug(K8);else H0.debug("Not a cluster",r,e);n=t.nodes(),H0.warn("New list of nodes",n);for(const r of n){const n=t.node(r);H0.warn(" Now next level",r,n),n.clusterNode&&J8(n.graph,e+1)}}else H0.debug("Done, no node has children",t.nodes())},Z8=(t,e)=>{if(0===e.length)return[];let n=Object.assign(e);return e.forEach((e=>{const r=t.children(e),i=Z8(t,r);n=[...n,...i]})),n};function t7(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,s=a-r.y,c=Math.sqrt(e*e*s*s+n*n*o*o),l=Math.abs(e*n*o/c);r.x<i&&(l=-l);var u=Math.abs(e*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}function e7(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p;if(i=e.y-t.y,o=t.x-e.x,c=e.x*t.y-t.x*e.y,f=i*n.x+o*n.y+c,d=i*r.x+o*r.y+c,!(0!==f&&0!==d&&n7(f,d)||(a=r.y-n.y,s=n.x-r.x,l=r.x*n.y-n.x*r.y,u=a*t.x+s*t.y+l,h=a*e.x+s*e.y+l,0!==u&&0!==h&&n7(u,h)||0==(A=i*s-a*o))))return g=Math.abs(A/2),{x:(p=o*l-s*c)<0?(p-g)/A:(p+g)/A,y:(p=a*c-i*l)<0?(p-g)/A:(p+g)/A}}function n7(t,e){return t*e>0}const r7=(t,e)=>{var n,r,i=t.x,a=t.y,o=e.x-i,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,r=l):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o),{x:i+n,y:a+r}},i7={node:function(t,e){return t.intersect(e)},circle:function(t,e,n){return t7(t,e,e,n)},ellipse:t7,polygon:function(t,e,n){var r=t.x,i=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=r-t.width/2-o,l=i-t.height/2-s,u=0;u<e.length;u++){var h=e[u],f=e[u<e.length-1?u+1:0],d=e7(t,n,{x:c+h.x,y:l+h.y},{x:c+f.x,y:l+f.y});d&&a.push(d)}return a.length?(a.length>1&&a.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1})),a[0]):t},rect:r7},a7=(t,e)=>{const{shapeSvg:n,bbox:r,halfPadding:i}=$8(t,e,"node "+e.classes,!0);H0.info("Classes = ",e.classes);const a=n.insert("rect",":first-child");return a.attr("rx",e.rx).attr("ry",e.ry).attr("x",-r.width/2-i).attr("y",-r.height/2-i).attr("width",r.width+e.padding).attr("height",r.height+e.padding),H8(e,a),e.intersect=function(t){return i7.rect(e,t)},n},o7=(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.width+e.padding+(r.height+e.padding),a=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];H0.info("Question main (Circle)");const o=j8(n,i,i,a);return o.attr("style",e.style),H8(e,o),e.intersect=function(t){return H0.warn("Intersect called"),i7.polygon(e,a,t)},n};function s7(t,e,n,r){const i=[],a=t=>{i.push(t,0)},o=t=>{i.push(0,t)};e.includes("t")?(H0.debug("add top border"),a(n)):o(n),e.includes("r")?(H0.debug("add right border"),a(r)):o(r),e.includes("b")?(H0.debug("add bottom border"),a(n)):o(n),e.includes("l")?(H0.debug("add left border"),a(r)):o(r),t.attr("stroke-dasharray",i.join(" "))}const c7=(t,e,n)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let i=70,a=10;"LR"===n&&(i=10,a=70);const o=r.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return H8(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return i7.rect(e,t)},r},l7={rhombus:o7,question:o7,rect:(t,e)=>{const{shapeSvg:n,bbox:r,halfPadding:i}=$8(t,e,"node "+e.classes,!0);H0.trace("Classes = ",e.classes);const a=n.insert("rect",":first-child"),o=r.width+e.padding,s=r.height+e.padding;if(a.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-r.width/2-i).attr("y",-r.height/2-i).attr("width",o).attr("height",s),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(s7(a,e.props.borders,o,s),t.delete("borders")),t.forEach((t=>{H0.warn(`Unknown node property ${t}`)}))}return H8(e,a),e.intersect=function(t){return i7.rect(e,t)},n},labelRect:(t,e)=>{const{shapeSvg:n}=$8(t,e,"label",!0);H0.trace("Classes = ",e.classes);const r=n.insert("rect",":first-child");if(r.attr("width",0).attr("height",0),n.attr("class","label edgeLabel"),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(s7(r,e.props.borders,0,0),t.delete("borders")),t.forEach((t=>{H0.warn(`Unknown node property ${t}`)}))}return H8(e,r),e.intersect=function(t){return i7.rect(e,t)},n},rectWithTitle:(t,e)=>{let n;n=e.classes?"node "+e.classes:"node default";const r=t.insert("g").attr("class",n).attr("id",e.domId||e.id),i=r.insert("rect",":first-child"),a=r.insert("line"),o=r.insert("g").attr("class","label"),s=e.labelText.flat?e.labelText.flat():e.labelText;let c="";c="object"==typeof s?s[0]:s,H0.info("Label text abc79",c,s,"object"==typeof s);const l=o.node().appendChild(U8(c,e.labelStyle,!0,!0));let u={width:0,height:0};if(Y0(D4().flowchart.htmlLabels)){const t=l.children[0],e=JR(l);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}H0.info("Text 2",s);const h=s.slice(1,s.length);let f=l.getBBox();const d=o.node().appendChild(U8(h.join?h.join("<br/>"):h,e.labelStyle,!0,!0));if(Y0(D4().flowchart.htmlLabels)){const t=d.children[0],e=JR(d);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}const A=e.padding/2;return JR(d).attr("transform","translate( "+(u.width>f.width?0:(f.width-u.width)/2)+", "+(f.height+A+5)+")"),JR(l).attr("transform","translate( "+(u.width<f.width?0:-(f.width-u.width)/2)+", 0)"),u=o.node().getBBox(),o.attr("transform","translate("+-u.width/2+", "+(-u.height/2-A+3)+")"),i.attr("class","outer title-state").attr("x",-u.width/2-A).attr("y",-u.height/2-A).attr("width",u.width+e.padding).attr("height",u.height+e.padding),a.attr("class","divider").attr("x1",-u.width/2-A).attr("x2",u.width/2+A).attr("y1",-u.height/2-A+f.height+A).attr("y2",-u.height/2-A+f.height+A),H8(e,i),e.intersect=function(t){return i7.rect(e,t)},r},choice:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}];return n.insert("polygon",":first-child").attr("points",r.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 i7.circle(e,14,t)},n},circle:(t,e)=>{const{shapeSvg:n,bbox:r,halfPadding:i}=$8(t,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",r.width/2+i).attr("width",r.width+e.padding).attr("height",r.height+e.padding),H0.info("Circle main"),H8(e,a),e.intersect=function(t){return H0.info("Circle intersect",e,r.width/2+i,t),i7.circle(e,r.width/2+i,t)},n},doublecircle:(t,e)=>{const{shapeSvg:n,bbox:r,halfPadding:i}=$8(t,e,void 0,!0),a=n.insert("g",":first-child"),o=a.insert("circle"),s=a.insert("circle");return o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",r.width/2+i+5).attr("width",r.width+e.padding+10).attr("height",r.height+e.padding+10),s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",r.width/2+i).attr("width",r.width+e.padding).attr("height",r.height+e.padding),H0.info("DoubleCircle main"),H8(e,o),e.intersect=function(t){return H0.info("DoubleCircle intersect",e,r.width/2+i+5,t),i7.circle(e,r.width/2+i+5,t)},n},stadium:(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.height+e.padding,a=r.width+i/4+e.padding,o=n.insert("rect",":first-child").attr("style",e.style).attr("rx",i/2).attr("ry",i/2).attr("x",-a/2).attr("y",-i/2).attr("width",a).attr("height",i);return H8(e,o),e.intersect=function(t){return i7.rect(e,t)},n},hexagon:(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.height+e.padding,a=i/4,o=r.width+2*a+e.padding,s=[{x:a,y:0},{x:o-a,y:0},{x:o,y:-i/2},{x:o-a,y:-i},{x:a,y:-i},{x:0,y:-i/2}],c=j8(n,o,i,s);return c.attr("style",e.style),H8(e,c),e.intersect=function(t){return i7.polygon(e,s,t)},n},rect_left_inv_arrow:(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.width+e.padding,a=r.height+e.padding,o=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return j8(n,i,a,o).attr("style",e.style),e.width=i+a,e.height=a,e.intersect=function(t){return i7.polygon(e,o,t)},n},lean_right:(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.width+e.padding,a=r.height+e.padding,o=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],s=j8(n,i,a,o);return s.attr("style",e.style),H8(e,s),e.intersect=function(t){return i7.polygon(e,o,t)},n},lean_left:(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.width+e.padding,a=r.height+e.padding,o=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],s=j8(n,i,a,o);return s.attr("style",e.style),H8(e,s),e.intersect=function(t){return i7.polygon(e,o,t)},n},trapezoid:(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.width+e.padding,a=r.height+e.padding,o=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],s=j8(n,i,a,o);return s.attr("style",e.style),H8(e,s),e.intersect=function(t){return i7.polygon(e,o,t)},n},inv_trapezoid:(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.width+e.padding,a=r.height+e.padding,o=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],s=j8(n,i,a,o);return s.attr("style",e.style),H8(e,s),e.intersect=function(t){return i7.polygon(e,o,t)},n},rect_right_inv_arrow:(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.width+e.padding,a=r.height+e.padding,o=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],s=j8(n,i,a,o);return s.attr("style",e.style),H8(e,s),e.intersect=function(t){return i7.polygon(e,o,t)},n},cylinder:(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.width+e.padding,a=i/2,o=a/(2.5+i/50),s=r.height+o+e.padding,c="M 0,"+o+" a "+a+","+o+" 0,0,0 "+i+" 0 a "+a+","+o+" 0,0,0 "+-i+" 0 l 0,"+s+" a "+a+","+o+" 0,0,0 "+i+" 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("+-i/2+","+-(s/2+o)+")");return H8(e,l),e.intersect=function(t){const n=i7.rect(e,t),r=n.x-e.x;if(0!=a&&(Math.abs(r)<e.width/2||Math.abs(r)==e.width/2&&Math.abs(n.y-e.y)>e.height/2-o)){let i=o*o*(1-r*r/(a*a));0!=i&&(i=Math.sqrt(i)),i=o-i,t.y-e.y>0&&(i=-i),n.y+=i}return n},n},start:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),H8(e,r),e.intersect=function(t){return i7.circle(e,7,t)},n},end:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=n.insert("circle",":first-child"),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),H8(e,i),e.intersect=function(t){return i7.circle(e,7,t)},n},note:a7,subroutine:(t,e)=>{const{shapeSvg:n,bbox:r}=$8(t,e,void 0,!0),i=r.width+e.padding,a=r.height+e.padding,o=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],s=j8(n,i,a,o);return s.attr("style",e.style),H8(e,s),e.intersect=function(t){return i7.polygon(e,o,t)},n},fork:c7,join:c7,class_box:(t,e)=>{const n=e.padding/2;let r;r=e.classes?"node "+e.classes:"node default";const i=t.insert("g").attr("class",r).attr("id",e.domId||e.id),a=i.insert("rect",":first-child"),o=i.insert("line"),s=i.insert("line");let c=0,l=4;const u=i.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]+"»":"",A=u.node().appendChild(U8(d,e.labelStyle,!0,!0));let g=A.getBBox();if(Y0(D4().flowchart.htmlLabels)){const t=A.children[0],e=JR(A);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}e.classData.annotations[0]&&(l+=g.height+4,c+=g.width);let p=e.classData.id;void 0!==e.classData.type&&""!==e.classData.type&&(D4().flowchart.htmlLabels?p+="&lt;"+e.classData.type+"&gt;":p+="<"+e.classData.type+">");const m=u.node().appendChild(U8(p,e.labelStyle,!0,!0));JR(m).attr("class","classTitle");let b=m.getBBox();if(Y0(D4().flowchart.htmlLabels)){const t=m.children[0],e=JR(m);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}l+=b.height+4,b.width>c&&(c=b.width);const v=[];e.classData.members.forEach((t=>{const n=T8(t);let r=n.displayText;D4().flowchart.htmlLabels&&(r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const i=u.node().appendChild(U8(r,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0));let a=i.getBBox();if(Y0(D4().flowchart.htmlLabels)){const t=i.children[0],e=JR(i);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(i)})),l+=8;const y=[];if(e.classData.methods.forEach((t=>{const n=T8(t);let r=n.displayText;D4().flowchart.htmlLabels&&(r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const i=u.node().appendChild(U8(r,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0));let a=i.getBBox();if(Y0(D4().flowchart.htmlLabels)){const t=i.children[0],e=JR(i);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}a.width>c&&(c=a.width),l+=a.height+4,y.push(i)})),l+=8,f){let t=(c-g.width)/2;JR(A).attr("transform","translate( "+(-1*c/2+t)+", "+-1*l/2+")"),h=g.height+4}let w=(c-b.width)/2;return JR(m).attr("transform","translate( "+(-1*c/2+w)+", "+(-1*l/2+h)+")"),h+=b.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,v.forEach((t=>{JR(t).attr("transform","translate( "+-c/2+", "+(-1*l/2+h+4)+")"),h+=b.height+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,y.forEach((t=>{JR(t).attr("transform","translate( "+-c/2+", "+(-1*l/2+h)+")"),h+=b.height+4})),a.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),H8(e,a),e.intersect=function(t){return i7.rect(e,t)},i}};let u7={};const h7=(t,e,n)=>{let r,i;if(e.link){let a;"sandbox"===D4().securityLevel?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),r=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),i=l7[e.shape](r,e,n)}else i=l7[e.shape](t,e,n),r=i;return e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),u7[e.id]=r,e.haveCallback&&u7[e.id].attr("class",u7[e.id].attr("class")+" clickable"),r},f7=t=>{const e=u7[t.id];H0.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},d7={rect:(t,e)=>{H0.trace("Creating subgraph rect for ",e.id,e);const n=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=i.node().appendChild(U8(e.labelText,e.labelStyle,void 0,!0));let o=a.getBBox();if(Y0(D4().flowchart.htmlLabels)){const t=a.children[0],e=JR(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}const s=0*e.padding,c=s/2,l=e.width<=o.width+s?o.width+s:e.width;e.width<=o.width+s?e.diff=(o.width-e.width)/2-e.padding/2:e.diff=-e.padding/2,H0.trace("Data ",e,JSON.stringify(e)),r.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-l/2).attr("y",e.y-e.height/2-c).attr("width",l).attr("height",e.height+s),i.attr("transform","translate("+(e.x-o.width/2)+", "+(e.y-e.height/2)+")");const u=r.node().getBBox();return e.width=u.width,e.height=u.height,e.intersect=function(t){return r7(e,t)},n},roundedWithTitle:(t,e)=>{const n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=n.append("rect"),o=i.node().appendChild(U8(e.labelText,e.labelStyle,void 0,!0));let s=o.getBBox();if(Y0(D4().flowchart.htmlLabels)){const t=o.children[0],e=JR(o);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s=o.getBBox();const c=0*e.padding,l=c/2,u=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,r.attr("class","outer").attr("x",e.x-u/2-l).attr("y",e.y-e.height/2-l).attr("width",u+c).attr("height",e.height+c),a.attr("class","inner").attr("x",e.x-u/2-l).attr("y",e.y-e.height/2-l+s.height-1).attr("width",u+c).attr("height",e.height+c-s.height-3),i.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2-e.padding/3+(Y0(D4().flowchart.htmlLabels)?5:3))+")");const h=r.node().getBBox();return e.height=h.height,e.intersect=function(t){return r7(e,t)},n},noteGroup:(t,e)=>{const n=t.insert("g").attr("class","note-cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");const o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return r7(e,t)},n},divider:(t,e)=>{const n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("class","divider").attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2).attr("width",e.width+i).attr("height",e.height+i);const o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.diff=-e.padding/2,e.intersect=function(t){return r7(e,t)},n}};let A7={};let g7={},p7={};const m7=(t,e)=>{const n=U8(e.label,e.labelStyle),r=t.insert("g").attr("class","edgeLabel"),i=r.insert("g").attr("class","label");i.node().appendChild(n);let a,o=n.getBBox();if(Y0(D4().flowchart.htmlLabels)){const t=n.children[0],e=JR(n);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}if(i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),g7[e.id]=r,e.width=o.width,e.height=o.height,e.startLabelLeft){const n=U8(e.startLabelLeft,e.labelStyle),r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");a=i.node().appendChild(n);const o=n.getBBox();i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),p7[e.id]||(p7[e.id]={}),p7[e.id].startLeft=r,b7(a,e.startLabelLeft)}if(e.startLabelRight){const n=U8(e.startLabelRight,e.labelStyle),r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");a=r.node().appendChild(n),i.node().appendChild(n);const o=n.getBBox();i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),p7[e.id]||(p7[e.id]={}),p7[e.id].startRight=r,b7(a,e.startLabelRight)}if(e.endLabelLeft){const n=U8(e.endLabelLeft,e.labelStyle),r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");a=i.node().appendChild(n);const o=n.getBBox();i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),r.node().appendChild(n),p7[e.id]||(p7[e.id]={}),p7[e.id].endLeft=r,b7(a,e.endLabelLeft)}if(e.endLabelRight){const n=U8(e.endLabelRight,e.labelStyle),r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");a=i.node().appendChild(n);const o=n.getBBox();i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),r.node().appendChild(n),p7[e.id]||(p7[e.id]={}),p7[e.id].endRight=r,b7(a,e.endLabelRight)}return n};function b7(t,e){D4().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}const v7=(t,e)=>{H0.warn("abc88 cutPathAtIntersect",t,e);let n=[],r=t[0],i=!1;return t.forEach((t=>{if(H0.info("abc88 checking point",t,e),((t,e)=>{const n=t.x,r=t.y,i=Math.abs(e.x-n),a=Math.abs(e.y-r),o=t.width/2,s=t.height/2;return i>=o||a>=s})(e,t)||i)H0.warn("abc88 outside",t,r),r=t,i||n.push(t);else{const a=((t,e,n)=>{H0.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 r=t.x,i=t.y,a=Math.abs(r-n.x),o=t.width/2;let s=n.x<e.x?o-a:o+a;const c=t.height/2,l=Math.abs(e.y-n.y),u=Math.abs(e.x-n.x);if(Math.abs(i-e.y)*o>Math.abs(r-e.x)*c){let t=n.y<e.y?e.y-c-i:i-c-e.y;s=u*t/l;const r={x:n.x<e.x?n.x+s:n.x-u+s,y:n.y<e.y?n.y+l-t:n.y-l+t};return 0===s&&(r.x=e.x,r.y=e.y),0===u&&(r.x=e.x),0===l&&(r.y=e.y),H0.warn(`abc89 topp/bott calc, Q ${l}, q ${t}, R ${u}, r ${s}`,r),r}{s=n.x<e.x?e.x-o-r:r-o-e.x;let t=l*s/u,i=n.x<e.x?n.x+u-s:n.x-u+s,a=n.y<e.y?n.y+t:n.y-t;return H0.warn(`sides calc abc89, Q ${l}, q ${t}, R ${u}, r ${s}`,{_x:i,_y:a}),0===s&&(i=e.x,a=e.y),0===u&&(i=e.x),0===l&&(a=e.y),{x:i,y:a}}})(e,r,t);H0.warn("abc88 inside",t,r,a),H0.warn("abc88 intersection",a);let o=!1;n.forEach((t=>{o=o||t.x===a.x&&t.y===a.y})),n.some((t=>t.x===a.x&&t.y===a.y))?H0.warn("abc88 no intersect",a,n):n.push(a),i=!0}})),H0.warn("abc88 returning points",n),n},y7=(t,e,n,r)=>{H0.info("Graph in recursive render: XXX",T0(e),r);const i=e.graph().rankdir;H0.trace("Dir in recursive render - dir:",i);const a=t.insert("g").attr("class","root");e.nodes()?H0.info("Recursive render XXX",e.nodes()):H0.info("No nodes found for",e),e.edges().length>0&&H0.trace("Recursive edges",e.edge(e.edges()[0]));const o=a.insert("g").attr("class","clusters"),s=a.insert("g").attr("class","edgePaths"),c=a.insert("g").attr("class","edgeLabels"),l=a.insert("g").attr("class","nodes");e.nodes().forEach((function(t){const a=e.node(t);if(void 0!==r){const n=JSON.parse(JSON.stringify(r.clusterData));H0.info("Setting data for cluster XXX (",t,") ",n,r),e.setNode(r.id,n),e.parent(t)||(H0.trace("Setting parent",t,r.id),e.setParent(t,r.id,n))}if(H0.info("(Insert) Node XXX"+t+": "+JSON.stringify(e.node(t))),a&&a.clusterNode){H0.info("Cluster identified",t,a.width,e.node(t));const r=y7(l,a.graph,n,e.node(t)),i=r.elem;H8(a,i),a.diff=r.diff||0,H0.info("Node bounds (abc123)",t,a,a.width,a.x,a.y),((t,e)=>{u7[e.id]=t})(i,a),H0.warn("Recursive render complete ",i,a)}else e.children(t).length>0?(H0.info("Cluster - the non recursive path XXX",t,a.id,a,e),H0.info(q8(a.id,e)),K8[a.id]={id:q8(a.id,e),node:a}):(H0.info("Node - the non recursive path",t,a.id,a),h7(l,e.node(t),i))})),e.edges().forEach((function(t){const n=e.edge(t.v,t.w,t.name);H0.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),H0.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(e.edge(t))),H0.info("Fix",K8,"ids:",t.v,t.w,"Translateing: ",K8[t.v],K8[t.w]),m7(c,n)})),e.edges().forEach((function(t){H0.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),H0.info("#############################################"),H0.info("### Layout ###"),H0.info("#############################################"),H0.info(e),g0(e),H0.info("Graph after layout:",T0(e));let u=0;return(t=>Z8(t,t.children()))(e).forEach((function(t){const n=e.node(t);H0.info("Position "+t+": "+JSON.stringify(e.node(t))),H0.info("Position "+t+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n&&n.clusterNode?f7(n):e.children(t).length>0?(((t,e)=>{H0.trace("Inserting cluster");const n=e.shape||"rect";A7[e.id]=d7[n](t,e)})(o,n),K8[n.id].node=n):f7(n)})),e.edges().forEach((function(t){const r=e.edge(t);H0.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(r),r);const i=function(t,e,n,r,i,a){let o=n.points,s=!1;const c=a.node(e.v);var l=a.node(e.w);H0.info("abc88 InsertEdge: ",n),l.intersect&&c.intersect&&(o=o.slice(1,n.points.length-1),o.unshift(c.intersect(o[0])),H0.info("Last point",o[o.length-1],l,l.intersect(o[o.length-1])),o.push(l.intersect(o[o.length-1]))),n.toCluster&&(H0.info("to cluster abc88",r[n.toCluster]),o=v7(n.points,r[n.toCluster].node),s=!0),n.fromCluster&&(H0.info("from cluster abc88",r[n.fromCluster]),o=v7(o.reverse(),r[n.fromCluster].node).reverse(),s=!0);const u=o.filter((t=>!Number.isNaN(t.y)));let h;h=("graph"===i||"flowchart"===i)&&n.curve||Lz;const f=Cz().x((function(t){return t.x})).y((function(t){return t.y})).curve(h);let d;switch(n.thickness){case"normal":d="edge-thickness-normal";break;case"thick":d="edge-thickness-thick";break;default:d=""}switch(n.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed"}const A=t.append("path").attr("d",f(u)).attr("id",n.id).attr("class"," "+d+(n.classes?" "+n.classes:"")).attr("style",n.style);let g="";switch((D4().flowchart.arrowMarkerAbsolute||D4().state.arrowMarkerAbsolute)&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),H0.info("arrowTypeStart",n.arrowTypeStart),H0.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":A.attr("marker-start","url("+g+"#"+i+"-crossStart)");break;case"arrow_point":A.attr("marker-start","url("+g+"#"+i+"-pointStart)");break;case"arrow_barb":A.attr("marker-start","url("+g+"#"+i+"-barbStart)");break;case"arrow_circle":A.attr("marker-start","url("+g+"#"+i+"-circleStart)");break;case"aggregation":A.attr("marker-start","url("+g+"#"+i+"-aggregationStart)");break;case"extension":A.attr("marker-start","url("+g+"#"+i+"-extensionStart)");break;case"composition":A.attr("marker-start","url("+g+"#"+i+"-compositionStart)");break;case"dependency":A.attr("marker-start","url("+g+"#"+i+"-dependencyStart)");break;case"lollipop":A.attr("marker-start","url("+g+"#"+i+"-lollipopStart)")}switch(n.arrowTypeEnd){case"arrow_cross":A.attr("marker-end","url("+g+"#"+i+"-crossEnd)");break;case"arrow_point":A.attr("marker-end","url("+g+"#"+i+"-pointEnd)");break;case"arrow_barb":A.attr("marker-end","url("+g+"#"+i+"-barbEnd)");break;case"arrow_circle":A.attr("marker-end","url("+g+"#"+i+"-circleEnd)");break;case"aggregation":A.attr("marker-end","url("+g+"#"+i+"-aggregationEnd)");break;case"extension":A.attr("marker-end","url("+g+"#"+i+"-extensionEnd)");break;case"composition":A.attr("marker-end","url("+g+"#"+i+"-compositionEnd)");break;case"dependency":A.attr("marker-end","url("+g+"#"+i+"-dependencyEnd)");break;case"lollipop":A.attr("marker-end","url("+g+"#"+i+"-lollipopEnd)")}let p={};return s&&(p.updatedPath=o),p.originalPath=n.points,p}(s,t,r,K8,n,e);((t,e)=>{H0.info("Moving label abc78 ",t.id,t.label,g7[t.id]);let n=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){const r=g7[t.id];let i=t.x,a=t.y;if(n){const r=x4.calcLabelPosition(n);H0.info("Moving label "+t.label+" from (",i,",",a,") to (",r.x,",",r.y,") abc78"),e.updatedPath&&(i=r.x,a=r.y)}r.attr("transform","translate("+i+", "+a+")")}if(t.startLabelLeft){const e=p7[t.id].startLeft;let r=t.x,i=t.y;if(n){const e=x4.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);r=e.x,i=e.y}e.attr("transform","translate("+r+", "+i+")")}if(t.startLabelRight){const e=p7[t.id].startRight;let r=t.x,i=t.y;if(n){const e=x4.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);r=e.x,i=e.y}e.attr("transform","translate("+r+", "+i+")")}if(t.endLabelLeft){const e=p7[t.id].endLeft;let r=t.x,i=t.y;if(n){const e=x4.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);r=e.x,i=e.y}e.attr("transform","translate("+r+", "+i+")")}if(t.endLabelRight){const e=p7[t.id].endRight;let r=t.x,i=t.y;if(n){const e=x4.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);r=e.x,i=e.y}e.attr("transform","translate("+r+", "+i+")")}})(r,i)})),e.nodes().forEach((function(t){const n=e.node(t);H0.info(t,n.type,n.diff),"group"===n.type&&(u=n.diff)})),{elem:a,diff:u}},w7=(t,e,n,r,i)=>{Q8(t,n,r,i),u7={},g7={},p7={},A7={},z8={},G8={},K8={},H0.warn("Graph at first:",T0(e)),((t,e)=>{!t||e>10?H0.debug("Opting out, no graph "):(H0.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(H0.warn("Cluster identified",e," Replacement id in edges: ",q8(e,t)),z8[e]=W8(e,t),K8[e]={id:q8(e,t),clusterData:t.node(e)})})),t.nodes().forEach((function(e){const n=t.children(e),r=t.edges();n.length>0?(H0.debug("Cluster identified",e,z8),r.forEach((t=>{t.v!==e&&t.w!==e&&X8(t.v,e)^X8(t.w,e)&&(H0.warn("Edge: ",t," leaves cluster ",e),H0.warn("Decendants of XXX ",e,": ",z8[e]),K8[e].externalConnections=!0)}))):H0.debug("Not a cluster ",e,z8)})),t.edges().forEach((function(e){const n=t.edge(e);H0.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),H0.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));let r=e.v,i=e.w;if(H0.warn("Fix XXX",K8,"ids:",e.v,e.w,"Translating: ",K8[e.v]," --- ",K8[e.w]),K8[e.v]&&K8[e.w]&&K8[e.v]===K8[e.w]){H0.warn("Fixing and trixing link to self - removing XXX",e.v,e.w,e.name),H0.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),r=Y8(e.v),i=Y8(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=JSON.parse(JSON.stringify(n)),s=JSON.parse(JSON.stringify(n));o.label="",o.arrowTypeEnd="none",s.label="",o.fromCluster=e.v,s.toCluster=e.v,t.setEdge(r,a,o,e.name+"-cyclic-special"),t.setEdge(a,i,s,e.name+"-cyclic-special")}else(K8[e.v]||K8[e.w])&&(H0.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),r=Y8(e.v),i=Y8(e.w),t.removeEdge(e.v,e.w,e.name),r!==e.v&&(n.fromCluster=e.v),i!==e.w&&(n.toCluster=e.w),H0.warn("Fix Replacing with XXX",r,i,e.name),t.setEdge(r,i,n,e.name))})),H0.warn("Adjusted Graph",T0(t)),J8(t,0),H0.trace(K8))})(e),H0.warn("Graph after:",T0(e)),y7(t,e,r)},k7=t=>Z0.sanitizeText(t,D4());let C7={dividerMargin:10,padding:5,textHeight:10};function x7(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 E7={setConf:function(t){Object.keys(t).forEach((function(e){C7[e]=t[e]}))},draw:function(t,e,n,r){H0.info("Drawing class - ",e);const i=D4().flowchart,a=D4().securityLevel;H0.info("config:",i);const o=i.nodeSpacing||50,s=i.rankSpacing||50,c=new t1({multigraph:!0,compound:!0}).setGraph({rankdir:r.db.getDirection(),nodesep:o,ranksep:s,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),l=r.db.getClasses(),u=r.db.getRelations(),h=r.db.getNotes();let f;H0.info(u),function(t,e,n,r){const i=Object.keys(t);H0.info("keys:",i),H0.info(t),i.forEach((function(n){const i=t[n];let a="";i.cssClasses.length>0&&(a=a+" "+i.cssClasses.join(" "));const o={labelStyle:""};let s=void 0!==i.text?i.text:i.id,c="";i.type,c="class_box",e.setNode(i.id,{labelStyle:o.labelStyle,shape:c,labelText:k7(s),classData:i,rx:0,ry:0,class:a,style:o.style,id:i.id,domId:i.domId,tooltip:r.db.getTooltip(i.id)||"",haveCallback:i.haveCallback,link:i.link,width:"group"===i.type?500:void 0,type:i.type,padding:D4().flowchart.padding}),H0.info("setNode",{labelStyle:o.labelStyle,shape:c,labelText:s,rx:0,ry:0,class:a,style:o.style,id:i.id,width:"group"===i.type?500:void 0,type:i.type,padding:D4().flowchart.padding})}))}(l,c,0,r),function(t,e){const n=D4().flowchart;let r=0;t.forEach((function(i){r++;const a={classes:"relation"};a.pattern=1==i.relation.lineType?"dashed":"solid",a.id="id"+r,"arrow_open"===i.type?a.arrowhead="none":a.arrowhead="normal",H0.info(a,i),a.startLabelRight="none"===i.relationTitle1?"":i.relationTitle1,a.endLabelLeft="none"===i.relationTitle2?"":i.relationTitle2,a.arrowTypeStart=x7(i.relation.type1),a.arrowTypeEnd=x7(i.relation.type2);let o="",s="";if(void 0!==i.style){const t=l4(i.style);o=t.style,s=t.labelStyle}else o="fill:none";a.style=o,a.labelStyle=s,void 0!==i.interpolate?a.curve=s4(i.interpolate,yz):void 0!==t.defaultInterpolate?a.curve=s4(t.defaultInterpolate,yz):a.curve=s4(n.curve,yz),i.text=i.title,void 0===i.text?void 0!==i.style&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",D4().flowchart.htmlLabels?(a.labelType="html",a.label='<span class="edgeLabel">'+i.text+"</span>"):(a.labelType="text",a.label=i.text.replace(Z0.lineBreakRegex,"\n"),void 0===i.style&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none"),a.labelStyle=a.labelStyle.replace("color:","fill:"))),e.setEdge(i.id1,i.id2,a,r)}))}(u,c),function(t,e,n,r){H0.info(t),t.forEach((function(t,i){const a=t,o="",s="";let c=a.text,l="note";if(e.setNode(a.id,{labelStyle:o,shape:l,labelText:k7(c),noteData:a,rx:0,ry:0,class:"",style:s,id:a.id,domId:a.id,tooltip:"",type:"note",padding:D4().flowchart.padding}),H0.info("setNode",{labelStyle:o,shape:l,labelText:c,rx:0,ry:0,style:s,id:a.id,type:"note",padding:D4().flowchart.padding}),!a.class||!(a.class in r))return;const u=n+i,h={classes:"relation",pattern:"dotted"};h.id=`edgeNote${u}`,h.arrowhead="none",H0.info(`Note edge: ${JSON.stringify(h)}, ${JSON.stringify(a)}`),h.startLabelRight="",h.endLabelLeft="",h.arrowTypeStart="none",h.arrowTypeEnd="none",h.style="fill:none",h.labelStyle="",h.curve=s4(C7.curve,yz),e.setEdge(a.id,a.class,h,u)}))}(h,c,u.length+1,l),"sandbox"===a&&(f=JR("#i"+e));const d=JR("sandbox"===a?f.nodes()[0].contentDocument.body:"body"),A=d.select(`[id="${e}"]`),g=d.select("#"+e+" g");if(w7(g,c,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),x4.insertTitle(A,"classTitleText",i.titleTopMargin,r.db.getDiagramTitle()),H4(c,A,i.diagramPadding,i.useMaxWidth),!i.htmlLabels){const t="sandbox"===a?f.nodes()[0].contentDocument:document,n=t.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const e of n){const n=e.getBBox(),r=t.createElementNS("http://www.w3.org/2000/svg","rect");r.setAttribute("rx",0),r.setAttribute("ry",0),r.setAttribute("width",n.width),r.setAttribute("height",n.height),e.insertBefore(r,e.firstChild)}}}};var T7=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,2],r=[1,5],i=[6,9,11,23,25,27,29,30,31,51],a=[1,17],o=[1,18],s=[1,19],c=[1,20],l=[1,21],u=[1,22],h=[1,25],f=[1,30],d=[1,31],A=[1,32],g=[1,33],p=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,51],m=[1,45],b=[30,31,48,49],v=[4,6,9,11,23,25,27,29,30,31,51],y=[44,45,46,47],w=[22,37],k=[1,65],C=[1,64],x=[22,37,39,41],E={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,NON_IDENTIFYING:48,IDENTIFYING:49,WORD:50,open_directive:51,type_directive:52,arg_directive:53,close_directive:54,$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:"NON_IDENTIFYING",49:"IDENTIFYING",50:"WORD",51:"open_directive",52:"type_directive",53:"arg_directive",54:"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],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){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 43:case 28:case 29:case 32:this.$=a[s];break;case 12:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 13:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s]);break;case 16:case 17:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 21:case 41:case 42: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.$=r.Cardinality.ZERO_OR_ONE;break;case 36:this.$=r.Cardinality.ZERO_OR_MORE;break;case 37:this.$=r.Cardinality.ONE_OR_MORE;break;case 38:this.$=r.Cardinality.ONLY_ONE;break;case 39:this.$=r.Identification.NON_IDENTIFYING;break;case 40:this.$=r.Identification.IDENTIFYING;break;case 44:r.parseDirective("%%{","open_directive");break;case 45:r.parseDirective(a[s],"type_directive");break;case 46:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 47:r.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:n,7:3,12:4,51:r},{1:[3]},e(i,[2,3],{5:6}),{3:7,4:n,7:3,12:4,51:r},{13:8,52:[1,9]},{52:[2,44]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:a,25:o,27:s,29:c,30:l,31:u,51:r},{1:[2,2]},{14:23,15:[1,24],54:h},e([15,54],[2,45]),e(i,[2,8],{1:[2,1]}),e(i,[2,4]),{7:15,10:26,12:4,17:16,23:a,25:o,27:s,29:c,30:l,31:u,51:r},e(i,[2,6]),e(i,[2,7]),e(i,[2,11]),e(i,[2,15],{18:27,42:29,20:[1,28],44:f,45:d,46:A,47:g}),{24:[1,34]},{26:[1,35]},{28:[1,36]},e(i,[2,19]),e(p,[2,20]),e(p,[2,21]),{11:[1,37]},{16:38,53:[1,39]},{11:[2,47]},e(i,[2,5]),{17:40,30:l,31:u},{21:41,22:[1,42],32:43,33:44,37:m},{43:46,48:[1,47],49:[1,48]},e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),e(i,[2,16]),e(i,[2,17]),e(i,[2,18]),e(v,[2,9]),{14:49,54:h},{54:[2,46]},{15:[1,50]},{22:[1,51]},e(i,[2,14]),{21:52,22:[2,22],32:43,33:44,37:m},{34:53,37:[1,54]},{37:[2,28]},{42:55,44:f,45:d,46:A,47:g},e(y,[2,39]),e(y,[2,40]),{11:[1,56]},{19:57,30:[1,60],31:[1,59],50:[1,58]},e(i,[2,13]),{22:[2,23]},e(w,[2,24],{35:61,36:62,38:63,40:k,41:C}),e([22,37,40,41],[2,29]),e([30,31],[2,34]),e(v,[2,10]),e(i,[2,12]),e(i,[2,41]),e(i,[2,42]),e(i,[2,43]),e(w,[2,25],{36:66,39:[1,67],41:C}),e(w,[2,26]),e(x,[2,30]),e(w,[2,33]),e(x,[2,32]),e(w,[2,27]),{38:68,40:k},e(x,[2,31])],defaultActions:{5:[2,44],7:[2,2],25:[2,47],39:[2,46],45:[2,28],52:[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},T=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:case 13:case 15:case 22:case 27:break;case 14:return 11;case 16:return 9;case 17:return 31;case 18:return 50;case 19:return 4;case 20:return this.begin("block"),20;case 21:return 39;case 23:return 40;case 24:case 25:return 37;case 26:return 41;case 28:return this.popState(),22;case 29:case 58:return e.yytext[0];case 30:case 34:case 35:case 48:return 44;case 31:case 32:case 33:case 41:case 43:case 50:return 46;case 36:case 37:case 38:case 39:case 40:case 42:case 49:return 45;case 44:case 45:case 46:case 47:return 47;case 51:case 54:case 55:case 56:return 48;case 52:case 53:return 49;case 57:return 30;case 59: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,/^(?:[^\}]%%[^\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,/^(?:\.\.)/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:[21,22,23,24,25,26,27,28,29],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,20,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],inclusive:!0}}},t);function B(){this.yy={}}return E.lexer=T,B.prototype=E,E.Parser=B,new B}();T7.parser=T7;const B7=T7,_7=t=>null!==t.match(/^\s*erDiagram/);let S7={},L7=[];const I7=function(t){return void 0===S7[t]&&(S7[t]={attributes:[]},H0.info("Added new entity :",t)),S7[t]},M7={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,n){Git.parseDirective(this,t,e,n)},getConfig:()=>D4().er,addEntity:I7,addAttributes:function(t,e){let n,r=I7(t);for(n=e.length-1;n>=0;n--)r.attributes.push(e[n]),H0.debug("Added attribute ",e[n].attributeName)},getEntities:()=>S7,addRelationship:function(t,e,n,r){let i={entityA:t,roleA:e,entityB:n,relSpec:r};L7.push(i),H0.debug("Added new relationship :",i)},getRelationships:()=>L7,clear:function(){S7={},L7=[],s5()},setAccTitle:c5,getAccTitle:l5,setAccDescription:u5,getAccDescription:h5,setDiagramTitle:f5,getDiagramTitle:d5},O7={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"},D7=O7,F7=function(t,e){let n;t.append("defs").append("marker").attr("id",O7.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",O7.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",O7.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",O7.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",O7.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",O7.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",O7.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",O7.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")},N7=/[^\dA-Za-z](\W)*/g;let P7={},R7=new Map;const Q7=function(t,e,n){let r;return Object.keys(e).forEach((function(i){const a=function(t="",e=""){const n=t.replace(N7,"");return`${j7(e)}${j7(n)}${F0(t,H7)}`}(i,"entity");R7.set(i,a);const o=t.append("g").attr("id",a);r=void 0===r?a:r;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",D4().fontFamily).style("font-size",P7.fontSize+"px").text(i),{width:l,height:u}=((t,e,n)=>{const r=P7.entityPadding/3,i=P7.entityPadding/3,a=.85*P7.fontSize,o=e.node().getBBox(),s=[];let c=!1,l=!1,u=0,h=0,f=0,d=0,A=o.height+2*r,g=1;n.forEach((t=>{void 0!==t.attributeKeyTypeList&&t.attributeKeyTypeList.length>0&&(c=!0),void 0!==t.attributeComment&&(l=!0)})),n.forEach((n=>{const i=`${e.node().id}-attr-${g}`;let o=0;const p=J0(n.attributeType),m=t.append("text").classed("er entityLabel",!0).attr("id",`${i}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",D4().fontFamily).style("font-size",a+"px").text(p),b=t.append("text").classed("er entityLabel",!0).attr("id",`${i}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",D4().fontFamily).style("font-size",a+"px").text(n.attributeName),v={};v.tn=m,v.nn=b;const y=m.node().getBBox(),w=b.node().getBBox();if(u=Math.max(u,y.width),h=Math.max(h,w.width),o=Math.max(y.height,w.height),c){const e=void 0!==n.attributeKeyTypeList?n.attributeKeyTypeList.join(","):"",r=t.append("text").classed("er entityLabel",!0).attr("id",`${i}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",D4().fontFamily).style("font-size",a+"px").text(e);v.kn=r;const s=r.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",`${i}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",D4().fontFamily).style("font-size",a+"px").text(n.attributeComment||"");v.cn=e;const r=e.node().getBBox();d=Math.max(d,r.width),o=Math.max(o,r.height)}v.height=o,s.push(v),A+=o+2*r,g+=1}));let p=4;c&&(p+=2),l&&(p+=2);const m=u+h+f+d,b={width:Math.max(P7.minEntityWidth,Math.max(o.width+2*P7.entityPadding,m+i*p)),height:n.length>0?A:Math.max(P7.minEntityHeight,o.height+2*P7.entityPadding)};if(n.length>0){const n=Math.max(0,(b.width-m-i*p)/(p/2));e.attr("transform","translate("+b.width/2+","+(r+o.height/2)+")");let a=o.height+2*r,A="attributeBoxOdd";s.forEach((e=>{const o=a+r+e.height/2;e.tn.attr("transform","translate("+i+","+o+")");const s=t.insert("rect","#"+e.tn.node().id).classed(`er ${A}`,!0).attr("x",0).attr("y",a).attr("width",u+2*i+n).attr("height",e.height+2*r),g=parseFloat(s.attr("x"))+parseFloat(s.attr("width"));e.nn.attr("transform","translate("+(g+i)+","+o+")");const p=t.insert("rect","#"+e.nn.node().id).classed(`er ${A}`,!0).attr("x",g).attr("y",a).attr("width",h+2*i+n).attr("height",e.height+2*r);let m=parseFloat(p.attr("x"))+parseFloat(p.attr("width"));if(c){e.kn.attr("transform","translate("+(m+i)+","+o+")");const s=t.insert("rect","#"+e.kn.node().id).classed(`er ${A}`,!0).attr("x",m).attr("y",a).attr("width",f+2*i+n).attr("height",e.height+2*r);m=parseFloat(s.attr("x"))+parseFloat(s.attr("width"))}l&&(e.cn.attr("transform","translate("+(m+i)+","+o+")"),t.insert("rect","#"+e.cn.node().id).classed(`er ${A}`,"true").attr("x",m).attr("y",a).attr("width",d+2*i+n).attr("height",e.height+2*r)),a+=e.height+2*r,A="attributeBoxOdd"===A?"attributeBoxEven":"attributeBoxOdd"}))}else b.height=Math.max(P7.minEntityHeight,A),e.attr("transform","translate("+b.width/2+","+b.height/2+")");return b})(o,c,e[i].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})})),r},U7=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")};let $7=0;const H7="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function j7(t=""){return t.length>0?`${t}-`:""}const K7={setConf:function(t){const e=Object.keys(t);for(const n of e)P7[n]=t[n]},draw:function(t,e,n,r){P7=D4().er,H0.info("Drawing ER diagram");const i=D4().securityLevel;let a;"sandbox"===i&&(a=JR("#i"+e));const o=JR("sandbox"===i?a.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);let s;F7(o,P7),s=new t1({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:P7.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));const c=Q7(o,r.db.getEntities(),s),l=function(t,e){return t.forEach((function(t){e.setEdge(R7.get(t.entityA),R7.get(t.entityB),{relationship:t},U7(t))})),t}(r.db.getRelationships(),s);g0(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),l.forEach((function(t){!function(t,e,n,r,i){$7++;const a=n.edge(R7.get(e.entityA),R7.get(e.entityB),U7(e)),o=Cz().x((function(t){return t.x})).y((function(t){return t.y})).curve(Lz),s=t.insert("path","#"+r).classed("er relationshipLine",!0).attr("d",o(a.points)).style("stroke",P7.stroke).style("fill","none");e.relSpec.relType===i.db.Identification.NON_IDENTIFYING&&s.attr("stroke-dasharray","8,8");let c="";switch(P7.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 i.db.Cardinality.ZERO_OR_ONE:s.attr("marker-end","url("+c+"#"+D7.ZERO_OR_ONE_END+")");break;case i.db.Cardinality.ZERO_OR_MORE:s.attr("marker-end","url("+c+"#"+D7.ZERO_OR_MORE_END+")");break;case i.db.Cardinality.ONE_OR_MORE:s.attr("marker-end","url("+c+"#"+D7.ONE_OR_MORE_END+")");break;case i.db.Cardinality.ONLY_ONE:s.attr("marker-end","url("+c+"#"+D7.ONLY_ONE_END+")")}switch(e.relSpec.cardB){case i.db.Cardinality.ZERO_OR_ONE:s.attr("marker-start","url("+c+"#"+D7.ZERO_OR_ONE_START+")");break;case i.db.Cardinality.ZERO_OR_MORE:s.attr("marker-start","url("+c+"#"+D7.ZERO_OR_MORE_START+")");break;case i.db.Cardinality.ONE_OR_MORE:s.attr("marker-start","url("+c+"#"+D7.ONE_OR_MORE_START+")");break;case i.db.Cardinality.ONLY_ONE:s.attr("marker-start","url("+c+"#"+D7.ONLY_ONE_START+")")}const l=s.node().getTotalLength(),u=s.node().getPointAtLength(.5*l),h="rel"+$7,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",D4().fontFamily).style("font-size",P7.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,r)}));const u=P7.diagramPadding;x4.insertTitle(o,"entityTitleText",P7.titleTopMargin,r.db.getDiagramTitle());const h=o.node().getBBox(),f=h.width+2*u,d=h.height+2*u;$4(o,d,f,P7.useMaxWidth),o.attr("viewBox",`${h.x-u} ${h.y-u} ${f} ${d}`)}};var z7=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,9],r=[1,7],i=[1,6],a=[1,8],o=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],s=[2,10],c=[1,20],l=[1,21],u=[1,22],h=[1,23],f=[1,30],d=[1,32],A=[1,33],g=[1,34],p=[1,62],m=[1,48],b=[1,52],v=[1,36],y=[1,37],w=[1,38],k=[1,39],C=[1,40],x=[1,56],E=[1,63],T=[1,51],B=[1,53],_=[1,55],S=[1,59],L=[1,60],I=[1,41],M=[1,42],O=[1,43],D=[1,44],F=[1,61],N=[1,50],P=[1,54],R=[1,57],Q=[1,58],U=[1,49],$=[1,66],H=[1,71],j=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],K=[1,75],z=[1,74],G=[1,76],X=[20,21,23,81,82],V=[1,99],W=[1,104],q=[1,107],Y=[1,108],J=[1,101],Z=[1,106],tt=[1,109],et=[1,102],nt=[1,114],rt=[1,113],it=[1,103],at=[1,105],ot=[1,110],st=[1,111],ct=[1,112],lt=[1,115],ut=[20,21,22,23,81,82],ht=[20,21,22,23,53,81,82],ft=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],dt=[20,21,23],At=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],gt=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],pt=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],mt=[1,149],bt=[1,157],vt=[1,158],yt=[1,159],wt=[1,160],kt=[1,144],Ct=[1,145],xt=[1,141],Et=[1,152],Tt=[1,153],Bt=[1,154],_t=[1,155],St=[1,156],Lt=[1,161],It=[1,162],Mt=[1,147],Ot=[1,150],Dt=[1,146],Ft=[1,143],Nt=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Pt=[1,165],Rt=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Qt=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],Ut=[12,21,22,24],$t=[22,106],Ht=[1,250],jt=[1,245],Kt=[1,246],zt=[1,254],Gt=[1,251],Xt=[1,248],Vt=[1,247],Wt=[1,249],qt=[1,252],Yt=[1,253],Jt=[1,255],Zt=[1,273],te=[20,21,23,106],ee=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],ne={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,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$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",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},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],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(a[s],"type_directive");break;case 7:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 8:r.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 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=a[s];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(a[s-1]),this.$=a[s-1];break;case 35:this.$=a[s-1].nodes;break;case 41:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 42:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 43:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 45:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 46:case 47:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 51:r.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:r.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 123:case 125:this.$=[a[s]];break;case 56:this.$=a[s-4].concat(a[s]);break;case 57:this.$=[a[s-2]],r.setClass(a[s-2],a[s]);break;case 58:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"square");break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"doublecircle");break;case 60:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],"circle");break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"ellipse");break;case 62:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"stadium");break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"subroutine");break;case 64:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"cylinder");break;case 66:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"round");break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"diamond");break;case 68:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],"hexagon");break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"odd");break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"trapezoid");break;case 71:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"inv_trapezoid");break;case 72:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"lean_right");break;case 73:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"lean_left");break;case 74:this.$=a[s],r.addVertex(a[s]);break;case 75:a[s-1].text=a[s],this.$=a[s-1];break;case 76:case 77:a[s-2].text=a[s-1],this.$=a[s-2];break;case 79:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 80:c=r.destructLink(a[s]);this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 81:this.$=a[s-1];break;case 83:case 97:case 153:case 151:this.$=a[s-1]+""+a[s];break;case 98:case 99:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 100:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 101:case 109:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 102:case 110:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 103:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 104:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 105:case 111:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 106:case 112:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 107:case 113:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 108:case 114:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 115:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 116:case 118:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 117:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 119:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 120:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 121:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 122:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 124:case 126:a[s-2].push(a[s]),this.$=a[s-2];break;case 128:this.$=a[s-1]+a[s];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:n,16:4,21:r,22:i,24:a},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:n,16:4,21:r,22:i,24:a},e(o,s,{17:11}),{7:12,13:[1,13]},{16:14,21:r,22:i,24:a},{16:15,21:r,22:i,24:a},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:c,21:l,22:u,23:h,32:24,33:25,34:26,35:27,36:28,37:29,38:f,43:31,44:d,46:A,48:g,50:35,51:45,52:p,54:46,66:m,67:b,86:v,87:y,88:w,89:k,90:C,91:x,95:E,105:T,106:B,109:_,111:S,112:L,116:47,118:I,119:M,120:O,121:D,122:F,123:N,124:P,125:R,126:Q,127:U},{8:64,10:[1,65],15:$},e([10,15],[2,6]),e(o,[2,17]),e(o,[2,18]),e(o,[2,19]),{20:[1,68],21:[1,69],22:H,27:67,30:70},e(j,[2,11]),e(j,[2,12]),e(j,[2,13]),e(j,[2,14]),e(j,[2,15]),e(j,[2,16]),{9:72,20:K,21:z,23:G,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:K,21:z,23:G},{9:81,20:K,21:z,23:G},{9:82,20:K,21:z,23:G},{9:83,20:K,21:z,23:G},{9:84,20:K,21:z,23:G},{9:86,20:K,21:z,22:[1,85],23:G},e(j,[2,44]),{45:[1,87]},{47:[1,88]},e(j,[2,47]),e(X,[2,54],{30:89,22:H}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:V,52:W,66:q,67:Y,84:[1,97],91:J,97:96,98:[1,94],100:[1,95],105:Z,106:tt,109:et,111:nt,112:rt,115:100,117:98,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(j,[2,158]),e(j,[2,159]),e(j,[2,160]),e(j,[2,161]),e(ut,[2,55],{53:[1,116]}),e(ht,[2,74],{116:129,40:[1,117],52:p,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:m,67:b,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:x,95:E,105:T,106:B,109:_,111:S,112:L,122:F,123:N,124:P,125:R,126:Q,127:U}),e(ft,[2,150]),e(ft,[2,175]),e(ft,[2,176]),e(ft,[2,177]),e(ft,[2,178]),e(ft,[2,179]),e(ft,[2,180]),e(ft,[2,181]),e(ft,[2,182]),e(ft,[2,183]),e(ft,[2,184]),e(ft,[2,185]),e(ft,[2,186]),e(ft,[2,187]),e(ft,[2,188]),e(ft,[2,189]),e(ft,[2,190]),{9:130,20:K,21:z,23:G},{11:131,14:[1,132]},e(dt,[2,8]),e(o,[2,20]),e(o,[2,26]),e(o,[2,27]),{21:[1,133]},e(At,[2,34],{30:134,22:H}),e(j,[2,35]),{50:135,51:45,52:p,54:46,66:m,67:b,91:x,95:E,105:T,106:B,109:_,111:S,112:L,116:47,122:F,123:N,124:P,125:R,126:Q,127:U},e(gt,[2,48]),e(gt,[2,49]),e(gt,[2,50]),e(pt,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:mt,24:bt,26:vt,38:yt,39:139,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},e([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),e(j,[2,36]),e(j,[2,37]),e(j,[2,38]),e(j,[2,39]),e(j,[2,40]),{22:mt,24:bt,26:vt,38:yt,39:163,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(Nt,s,{17:164}),e(j,[2,45]),e(j,[2,46]),e(X,[2,53],{52:Pt}),{26:V,52:W,66:q,67:Y,91:J,97:166,102:[1,167],105:Z,106:tt,109:et,111:nt,112:rt,115:100,117:98,122:it,123:at,124:ot,125:st,126:ct,127:lt},{95:[1,168],103:169,105:[1,170]},{26:V,52:W,66:q,67:Y,91:J,95:[1,171],97:172,105:Z,106:tt,109:et,111:nt,112:rt,115:100,117:98,122:it,123:at,124:ot,125:st,126:ct,127:lt},{26:V,52:W,66:q,67:Y,91:J,97:173,105:Z,106:tt,109:et,111:nt,112:rt,115:100,117:98,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(dt,[2,101],{22:[1,174],99:[1,175]}),e(dt,[2,105],{22:[1,176]}),e(dt,[2,109],{115:100,117:178,22:[1,177],26:V,52:W,66:q,67:Y,91:J,105:Z,106:tt,109:et,111:nt,112:rt,122:it,123:at,124:ot,125:st,126:ct,127:lt}),e(dt,[2,111],{22:[1,179]}),e(Rt,[2,152]),e(Rt,[2,154]),e(Rt,[2,155]),e(Rt,[2,156]),e(Rt,[2,157]),e(Qt,[2,162]),e(Qt,[2,163]),e(Qt,[2,164]),e(Qt,[2,165]),e(Qt,[2,166]),e(Qt,[2,167]),e(Qt,[2,168]),e(Qt,[2,169]),e(Qt,[2,170]),e(Qt,[2,171]),e(Qt,[2,172]),e(Qt,[2,173]),e(Qt,[2,174]),{52:p,54:180,66:m,67:b,91:x,95:E,105:T,106:B,109:_,111:S,112:L,116:47,122:F,123:N,124:P,125:R,126:Q,127:U},{22:mt,24:bt,26:vt,38:yt,39:181,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:182,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:184,42:wt,52:W,57:[1,183],66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:185,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:186,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:187,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{66:[1,188]},{22:mt,24:bt,26:vt,38:yt,39:189,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:190,42:wt,52:W,66:q,67:Y,71:[1,191],73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:192,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:193,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:194,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(ft,[2,151]),e(Ut,[2,3]),{8:195,15:$},{15:[2,7]},e(o,[2,28]),e(At,[2,33]),e(X,[2,51],{30:196,22:H}),e(pt,[2,75],{22:[1,197]}),{22:[1,198]},{22:mt,24:bt,26:vt,38:yt,39:199,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,82:[1,200],83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(Qt,[2,82]),e(Qt,[2,84]),e(Qt,[2,140]),e(Qt,[2,141]),e(Qt,[2,142]),e(Qt,[2,143]),e(Qt,[2,144]),e(Qt,[2,145]),e(Qt,[2,146]),e(Qt,[2,147]),e(Qt,[2,148]),e(Qt,[2,149]),e(Qt,[2,85]),e(Qt,[2,86]),e(Qt,[2,87]),e(Qt,[2,88]),e(Qt,[2,89]),e(Qt,[2,90]),e(Qt,[2,91]),e(Qt,[2,92]),e(Qt,[2,93]),e(Qt,[2,94]),e(Qt,[2,95]),{9:203,20:K,21:z,22:mt,23:G,24:bt,26:vt,38:yt,40:[1,202],42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{18:18,19:19,20:c,21:l,22:u,23:h,32:24,33:25,34:26,35:27,36:28,37:29,38:f,42:[1,204],43:31,44:d,46:A,48:g,50:35,51:45,52:p,54:46,66:m,67:b,86:v,87:y,88:w,89:k,90:C,91:x,95:E,105:T,106:B,109:_,111:S,112:L,116:47,118:I,119:M,120:O,121:D,122:F,123:N,124:P,125:R,126:Q,127:U},{22:H,30:205},{22:[1,206],26:V,52:W,66:q,67:Y,91:J,105:Z,106:tt,109:et,111:nt,112:rt,115:100,117:178,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},e($t,[2,123]),{22:[1,211]},{22:[1,212],26:V,52:W,66:q,67:Y,91:J,105:Z,106:tt,109:et,111:nt,112:rt,115:100,117:178,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:[1,213],26:V,52:W,66:q,67:Y,91:J,105:Z,106:tt,109:et,111:nt,112:rt,115:100,117:178,122:it,123:at,124:ot,125:st,126:ct,127:lt},{84:[1,214]},e(dt,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},e(Rt,[2,153]),{84:[1,219],101:[1,220]},e(ut,[2,57],{116:129,52:p,66:m,67:b,91:x,95:E,105:T,106:B,109:_,111:S,112:L,122:F,123:N,124:P,125:R,126:Q,127:U}),{22:mt,24:bt,26:vt,38:yt,41:[1,221],42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,56:[1,222],66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:223,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,58:[1,224],66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,60:[1,225],66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,62:[1,226],66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,64:[1,227],66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{67:[1,228]},{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,66:q,67:Y,70:[1,229],73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,66:q,67:Y,72:[1,230],73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,39:231,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,41:[1,232],42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,66:q,67:Y,73:kt,75:[1,233],77:[1,234],81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,66:q,67:Y,73:kt,75:[1,236],77:[1,235],81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{9:237,20:K,21:z,23:G},e(X,[2,52],{52:Pt}),e(pt,[2,77]),e(pt,[2,76]),{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,66:q,67:Y,68:[1,238],73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(pt,[2,79]),e(Qt,[2,83]),{22:mt,24:bt,26:vt,38:yt,39:239,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(Nt,s,{17:240}),e(j,[2,43]),{51:241,52:p,54:46,66:m,67:b,91:x,95:E,105:T,106:B,109:_,111:S,112:L,116:47,122:F,123:N,124:P,125:R,126:Q,127:U},{22:Ht,66:jt,67:Kt,86:zt,96:242,102:Gt,105:Xt,107:243,108:244,109:Vt,110:Wt,111:qt,112:Yt,113:Jt},{22:Ht,66:jt,67:Kt,86:zt,96:256,102:Gt,105:Xt,107:243,108:244,109:Vt,110:Wt,111:qt,112:Yt,113:Jt},{22:Ht,66:jt,67:Kt,86:zt,96:257,102:Gt,104:[1,258],105:Xt,107:243,108:244,109:Vt,110:Wt,111:qt,112:Yt,113:Jt},{22:Ht,66:jt,67:Kt,86:zt,96:259,102:Gt,104:[1,260],105:Xt,107:243,108:244,109:Vt,110:Wt,111:qt,112:Yt,113:Jt},{105:[1,261]},{22:Ht,66:jt,67:Kt,86:zt,96:262,102:Gt,105:Xt,107:243,108:244,109:Vt,110:Wt,111:qt,112:Yt,113:Jt},{22:Ht,66:jt,67:Kt,86:zt,96:263,102:Gt,105:Xt,107:243,108:244,109:Vt,110:Wt,111:qt,112:Yt,113:Jt},{26:V,52:W,66:q,67:Y,91:J,97:264,105:Z,106:tt,109:et,111:nt,112:rt,115:100,117:98,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(dt,[2,102]),{84:[1,265]},e(dt,[2,106],{22:[1,266]}),e(dt,[2,107]),e(dt,[2,110]),e(dt,[2,112],{22:[1,267]}),e(dt,[2,113]),e(ht,[2,58]),e(ht,[2,59]),{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,58:[1,268],66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(ht,[2,66]),e(ht,[2,61]),e(ht,[2,62]),e(ht,[2,63]),{66:[1,269]},e(ht,[2,65]),e(ht,[2,67]),{22:mt,24:bt,26:vt,38:yt,42:wt,52:W,66:q,67:Y,72:[1,270],73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(ht,[2,69]),e(ht,[2,70]),e(ht,[2,72]),e(ht,[2,71]),e(ht,[2,73]),e(Ut,[2,4]),e([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:mt,24:bt,26:vt,38:yt,41:[1,271],42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{18:18,19:19,20:c,21:l,22:u,23:h,32:24,33:25,34:26,35:27,36:28,37:29,38:f,42:[1,272],43:31,44:d,46:A,48:g,50:35,51:45,52:p,54:46,66:m,67:b,86:v,87:y,88:w,89:k,90:C,91:x,95:E,105:T,106:B,109:_,111:S,112:L,116:47,118:I,119:M,120:O,121:D,122:F,123:N,124:P,125:R,126:Q,127:U},e(ut,[2,56]),e(dt,[2,115],{106:Zt}),e(te,[2,125],{108:274,22:Ht,66:jt,67:Kt,86:zt,102:Gt,105:Xt,109:Vt,110:Wt,111:qt,112:Yt,113:Jt}),e(ee,[2,127]),e(ee,[2,129]),e(ee,[2,130]),e(ee,[2,131]),e(ee,[2,132]),e(ee,[2,133]),e(ee,[2,134]),e(ee,[2,135]),e(ee,[2,136]),e(ee,[2,137]),e(ee,[2,138]),e(ee,[2,139]),e(dt,[2,116],{106:Zt}),e(dt,[2,117],{106:Zt}),{22:[1,275]},e(dt,[2,118],{106:Zt}),{22:[1,276]},e($t,[2,124]),e(dt,[2,98],{106:Zt}),e(dt,[2,99],{106:Zt}),e(dt,[2,100],{115:100,117:178,26:V,52:W,66:q,67:Y,91:J,105:Z,106:tt,109:et,111:nt,112:rt,122:it,123:at,124:ot,125:st,126:ct,127:lt}),e(dt,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:K,21:z,23:G},e(j,[2,42]),{22:Ht,66:jt,67:Kt,86:zt,102:Gt,105:Xt,107:283,108:244,109:Vt,110:Wt,111:qt,112:Yt,113:Jt},e(ee,[2,128]),{26:V,52:W,66:q,67:Y,91:J,97:284,105:Z,106:tt,109:et,111:nt,112:rt,115:100,117:98,122:it,123:at,124:ot,125:st,126:ct,127:lt},{26:V,52:W,66:q,67:Y,91:J,97:285,105:Z,106:tt,109:et,111:nt,112:rt,115:100,117:98,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(dt,[2,108]),e(dt,[2,114]),e(ht,[2,60]),{22:mt,24:bt,26:vt,38:yt,39:286,42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:140,84:xt,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},e(ht,[2,68]),e(Nt,s,{17:287}),e(te,[2,126],{108:274,22:Ht,66:jt,67:Kt,86:zt,102:Gt,105:Xt,109:Vt,110:Wt,111:qt,112:Yt,113:Jt}),e(dt,[2,121],{115:100,117:178,22:[1,288],26:V,52:W,66:q,67:Y,91:J,105:Z,106:tt,109:et,111:nt,112:rt,122:it,123:at,124:ot,125:st,126:ct,127:lt}),e(dt,[2,122],{115:100,117:178,22:[1,289],26:V,52:W,66:q,67:Y,91:J,105:Z,106:tt,109:et,111:nt,112:rt,122:it,123:at,124:ot,125:st,126:ct,127:lt}),{22:mt,24:bt,26:vt,38:yt,41:[1,290],42:wt,52:W,66:q,67:Y,73:kt,81:Ct,83:201,85:151,86:Et,87:Tt,88:Bt,89:_t,90:St,91:Lt,92:It,94:142,95:Mt,105:Z,106:tt,109:Ot,111:nt,112:rt,113:Dt,114:Ft,115:148,122:it,123:at,124:ot,125:st,126:ct,127:lt},{18:18,19:19,20:c,21:l,22:u,23:h,32:24,33:25,34:26,35:27,36:28,37:29,38:f,42:[1,291],43:31,44:d,46:A,48:g,50:35,51:45,52:p,54:46,66:m,67:b,86:v,87:y,88:w,89:k,90:C,91:x,95:E,105:T,106:B,109:_,111:S,112:L,116:47,118:I,119:M,120:O,121:D,122:F,123:N,124:P,125:R,126:Q,127:U},{22:Ht,66:jt,67:Kt,86:zt,96:292,102:Gt,105:Xt,107:243,108:244,109:Vt,110:Wt,111:qt,112:Yt,113:Jt},{22:Ht,66:jt,67:Kt,86:zt,96:293,102:Gt,105:Xt,107:243,108:244,109:Vt,110:Wt,111:qt,112:Yt,113:Jt},e(ht,[2,64]),e(j,[2,41]),e(dt,[2,119],{106:Zt}),e(dt,[2,120],{106:Zt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},re=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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:case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:case 37:return t.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:case 41:case 42:case 43:return 101;case 44:return this.popState(),25;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),26;case 55:return 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:case 68:case 69:return 82;case 70:case 71:case 72:return 81;case 73:return 59;case 74:return 60;case 75:return 61;case 76:return 62;case 77:return 63;case 78:return 64;case 79:return 65;case 80:return 69;case 81:return 70;case 82:return 55;case 83:return 56;case 84:return 109;case 85:return 112;case 86:return 127;case 87:return 124;case 88:return 113;case 89:case 90:return 125;case 91:return 114;case 92:return 73;case 93:return 92;case 94:return"SEP";case 95:return 91;case 96:return 66;case 97:return 75;case 98:return 74;case 99:return 77;case 100:return 76;case 101:return 122;case 102:return 123;case 103:return 68;case 104:return 57;case 105:return 58;case 106:return 40;case 107:return 41;case 108:return 71;case 109:return 72;case 110:return 133;case 111:return 21;case 112:return 22;case 113:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\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<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\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:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[44,45,46,47,48,49,50,51,52,53,54],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],inclusive:!0}}},t);function ie(){this.yy={}}return ne.lexer=re,ie.prototype=ne,ne.Parser=ie,new ie}();z7.parser=z7;const G7=z7,X7=(t,e)=>{var n,r;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&("elk"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)&&null!==t.match(/^\s*graph/))},V7=(t,e)=>{var n,r;return"dagre-d3"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&("elk"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)&&(null!==t.match(/^\s*graph/)||null!==t.match(/^\s*flowchart/)))};let W7,q7,Y7=0,J7=D4(),Z7={},t9=[],e9={},n9=[],r9={},i9={},a9=0,o9=!0,s9=[];const c9=t=>Z0.sanitizeText(t,J7),l9=function(t,e,n){Git.parseDirective(this,t,e,n)},u9=function(t){const e=Object.keys(Z7);for(const n of e)if(Z7[n].id===t)return Z7[n].domId;return t},h9=function(t,e,n,r,i,a,o={}){let s,c=t;void 0!==c&&0!==c.trim().length&&(void 0===Z7[c]&&(Z7[c]={id:c,domId:"flowchart-"+c+"-"+Y7,styles:[],classes:[]}),Y7++,void 0!==e?(J7=D4(),s=c9(e.trim()),'"'===s[0]&&'"'===s[s.length-1]&&(s=s.substring(1,s.length-1)),Z7[c].text=s):void 0===Z7[c].text&&(Z7[c].text=t),void 0!==n&&(Z7[c].type=n),null!=r&&r.forEach((function(t){Z7[c].styles.push(t)})),null!=i&&i.forEach((function(t){Z7[c].classes.push(t)})),void 0!==a&&(Z7[c].dir=a),void 0===Z7[c].props?Z7[c].props=o:void 0!==o&&Object.assign(Z7[c].props,o))},f9=function(t,e,n,r){const i={start:t,end:e,type:void 0,text:""};void 0!==(r=n.text)&&(i.text=c9(r.trim()),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),void 0!==n&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length),t9.push(i)},d9=function(t,e,n,r){let i,a;for(i=0;i<t.length;i++)for(a=0;a<e.length;a++)f9(t[i],e[a],n,r)},A9=function(t,e){t.forEach((function(t){"default"===t?t9.defaultInterpolate=e:t9[t].interpolate=e}))},g9=function(t,e){t.forEach((function(t){"default"===t?t9.defaultStyle=e:(-1===x4.isSubstringInArray("fill",e)&&e.push("fill:none"),t9[t].style=e)}))},p9=function(t,e){void 0===e9[t]&&(e9[t]={id:t,styles:[],textStyles:[]}),null!=e&&e.forEach((function(e){if(e.match("color")){const n=e.replace("fill","bgFill").replace("color","fill");e9[t].textStyles.push(n)}e9[t].styles.push(e)}))},m9=function(t){W7=t,W7.match(/.*</)&&(W7="RL"),W7.match(/.*\^/)&&(W7="BT"),W7.match(/.*>/)&&(W7="LR"),W7.match(/.*v/)&&(W7="TB"),"TD"===W7&&(W7="TB")},b9=function(t,e){t.split(",").forEach((function(t){let n=t;void 0!==Z7[n]&&Z7[n].classes.push(e),void 0!==r9[n]&&r9[n].classes.push(e)}))},v9=function(t,e,n){t.split(",").forEach((function(t){void 0!==Z7[t]&&(Z7[t].link=x4.formatUrl(e,J7),Z7[t].linkTarget=n)})),b9(t,"clickable")},y9=function(t){return i9[t]},w9=function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){let r=u9(t);if("loose"!==D4().securityLevel)return;if(void 0===e)return;let i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(t),void 0!==Z7[t]&&(Z7[t].haveCallback=!0,s9.push((function(){const t=document.querySelector(`[id="${r}"]`);null!==t&&t.addEventListener("click",(function(){x4.runFunc(e,...i)}),!1)})))}(t,e,n)})),b9(t,"clickable")},k9=function(t){s9.forEach((function(e){e(t)}))},C9=function(){return W7.trim()},x9=function(){return Z7},E9=function(){return t9},T9=function(){return e9},B9=function(t){let e=JR(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=JR("body").append("div").attr("class","mermaidTooltip").style("opacity",0));JR(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=JR(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(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0);JR(this).classed("hover",!1)}))};s9.push(B9);const _9=function(t="gen-1"){Z7={},e9={},t9=[],s9=[B9],n9=[],r9={},a9=0,i9=[],o9=!0,q7=t,s5()},S9=t=>{q7=t||"gen-2"},L9=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},I9=function(t,e,n){let r=t.trim(),i=n;t===n&&n.match(/\s/)&&(r=void 0);let a=[];const{nodeList:o,dir:s}=function(t){const e={boolean:{},number:{},string:{}},n=[];let r;return{nodeList:t.filter((function(t){const i=typeof t;return t.stmt&&"dir"===t.stmt?(r=t.value,!1):""!==t.trim()&&(i in e?!e[i].hasOwnProperty(t)&&(e[i][t]=!0):!n.includes(t)&&n.push(t))})),dir:r}}(a.concat.apply(a,e));if(a=o,"gen-1"===q7)for(let t=0;t<a.length;t++)a[t]=u9(a[t]);r=r||"subGraph"+a9,i=i||"",i=c9(i),a9+=1;const c={id:r,nodes:a,title:i.trim(),classes:[],dir:s};return H0.info("Adding",c.id,c.nodes,c.dir),c.nodes=H9(c,n9).nodes,n9.push(c),r9[r]=c,r},M9=function(t){for(const[e,n]of n9.entries())if(n.id===t)return e;return-1};let O9=-1;const D9=[],F9=function(t,e){const n=n9[e].nodes;if(O9+=1,O9>2e3)return;if(D9[O9]=e,n9[e].id===t)return{result:!0,count:0};let r=0,i=1;for(;r<n.length;){const e=M9(n[r]);if(e>=0){const n=F9(t,e);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=1}return{result:!1,count:i}},N9=function(t){return D9[t]},P9=function(){O9=-1,n9.length>0&&F9("none",n9.length-1)},R9=function(){return n9},Q9=()=>!!o9&&(o9=!1,!0),U9=(t,e)=>{const n=(t=>{const e=t.trim();let n=e.slice(0,-1),r="arrow_open";switch(e.slice(-1)){case"x":r="arrow_cross","x"===e[0]&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point","<"===e[0]&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle","o"===e[0]&&(r="double_"+r,n=n.slice(1))}let i="normal",a=n.length-1;"="===n[0]&&(i="thick");let o=((t,e)=>{const n=e.length;let r=0;for(let i=0;i<n;++i)e[i]===t&&++r;return r})(".",n);return o&&(i="dotted",a=o),{type:r,stroke:i,length:a}})(t);let r;if(e){if(r=(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 r="normal";return e.includes("=")&&(r="thick"),e.includes(".")&&(r="dotted"),{type:n,stroke:r}})(e),r.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===r.type)r.type=n.type;else{if(r.type!==n.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return"double_arrow"===r.type&&(r.type="double_arrow_point"),r.length=n.length,r}return n},$9=(t,e)=>{let n=!1;return t.forEach((t=>{t.nodes.indexOf(e)>=0&&(n=!0)})),n},H9=(t,e)=>{const n=[];return t.nodes.forEach(((r,i)=>{$9(e,r)||n.push(t.nodes[i])})),{nodes:n}},j9={firstGraph:Q9},K9={parseDirective:l9,defaultConfig:()=>T4.flowchart,setAccTitle:c5,getAccTitle:l5,getAccDescription:h5,setAccDescription:u5,addVertex:h9,lookUpDomId:u9,addLink:d9,updateLinkInterpolate:A9,updateLink:g9,addClass:p9,setDirection:m9,setClass:b9,setTooltip:function(t,e){t.split(",").forEach((function(t){void 0!==e&&(i9["gen-1"===q7?u9(t):t]=c9(e))}))},getTooltip:y9,setClickEvent:w9,setLink:v9,bindFunctions:k9,getDirection:C9,getVertices:x9,getEdges:E9,getClasses:T9,clear:_9,setGen:S9,defaultStyle:L9,addSubGraph:I9,getDepthFirstPos:N9,indexNodes:P9,getSubGraphs:R9,destructLink:U9,lex:j9,exists:$9,makeUniq:H9,setDiagramTitle:f5,getDiagramTitle:d5},z9=Object.freeze(Object.defineProperty({__proto__:null,addClass:p9,addLink:d9,addSingleLink:f9,addSubGraph:I9,addVertex:h9,bindFunctions:k9,clear:_9,default:K9,defaultStyle:L9,destructLink:U9,firstGraph:Q9,getClasses:T9,getDepthFirstPos:N9,getDirection:C9,getEdges:E9,getSubGraphs:R9,getTooltip:y9,getVertices:x9,indexNodes:P9,lex:j9,lookUpDomId:u9,parseDirective:l9,setClass:b9,setClickEvent:w9,setDirection:m9,setGen:S9,setLink:v9,updateLink:g9,updateLinkInterpolate:A9},Symbol.toStringTag,{value:"Module"}));const G9={},X9=function(t){const e=Object.keys(t);for(const n of e)G9[n]=t[n]},V9={},W9=function(t,e,n,r,i,a){const o=r.select(`[id="${n}"]`);Object.keys(t).forEach((function(n){const r=t[n];let s="default";r.classes.length>0&&(s=r.classes.join(" "));const c=l4(r.styles);let l,u=void 0!==r.text?r.text:r.id;if(Y0(D4().flowchart.htmlLabels)){const t={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`))};l=P0(o,t).node(),l.parentNode.removeChild(l)}else{const t=i.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",c.labelStyle.replace("color:","fill:"));const e=u.split(Z0.lineBreakRegex);for(const n of e){const e=i.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 h=0,f="";switch(r.type){case"round":h=5,f="rect";break;case"square":case"group":default:f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":case"odd_right":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"doublecircle":f="doublecircle"}e.setNode(r.id,{labelStyle:c.labelStyle,shape:f,labelText:u,rx:h,ry:h,class:s,style:c.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:a.db.getTooltip(r.id)||"",domId:a.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:"group"===r.type?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:D4().flowchart.padding}),H0.info("setNode",{labelStyle:c.labelStyle,shape:f,labelText:u,rx:h,ry:h,class:s,style:c.style,id:r.id,domId:a.db.lookUpDomId(r.id),width:"group"===r.type?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:D4().flowchart.padding})}))},q9=function(t,e,n){H0.info("abc78 edges = ",t);let r,i,a=0,o={};if(void 0!==t.defaultStyle){const e=l4(t.defaultStyle);r=e.style,i=e.labelStyle}t.forEach((function(n){a++;var s="L-"+n.start+"-"+n.end;void 0===o[s]?(o[s]=0,H0.info("abc78 new entry",s,o[s])):(o[s]++,H0.info("abc78 new entry",s,o[s]));let c=s+"-"+o[s];H0.info("abc78 new link id to be used is",s,c,o[s]);var l="LS-"+n.start,u="LE-"+n.end;const h={style:"",labelStyle:""};switch(h.minlen=n.length||1,"arrow_open"===n.type?h.arrowhead="none":h.arrowhead="normal",h.arrowTypeStart="arrow_open",h.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":h.arrowTypeStart="arrow_cross";case"arrow_cross":h.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":h.arrowTypeStart="arrow_point";case"arrow_point":h.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":h.arrowTypeStart="arrow_circle";case"arrow_circle":h.arrowTypeEnd="arrow_circle"}let f="",d="";switch(n.stroke){case"normal":f="fill:none;",void 0!==r&&(f=r),void 0!==i&&(d=i),h.thickness="normal",h.pattern="solid";break;case"dotted":h.thickness="normal",h.pattern="dotted",h.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":h.thickness="thick",h.pattern="solid",h.style="stroke-width: 3.5px;fill:none;"}if(void 0!==n.style){const t=l4(n.style);f=t.style,d=t.labelStyle}h.style=h.style+=f,h.labelStyle=h.labelStyle+=d,void 0!==n.interpolate?h.curve=s4(n.interpolate,yz):void 0!==t.defaultInterpolate?h.curve=s4(t.defaultInterpolate,yz):h.curve=s4(V9.curve,yz),void 0===n.text?void 0!==n.style&&(h.arrowheadStyle="fill: #333"):(h.arrowheadStyle="fill: #333",h.labelpos="c"),h.labelType="text",h.label=n.text.replace(Z0.lineBreakRegex,"\n"),void 0===n.style&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),h.labelStyle=h.labelStyle.replace("color:","fill:"),h.id=c,h.classes="flowchart-link "+l+" "+u,e.setEdge(n.start,n.end,h,a)}))},Y9={setConf:function(t){const e=Object.keys(t);for(const n of e)V9[n]=t[n]},addVertices:W9,addEdges:q9,getClasses:function(t,e){H0.info("Extracting classes"),e.db.clear();try{return e.parse(t),e.db.getClasses()}catch(t){return}},draw:function(t,e,n,r){H0.info("Drawing flowchart"),r.db.clear(),K9.setGen("gen-2"),r.parser.parse(t);let i=r.db.getDirection();void 0===i&&(i="TD");const{securityLevel:a,flowchart:o}=D4(),s=o.nodeSpacing||50,c=o.rankSpacing||50;let l;"sandbox"===a&&(l=JR("#i"+e));const u=JR("sandbox"===a?l.nodes()[0].contentDocument.body:"body"),h="sandbox"===a?l.nodes()[0].contentDocument:document,f=new t1({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:s,ranksep:c,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}}));let d;const A=r.db.getSubGraphs();H0.info("Subgraphs - ",A);for(let t=A.length-1;t>=0;t--)d=A[t],H0.info("Subgraph - ",d),r.db.addVertex(d.id,d.title,"group",void 0,d.classes,d.dir);const g=r.db.getVertices(),p=r.db.getEdges();H0.info("Edges",p);let m=0;for(m=A.length-1;m>=0;m--){d=A[m],ZR("cluster").append("text");for(let t=0;t<d.nodes.length;t++)H0.info("Setting up subgraphs",d.nodes[t],d.id),f.setParent(d.nodes[t],d.id)}W9(g,f,e,u,h,r),q9(p,f);const b=u.select(`[id="${e}"]`),v=u.select("#"+e+" g");if(w7(v,f,["point","circle","cross"],"flowchart",e),x4.insertTitle(b,"flowchartTitleText",o.titleTopMargin,r.db.getDiagramTitle()),H4(f,b,o.diagramPadding,o.useMaxWidth),r.db.indexNodes("subGraph"+m),!o.htmlLabels){const t=h.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const e of t){const t=e.getBBox(),n=h.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("rx",0),n.setAttribute("ry",0),n.setAttribute("width",t.width),n.setAttribute("height",t.height),e.insertBefore(n,e.firstChild)}}Object.keys(g).forEach((function(t){const n=g[t];if(n.link){const r=JR("#"+e+' [id="'+t+'"]');if(r){const t=h.createElementNS("http://www.w3.org/2000/svg","a");t.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),t.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),t.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===a?t.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&t.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);const e=r.insert((function(){return t}),":first-child"),i=r.select(".label-container");i&&e.append((function(){return i.node()}));const o=r.select(".label");o&&e.append((function(){return o.node()}))}}}))}};var J9=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,3],r=[1,5],i=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],a=[1,15],o=[1,16],s=[1,17],c=[1,18],l=[1,19],u=[1,20],h=[1,21],f=[1,22],d=[1,23],A=[1,24],g=[1,25],p=[1,26],m=[1,27],b=[1,29],v=[1,31],y=[1,34],w=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],k={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,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],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){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:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 11:r.TopAxis(),this.$=a[s].substr(8);break;case 12:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 13:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 14:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 15:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 16:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 17:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 18:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 19:case 20:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 21:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 23:r.addTask(a[s-1],a[s]),this.$="task";break;case 27:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 28:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 29:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 30:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 31:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 32:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 33:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 34:case 40:this.$=a[s-1]+" "+a[s];break;case 35:case 36:case 38:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 37:case 39:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s];break;case 41:r.parseDirective("%%{","open_directive");break;case 42:r.parseDirective(a[s],"type_directive");break;case 43:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 44:r.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:n,30:4,40:r},{1:[3]},{3:6,4:2,5:n,30:4,40:r},e(i,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:a,13:o,14:s,15:c,16:l,17:u,18:h,19:f,20:d,21:A,23:g,25:p,26:m,27:28,28:b,30:4,35:v,40:r},{32:32,33:[1,33],43:y},e([33,43],[2,42]),e(i,[2,8],{1:[2,2]}),e(i,[2,4]),{4:30,10:35,12:a,13:o,14:s,15:c,16:l,17:u,18:h,19:f,20:d,21:A,23:g,25:p,26:m,27:28,28:b,30:4,35:v,40:r},e(i,[2,6]),e(i,[2,7]),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,15]),e(i,[2,16]),e(i,[2,17]),{22:[1,36]},{24:[1,37]},e(i,[2,20]),e(i,[2,21]),e(i,[2,22]),{29:[1,38]},e(i,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},e(i,[2,5]),e(i,[2,18]),e(i,[2,19]),e(i,[2,23]),e(i,[2,27],{37:[1,44],38:[1,45]}),e(i,[2,33],{36:[1,46]}),e(w,[2,25]),{32:47,43:y},{43:[2,43]},e(i,[2,28],{38:[1,48]}),e(i,[2,29]),e(i,[2,31],{37:[1,49]}),{11:[1,50]},e(i,[2,30]),e(i,[2,32]),e(w,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},C=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){switch(n){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;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 38;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 27:return 37;case 28:this.begin("click");break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48: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,/^(?:\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],inclusive:!0}}},t);function x(){this.yy={}}return k.lexer=C,x.prototype=k,k.Parser=x,new x}();J9.parser=J9;const Z9=J9,ttt=t=>null!==t.match(/^\s*gantt/);lN.extend(R0),lN.extend(Q0),lN.extend(U0);let ett,ntt="",rtt="",itt="",att=[],ott=[],stt={},ctt=[],ltt=[],utt="";const htt=["active","done","crit","milestone"];let ftt=[],dtt=!1,Att=!1,gtt=0;const ptt=function(t,e,n,r){return!r.includes(t.format(e.trim()))&&(!!(t.isoWeekday()>=6&&n.includes("weekends"))||(!!n.includes(t.format("dddd").toLowerCase())||n.includes(t.format(e.trim()))))},mtt=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i,a;i=t.startTime instanceof Date?lN(t.startTime):lN(t.startTime,e,!0),i=i.add(1,"d"),a=t.endTime instanceof Date?lN(t.endTime):lN(t.endTime,e,!0);const[o,s]=btt(i,a,e,n,r);t.endTime=o.toDate(),t.renderEndTime=s},btt=function(t,e,n,r,i){let a=!1,o=null;for(;t<=e;)a||(o=e.toDate()),a=ptt(t,n,r,i),a&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,o]},vtt=function(t,e,n){n=n.trim();const r=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==r){let t=null;if(r[1].split(" ").forEach((function(e){let n=_tt(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 i=lN(n,e.trim(),!0);if(i.isValid())return i.toDate();{H0.debug("Invalid date:"+n),H0.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime()))throw new Error("Invalid date:"+n);return t}},ytt=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},wtt=function(t,e,n,r=!1){n=n.trim();let i=lN(n,e.trim(),!0);if(i.isValid())return r&&(i=i.add(1,"d")),i.toDate();let a=lN(t);const[o,s]=ytt(n);if(!Number.isNaN(o)){const t=a.add(o,s);t.isValid()&&(a=t)}return a.toDate()};let ktt=0;const Ctt=function(t){return void 0===t?(ktt+=1,"task"+ktt):t};let xtt,Ett,Ttt=[];const Btt={},_tt=function(t){const e=Btt[t];return Ttt[e]},Stt=function(){const t=function(t){const e=Ttt[t];let n="";switch(Ttt[t].raw.startTime.type){case"prevTaskEnd":{const t=_tt(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=vtt(0,ntt,Ttt[t].raw.startTime.startData),n&&(Ttt[t].startTime=n)}return Ttt[t].startTime&&(Ttt[t].endTime=wtt(Ttt[t].startTime,ntt,Ttt[t].raw.endTime.data,dtt),Ttt[t].endTime&&(Ttt[t].processed=!0,Ttt[t].manualEndTime=lN(Ttt[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),mtt(Ttt[t],ntt,ott,att))),Ttt[t].processed};let e=!0;for(const[n,r]of Ttt.entries())t(n),e=e&&r.processed;return e},Ltt=function(t,e){t.split(",").forEach((function(t){let n=_tt(t);void 0!==n&&n.classes.push(e)}))},Itt=function(t,e){ftt.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()}))}))},Mtt={parseDirective:function(t,e,n){Git.parseDirective(this,t,e,n)},getConfig:()=>D4().gantt,clear:function(){ctt=[],ltt=[],utt="",ftt=[],ktt=0,xtt=void 0,Ett=void 0,Ttt=[],ntt="",rtt="",ett=void 0,itt="",att=[],ott=[],dtt=!1,Att=!1,gtt=0,stt={},s5()},setDateFormat:function(t){ntt=t},getDateFormat:function(){return ntt},enableInclusiveEndDates:function(){dtt=!0},endDatesAreInclusive:function(){return dtt},enableTopAxis:function(){Att=!0},topAxisEnabled:function(){return Att},setAxisFormat:function(t){rtt=t},getAxisFormat:function(){return rtt},setTickInterval:function(t){ett=t},getTickInterval:function(){return ett},setTodayMarker:function(t){itt=t},getTodayMarker:function(){return itt},setAccTitle:c5,getAccTitle:l5,setDiagramTitle:f5,getDiagramTitle:d5,setAccDescription:u5,getAccDescription:h5,addSection:function(t){utt=t,ctt.push(t)},getSections:function(){return ctt},getTasks:function(){let t=Stt();let e=0;for(;!t&&e<10;)t=Stt(),e++;return ltt=Ttt,ltt},addTask:function(t,e){const n={section:utt,type:utt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Ott(r,i,htt);for(let t=0;t<r.length;t++)r[t]=r[t].trim();switch(r.length){case 1:i.id=Ctt(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Ctt(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Ctt(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i}(Ett,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Ett,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=gtt,gtt++;const i=Ttt.push(n);Ett=n.id,Btt[n.id]=i-1},findTaskById:_tt,addTaskOrg:function(t,e){const n={section:utt,type:utt,description:t,task:t,classes:[]},r=function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Ott(r,i,htt);for(let t=0;t<r.length;t++)r[t]=r[t].trim();let a="";switch(r.length){case 1:i.id=Ctt(),i.startTime=t.endTime,a=r[0];break;case 2:i.id=Ctt(),i.startTime=vtt(0,ntt,r[0]),a=r[1];break;case 3:i.id=Ctt(r[0]),i.startTime=vtt(0,ntt,r[1]),a=r[2]}return a&&(i.endTime=wtt(i.startTime,ntt,a,dtt),i.manualEndTime=lN(a,"YYYY-MM-DD",!0).isValid(),mtt(i,ntt,ott,att)),i}(xtt,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,xtt=n,ltt.push(n)},setIncludes:function(t){att=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return att},setExcludes:function(t){ott=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return ott},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){if("loose"!==D4().securityLevel)return;if(void 0===e)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==_tt(t)&&Itt(t,(()=>{x4.runFunc(e,...r)}))}(t,e,n)})),Ltt(t,"clickable")},setLink:function(t,e){let n=e;"loose"!==D4().securityLevel&&(n=hN(e)),t.split(",").forEach((function(t){void 0!==_tt(t)&&(Itt(t,(()=>{window.open(n,"_self")})),stt[t]=n)})),Ltt(t,"clickable")},getLinks:function(){return stt},bindFunctions:function(t){ftt.forEach((function(e){e(t)}))},parseDuration:ytt,isInvalidDate:ptt};function Ott(t,e,n){let r=!0;for(;r;)r=!1,n.forEach((function(n){const i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)}))}let Dtt;const Ftt={setConf:function(){H0.debug("Something is calling, setConf, remove the call")},draw:function(t,e,n,r){const i=D4().gantt,a=D4().securityLevel;let o;"sandbox"===a&&(o=JR("#i"+e));const s=JR("sandbox"===a?o.nodes()[0].contentDocument.body:"body"),c="sandbox"===a?o.nodes()[0].contentDocument:document,l=c.getElementById(e);Dtt=l.parentElement.offsetWidth,void 0===Dtt&&(Dtt=1200),void 0!==i.useWidth&&(Dtt=i.useWidth);const u=r.db.getTasks(),h=u.length*(i.barHeight+i.barGap)+2*i.topPadding;l.setAttribute("viewBox","0 0 "+Dtt+" "+h);const f=s.select(`[id="${e}"]`),d=function(){return vH.apply(qK(xj,Ej,vj,mj,nj,JH,qH,VH,XH,Lj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([tP(u,(function(t){return t.startTime})),YN(u,(function(t){return t.endTime}))]).rangeRound([0,Dtt-i.leftPadding-i.rightPadding]);let A=[];for(const t of u)A.push(t.type);const g=A;function p(t,e){return function(t){let e=t.length;const n={};for(;e;)n[t[--e]]=(n[t[e]]||0)+1;return n}(e)[t]||0}A=function(t){const e={},n=[];for(let r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}(A),u.sort((function(t,e){const n=t.startTime,r=e.startTime;let i=0;return n>r?i=1:n<r&&(i=-1),i})),function(t,n,a){const o=i.barHeight,s=o+i.barGap,l=i.topPadding,u=i.leftPadding;FH().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(xU);(function(t,e,n,a,o,s,c,l){const u=s.reduce(((t,{startTime:e})=>t?Math.min(t,e):e),0),h=s.reduce(((t,{endTime:e})=>t?Math.max(t,e):e),0),A=r.db.getDateFormat();if(!u||!h)return;const g=[];let p=null,m=lN(u);for(;m.valueOf()<=h;)r.db.isInvalidDate(m,A,c,l)?p?p.end=m:p={start:m,end:m}:p&&(g.push(p),p=null),m=m.add(1,"d");f.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 d(t.start)+n})).attr("y",i.gridLineStartPadding).attr("width",(function(t){const e=t.end.add(1,"day");return d(e)-d(t.start)})).attr("height",o-e-i.gridLineStartPadding).attr("transform-origin",(function(e,r){return(d(e.start)+n+.5*(d(e.end)-d(e.start))).toString()+"px "+(r*t+.5*o).toString()+"px"})).attr("class","exclude-range")})(s,l,u,0,a,t,r.db.getExcludes(),r.db.getIncludes()),function(t,e,n,a){let o=(s=d,dP(aP,s)).tickSize(-a+e+i.gridLineStartPadding).tickFormat(Lj(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));var s;const c=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(null!==c){const t=c[1];switch(c[2]){case"minute":o.ticks(VH.every(t));break;case"hour":o.ticks(qH.every(t));break;case"day":o.ticks(JH.every(t));break;case"week":o.ticks(nj.every(t));break;case"month":o.ticks(mj.every(t))}}if(f.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"),r.db.topAxisEnabled()||i.topAxis){let n=function(t){return dP(rP,t)}(d).tickSize(-a+e+i.gridLineStartPadding).tickFormat(Lj(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(null!==c){const t=c[1];switch(c[2]){case"minute":n.ticks(VH.every(t));break;case"hour":n.ticks(qH.every(t));break;case"day":n.ticks(JH.every(t));break;case"week":n.ticks(nj.every(t));break;case"month":n.ticks(mj.every(t))}}f.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)}}(u,l,0,a),function(t,n,a,o,s,c,l){f.append("g").selectAll("rect").data(t).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+a-2})).attr("width",(function(){return l-i.rightPadding/2})).attr("height",n).attr("class",(function(t){for(const[e,n]of A.entries())if(t.type===n)return"section section"+e%i.numberSectionStyles;return"section section0"}));const u=f.append("g").selectAll("rect").data(t).enter(),h=r.db.getLinks();u.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?d(t.startTime)+o+.5*(d(t.endTime)-d(t.startTime))-.5*s:d(t.startTime)+o})).attr("y",(function(t,e){return t.order*n+a})).attr("width",(function(t){return t.milestone?s:d(t.renderEndTime||t.endTime)-d(t.startTime)})).attr("height",s).attr("transform-origin",(function(t,e){return e=t.order,(d(t.startTime)+o+.5*(d(t.endTime)-d(t.startTime))).toString()+"px "+(e*n+a+.5*s).toString()+"px"})).attr("class",(function(t){const e="task";let n="";t.classes.length>0&&(n=t.classes.join(" "));let r=0;for(const[e,n]of A.entries())t.type===n&&(r=e%i.numberSectionStyles);let a="";return t.active?t.crit?a+=" activeCrit":a=" active":t.done?a=t.crit?" doneCrit":" done":t.crit&&(a+=" crit"),0===a.length&&(a=" task"),t.milestone&&(a=" milestone "+a),a+=r,a+=" "+n,e+a})),u.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",i.fontSize).attr("x",(function(t){let e=d(t.startTime),n=d(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(d(t.endTime)-d(t.startTime))-.5*s),t.milestone&&(n=e+s);const r=this.getBBox().width;return r>n-e?n+r+1.5*i.leftPadding>l?e+o-5:n+o+5:(n-e)/2+e+o})).attr("y",(function(t,e){return t.order*n+i.barHeight/2+(i.fontSize/2-2)+a})).attr("text-height",s).attr("class",(function(t){const e=d(t.startTime);let n=d(t.endTime);t.milestone&&(n=e+s);const r=this.getBBox().width;let a="";t.classes.length>0&&(a=t.classes.join(" "));let o=0;for(const[e,n]of A.entries())t.type===n&&(o=e%i.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"),r>n-e?n+r+1.5*i.leftPadding>l?a+" taskTextOutsideLeft taskTextOutside"+o+" "+c:a+" taskTextOutsideRight taskTextOutside"+o+" "+c+" width-"+r:a+" taskText taskText"+o+" "+c+" width-"+r}));if("sandbox"===D4().securityLevel){let t;t=JR("#i"+e);const n=t.nodes()[0].contentDocument;u.filter((function(t){return void 0!==h[t.id]})).each((function(t){var e=n.querySelector("#"+t.id),r=n.querySelector("#"+t.id+"-text");const i=e.parentNode;var a=n.createElement("a");a.setAttribute("xlink:href",h[t.id]),a.setAttribute("target","_top"),i.appendChild(a),a.appendChild(e),a.appendChild(r)}))}}(t,s,l,u,o,0,n),function(t,e){const n=[];let r=0;for(const[t,e]of A.entries())n[t]=[e,p(e,g)];f.append("g").selectAll("text").data(n).enter().append((function(t){const e=t[0].split(Z0.lineBreakRegex),n=-(e.length-1)/2,r=c.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(const[t,n]of e.entries()){const e=c.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,r.appendChild(e)}return r})).attr("x",10).attr("y",(function(i,a){if(!(a>0))return i[1]*t/2+e;for(let o=0;o<a;o++)return r+=n[a-1][1],i[1]*t/2+r*t+e})).attr("font-size",i.sectionFontSize).attr("font-size",i.sectionFontSize).attr("class",(function(t){for(const[e,n]of A.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%i.numberSectionStyles;return"sectionTitle"}))}(s,l),function(t,e,n,a){const o=r.db.getTodayMarker();if("off"===o)return;const s=f.append("g").attr("class","today"),c=new Date,l=s.append("line");l.attr("x1",d(c)+t).attr("x2",d(c)+t).attr("y1",i.titleTopMargin).attr("y2",a-i.titleTopMargin).attr("class","today"),""!==o&&l.attr("style",o.replace(/,/g,";"))}(u,0,0,a)}(u,Dtt,h),$4(f,h,Dtt,i.useMaxWidth),f.append("text").text(r.db.getDiagramTitle()).attr("x",Dtt/2).attr("y",i.titleTopMargin).attr("class","titleText")}};var Ntt=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[6,9,10],r={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,r,i,a,o){switch(a.length,i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},e(n,[2,3]),e(n,[2,4]),e(n,[2,5]),e(n,[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},i=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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}}},t);function a(){this.yy={}}return r.lexer=i,a.prototype=r,r.Parser=a,new a}();Ntt.parser=Ntt;const Ptt=Ntt;var Rtt="",Qtt=!1;const Utt={setMessage:t=>{H0.debug("Setting message to: "+t),Rtt=t},getMessage:()=>Rtt,setInfo:t=>{Qtt=t},getInfo:()=>Qtt,clear:s5},$tt={draw:(t,e,n)=>{try{H0.debug("Rendering info diagram\n"+t);const r=D4().securityLevel;let i;"sandbox"===r&&(i=JR("#i"+e));const a=JR("sandbox"===r?i.nodes()[0].contentDocument.body:"body").select("#"+e);a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),a.attr("height",100),a.attr("width",400)}catch(t){H0.error("Error while rendering info diagram"),H0.error(t.message)}}},Htt=t=>null!==t.match(/^\s*info/);var jtt=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,4],r=[1,5],i=[1,6],a=[1,7],o=[1,9],s=[1,11,13,15,17,19,20,26,27,28,29],c=[2,5],l=[1,6,11,13,15,17,19,20,26,27,28,29],u=[26,27,28],h=[2,8],f=[1,18],d=[1,19],A=[1,20],g=[1,21],p=[1,22],m=[1,23],b=[1,28],v=[6,26,27,28,29],y={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,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setShowData(!0);break;case 7:this.$=a[s-1];break;case 9:r.addSection(a[s-1],r.cleanupValue(a[s]));break;case 10:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 11:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 12:case 13:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 14:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 21:r.parseDirective("%%{","open_directive");break;case 22:r.parseDirective(a[s],"type_directive");break;case 23:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 24:r.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:n,21:8,26:r,27:i,28:a,29:o},{1:[3]},{3:10,4:2,5:3,6:n,21:8,26:r,27:i,28:a,29:o},{3:11,4:2,5:3,6:n,21:8,26:r,27:i,28:a,29:o},e(s,c,{7:12,8:[1,13]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},e(u,h,{21:8,9:16,10:17,5:24,1:[2,3],11:f,13:d,15:A,17:g,19:p,20:m,29:o}),e(s,c,{7:25}),{23:26,24:[1,27],32:b},e([24,32],[2,22]),e(s,[2,6]),{4:29,26:r,27:i,28:a},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},e(u,[2,13]),e(u,[2,14]),e(u,[2,15]),e(u,h,{21:8,9:16,10:17,5:24,1:[2,4],11:f,13:d,15:A,17:g,19:p,20:m,29:o}),e(v,[2,16]),{25:34,31:[1,35]},e(v,[2,24]),e(s,[2,7]),e(u,[2,9]),e(u,[2,10]),e(u,[2,11]),e(u,[2,12]),{23:36,32:b},{32:[2,23]},e(v,[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},w=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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}}},t);function k(){this.yy={}}return y.lexer=w,k.prototype=y,y.Parser=k,new k}();jtt.parser=jtt;const Ktt=jtt,ztt=t=>null!==t.match(/^\s*pie/)||null!==t.match(/^\s*bar/);let Gtt={},Xtt=!1;const Vtt={parseDirective:function(t,e,n){Git.parseDirective(this,t,e,n)},getConfig:()=>D4().pie,addSection:function(t,e){t=Z0.sanitizeText(t,D4()),void 0===Gtt[t]&&(Gtt[t]=e,H0.debug("Added new section :",t))},getSections:()=>Gtt,cleanupValue:function(t){return":"===t.substring(0,1)?(t=t.substring(1).trim(),Number(t.trim())):Number(t.trim())},clear:function(){Gtt={},Xtt=!1,s5()},setAccTitle:c5,getAccTitle:l5,setDiagramTitle:f5,getDiagramTitle:d5,setShowData:function(t){Xtt=t},getShowData:function(){return Xtt},getAccDescription:h5,setAccDescription:u5};let Wtt,qtt=D4();const Ytt=450,Jtt={draw:(t,e,n,r)=>{try{qtt=D4(),H0.debug("Rendering info diagram\n"+t);const n=D4().securityLevel;let p;"sandbox"===n&&(p=JR("#i"+e));const m=JR("sandbox"===n?p.nodes()[0].contentDocument.body:"body"),b="sandbox"===n?p.nodes()[0].contentDocument:document;r.db.clear(),r.parser.parse(t),H0.debug("Parsed info diagram");const v=b.getElementById(e);Wtt=v.parentElement.offsetWidth,void 0===Wtt&&(Wtt=1200),void 0!==qtt.useWidth&&(Wtt=qtt.useWidth),void 0!==qtt.pie.useWidth&&(Wtt=qtt.pie.useWidth);const y=m.select("#"+e);$4(y,Ytt,Wtt,qtt.pie.useMaxWidth),v.setAttribute("viewBox","0 0 "+Wtt+" "+Ytt);var i=18,a=Math.min(Wtt,Ytt)/2-40,o=y.append("g").attr("transform","translate("+Wtt/2+",225)"),s=r.db.getSections(),c=0;Object.keys(s).forEach((function(t){c+=s[t]}));const w=qtt.themeVariables;var l=[w.pie1,w.pie2,w.pie3,w.pie4,w.pie5,w.pie6,w.pie7,w.pie8,w.pie9,w.pie10,w.pie11,w.pie12],u=CH().range(l),h=Object.entries(s).map((function(t,e){return{order:e,name:t[0],value:t[1]}})),f=function(){var t=Ez,e=xz,n=null,r=YK(0),i=YK(cz),a=YK(0);function o(o){var s,c,l,u,h,f=(o=bz(o)).length,d=0,A=new Array(f),g=new Array(f),p=+r.apply(this,arguments),m=Math.min(cz,Math.max(-cz,i.apply(this,arguments)-p)),b=Math.min(Math.abs(m)/f,a.apply(this,arguments)),v=b*(m<0?-1:1);for(s=0;s<f;++s)(h=g[A[s]=s]=+t(o[s],s,o))>0&&(d+=h);for(null!=e?RN(A).call(A,(function(t,n){return e(g[t],g[n])})):null!=n&&RN(A).call(A,(function(t,e){return n(o[t],o[e])})),s=0,l=d?(m-f*v)/d:0;s<f;++s,p=u)c=A[s],u=p+((h=g[c])>0?h*l:0)+v,g[c]={data:o[c],index:s,value:h,startAngle:p,endAngle:u,padAngle:b};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:YK(+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?(r="function"==typeof t?t:YK(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:YK(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:YK(+t),o):a},o}().value((function(t){return t.value})).sort((function(t,e){return t.order-e.order})),d=f(h),A=mz().innerRadius(0).outerRadius(a);o.selectAll("mySlices").data(d).enter().append("path").attr("d",A).attr("fill",(function(t){return u(t.data.name)})).attr("class","pieCircle"),o.selectAll("mySlices").data(d).enter().append("text").text((function(t){return(t.data.value/c*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+A.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice"),o.append("text").text(r.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var g=o.selectAll(".legend").data(u.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){return"translate(216,"+(22*e-22*u.domain().length/2)+")"}));g.append("rect").attr("width",i).attr("height",i).style("fill",u).style("stroke",u),g.data(d).append("text").attr("x",22).attr("y",14).text((function(t){return r.db.getShowData()||qtt.showData||qtt.pie.showData?t.data.name+" ["+t.data.value+"]":t.data.name}))}catch(t){H0.error("Error while rendering info diagram"),H0.error(t)}}};var Ztt=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,3],r=[1,5],i=[1,6],a=[1,7],o=[1,8],s=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],c=[1,22],l=[2,13],u=[1,26],h=[1,27],f=[1,28],d=[1,29],A=[1,30],g=[1,31],p=[1,24],m=[1,32],b=[1,33],v=[1,36],y=[71,72],w=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],k=[1,56],C=[1,57],x=[1,58],E=[1,59],T=[1,60],B=[1,61],_=[1,62],S=[62,63],L=[1,74],I=[1,70],M=[1,71],O=[1,72],D=[1,73],F=[1,75],N=[1,79],P=[1,80],R=[1,77],Q=[1,78],U=[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,r,i,a,o){var s=a.length-1;switch(i){case 6:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 7:case 8:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 9:r.parseDirective("%%{","open_directive");break;case 10:r.parseDirective(a[s],"type_directive");break;case 11:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 12:r.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:r.addRequirement(a[s-3],a[s-4]);break;case 20:r.setNewReqId(a[s-2]);break;case 21:r.setNewReqText(a[s-2]);break;case 22:r.setNewReqRisk(a[s-2]);break;case 23:r.setNewReqVerifyMethod(a[s-2]);break;case 26:this.$=r.RequirementType.REQUIREMENT;break;case 27:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=r.RiskLevel.LOW_RISK;break;case 33:this.$=r.RiskLevel.MED_RISK;break;case 34:this.$=r.RiskLevel.HIGH_RISK;break;case 35:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=r.VerifyType.VERIFY_TEST;break;case 39:r.addElement(a[s-3]);break;case 40:r.setNewElementType(a[s-2]);break;case 41:r.setNewElementDocRef(a[s-2]);break;case 44:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 45:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 46:this.$=r.Relationships.CONTAINS;break;case 47:this.$=r.Relationships.COPIES;break;case 48:this.$=r.Relationships.DERIVES;break;case 49:this.$=r.Relationships.SATISFIES;break;case 50:this.$=r.Relationships.VERIFIES;break;case 51:this.$=r.Relationships.REFINES;break;case 52:this.$=r.Relationships.TRACES}},table:[{3:1,4:2,6:n,9:4,14:r,16:i,18:a,19:o},{1:[3]},{3:10,4:2,5:[1,9],6:n,9:4,14:r,16:i,18:a,19:o},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},e(s,[2,8]),{20:[2,9]},{3:16,4:2,6:n,9:4,14:r,16:i,18:a,19:o},{1:[2,2]},{4:21,5:c,7:17,8:l,9:4,14:r,16:i,18:a,19:o,23:18,24:19,25:20,26:23,32:25,40:u,41:h,42:f,43:d,44:A,45:g,53:p,71:m,72:b},{11:34,12:[1,35],22:v},e([12,22],[2,10]),e(s,[2,6]),e(s,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:c,7:38,8:l,9:4,14:r,16:i,18:a,19:o,23:18,24:19,25:20,26:23,32:25,40:u,41:h,42:f,43:d,44:A,45:g,53:p,71:m,72:b},{4:21,5:c,7:39,8:l,9:4,14:r,16:i,18:a,19:o,23:18,24:19,25:20,26:23,32:25,40:u,41:h,42:f,43:d,44:A,45:g,53:p,71:m,72:b},{4:21,5:c,7:40,8:l,9:4,14:r,16:i,18:a,19:o,23:18,24:19,25:20,26:23,32:25,40:u,41:h,42:f,43:d,44:A,45:g,53:p,71:m,72:b},{4:21,5:c,7:41,8:l,9:4,14:r,16:i,18:a,19:o,23:18,24:19,25:20,26:23,32:25,40:u,41:h,42:f,43:d,44:A,45:g,53:p,71:m,72:b},{4:21,5:c,7:42,8:l,9:4,14:r,16:i,18:a,19:o,23:18,24:19,25:20,26:23,32:25,40:u,41:h,42:f,43:d,44:A,45:g,53:p,71:m,72:b},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},e(y,[2,26]),e(y,[2,27]),e(y,[2,28]),e(y,[2,29]),e(y,[2,30]),e(y,[2,31]),e(w,[2,55]),e(w,[2,56]),e(s,[2,4]),{13:51,21:[1,52]},e(s,[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:k,65:C,66:x,67:E,68:T,69:B,70:_},{61:63,64:k,65:C,66:x,67:E,68:T,69:B,70:_},{11:64,22:v},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},e(S,[2,46]),e(S,[2,47]),e(S,[2,48]),e(S,[2,49]),e(S,[2,50]),e(S,[2,51]),e(S,[2,52]),{63:[1,68]},e(s,[2,5]),{5:L,29:69,30:I,33:M,35:O,37:D,39:F},{5:N,39:P,55:76,56:R,58:Q},{32:81,71:m,72:b},{32:82,71:m,72:b},e(U,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:L,29:87,30:I,33:M,35:O,37:D,39:F},e(U,[2,25]),e(U,[2,39]),{31:[1,88]},{31:[1,89]},{5:N,39:P,55:90,56:R,58:Q},e(U,[2,43]),e(U,[2,44]),e(U,[2,45]),{32:91,71:m,72:b},{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]},e(U,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},e(U,[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:L,29:116,30:I,33:M,35:O,37:D,39:F},{5:L,29:117,30:I,33:M,35:O,37:D,39:F},{5:L,29:118,30:I,33:M,35:O,37:D,39:F},{5:L,29:119,30:I,33:M,35:O,37:D,39:F},{5:N,39:P,55:120,56:R,58:Q},{5:N,39:P,55:121,56:R,58:Q},e(U,[2,20]),e(U,[2,21]),e(U,[2,22]),e(U,[2,23]),e(U,[2,40]),e(U,[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},H=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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}}},t);function j(){this.yy={}}return $.lexer=H,j.prototype=$,$.Parser=j,new j}();Ztt.parser=Ztt;const tet=Ztt,eet=t=>null!==t.match(/^\s*requirement(Diagram)?/);let net=[],ret={},iet={},aet={},oet={};const set={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){Git.parseDirective(this,t,e,n)},getConfig:()=>D4().req,addRequirement:(t,e)=>(void 0===iet[t]&&(iet[t]={name:t,type:e,id:ret.id,text:ret.text,risk:ret.risk,verifyMethod:ret.verifyMethod}),ret={},iet[t]),getRequirements:()=>iet,setNewReqId:t=>{void 0!==ret&&(ret.id=t)},setNewReqText:t=>{void 0!==ret&&(ret.text=t)},setNewReqRisk:t=>{void 0!==ret&&(ret.risk=t)},setNewReqVerifyMethod:t=>{void 0!==ret&&(ret.verifyMethod=t)},setAccTitle:c5,getAccTitle:l5,setAccDescription:u5,getAccDescription:h5,addElement:t=>(void 0===oet[t]&&(oet[t]={name:t,type:aet.type,docRef:aet.docRef},H0.info("Added new requirement: ",t)),aet={},oet[t]),getElements:()=>oet,setNewElementType:t=>{void 0!==aet&&(aet.type=t)},setNewElementDocRef:t=>{void 0!==aet&&(aet.docRef=t)},addRelationship:(t,e,n)=>{net.push({type:t,src:e,dst:n})},getRelationships:()=>net,clear:()=>{net=[],ret={},iet={},aet={},oet={},s5()}},cet={CONTAINS:"contains",ARROW:"arrow"},uet=cet,het=(t,e)=>{let n=t.append("defs").append("marker").attr("id",cet.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",cet.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)};let fet={},det=0;const Aet=(t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",fet.rect_min_width+"px").attr("height",fet.rect_min_height+"px"),get=(t,e,n)=>{let r=fet.rect_min_width/2,i=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",r).attr("y",fet.rect_padding).attr("dominant-baseline","hanging"),a=0;n.forEach((t=>{0==a?i.append("tspan").attr("text-anchor","middle").attr("x",fet.rect_min_width/2).attr("dy",0).text(t):i.append("tspan").attr("text-anchor","middle").attr("x",fet.rect_min_width/2).attr("dy",.75*fet.line_height).text(t),a++}));let o=1.5*fet.rect_padding+a*fet.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",fet.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:i,y:o}},pet=(t,e,n,r)=>{let i=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",fet.rect_padding).attr("y",r).attr("dominant-baseline","hanging"),a=0;let 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=>{i.append("tspan").attr("x",fet.rect_padding).attr("dy",fet.line_height).text(t)})),i},met=function(t,e,n,r,i){const a=n.edge(bet(e.src),bet(e.dst)),o=Cz().x((function(t){return t.x})).y((function(t){return t.y})),s=t.insert("path","#"+r).attr("class","er relationshipLine").attr("d",o(a.points)).attr("fill","none");e.type==i.db.Relationships.CONTAINS?s.attr("marker-start","url("+Z0.getUrl(fet.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(s.attr("stroke-dasharray","10,7"),s.attr("marker-end","url("+Z0.getUrl(fet.arrowMarkerAbsolute)+"#"+uet.ARROW+"_line_ending)")),((t,e,n,r)=>{const i=e.node().getTotalLength(),a=e.node().getPointAtLength(.5*i),o="rel"+det;det++;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(r).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}>>`)},bet=t=>t.replace(/\s/g,"").replace(/\./g,"_"),vet={draw:(t,e,n,r)=>{fet=D4().requirement,r.db.clear(),r.parser.parse(t);const i=fet.securityLevel;let a;"sandbox"===i&&(a=JR("#i"+e));const o=JR("sandbox"===i?a.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);het(o,fet);const s=new t1({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:fet.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));let c=r.db.getRequirements(),l=r.db.getElements(),u=r.db.getRelationships();((t,e,n)=>{Object.keys(t).forEach((r=>{let i=t[r];r=bet(r),H0.info("Added new requirement: ",r);const a=n.append("g").attr("id",r),o=Aet(a,"req-"+r);let s=get(a,r+"_title",[`<<${i.type}>>`,`${i.name}`]);pet(a,r+"_body",[`Id: ${i.id}`,`Text: ${i.text}`,`Risk: ${i.risk}`,`Verification: ${i.verifyMethod}`],s.y);const c=o.node().getBBox();e.setNode(r,{width:c.width,height:c.height,shape:"rect",id:r})}))})(c,s,o),((t,e,n)=>{Object.keys(t).forEach((r=>{let i=t[r];const a=bet(r),o=n.append("g").attr("id",a),s="element-"+a,c=Aet(o,s);let l=get(o,s+"_title",["<<Element>>",`${r}`]);pet(o,s+"_body",[`Type: ${i.type||"Not Specified"}`,`Doc Ref: ${i.docRef||"None"}`],l.y);const u=c.node().getBBox();e.setNode(a,{width:u.width,height:u.height,shape:"rect",id:a})}))})(l,s,o),((t,e)=>{t.forEach((function(t){let n=bet(t.src),r=bet(t.dst);e.setEdge(n,r,{relationship:t})}))})(u,s),g0(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),u.forEach((function(t){met(o,t,s,e,r)}));const h=fet.rect_padding,f=o.node().getBBox(),d=f.width+2*h,A=f.height+2*h;$4(o,A,d,fet.useMaxWidth),o.attr("viewBox",`${f.x-h} ${f.y-h} ${d} ${A}`)}};var yet=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,2],r=[1,3],i=[1,5],a=[1,7],o=[2,5],s=[1,15],c=[1,17],l=[1,19],u=[1,21],h=[1,22],f=[1,23],d=[1,29],A=[1,30],g=[1,31],p=[1,32],m=[1,33],b=[1,34],v=[1,35],y=[1,36],w=[1,37],k=[1,38],C=[1,39],x=[1,40],E=[1,42],T=[1,43],B=[1,45],_=[1,46],S=[1,47],L=[1,48],I=[1,49],M=[1,50],O=[1,53],D=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],F=[4,5,21,54,56],N=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],P=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,53,54,56,57,62,63,64,65,73,83],R=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,52,54,56,57,62,63,64,65,73,83],Q=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,54,56,57,62,63,64,65,73,83],U=[71,72,73],$=[1,125],H=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],j={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,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,critical:48,option_sections:49,break:50,option:51,and:52,else:53,participant:54,AS:55,participant_actor:56,note:57,placement:58,text2:59,over:60,actor_pair:61,links:62,link:63,properties:64,details:65,spaceList:66,",":67,left_of:68,right_of:69,signaltype:70,"+":71,"-":72,ACTOR:73,SOLID_OPEN_ARROW:74,DOTTED_OPEN_ARROW:75,SOLID_ARROW:76,DOTTED_ARROW:77,SOLID_CROSS:78,DOTTED_CROSS:79,SOLID_POINT:80,DOTTED_POINT:81,TXT:82,open_directive:83,type_directive:84,arg_directive:85,close_directive:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",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",46:"par",48:"critical",50:"break",51:"option",52:"and",53:"else",54:"participant",55:"AS",56:"participant_actor",57:"note",60:"over",62:"links",63:"link",64:"properties",65:"details",67:",",68:"left_of",69:"right_of",71:"+",72:"-",73:"ACTOR",74:"SOLID_OPEN_ARROW",75:"DOTTED_OPEN_ARROW",76:"SOLID_ARROW",77:"DOTTED_ARROW",78:"SOLID_CROSS",79:"DOTTED_CROSS",80:"SOLID_POINT",81:"DOTTED_POINT",82:"TXT",83:"open_directive",84:"type_directive",85:"arg_directive",86:"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,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,1],[49,1],[49,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[66,2],[66,1],[61,3],[61,1],[58,1],[58,1],[22,5],[22,5],[22,4],[27,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[59,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.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 63:this.$=a[s];break;case 18:a[s-1].unshift({type:"boxStart",boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:"boxEnd",boxText:a[s-2]}),this.$=a[s-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]};break;case 25:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1]};break;case 31:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 32:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 33:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 34:case 35:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 36:a[s-1].unshift({type:"loopStart",loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:"loopEnd",loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:"rectStart",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:"rectEnd",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:"optStart",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:"optEnd",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:"altStart",altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:"parStart",parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:"criticalStart",criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:"breakStart",breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:"breakEnd",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 45:this.$=a[s-3].concat([{type:"option",optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 47:this.$=a[s-3].concat([{type:"and",parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 49:this.$=a[s-3].concat([{type:"else",altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 50:a[s-3].type="addParticipant",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 51:a[s-1].type="addParticipant",this.$=a[s-1];break;case 52:a[s-3].type="addActor",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 53:a[s-1].type="addActor",this.$=a[s-1];break;case 54:this.$=[a[s-1],{type:"addNote",placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 55: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:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 56:this.$=[a[s-1],{type:"addLinks",actor:a[s-1].actor,text:a[s]}];break;case 57:this.$=[a[s-1],{type:"addALink",actor:a[s-1].actor,text:a[s]}];break;case 58:this.$=[a[s-1],{type:"addProperties",actor:a[s-1].actor,text:a[s]}];break;case 59:this.$=[a[s-1],{type:"addDetails",actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-2],a[s]];break;case 64:this.$=r.PLACEMENT.LEFTOF;break;case 65:this.$=r.PLACEMENT.RIGHTOF;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:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]}];break;case 67: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:r.LINETYPE.ACTIVE_END,actor:a[s-4]}];break;case 68: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 69:this.$={type:"addParticipant",actor:a[s]};break;case 70:this.$=r.LINETYPE.SOLID_OPEN;break;case 71:this.$=r.LINETYPE.DOTTED_OPEN;break;case 72:this.$=r.LINETYPE.SOLID;break;case 73:this.$=r.LINETYPE.DOTTED;break;case 74:this.$=r.LINETYPE.SOLID_CROSS;break;case 75:this.$=r.LINETYPE.DOTTED_CROSS;break;case 76:this.$=r.LINETYPE.SOLID_POINT;break;case 77:this.$=r.LINETYPE.DOTTED_POINT;break;case 78:this.$=r.parseMessage(a[s].trim().substring(1));break;case 79:r.parseDirective("%%{","open_directive");break;case 80:r.parseDirective(a[s],"type_directive");break;case 81:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 82:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:n,5:r,6:4,7:i,14:6,83:a},{1:[3]},{3:8,4:n,5:r,6:4,7:i,14:6,83:a},{3:9,4:n,5:r,6:4,7:i,14:6,83:a},{3:10,4:n,5:r,6:4,7:i,14:6,83:a},e([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],o,{8:11}),{15:12,84:[1,13]},{84:[2,79]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:c,6:41,9:14,10:16,13:18,14:6,19:l,22:20,23:u,26:h,27:44,28:f,29:24,30:25,31:26,32:27,33:28,34:d,35:A,36:g,38:p,40:m,41:b,42:v,43:y,44:w,46:k,48:C,50:x,54:E,56:T,57:B,62:_,63:S,64:L,65:I,73:M,83:a},{16:51,17:[1,52],86:O},e([17,86],[2,80]),e(D,[2,6]),{6:41,10:54,13:18,14:6,19:l,22:20,23:u,26:h,27:44,28:f,29:24,30:25,31:26,32:27,33:28,34:d,35:A,36:g,38:p,40:m,41:b,42:v,43:y,44:w,46:k,48:C,50:x,54:E,56:T,57:B,62:_,63:S,64:L,65:I,73:M,83:a},e(D,[2,8]),e(D,[2,9]),e(D,[2,17]),{20:[1,55]},{5:[1,56]},{5:[1,59],24:[1,57],25:[1,58]},{27:60,73:M},{27:61,73:M},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},e(D,[2,31]),e(D,[2,32]),{37:[1,67]},{39:[1,68]},e(D,[2,35]),{20:[1,69]},{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},e(D,[2,43]),{27:76,73:M},{27:77,73:M},{70:78,74:[1,79],75:[1,80],76:[1,81],77:[1,82],78:[1,83],79:[1,84],80:[1,85],81:[1,86]},{58:87,60:[1,88],68:[1,89],69:[1,90]},{27:91,73:M},{27:92,73:M},{27:93,73:M},{27:94,73:M},e([5,55,67,74,75,76,77,78,79,80,81,82],[2,69]),{5:[1,95]},{18:96,85:[1,97]},{5:[2,82]},e(D,[2,7]),e(F,[2,10],{11:98}),e(D,[2,19]),{5:[1,100],24:[1,99]},{5:[1,101]},e(D,[2,23]),{5:[1,102]},{5:[1,103]},e(D,[2,26]),e(D,[2,27]),e(D,[2,28]),e(D,[2,29]),e(D,[2,30]),e(D,[2,33]),e(D,[2,34]),e(N,o,{8:104}),e(N,o,{8:105}),e(N,o,{8:106}),e(P,o,{45:107,8:108}),e(R,o,{47:109,8:110}),e(Q,o,{49:111,8:112}),e(N,o,{8:113}),{5:[1,115],55:[1,114]},{5:[1,117],55:[1,116]},{27:120,71:[1,118],72:[1,119],73:M},e(U,[2,70]),e(U,[2,71]),e(U,[2,72]),e(U,[2,73]),e(U,[2,74]),e(U,[2,75]),e(U,[2,76]),e(U,[2,77]),{27:121,73:M},{27:123,61:122,73:M},{73:[2,64]},{73:[2,65]},{59:124,82:$},{59:126,82:$},{59:127,82:$},{59:128,82:$},e(H,[2,15]),{16:129,86:O},{86:[2,81]},{4:[1,132],5:[1,134],12:131,13:133,21:[1,130],54:E,56:T},{5:[1,135]},e(D,[2,21]),e(D,[2,22]),e(D,[2,24]),e(D,[2,25]),{4:s,5:c,6:41,9:14,10:16,13:18,14:6,19:l,21:[1,136],22:20,23:u,26:h,27:44,28:f,29:24,30:25,31:26,32:27,33:28,34:d,35:A,36:g,38:p,40:m,41:b,42:v,43:y,44:w,46:k,48:C,50:x,54:E,56:T,57:B,62:_,63:S,64:L,65:I,73:M,83:a},{4:s,5:c,6:41,9:14,10:16,13:18,14:6,19:l,21:[1,137],22:20,23:u,26:h,27:44,28:f,29:24,30:25,31:26,32:27,33:28,34:d,35:A,36:g,38:p,40:m,41:b,42:v,43:y,44:w,46:k,48:C,50:x,54:E,56:T,57:B,62:_,63:S,64:L,65:I,73:M,83:a},{4:s,5:c,6:41,9:14,10:16,13:18,14:6,19:l,21:[1,138],22:20,23:u,26:h,27:44,28:f,29:24,30:25,31:26,32:27,33:28,34:d,35:A,36:g,38:p,40:m,41:b,42:v,43:y,44:w,46:k,48:C,50:x,54:E,56:T,57:B,62:_,63:S,64:L,65:I,73:M,83:a},{21:[1,139]},{4:s,5:c,6:41,9:14,10:16,13:18,14:6,19:l,21:[2,48],22:20,23:u,26:h,27:44,28:f,29:24,30:25,31:26,32:27,33:28,34:d,35:A,36:g,38:p,40:m,41:b,42:v,43:y,44:w,46:k,48:C,50:x,53:[1,140],54:E,56:T,57:B,62:_,63:S,64:L,65:I,73:M,83:a},{21:[1,141]},{4:s,5:c,6:41,9:14,10:16,13:18,14:6,19:l,21:[2,46],22:20,23:u,26:h,27:44,28:f,29:24,30:25,31:26,32:27,33:28,34:d,35:A,36:g,38:p,40:m,41:b,42:v,43:y,44:w,46:k,48:C,50:x,52:[1,142],54:E,56:T,57:B,62:_,63:S,64:L,65:I,73:M,83:a},{21:[1,143]},{4:s,5:c,6:41,9:14,10:16,13:18,14:6,19:l,21:[2,44],22:20,23:u,26:h,27:44,28:f,29:24,30:25,31:26,32:27,33:28,34:d,35:A,36:g,38:p,40:m,41:b,42:v,43:y,44:w,46:k,48:C,50:x,51:[1,144],54:E,56:T,57:B,62:_,63:S,64:L,65:I,73:M,83:a},{4:s,5:c,6:41,9:14,10:16,13:18,14:6,19:l,21:[1,145],22:20,23:u,26:h,27:44,28:f,29:24,30:25,31:26,32:27,33:28,34:d,35:A,36:g,38:p,40:m,41:b,42:v,43:y,44:w,46:k,48:C,50:x,54:E,56:T,57:B,62:_,63:S,64:L,65:I,73:M,83:a},{20:[1,146]},e(D,[2,51]),{20:[1,147]},e(D,[2,53]),{27:148,73:M},{27:149,73:M},{59:150,82:$},{59:151,82:$},{59:152,82:$},{67:[1,153],82:[2,63]},{5:[2,56]},{5:[2,78]},{5:[2,57]},{5:[2,58]},{5:[2,59]},{5:[1,154]},e(D,[2,18]),e(F,[2,11]),{13:155,54:E,56:T},e(F,[2,13]),e(F,[2,14]),e(D,[2,20]),e(D,[2,36]),e(D,[2,37]),e(D,[2,38]),e(D,[2,39]),{20:[1,156]},e(D,[2,40]),{20:[1,157]},e(D,[2,41]),{20:[1,158]},e(D,[2,42]),{5:[1,159]},{5:[1,160]},{59:161,82:$},{59:162,82:$},{5:[2,68]},{5:[2,54]},{5:[2,55]},{27:163,73:M},e(H,[2,16]),e(F,[2,12]),e(P,o,{8:108,45:164}),e(R,o,{8:110,47:165}),e(Q,o,{8:112,49:166}),e(D,[2,50]),e(D,[2,52]),{5:[2,66]},{5:[2,67]},{82:[2,62]},{21:[2,49]},{21:[2,47]},{21:[2,45]}],defaultActions:{7:[2,79],8:[2,1],9:[2,2],10:[2,3],53:[2,82],89:[2,64],90:[2,65],97:[2,81],124:[2,56],125:[2,78],126:[2,57],127:[2,58],128:[2,59],150:[2,68],151:[2,54],152:[2,55],161:[2,66],162:[2,67],163:[2,62],164:[2,49],165:[2,47],166:[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},K=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){switch(n){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;case 5:case 53:case 66:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),54;case 14:return this.begin("ID"),56;case 15:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 54:return e.yytext=e.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 67: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,/^(?:[^\->:\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,/^(?: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:[47,48],inclusive:!1},acc_descr:{rules:[45],inclusive:!1},acc_title:{rules:[43],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,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,28],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,44,46,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}},t);function z(){this.yy={}}return j.lexer=K,z.prototype=j,j.Parser=z,new z}();yet.parser=yet;const wet=yet,ket=t=>null!==t.match(/^\s*sequenceDiagram/);let Cet,xet,Eet,Tet={},Bet=[],_et=[],Let=!1;const Iet=function(t,e,n,r){let i=Eet;const a=Tet[t];if(a){if(Eet&&a.box&&Eet!==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 '"+Eet.name+"' at the same time.");if(i=a.box?a.box:Eet,a.box=i,a&&e===a.name&&null==n)return}null!=n&&null!=n.text||(n={text:e,wrap:null,type:r}),null!=r&&null!=n.text||(n={text:e,wrap:null,type:r}),Tet[t]={box:i,name:e,description:n.text,wrap:void 0===n.wrap&&Det()||!!n.wrap,prevActor:Cet,links:{},properties:{},actorCnt:null,rectData:null,type:r||"participant"},Cet&&Tet[Cet]&&(Tet[Cet].nextActor=t),Eet&&Eet.actorKeys.push(t),Cet=t},Met=function(t,e,n={text:void 0,wrap:void 0},r){if(r===Fet.ACTIVE_END){const e=(t=>{let e,n=0;for(e=0;e<_et.length;e++)_et[e].type===Fet.ACTIVE_START&&_et[e].from.actor===t&&n++,_et[e].type===Fet.ACTIVE_END&&_et[e].from.actor===t&&n--;return n})(t.actor);if(e<1){let e=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}}return _et.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&Det()||!!n.wrap,type:r}),!0},Oet=function(t){return Tet[t]},Det=()=>void 0!==xet?xet:D4().sequence.wrap,Fet={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},Net=function(t,e,n){n.text,void 0===n.wrap&&Det()||n.wrap;const r=[].concat(t,t);_et.push({from:r[0],to:r[1],message:n.text,wrap:void 0===n.wrap&&Det()||!!n.wrap,type:Fet.NOTE,placement:e})},Pet=function(t,e){const n=Oet(t);try{let t=X0(e.text,D4());t=t.replace(/&amp;/g,"&"),t=t.replace(/&equals;/g,"=");Ret(n,JSON.parse(t))}catch(t){H0.error("error while parsing actor link text",t)}};function Ret(t,e){if(null==t.links)t.links=e;else for(let n in e)t.links[n]=e[n]}const Qet=function(t,e){const n=Oet(t);try{let t=X0(e.text,D4());Uet(n,JSON.parse(t))}catch(t){H0.error("error while parsing actor properties text",t)}};function Uet(t,e){if(null==t.properties)t.properties=e;else for(let n in e)t.properties[n]=e[n]}const $et=function(t,e){const n=Oet(t),r=document.getElementById(e.text);try{const t=r.innerHTML,e=JSON.parse(t);e.properties&&Uet(n,e.properties),e.links&&Ret(n,e.links)}catch(t){H0.error("error while parsing actor details text",t)}},Het=function(t){if(Array.isArray(t))t.forEach((function(t){Het(t)}));else switch(t.type){case"sequenceIndex":_et.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":Iet(t.actor,t.actor,t.description,"participant");break;case"addActor":Iet(t.actor,t.actor,t.description,"actor");break;case"activeStart":case"activeEnd":Met(t.actor,void 0,void 0,t.signalType);break;case"addNote":Net(t.actor,t.placement,t.text);break;case"addLinks":Pet(t.actor,t.text);break;case"addALink":!function(t,e){const n=Oet(t);try{const t={};let o=X0(e.text,D4());var r=o.indexOf("@");o=o.replace(/&amp;/g,"&"),o=o.replace(/&equals;/g,"=");var i=o.slice(0,r-1).trim(),a=o.slice(r+1).trim();t[i]=a,Ret(n,t)}catch(t){H0.error("error while parsing actor link text",t)}}(t.actor,t.text);break;case"addProperties":Qet(t.actor,t.text);break;case"addDetails":$et(t.actor,t.text);break;case"addMessage":Met(t.from,t.to,t.msg,t.signalType);break;case"boxStart":!function(t){Bet.push({name:t.text,wrap:void 0===t.wrap&&Det()||!!t.wrap,fill:t.color,actorKeys:[]}),Eet=Bet.slice(-1)[0]}(t.boxData);break;case"boxEnd":Eet=void 0;break;case"loopStart":Met(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":Met(void 0,void 0,void 0,t.signalType);break;case"rectStart":Met(void 0,void 0,t.color,t.signalType);break;case"optStart":Met(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":Met(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":c5(t.text);break;case"parStart":case"and":Met(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":Met(void 0,void 0,t.criticalText,t.signalType);break;case"option":Met(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":Met(void 0,void 0,t.breakText,t.signalType)}},jet={addActor:Iet,addMessage:function(t,e,n,r){_et.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&Det()||!!n.wrap,answer:r})},addSignal:Met,addLinks:Pet,addDetails:$et,addProperties:Qet,autoWrap:Det,setWrap:function(t){xet=t},enableSequenceNumbers:function(){Let=!0},disableSequenceNumbers:function(){Let=!1},showSequenceNumbers:()=>Let,getMessages:function(){return _et},getActors:function(){return Tet},getActor:Oet,getActorKeys:function(){return Object.keys(Tet)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getAccTitle:l5,getBoxes:function(){return Bet},getDiagramTitle:d5,setDiagramTitle:f5,parseDirective:function(t,e,n){Git.parseDirective(this,t,e,n)},getConfig:()=>D4().sequence,clear:function(){Tet={},Bet=[],_et=[],Let=!1,s5()},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 H0.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",r=null!=e&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",n)||(n="transparent",r=t.trim());else{const e=(new Option).style;e.color=n,e.color!==n&&(n="transparent",r=t.trim())}return{color:n,text:void 0!==r?X0(r.replace(/^:?(?:no)?wrap:/,""),D4()):void 0,wrap:void 0!==r?null!==r.match(/^:?wrap:/)||null===r.match(/^:?nowrap:/)&&void 0:void 0}},LINETYPE:Fet,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:Net,setAccTitle:c5,apply:Het,setAccDescription:u5,getAccDescription:h5,hasAtLeastOneBox:function(){return Bet.length>0},hasAtLeastOneBoxWithTitle:function(){return Bet.some((t=>t.name))}};let Ket=[];const zet=()=>{Ket.forEach((t=>{t()})),Ket=[]},Get=function(t,e){const n=t.append("rect");return 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),void 0!==e.class&&n.attr("class",e.class),n},Xet=(t,e)=>{(t=>{Ket.push(t)})((()=>{const n=document.querySelectorAll(t);0!==n.length&&(n[0].addEventListener("mouseover",(function(){qet("actor"+e+"_popup")})),n[0].addEventListener("mouseout",(function(){Yet("actor"+e+"_popup")})))}))},Vet=function(t,e,n,r){const i=t.append("image");i.attr("x",e),i.attr("y",n);var a=hN(r);i.attr("xlink:href",a)},Wet=function(t,e,n,r){const i=t.append("use");i.attr("x",e),i.attr("y",n);var a=hN(r);i.attr("xlink:href","#"+a)},qet=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="block")},Yet=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="none")},Jet=function(t,e){let n=0,r=0;const i=e.text.split(Z0.lineBreakRegex),[a,o]=C4(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+r+e.textMargin)/2);break;case"bottom":case"end":l=()=>Math.round(e.y+(n+r+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 i.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==a&&(c=u*a);const i=t.append("text");if(i.attr("x",e.x),i.attr("y",l()),void 0!==e.anchor&&i.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&i.style("font-family",e.fontFamily),void 0!==o&&i.style("font-size",o),void 0!==e.fontWeight&&i.style("font-weight",e.fontWeight),void 0!==e.fill&&i.attr("fill",e.fill),void 0!==e.class&&i.attr("class",e.class),void 0!==e.dy?i.attr("dy",e.dy):0!==c&&i.attr("dy",c),e.tspan){const t=i.append("tspan");t.attr("x",e.x),void 0!==e.fill&&t.attr("fill",e.fill),t.text(h)}else i.text(h);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(r+=(i._groups||i)[0][0].getBBox().height,n=r),s.push(i)}return s},Zet=function(t,e){const n=t.append("polygon");return n.attr("points",function(t,e,n,r,i){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+r-i)+" "+(t+n-1.2*i)+","+(e+r)+" "+t+","+(e+r)}(e.x,e.y,e.width,e.height,7)),n.attr("class","labelBox"),e.y=e.y+e.height/2,Jet(t,e),n};let tnt=-1;const ent=(t,e)=>{t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},nnt=function(t,e){Get(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()},rnt=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},int=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},ant=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]=C4(l),A=t.split(Z0.lineBreakRegex);for(let t=0;t<A.length;t++){const c=t*f-f*(A.length-1)/2,l=e.append("text").attr("x",n+a/2).attr("y",i).style("text-anchor","middle").style("font-size",d).style("font-weight",h).style("font-family",u);l.append("tspan").attr("x",n+a/2).attr("dy",c).text(A[t]),l.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(l,s)}}function n(t,n,i,a,o,s,c,l){const u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,o,s,c,l),r(h,c)}function r(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}(),ont=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n).attr("y",i).style("text-anchor","start").text(t),s)}function e(t,e,n,i,a,o,s,c){const{actorFontSize:l,actorFontFamily:u,actorFontWeight:h}=c,f=t.split(Z0.lineBreakRegex);for(let t=0;t<f.length;t++){const a=t*l-l*(f.length-1)/2,c=e.append("text").attr("x",n).attr("y",i).style("text-anchor","start").style("font-size",l).style("font-weight",h).style("font-family",u);c.append("tspan").attr("x",n).attr("dy",a).text(f[t]),c.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(c,s)}}function n(t,n,i,a,o,s,c,l){const u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,0,s,c,l),r(h,c)}function r(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}(),snt={drawRect:Get,drawText:Jet,drawLabel:Zet,drawActor:function(t,e,n,r){switch(e.type){case"actor":return function(t,e,n,r){const i=e.x+e.width/2,a=e.y+80;r||(tnt++,t.append("line").attr("id","actor"+tnt).attr("x1",i).attr("y1",a).attr("x2",i).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));const o=t.append("g");o.attr("class","actor-man");const s=int();s.x=e.x,s.y=e.y,s.fill="#eaeaea",s.width=e.width,s.height=e.height,s.class="actor",s.rx=3,s.ry=3,o.append("line").attr("id","actor-man-torso"+tnt).attr("x1",i).attr("y1",e.y+25).attr("x2",i).attr("y2",e.y+45),o.append("line").attr("id","actor-man-arms"+tnt).attr("x1",i-18).attr("y1",e.y+33).attr("x2",i+18).attr("y2",e.y+33),o.append("line").attr("x1",i-18).attr("y1",e.y+60).attr("x2",i).attr("y2",e.y+45),o.append("line").attr("x1",i).attr("y1",e.y+45).attr("x2",i+16).attr("y2",e.y+60);const c=o.append("circle");c.attr("cx",e.x+e.width/2),c.attr("cy",e.y+10),c.attr("r",15),c.attr("width",e.width),c.attr("height",e.height);const l=o.node().getBBox();return e.height=l.height,ant(n)(e.description,o,s.x,s.y+35,s.width,s.height,{class:"actor"},n),e.height}(t,e,n,r);case"participant":return function(t,e,n,r){const i=e.x+e.width/2,a=e.y+5,o=t.append("g");var s=o;r||(tnt++,s.append("line").attr("id","actor"+tnt).attr("x1",i).attr("y1",a).attr("x2",i).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),s=o.append("g"),e.actorCnt=tnt,null!=e.links&&(s.attr("id","root-"+tnt),Xet("#root-"+tnt,tnt)));const c=int();var l="actor";null!=e.properties&&e.properties.class?l=e.properties.class:c.fill="#eaeaea",c.x=e.x,c.y=e.y,c.width=e.width,c.height=e.height,c.class=l,c.rx=3,c.ry=3;const u=Get(s,c);if(e.rectData=c,null!=e.properties&&e.properties.icon){const t=e.properties.icon.trim();"@"===t.charAt(0)?Wet(s,c.x+c.width-20,c.y+10,t.substr(1)):Vet(s,c.x+c.width-20,c.y+10,t)}ant(n)(e.description,s,c.x,c.y,c.width,c.height,{class:"actor"},n);let h=e.height;if(u.node){const t=u.node().getBBox();e.height=t.height,h=t.height}return h}(t,e,n,r)}},drawBox:function(t,e,n){const r=t.append("g");nnt(r,e),e.name&&ant(n)(e.name,r,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},n),r.lower()},drawPopup:function(t,e,n,r,i){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";i&&(c="block !important");const l=t.append("g");l.attr("id","actor"+o+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",c),Xet("#actor"+o+"_popup",o);var u="";void 0!==s.class&&(u=" "+s.class);let h=s.width>n?s.width:n;const f=l.append("rect");if(f.attr("class","actorPopupMenuPanel"+u),f.attr("x",s.x),f.attr("y",s.height),f.attr("fill",s.fill),f.attr("stroke",s.stroke),f.attr("width",h),f.attr("height",s.height),f.attr("rx",s.rx),f.attr("ry",s.ry),null!=a){var d=20;for(let t in a){var A=l.append("a"),g=hN(a[t]);A.attr("xlink:href",g),A.attr("target","_blank"),ont(r)(t,A,s.x+10,s.height+d,h,20,{class:"actor"},r),d+=30}}return f.attr("height",d),{height:s.height+d,width:h}},drawImage:Vet,drawEmbeddedImage:Wet,anchorElement:function(t){return t.append("g")},drawActivation:function(t,e,n,r,i){const a=int(),o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+i%3,a.width=e.stopx-e.startx,a.height=n-e.starty,Get(o,a)},drawLoop:function(t,e,n,r){const{boxMargin:i,boxTextMargin:a,labelBoxHeight:o,labelBoxWidth:s,messageFontFamily:c,messageFontSize:l,messageFontWeight:u}=r,h=t.append("g"),f=function(t,e,n,r){return h.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",r).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=rnt();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",Zet(h,d),d=rnt(),d.text=e.title,d.x=e.startx+s/2+(e.stopx-e.startx)/2,d.y=e.starty+i+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 A=Jet(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+i+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,A=Jet(h,d);let r=Math.round(A.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));e.sections[n].height+=r-(i+a)}})),e.height=Math.round(e.stopy-e.starty),h},drawBackgroundRect:nnt,insertArrowHead: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")},insertArrowFilledHead: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")},insertSequenceNumber: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)},insertArrowCrossHead: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")},insertDatabaseIcon: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")},insertComputerIcon: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")},insertClockIcon: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")},getTextObj:rnt,getNoteRect:int,popupMenu:function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'block'; }"},popdownMenu:function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'none'; }"},fixLifeLineHeights:ent,sanitizeUrl:hN};let cnt={};const lnt={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,gnt(D4())},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){const i=this;let a=0;function o(o){return function(s){a++;const c=i.sequenceItems.length-a+1;i.updateVal(s,"starty",e-c*cnt.boxMargin,Math.min),i.updateVal(s,"stopy",r+c*cnt.boxMargin,Math.max),i.updateVal(lnt.data,"startx",t-c*cnt.boxMargin,Math.min),i.updateVal(lnt.data,"stopx",n+c*cnt.boxMargin,Math.max),"activation"!==o&&(i.updateVal(s,"startx",t-c*cnt.boxMargin,Math.min),i.updateVal(s,"stopx",n+c*cnt.boxMargin,Math.max),i.updateVal(lnt.data,"starty",e-c*cnt.boxMargin,Math.min),i.updateVal(lnt.data,"stopy",r+c*cnt.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,n,r){const i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(lnt.data,"startx",i,Math.min),this.updateVal(lnt.data,"starty",o,Math.min),this.updateVal(lnt.data,"stopx",a,Math.max),this.updateVal(lnt.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},newActivation:function(t,e,n){const r=n[t.from.actor],i=pnt(t.from.actor).length||0,a=r.x+r.width/2+(i-1)*cnt.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+cnt.activationWidth,stopy:void 0,actor:t.from.actor,anchored:snt.anchorElement(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()},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:lnt.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},unt=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),hnt=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),fnt=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});const dnt=function(t,e,n,r,i,a,o){if(!0===i.hideUnusedParticipants){const t=new Set;a.forEach((e=>{t.add(e.from),t.add(e.to)})),n=n.filter((e=>t.has(e)))}let s,c=0,l=0,u=0;for(const i of n){const n=e[i],a=n.box;s&&s!=a&&(o||lnt.models.addBox(s),l+=cnt.boxMargin+s.margin),a&&a!=s&&(o||(a.x=c+l,a.y=r),l+=a.margin),n.width=n.width||cnt.width,n.height=Math.max(n.height||cnt.height,cnt.height),n.margin=n.margin||cnt.actorMargin,n.x=c+l,n.y=lnt.getVerticalPos();const h=snt.drawActor(t,n,cnt,o);u=Math.max(u,h),lnt.insert(n.x,r,n.x+n.width,n.height),c+=n.width+l,n.box&&(n.box.width=c+a.margin-n.box.x),l=n.margin,s=n.box,lnt.models.addActor(n)}s&&!o&&lnt.models.addBox(s),lnt.bumpVerticalPos(u)},Ant=function(t,e,n,r){let i=0,a=0;for(const o of n){const n=e[o],s=vnt(n),c=snt.drawPopup(t,n,s,cnt,cnt.forceMenus,r);c.height>i&&(i=c.height),c.width+n.x>a&&(a=c.width+n.x)}return{maxHeight:i,maxWidth:a}},gnt=function(t){n4(cnt,t),t.fontFamily&&(cnt.actorFontFamily=cnt.noteFontFamily=cnt.messageFontFamily=t.fontFamily),t.fontSize&&(cnt.actorFontSize=cnt.noteFontSize=cnt.messageFontSize=t.fontSize),t.fontWeight&&(cnt.actorFontWeight=cnt.noteFontWeight=cnt.messageFontWeight=t.fontWeight)},pnt=function(t){return lnt.activations.filter((function(e){return e.actor===t}))},mnt=function(t,e){const n=e[t],r=pnt(t);return[r.reduce((function(t,e){return Math.min(t,e.startx)}),n.x+n.width/2),r.reduce((function(t,e){return Math.max(t,e.stopx)}),n.x+n.width/2)]};function bnt(t,e,n,r,i){lnt.bumpVerticalPos(n);let a=r;if(e.id&&e.message&&t[e.id]){const n=t[e.id].width,i=unt(cnt);e.message=x4.wrapLabel(`[${e.message}]`,n-2*cnt.wrapPadding,i),e.width=n,e.wrap=!0;const o=x4.calculateTextDimensions(e.message,i),s=Math.max(o.height,cnt.labelBoxHeight);a=r+s,H0.debug(`${s} - ${e.message}`)}i(e),lnt.bumpVerticalPos(a)}const vnt=function(t){let e=0;const n=fnt(cnt);for(const r in t.links){const t=x4.calculateTextDimensions(r,n).width+2*cnt.wrapPadding+2*cnt.boxMargin;e<t&&(e=t)}return e};const ynt=function(t,e,n,r){const i={},a=[];let o,s,c;return t.forEach((function(t){switch(t.id=x4.random({length:10}),t.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.CRITICAL_START:case r.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 r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:t.message&&(o=a.pop(),i[o.id]=o,i[t.id]=o,a.push(o));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:o=a.pop(),i[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:{const n=e[t.from?t.from.actor:t.to.actor],r=pnt(t.from?t.from.actor:t.to.actor).length,i=n.x+n.width/2+(r-1)*cnt.activationWidth/2,a={startx:i,stopx:i+cnt.activationWidth,actor:t.from.actor,enabled:!0};lnt.activations.push(a)}break;case r.db.LINETYPE.ACTIVE_END:{const e=lnt.activations.map((t=>t.actor)).lastIndexOf(t.from.actor);delete lnt.activations.splice(e,1)[0]}}void 0!==t.placement?(s=function(t,e,n){const r=e[t.from].x,i=e[t.to].x,a=t.wrap&&t.message;let o=x4.calculateTextDimensions(a?x4.wrapLabel(t.message,cnt.width,hnt(cnt)):t.message,hnt(cnt));const s={width:a?cnt.width:Math.max(cnt.width,o.width+2*cnt.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===n.db.PLACEMENT.RIGHTOF?(s.width=a?Math.max(cnt.width,o.width):Math.max(e[t.from].width/2+e[t.to].width/2,o.width+2*cnt.noteMargin),s.startx=r+(e[t.from].width+cnt.actorMargin)/2):t.placement===n.db.PLACEMENT.LEFTOF?(s.width=a?Math.max(cnt.width,o.width+2*cnt.noteMargin):Math.max(e[t.from].width/2+e[t.to].width/2,o.width+2*cnt.noteMargin),s.startx=r-s.width+(e[t.from].width-cnt.actorMargin)/2):t.to===t.from?(o=x4.calculateTextDimensions(a?x4.wrapLabel(t.message,Math.max(cnt.width,e[t.from].width),hnt(cnt)):t.message,hnt(cnt)),s.width=a?Math.max(cnt.width,e[t.from].width):Math.max(e[t.from].width,cnt.width,o.width+2*cnt.noteMargin),s.startx=r+(e[t.from].width-s.width)/2):(s.width=Math.abs(r+e[t.from].width/2-(i+e[t.to].width/2))+cnt.actorMargin,s.startx=r<i?r+e[t.from].width/2-cnt.actorMargin/2:i+e[t.to].width/2-cnt.actorMargin/2),a&&(s.message=x4.wrapLabel(t.message,s.width-2*cnt.wrapPadding,hnt(cnt))),H0.debug(`NM:[${s.startx},${s.stopx},${s.starty},${s.stopy}:${s.width},${s.height}=${t.message}]`),s}(t,e,r),t.noteModel=s,a.forEach((t=>{o=t,o.from=Math.min(o.from,s.startx),o.to=Math.max(o.to,s.startx+s.width),o.width=Math.max(o.width,Math.abs(o.from-o.to))-cnt.labelBoxWidth}))):(c=function(t,e,n){let r=!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)&&(r=!0),!r)return{};const i=mnt(t.from,e),a=mnt(t.to,e),o=i[0]<=a[0]?1:0,s=i[0]<a[0]?0:1,c=[...i,...a],l=Math.abs(a[s]-i[o]);t.wrap&&t.message&&(t.message=x4.wrapLabel(t.message,Math.max(l+2*cnt.wrapPadding,cnt.width),unt(cnt)));const u=x4.calculateTextDimensions(t.message,unt(cnt));return{width:Math.max(t.wrap?0:u.width+2*cnt.wrapPadding,l+2*cnt.wrapPadding,cnt.width),height:0,startx:i[o],stopx:a[s],starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,c),toBounds:Math.max.apply(null,c)}}(t,e,r),t.msgModel=c,c.startx&&c.stopx&&a.length>0&&a.forEach((n=>{if(o=n,c.startx===c.stopx){const n=e[t.from],r=e[t.to];o.from=Math.min(n.x-c.width/2,n.x-n.width/2,o.from),o.to=Math.max(r.x+c.width/2,r.x+n.width/2,o.to),o.width=Math.max(o.width,Math.abs(o.to-o.from))-cnt.labelBoxWidth}else o.from=Math.min(c.startx,o.from),o.to=Math.max(c.stopx,o.to),o.width=Math.max(o.width,c.width)-cnt.labelBoxWidth})))})),lnt.activations=[],H0.debug("Loop type widths:",i),i},wnt={bounds:lnt,drawActors:dnt,drawActorsPopup:Ant,setConf:gnt,draw:function(t,e,n,r){const{securityLevel:i,sequence:a}=D4();let o;cnt=a,r.db.clear(),r.parser.parse(t),"sandbox"===i&&(o=JR("#i"+e));const s=JR("sandbox"===i?o.nodes()[0].contentDocument.body:"body"),c="sandbox"===i?o.nodes()[0].contentDocument:document;lnt.init(),H0.debug(r.db);const l="sandbox"===i?s.select(`[id="${e}"]`):JR(`[id="${e}"]`),u=r.db.getActors(),h=r.db.getBoxes(),f=r.db.getActorKeys(),d=r.db.getMessages(),A=r.db.getDiagramTitle(),g=r.db.hasAtLeastOneBox(),p=r.db.hasAtLeastOneBoxWithTitle(),m=function(t,e,n){const r={};return e.forEach((function(e){if(t[e.to]&&t[e.from]){const i=t[e.to];if(e.placement===n.db.PLACEMENT.LEFTOF&&!i.prevActor)return;if(e.placement===n.db.PLACEMENT.RIGHTOF&&!i.nextActor)return;const a=void 0!==e.placement,o=!a,s=a?hnt(cnt):unt(cnt),c=e.wrap?x4.wrapLabel(e.message,cnt.width-2*cnt.wrapPadding,s):e.message,l=x4.calculateTextDimensions(c,s).width+2*cnt.wrapPadding;o&&e.from===i.nextActor?r[e.to]=Math.max(r[e.to]||0,l):o&&e.from===i.prevActor?r[e.from]=Math.max(r[e.from]||0,l):o&&e.from===e.to?(r[e.from]=Math.max(r[e.from]||0,l/2),r[e.to]=Math.max(r[e.to]||0,l/2)):e.placement===n.db.PLACEMENT.RIGHTOF?r[e.from]=Math.max(r[e.from]||0,l):e.placement===n.db.PLACEMENT.LEFTOF?r[i.prevActor]=Math.max(r[i.prevActor]||0,l):e.placement===n.db.PLACEMENT.OVER&&(i.prevActor&&(r[i.prevActor]=Math.max(r[i.prevActor]||0,l/2)),i.nextActor&&(r[e.from]=Math.max(r[e.from]||0,l/2)))}})),H0.debug("maxMessageWidthPerActor:",r),r}(u,d,r);cnt.height=function(t,e,n){let r=0;Object.keys(t).forEach((e=>{const n=t[e];n.wrap&&(n.description=x4.wrapLabel(n.description,cnt.width-2*cnt.wrapPadding,fnt(cnt)));const i=x4.calculateTextDimensions(n.description,fnt(cnt));n.width=n.wrap?cnt.width:Math.max(cnt.width,i.width+2*cnt.wrapPadding),n.height=n.wrap?Math.max(i.height,cnt.height):cnt.height,r=Math.max(r,n.height)}));for(const n in e){const r=t[n];if(!r)continue;const i=t[r.nextActor];if(!i){const t=e[n]+cnt.actorMargin-r.width/2;r.margin=Math.max(t,cnt.actorMargin);continue}const a=e[n]+cnt.actorMargin-r.width/2-i.width/2;r.margin=Math.max(a,cnt.actorMargin)}let i=0;return n.forEach((e=>{const n=unt(cnt);let r=e.actorKeys.reduce(((e,n)=>e+(t[n].width+(t[n].margin||0))),0);r-=2*cnt.boxTextMargin,e.wrap&&(e.name=x4.wrapLabel(e.name,r-2*cnt.wrapPadding,n));const a=x4.calculateTextDimensions(e.name,n);i=Math.max(a.height,i);const o=Math.max(r,a.width+2*cnt.wrapPadding);if(e.margin=cnt.boxTextMargin,r<o){const t=(o-r)/2;e.margin+=t}})),n.forEach((t=>t.textMaxHeight=i)),Math.max(r,cnt.height)}(u,m,h),snt.insertComputerIcon(l),snt.insertDatabaseIcon(l),snt.insertClockIcon(l),g&&(lnt.bumpVerticalPos(cnt.boxMargin),p&&lnt.bumpVerticalPos(h[0].textMaxHeight)),dnt(l,u,f,0,cnt,d,!1);const b=ynt(d,u,m,r);snt.insertArrowHead(l),snt.insertArrowCrossHead(l),snt.insertArrowFilledHead(l),snt.insertSequenceNumber(l);let v=1,y=1;const w=[];d.forEach((function(t){let e,n,i;switch(t.type){case r.db.LINETYPE.NOTE:n=t.noteModel,function(t,e){lnt.bumpVerticalPos(cnt.boxMargin),e.height=cnt.boxMargin,e.starty=lnt.getVerticalPos();const n=snt.getNoteRect();n.x=e.startx,n.y=e.starty,n.width=e.width||cnt.width,n.class="note";const r=t.append("g"),i=snt.drawRect(r,n),a=snt.getTextObj();a.x=e.startx,a.y=e.starty,a.width=n.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=cnt.noteFontFamily,a.fontSize=cnt.noteFontSize,a.fontWeight=cnt.noteFontWeight,a.anchor=cnt.noteAlign,a.textMargin=cnt.noteMargin,a.valign="center";const o=Jet(r,a),s=Math.round(o.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));i.attr("height",s+2*cnt.noteMargin),e.height+=s+2*cnt.noteMargin,lnt.bumpVerticalPos(s+2*cnt.noteMargin),e.stopy=e.starty+s+2*cnt.noteMargin,e.stopx=e.startx+n.width,lnt.insert(e.startx,e.starty,e.stopx,e.stopy),lnt.models.addNote(e)}(l,n);break;case r.db.LINETYPE.ACTIVE_START:lnt.newActivation(t,l,u);break;case r.db.LINETYPE.ACTIVE_END:!function(t,e){const n=lnt.endActivation(t);n.starty+18>e&&(n.starty=e-6,e+=12),snt.drawActivation(l,n,e,cnt,pnt(t.from.actor).length),lnt.insert(n.startx,e-10,n.stopx,e)}(t,lnt.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:bnt(b,t,cnt.boxMargin,cnt.boxMargin+cnt.boxTextMargin,(t=>lnt.newLoop(t)));break;case r.db.LINETYPE.LOOP_END:e=lnt.endLoop(),snt.drawLoop(l,e,"loop",cnt),lnt.bumpVerticalPos(e.stopy-lnt.getVerticalPos()),lnt.models.addLoop(e);break;case r.db.LINETYPE.RECT_START:bnt(b,t,cnt.boxMargin,cnt.boxMargin,(t=>lnt.newLoop(void 0,t.message)));break;case r.db.LINETYPE.RECT_END:e=lnt.endLoop(),snt.drawBackgroundRect(l,e),lnt.models.addLoop(e),lnt.bumpVerticalPos(e.stopy-lnt.getVerticalPos());break;case r.db.LINETYPE.OPT_START:bnt(b,t,cnt.boxMargin,cnt.boxMargin+cnt.boxTextMargin,(t=>lnt.newLoop(t)));break;case r.db.LINETYPE.OPT_END:e=lnt.endLoop(),snt.drawLoop(l,e,"opt",cnt),lnt.bumpVerticalPos(e.stopy-lnt.getVerticalPos()),lnt.models.addLoop(e);break;case r.db.LINETYPE.ALT_START:bnt(b,t,cnt.boxMargin,cnt.boxMargin+cnt.boxTextMargin,(t=>lnt.newLoop(t)));break;case r.db.LINETYPE.ALT_ELSE:bnt(b,t,cnt.boxMargin+cnt.boxTextMargin,cnt.boxMargin,(t=>lnt.addSectionToLoop(t)));break;case r.db.LINETYPE.ALT_END:e=lnt.endLoop(),snt.drawLoop(l,e,"alt",cnt),lnt.bumpVerticalPos(e.stopy-lnt.getVerticalPos()),lnt.models.addLoop(e);break;case r.db.LINETYPE.PAR_START:bnt(b,t,cnt.boxMargin,cnt.boxMargin+cnt.boxTextMargin,(t=>lnt.newLoop(t)));break;case r.db.LINETYPE.PAR_AND:bnt(b,t,cnt.boxMargin+cnt.boxTextMargin,cnt.boxMargin,(t=>lnt.addSectionToLoop(t)));break;case r.db.LINETYPE.PAR_END:e=lnt.endLoop(),snt.drawLoop(l,e,"par",cnt),lnt.bumpVerticalPos(e.stopy-lnt.getVerticalPos()),lnt.models.addLoop(e);break;case r.db.LINETYPE.AUTONUMBER:v=t.message.start||v,y=t.message.step||y,t.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:bnt(b,t,cnt.boxMargin,cnt.boxMargin+cnt.boxTextMargin,(t=>lnt.newLoop(t)));break;case r.db.LINETYPE.CRITICAL_OPTION:bnt(b,t,cnt.boxMargin+cnt.boxTextMargin,cnt.boxMargin,(t=>lnt.addSectionToLoop(t)));break;case r.db.LINETYPE.CRITICAL_END:e=lnt.endLoop(),snt.drawLoop(l,e,"critical",cnt),lnt.bumpVerticalPos(e.stopy-lnt.getVerticalPos()),lnt.models.addLoop(e);break;case r.db.LINETYPE.BREAK_START:bnt(b,t,cnt.boxMargin,cnt.boxMargin+cnt.boxTextMargin,(t=>lnt.newLoop(t)));break;case r.db.LINETYPE.BREAK_END:e=lnt.endLoop(),snt.drawLoop(l,e,"break",cnt),lnt.bumpVerticalPos(e.stopy-lnt.getVerticalPos()),lnt.models.addLoop(e);break;default:try{i=t.msgModel,i.starty=lnt.getVerticalPos(),i.sequenceIndex=v,i.sequenceVisible=r.db.showSequenceNumbers();const e=function(t,e){lnt.bumpVerticalPos(10);const{startx:n,stopx:r,message:i}=e,a=Z0.splitBreaks(i).length,o=x4.calculateTextDimensions(i,unt(cnt)),s=o.height/a;let c;e.height+=s,lnt.bumpVerticalPos(s);let l=o.height-10;const u=o.width;if(n===r){c=lnt.getVerticalPos()+l,cnt.rightAngles||(l+=cnt.boxMargin,c=lnt.getVerticalPos()+l),l+=30;const t=Math.max(u/2,cnt.width/2);lnt.insert(n-t,lnt.getVerticalPos()-10+l,r+t,lnt.getVerticalPos()+30+l)}else l+=cnt.boxMargin,c=lnt.getVerticalPos()+l,lnt.insert(n,c-10,r,c);return lnt.bumpVerticalPos(l),e.height+=l,e.stopy=e.starty+e.height,lnt.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),c}(0,i);w.push({messageModel:i,lineStartY:e}),lnt.models.addMessage(i)}catch(t){H0.error("error while drawing message",t)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(v+=y)})),w.forEach((t=>function(t,e,n,r){const{startx:i,stopx:a,starty:o,message:s,type:c,sequenceIndex:l,sequenceVisible:u}=e,h=x4.calculateTextDimensions(s,unt(cnt)),f=snt.getTextObj();f.x=i,f.y=o+10,f.width=a-i,f.class="messageText",f.dy="1em",f.text=s,f.fontFamily=cnt.messageFontFamily,f.fontSize=cnt.messageFontSize,f.fontWeight=cnt.messageFontWeight,f.anchor=cnt.messageAlign,f.valign="center",f.textMargin=cnt.wrapPadding,f.tspan=!1,Jet(t,f);const d=h.width;let A;i===a?A=cnt.rightAngles?t.append("path").attr("d",`M ${i},${n} H ${i+Math.max(cnt.width/2,d/2)} V ${n+25} H ${i}`):t.append("path").attr("d","M "+i+","+n+" C "+(i+60)+","+(n-10)+" "+(i+60)+","+(n+30)+" "+i+","+(n+20)):(A=t.append("line"),A.attr("x1",i),A.attr("y1",n),A.attr("x2",a),A.attr("y2",n)),c===r.db.LINETYPE.DOTTED||c===r.db.LINETYPE.DOTTED_CROSS||c===r.db.LINETYPE.DOTTED_POINT||c===r.db.LINETYPE.DOTTED_OPEN?(A.style("stroke-dasharray","3, 3"),A.attr("class","messageLine1")):A.attr("class","messageLine0");let g="";cnt.arrowMarkerAbsolute&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),A.attr("stroke-width",2),A.attr("stroke","none"),A.style("fill","none"),c!==r.db.LINETYPE.SOLID&&c!==r.db.LINETYPE.DOTTED||A.attr("marker-end","url("+g+"#arrowhead)"),c!==r.db.LINETYPE.SOLID_POINT&&c!==r.db.LINETYPE.DOTTED_POINT||A.attr("marker-end","url("+g+"#filled-head)"),c!==r.db.LINETYPE.SOLID_CROSS&&c!==r.db.LINETYPE.DOTTED_CROSS||A.attr("marker-end","url("+g+"#crosshead)"),(u||cnt.showSequenceNumbers)&&(A.attr("marker-start","url("+g+"#sequencenumber)"),t.append("text").attr("x",i).attr("y",n+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(l))}(l,t.messageModel,t.lineStartY,r))),cnt.mirrorActors&&(lnt.bumpVerticalPos(2*cnt.boxMargin),dnt(l,u,f,lnt.getVerticalPos(),cnt,d,!0),lnt.bumpVerticalPos(cnt.boxMargin),ent(l,lnt.getVerticalPos())),lnt.models.boxes.forEach((function(t){t.height=lnt.getVerticalPos()-t.y,lnt.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)",snt.drawBox(l,t,cnt)})),g&&lnt.bumpVerticalPos(cnt.boxMargin);const k=Ant(l,u,f,c),{bounds:C}=lnt.getBounds();H0.debug("For line height fix Querying: #"+e+" .actor-line");ZR("#"+e+" .actor-line").attr("y2",C.stopy);let x=C.stopy-C.starty;x<k.maxHeight&&(x=k.maxHeight);let E=x+2*cnt.diagramMarginY;cnt.mirrorActors&&(E=E-cnt.boxMargin+cnt.bottomMarginAdj);let T=C.stopx-C.startx;T<k.maxWidth&&(T=k.maxWidth);const B=T+2*cnt.diagramMarginX;A&&l.append("text").text(A).attr("x",(C.stopx-C.startx)/2-2*cnt.diagramMarginX).attr("y",-25),$4(l,E,B,cnt.useMaxWidth);const _=A?40:0;l.attr("viewBox",C.startx-cnt.diagramMarginX+" -"+(cnt.diagramMarginY+_)+" "+B+" "+(E+_)),H0.debug("models:",lnt.models)}};var knt=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,2],r=[1,3],i=[1,5],a=[1,7],o=[2,5],s=[1,15],c=[1,17],l=[1,21],u=[1,22],h=[1,23],f=[1,24],d=[1,37],A=[1,25],g=[1,26],p=[1,27],m=[1,28],b=[1,29],v=[1,32],y=[1,33],w=[1,34],k=[1,35],C=[1,36],x=[1,39],E=[1,40],T=[1,41],B=[1,42],_=[1,38],S=[1,45],L=[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],M=[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,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.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=r.trimColon(a[s]),this.$=t;break;case 14:this.$={stmt:"relation",state1:a[s-2],state2:a[s]};break;case 15:const e=r.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],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 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:r.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(),r.setAccTitle(this.$);break;case 31:case 32:this.$=a[s].trim(),r.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:r.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:r.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:r.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:r.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:r.parseDirective("%%{","open_directive");break;case 51:r.parseDirective(a[s],"type_directive");break;case 52:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 53:r.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:n,5:r,6:4,7:i,45:6,60:a},{1:[3]},{3:8,4:n,5:r,6:4,7:i,45:6,60:a},{3:9,4:n,5:r,6:4,7:i,45:6,60:a},{3:10,4:n,5:r,6:4,7:i,45:6,60:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],o,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:c,6:30,9:14,10:16,11:18,12:19,13:20,16:l,17:u,19:h,22:f,24:d,25:A,26:g,27:p,28:m,29:b,32:31,33:v,35:y,37:w,38:k,42:C,45:6,50:x,51:E,52:T,53:B,56:_,60:a},{47:43,48:[1,44],63:S},e([48,63],[2,51]),e(L,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:l,17:u,19:h,22:f,24:d,25:A,26:g,27:p,28:m,29:b,32:31,33:v,35:y,37:w,38:k,42:C,45:6,50:x,51:E,52:T,53:B,56:_,60:a},e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(L,[2,11]),e(L,[2,12],{14:[1,47],15:[1,48]}),e(L,[2,16]),{18:[1,49]},e(L,[2,18],{20:[1,50]}),{23:[1,51]},e(L,[2,22]),e(L,[2,23]),e(L,[2,24]),e(L,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},e(L,[2,28]),e(L,[2,29]),{34:[1,56]},{36:[1,57]},e(L,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},e(I,[2,44],{57:[1,61]}),e(I,[2,45],{57:[1,62]}),e(L,[2,38]),e(L,[2,39]),e(L,[2,40]),e(L,[2,41]),e(M,[2,36]),{49:63,62:[1,64]},e(M,[2,53]),e(L,[2,7]),e(L,[2,13]),{13:65,24:d,56:_},e(L,[2,17]),e(O,o,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},e(L,[2,30]),e(L,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:S},{63:[2,52]},e(L,[2,14],{14:[1,76]}),{4:s,5:c,6:30,9:14,10:16,11:18,12:19,13:20,16:l,17:u,19:h,21:[1,77],22:f,24:d,25:A,26:g,27:p,28:m,29:b,32:31,33:v,35:y,37:w,38:k,42:C,45:6,50:x,51:E,52:T,53:B,56:_,60:a},e(L,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},e(L,[2,33]),e(L,[2,34]),e(L,[2,35]),e(I,[2,46]),e(I,[2,47]),e(M,[2,37]),e(L,[2,15]),e(L,[2,19]),e(O,o,{8:81}),e(L,[2,26]),e(L,[2,27]),{4:s,5:c,6:30,9:14,10:16,11:18,12:19,13:20,16:l,17:u,19:h,21:[1,82],22:f,24:d,25:A,26:g,27:p,28:m,29:b,32:31,33:v,35:y,37:w,38:k,42:C,45:6,50:x,51:E,52:T,53:B,56:_,60:a},e(L,[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},F=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\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}}},t);function N(){this.yy={}}return D.lexer=F,N.prototype=D,D.Parser=N,new N}();knt.parser=knt;const Cnt=knt,xnt=(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.state)?void 0:n.defaultRenderer)&&null!==t.match(/^\s*stateDiagram/)},Ent=(t,e)=>{var n;return null!==t.match(/^\s*stateDiagram-v2/)||!(!t.match(/^\s*stateDiagram/)||"dagre-wrapper"!==(null==(n=null==e?void 0:e.state)?void 0:n.defaultRenderer))},Tnt="state",Bnt="relation",_nt="default",Snt="divider",Lnt="[*]",Int="start",Mnt=Lnt,Ont="color",Dnt="fill";let Fnt="LR",Nnt=[],Pnt={};let Rnt={root:{relations:[],states:{},documents:{}}},Qnt=Rnt.root,Unt=0,$nt=0;const Hnt=t=>JSON.parse(JSON.stringify(t)),jnt=(t,e,n)=>{if(e.stmt===Bnt)jnt(t,e.state1,!0),jnt(t,e.state2,!1);else if(e.stmt===Tnt&&("[*]"===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,r=[];for(n=0;n<e.doc.length;n++)if(e.doc[n].type===Snt){const i=Hnt(e.doc[n]);i.doc=Hnt(r),t.push(i),r=[]}else r.push(e.doc[n]);if(t.length>0&&r.length>0){const n={stmt:Tnt,id:h4(),type:"divider",doc:Hnt(r)};t.push(Hnt(n)),e.doc=t}e.doc.forEach((t=>jnt(e,t,!0)))}},Knt=function(t,e=_nt,n=null,r=null,i=null,a=null,o=null,s=null){const c=null==t?void 0:t.trim();if(void 0===Qnt.states[c]?(H0.info("Adding state ",c,r),Qnt.states[c]={id:c,descriptions:[],type:e,doc:n,note:i,classes:[],styles:[],textStyles:[]}):(Qnt.states[c].doc||(Qnt.states[c].doc=n),Qnt.states[c].type||(Qnt.states[c].type=e)),r&&(H0.info("Setting state description",c,r),"string"==typeof r&&qnt(c,r.trim()),"object"==typeof r&&r.forEach((t=>qnt(c,t.trim())))),i&&(Qnt.states[c].note=i,Qnt.states[c].note.text=Z0.sanitizeText(Qnt.states[c].note.text,D4())),a){H0.info("Setting state classes",c,a);("string"==typeof a?[a]:a).forEach((t=>Jnt(c,t.trim())))}if(o){H0.info("Setting state styles",c,o);("string"==typeof o?[o]:o).forEach((t=>Znt(c,t.trim())))}if(s){H0.info("Setting state styles",c,o);("string"==typeof s?[s]:s).forEach((t=>trt(c,t.trim())))}},znt=function(t){Rnt={root:{relations:[],states:{},documents:{}}},Qnt=Rnt.root,Unt=0,Pnt={},t||s5()},Gnt=function(t){return Qnt.states[t]};function Xnt(t=""){let e=t;return t===Lnt&&(Unt++,e=`${Int}${Unt}`),e}function Vnt(t="",e=_nt){return t===Lnt?Int:e}const Wnt=function(t,e,n){if("object"==typeof t)!function(t,e,n){let r=Xnt(t.id.trim()),i=Vnt(t.id.trim(),t.type),a=Xnt(e.id.trim()),o=Vnt(e.id.trim(),e.type);Knt(r,i,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),Knt(a,o,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),Qnt.relations.push({id1:r,id2:a,relationTitle:Z0.sanitizeText(n,D4())})}(t,e,n);else{const r=Xnt(t.trim()),i=Vnt(t),a=function(t=""){let e=t;return t===Mnt&&(Unt++,e=`end${Unt}`),e}(e.trim()),o=function(t="",e=_nt){return t===Mnt?"end":e}(e);Knt(r,i),Knt(a,o),Qnt.relations.push({id1:r,id2:a,title:Z0.sanitizeText(n,D4())})}},qnt=function(t,e){const n=Qnt.states[t],r=e.startsWith(":")?e.replace(":","").trim():e;n.descriptions.push(Z0.sanitizeText(r,D4()))},Ynt=function(t,e=""){void 0===Pnt[t]&&(Pnt[t]={id:t,styles:[],textStyles:[]});const n=Pnt[t];null!=e&&e.split(",").forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(t.match(Ont)){const t=e.replace(Dnt,"bgFill").replace(Ont,Dnt);n.textStyles.push(t)}n.styles.push(e)}))},Jnt=function(t,e){t.split(",").forEach((function(t){let n=Gnt(t);if(void 0===n){const e=t.trim();Knt(e),n=Gnt(e)}n.classes.push(e)}))},Znt=function(t,e){const n=Gnt(t);void 0!==n&&n.textStyles.push(e)},trt=function(t,e){const n=Gnt(t);void 0!==n&&n.textStyles.push(e)},ert={parseDirective:function(t,e,n){Git.parseDirective(this,t,e,n)},getConfig:()=>D4().state,addState:Knt,clear:znt,getState:Gnt,getStates:function(){return Qnt.states},getRelations:function(){return Qnt.relations},getClasses:function(){return Pnt},getDirection:()=>Fnt,addRelation:Wnt,getDividerId:()=>($nt++,"divider-id-"+$nt),setDirection:t=>{Fnt=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(){H0.info("Documents = ",Rnt)},getRootDoc:()=>Nnt,setRootDoc:t=>{H0.info("Setting root doc",t),Nnt=t},getRootDocV2:()=>(jnt({id:"root"},{id:"root",doc:Nnt},!0),{id:"root",doc:Nnt}),extract:t=>{let e;e=t.doc?t.doc:t,H0.info(e),znt(!0),H0.info("Extract",e),e.forEach((t=>{switch(t.stmt){case Tnt:Knt(t.id.trim(),t.type,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);break;case Bnt:Wnt(t.state1,t.state2,t.description);break;case"classDef":Ynt(t.id.trim(),t.classes);break;case"applyClass":Jnt(t.id.trim(),t.styleClass)}}))},trimColon:t=>t&&":"===t[0]?t.substr(1).trim():t.trim(),getAccTitle:l5,setAccTitle:c5,getAccDescription:h5,setAccDescription:u5,addStyleClass:Ynt,setCssClass:Jnt,addDescription:qnt,setDiagramTitle:f5,getDiagramTitle:d5},nrt=(t,e)=>{const n=t.append("text").attr("x",2*D4().state.padding).attr("y",D4().state.textHeight+1.3*D4().state.padding).attr("font-size",D4().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),r=n.height,i=t.append("text").attr("x",D4().state.padding).attr("y",r+.4*D4().state.padding+D4().state.dividerMargin+D4().state.textHeight).attr("class","state-description");let a=!0,o=!0;e.descriptions.forEach((function(t){a||(!function(t,e,n){const r=t.append("tspan").attr("x",2*D4().state.padding).text(e);n||r.attr("dy",D4().state.textHeight)}(i,t,o),o=!1),a=!1}));const s=t.append("line").attr("x1",D4().state.padding).attr("y1",D4().state.padding+r+D4().state.dividerMargin/2).attr("y2",D4().state.padding+r+D4().state.dividerMargin/2).attr("class","descr-divider"),c=i.node().getBBox(),l=Math.max(c.width,n.width);return s.attr("x2",l+3*D4().state.padding),t.insert("rect",":first-child").attr("x",D4().state.padding).attr("y",D4().state.padding).attr("width",l+2*D4().state.padding).attr("height",c.height+r+2*D4().state.padding).attr("rx",D4().state.radius),t},rrt=(t,e,n)=>{const r=D4().state.padding,i=2*D4().state.padding,a=t.node().getBBox(),o=a.width,s=a.x,c=t.append("text").attr("x",0).attr("y",D4().state.titleShift).attr("font-size",D4().state.fontSize).attr("class","state-title").text(e.id),l=c.node().getBBox().width+i;let u,h=Math.max(l,o);h===o&&(h+=i);const f=t.node().getBBox();e.doc,u=s-r,l>o&&(u=(o-h)/2+r),Math.abs(s-f.x)<r&&l>o&&(u=s-(l-o)/2);const d=1-D4().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+D4().state.textHeight+D4().state.titleShift+1).attr("rx","0"),c.attr("x",u+r),l<=o&&c.attr("x",s+(h-i)/2-l/2+r),t.insert("rect",":first-child").attr("x",u).attr("y",D4().state.titleShift-D4().state.textHeight-D4().state.padding).attr("width",h).attr("height",3*D4().state.textHeight).attr("rx",D4().state.radius),t.insert("rect",":first-child").attr("x",u).attr("y",D4().state.titleShift-D4().state.textHeight-D4().state.padding).attr("width",h).attr("height",f.height+3+2*D4().state.textHeight).attr("rx",D4().state.radius),t},irt=(t,e)=>{e.attr("class","state-note");const n=e.append("rect").attr("x",0).attr("y",D4().state.padding),r=e.append("g"),{textWidth:i,textHeight:a}=((t,e,n,r)=>{let i=0;const a=r.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let o=t.replace(/\r\n/g,"<br/>");o=o.replace(/\n/g,"<br/>");const s=o.split(Z0.lineBreakRegex);let c=1.25*D4().state.noteMargin;for(const t of s){const r=t.trim();if(r.length>0){const t=a.append("tspan");t.text(r),0===c&&(c+=t.node().getBBox().height),i+=c,t.attr("x",e+D4().state.noteMargin),t.attr("y",n+i+1.25*D4().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}})(t,0,0,r);return n.attr("height",a+2*D4().state.noteMargin),n.attr("width",i+2*D4().state.noteMargin),n},art=function(t,e){const n=e.id,r={id:n,label:e.id,width:0,height:0},i=t.append("g").attr("id",n).attr("class","stateGroup");"start"===e.type&&(t=>{t.append("circle").attr("class","start-state").attr("r",D4().state.sizeUnit).attr("cx",D4().state.padding+D4().state.sizeUnit).attr("cy",D4().state.padding+D4().state.sizeUnit)})(i),"end"===e.type&&(t=>{t.append("circle").attr("class","end-state-outer").attr("r",D4().state.sizeUnit+D4().state.miniPadding).attr("cx",D4().state.padding+D4().state.sizeUnit+D4().state.miniPadding).attr("cy",D4().state.padding+D4().state.sizeUnit+D4().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",D4().state.sizeUnit).attr("cx",D4().state.padding+D4().state.sizeUnit+2).attr("cy",D4().state.padding+D4().state.sizeUnit+2)})(i),"fork"!==e.type&&"join"!==e.type||((t,e)=>{let n=D4().state.forkWidth,r=D4().state.forkHeight;if(e.parentId){let t=n;n=r,r=t}t.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",D4().state.padding).attr("y",D4().state.padding)})(i,e),"note"===e.type&&irt(e.note.text,i),"divider"===e.type&&(t=>{t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",D4().state.textHeight).attr("class","divider").attr("x2",2*D4().state.textHeight).attr("y1",0).attr("y2",0)})(i),"default"===e.type&&0===e.descriptions.length&&((t,e)=>{const n=t.append("text").attr("x",2*D4().state.padding).attr("y",D4().state.textHeight+2*D4().state.padding).attr("font-size",D4().state.fontSize).attr("class","state-title").text(e.id),r=n.node().getBBox();t.insert("rect",":first-child").attr("x",D4().state.padding).attr("y",D4().state.padding).attr("width",r.width+2*D4().state.padding).attr("height",r.height+2*D4().state.padding).attr("rx",D4().state.radius)})(i,e),"default"===e.type&&e.descriptions.length>0&&nrt(i,e);const a=i.node().getBBox();return r.width=a.width+2*D4().state.padding,r.height=a.height+2*D4().state.padding,r};let ort=0;let srt;const crt={},lrt=t=>t?t.length*srt.fontSizeFactor:1,urt=(t,e,n,r,i,a,o)=>{const s=new t1({compound:!0,multigraph:!0});let c,l=!0;for(c=0;c<t.length;c++)if("relation"===t[c].stmt){l=!1;break}n?s.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:l?1:srt.edgeLengthFactor,nodeSep:l?1:50,isMultiGraph:!0}):s.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:l?1:srt.edgeLengthFactor,nodeSep:l?1:50,ranker:"tight-tree",isMultiGraph:!0}),s.setDefaultEdgeLabel((function(){return{}})),o.db.extract(t);const u=o.db.getStates(),h=o.db.getRelations(),f=Object.keys(u);for(const t of f){const c=u[t];let l;if(n&&(c.parentId=n),c.doc){let t=e.append("g").attr("id",c.id).attr("class","stateGroup");l=urt(c.doc,t,c.id,!r,i,a,o);{t=rrt(t,c,r);let e=t.node().getBBox();l.width=e.width,l.height=e.height+srt.padding/2,crt[c.id]={y:srt.compositTitleSize}}}else l=art(e,c);if(c.note){const t={descriptions:[],id:c.id+"-note",note:c.note,type:"note"},n=art(e,t);"left of"===c.note.position?(s.setNode(l.id+"-note",n),s.setNode(l.id,l)):(s.setNode(l.id,l),s.setNode(l.id+"-note",n)),s.setParent(l.id,l.id+"-group"),s.setParent(l.id+"-note",l.id+"-group")}else s.setNode(l.id,l)}H0.debug("Count=",s.nodeCount(),s);let d=0;h.forEach((function(t){d++,H0.debug("Setting edge",t),s.setEdge(t.id1,t.id2,{relation:t,width:lrt(t.title),height:srt.labelHeight*Z0.getRows(t.title).length,labelpos:"c"},"id"+d)})),g0(s),H0.debug("Graph after layout",s.nodes());const A=e.node();s.nodes().forEach((function(t){if(void 0!==t&&void 0!==s.node(t)){H0.warn("Node "+t+": "+JSON.stringify(s.node(t))),i.select("#"+A.id+" #"+t).attr("transform","translate("+(s.node(t).x-s.node(t).width/2)+","+(s.node(t).y+(crt[t]?crt[t].y:0)-s.node(t).height/2)+" )"),i.select("#"+A.id+" #"+t).attr("data-x-shift",s.node(t).x-s.node(t).width/2);a.querySelectorAll("#"+A.id+" #"+t+" .divider").forEach((t=>{const e=t.parentElement;let n=0,r=0;e&&(e.parentElement&&(n=e.parentElement.getBBox().width),r=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(r)&&(r=0)),t.setAttribute("x1",0-r+8),t.setAttribute("x2",n-r-8)}))}else H0.debug("No Node "+t+": "+JSON.stringify(s.node(t)))}));let g=A.getBBox();s.edges().forEach((function(t){void 0!==t&&void 0!==s.edge(t)&&(H0.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 r=e.points,i=Cz().x((function(t){return t.x})).y((function(t){return t.y})).curve(Lz),a=t.append("path").attr("d",i(r)).attr("id","edge"+ort).attr("class","transition");let o="";if(D4().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 ert.relationType.AGGREGATION:return"aggregation";case ert.relationType.EXTENSION:return"extension";case ert.relationType.COMPOSITION:return"composition";case ert.relationType.DEPENDENCY:return"dependency"}}(ert.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const r=t.append("g").attr("class","stateLabel"),{x:i,y:a}=x4.calcLabelPosition(e.points),o=Z0.getRows(n.title);let s=0;const c=[];let l=0,u=0;for(let t=0;t<=o.length;t++){const e=r.append("text").attr("text-anchor","middle").text(o[t]).attr("x",i).attr("y",a+s),n=e.node().getBBox();if(l=Math.max(l,n.width),u=Math.min(u,n.x),H0.info(n.x,i,a+s),0===s){const t=e.node().getBBox();s=t.height,H0.info("Title height",s,a)}c.push(e)}let h=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))),h=s*o.length}const f=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",i-l/2-D4().state.padding/2).attr("y",a-h/2-D4().state.padding/2-3.5).attr("width",l+D4().state.padding).attr("height",h+D4().state.padding),H0.info(f)}ort++}(e,s.edge(t),s.edge(t).relation))})),g=A.getBBox();const p={id:n||"root",label:n||"root",width:0,height:0};return p.width=g.width+2*srt.padding,p.height=g.height+2*srt.padding,H0.debug("Doc rendered",p,s),p},hrt={setConf:function(){},draw:function(t,e,n,r){srt=D4().state;const i=D4().securityLevel;let a;"sandbox"===i&&(a=JR("#i"+e));const o=JR("sandbox"===i?a.nodes()[0].contentDocument.body:"body"),s="sandbox"===i?a.nodes()[0].contentDocument:document;H0.debug("Rendering diagram "+t);const c=o.select(`[id='${e}']`);c.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");new t1({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));const l=r.db.getRootDoc();urt(l,c,void 0,!1,o,s,r);const u=srt.padding,h=c.node().getBBox(),f=h.width+2*u,d=h.height+2*u;$4(c,d,1.75*f,srt.useMaxWidth),c.attr("viewBox",`${h.x-srt.padding} ${h.y-srt.padding} `+f+" "+d)}},frt="rect",drt="rectWithTitle",Art="statediagram",grt=`${Art}-state`,prt="transition",mrt=`${prt} note-edge`,brt=`${Art}-note`,vrt=`${Art}-cluster`,yrt=`${Art}-cluster-alt`,wrt="parent",krt="note",Crt="----",xrt=`${Crt}${krt}`,Ert=`${Crt}${wrt}`,Trt="fill:none",Brt="fill: #333",_rt="text",Srt="normal";let Lrt={},Irt=0;function Mrt(t="",e=0,n="",r=Crt){return`state-${t}${null!==n&&n.length>0?`${r}${n}`:""}-${e}`}const Ort=(t,e,n,r,i,a)=>{const o=n.id,s=null==(c=r[o])?"":c.classes?c.classes.join(" "):"";var c;if("root"!==o){let e=frt;!0===n.start&&(e="start"),!1===n.start&&(e="end"),n.type!==_nt&&(e=n.type),Lrt[o]||(Lrt[o]={id:o,shape:e,description:Z0.sanitizeText(o,D4()),classes:`${s} ${grt}`});const r=Lrt[o];n.description&&(Array.isArray(r.description)?(r.shape=drt,r.description.push(n.description)):r.description.length>0?(r.shape=drt,r.description===o?r.description=[n.description]:r.description=[r.description,n.description]):(r.shape=frt,r.description=n.description),r.description=Z0.sanitizeTextOrArray(r.description,D4())),1===r.description.length&&r.shape===drt&&(r.shape=frt),!r.type&&n.doc&&(H0.info("Setting cluster for ",o,Frt(n)),r.type="group",r.dir=Frt(n),r.shape=n.type===Snt?"divider":"roundedWithTitle",r.classes=r.classes+" "+vrt+" "+(a?yrt:""));const i={labelStyle:"",shape:r.shape,labelText:r.description,classes:r.classes,style:"",id:o,dir:r.dir,domId:Mrt(o,Irt),type:r.type,padding:15};if(n.note){const e={labelStyle:"",shape:"note",labelText:n.note.text,classes:brt,style:"",id:o+xrt+"-"+Irt,domId:Mrt(o,Irt,krt),type:r.type,padding:15},a={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:r.classes,style:"",id:o+Ert,domId:Mrt(o,Irt,wrt),type:"group",padding:0};Irt++;const s=o+Ert;t.setNode(s,a),t.setNode(e.id,e),t.setNode(o,i),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:Trt,labelStyle:"",classes:mrt,arrowheadStyle:Brt,labelpos:"c",labelType:_rt,thickness:Srt})}else t.setNode(o,i)}e&&"root"!==e.id&&(H0.trace("Setting node ",o," to be child of its parent ",e.id),t.setParent(o,e.id)),n.doc&&(H0.trace("Adding nodes children "),Drt(t,n,n.doc,r,i,!a))},Drt=(t,e,n,r,i,a)=>{H0.trace("items",n),n.forEach((n=>{switch(n.stmt){case Tnt:case _nt:Ort(t,e,n,r,i,a);break;case Bnt:{Ort(t,e,n.state1,r,i,a),Ort(t,e,n.state2,r,i,a);const o={id:"edge"+Irt,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Trt,labelStyle:"",label:Z0.sanitizeText(n.description,D4()),arrowheadStyle:Brt,labelpos:"c",labelType:_rt,thickness:Srt,classes:prt};t.setEdge(n.state1.id,n.state2.id,o,Irt),Irt++}}}))},Frt=(t,e="TB")=>{let n=e;if(t.doc)for(let e=0;e<t.doc.length;e++){const r=t.doc[e];"dir"===r.stmt&&(n=r.value)}return n},Nrt={setConf:function(t){const e=Object.keys(t);for(const n of e)t[n]},getClasses:function(t,e){H0.trace("Extracting classes"),e.db.clear();try{return e.parser.parse(t),e.db.extract(e.db.getRootDocV2()),e.db.getClasses()}catch(t){return t}},draw:function(t,e,n,r){H0.info("Drawing state diagram (v2)",e),Lrt={},r.db.getDirection();const{securityLevel:i,state:a}=D4(),o=a.nodeSpacing||50,s=a.rankSpacing||50;H0.info(r.db.getRootDocV2()),r.db.extract(r.db.getRootDocV2()),H0.info(r.db.getRootDocV2());const c=r.db.getStates(),l=new t1({multigraph:!0,compound:!0}).setGraph({rankdir:Frt(r.db.getRootDocV2()),nodesep:o,ranksep:s,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));let u;Ort(l,void 0,r.db.getRootDocV2(),c,r.db,!0),"sandbox"===i&&(u=JR("#i"+e));const h=JR("sandbox"===i?u.nodes()[0].contentDocument.body:"body"),f=h.select(`[id="${e}"]`),d=h.select("#"+e+" g");w7(d,l,["barb"],Art,e);x4.insertTitle(f,"statediagramTitleText",a.titleTopMargin,r.db.getDiagramTitle());const A=f.node().getBBox(),g=A.width+16,p=A.height+16;f.attr("class",Art);const m=f.node().getBBox();$4(f,p,g,a.useMaxWidth);const b=`${m.x-8} ${m.y-8} ${g} ${p}`;H0.debug(`viewBox ${b}`),f.attr("viewBox",b);const v=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const t of v){const e=t.getBBox(),n=document.createElementNS("http://www.w3.org/2000/svg",frt);n.setAttribute("rx",0),n.setAttribute("ry",0),n.setAttribute("width",e.width),n.setAttribute("height",e.height),t.insertBefore(n,t.firstChild)}}};var Prt=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,2],r=[1,5],i=[6,9,11,17,18,20,22,23,24,26],a=[1,15],o=[1,16],s=[1,17],c=[1,18],l=[1,19],u=[1,20],h=[1,24],f=[4,6,9,11,17,18,20,22,23,24,26],d={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,r,i,a,o){var s=a.length-1;switch(i){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:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 16:r.addTask(a[s-1],a[s]),this.$="task";break;case 18:r.parseDirective("%%{","open_directive");break;case 19:r.parseDirective(a[s],"type_directive");break;case 20:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 21:r.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:n,7:3,12:4,26:r},{1:[3]},e(i,[2,3],{5:6}),{3:7,4:n,7:3,12:4,26:r},{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:a,18:o,20:s,22:c,23:l,24:u,26:r},{1:[2,2]},{14:22,15:[1,23],29:h},e([15,29],[2,19]),e(i,[2,8],{1:[2,1]}),e(i,[2,4]),{7:21,10:25,12:4,17:a,18:o,20:s,22:c,23:l,24:u,26:r},e(i,[2,6]),e(i,[2,7]),e(i,[2,11]),{19:[1,26]},{21:[1,27]},e(i,[2,14]),e(i,[2,15]),{25:[1,28]},e(i,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},e(i,[2,5]),e(i,[2,12]),e(i,[2,13]),e(i,[2,16]),e(f,[2,9]),{14:32,29:h},{29:[2,20]},{11:[1,33]},e(f,[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},A=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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}}},t);function g(){this.yy={}}return d.lexer=A,g.prototype=d,d.Parser=g,new g}();Prt.parser=Prt;const Rrt=Prt,Qrt=t=>null!==t.match(/^\s*journey/);let Urt="";const $rt=[],Hrt=[],jrt=[],Krt=function(){let t=!0;for(const[e,n]of jrt.entries())jrt[e].processed,t=t&&n.processed;return t},zrt={parseDirective:function(t,e,n){Git.parseDirective(this,t,e,n)},getConfig:()=>D4().journey,clear:function(){$rt.length=0,Hrt.length=0,Urt="",jrt.length=0,s5()},setDiagramTitle:f5,getDiagramTitle:d5,setAccTitle:c5,getAccTitle:l5,setAccDescription:u5,getAccDescription:h5,addSection:function(t){Urt=t,$rt.push(t)},getSections:function(){return $rt},getTasks:function(){let t=Krt();let e=0;for(;!t&&e<100;)t=Krt(),e++;return Hrt.push(...jrt),Hrt},addTask:function(t,e){const n=e.substr(1).split(":");let r=0,i=[];1===n.length?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(","));const a=i.map((t=>t.trim())),o={section:Urt,type:Urt,people:a,task:t,score:r};jrt.push(o)},addTaskOrg:function(t){const e={section:Urt,type:Urt,description:t,task:t,classes:[]};Hrt.push(e)},getActors:function(){return function(){const t=[];return Hrt.forEach((e=>{e.people&&t.push(...e.people)})),[...new Set(t)].sort()}()}},Grt=function(t,e){const n=t.append("rect");return 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),void 0!==e.class&&n.attr("class",e.class),n},Xrt=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},Vrt=function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),void 0!==e.class&&r.attr("class",e.class);const i=r.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.text(n),r};let Wrt=-1;const qrt=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},Yrt=function(){function t(t,e,n,i,a,o,s,c){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c,l){const{taskFontSize:u,taskFontFamily:h}=c,f=t.split(/<br\s*\/?>/gi);for(let t=0;t<f.length;t++){const c=t*u-u*(f.length-1)/2,d=e.append("text").attr("x",n+a/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",u).style("font-family",h);d.append("tspan").attr("x",n+a/2).attr("dy",c).text(f[t]),d.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(d,s)}}function n(t,n,i,a,o,s,c,l){const u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,o,s,c,l),r(h,c)}function r(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}(),Jrt=Xrt,Zrt=function(t,e,n){const r=t.append("g"),i=qrt();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=n.width,i.height=n.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,Grt(r,i),Yrt(n)(e.text,r,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},n,e.colour)},tit=Vrt,eit=function(t,e,n){const r=e.x+n.width/2,i=t.append("g");Wrt++;i.append("line").attr("id","task"+Wrt).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),function(t,e){const n=15,r=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.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"),i.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 r=mz().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(i):e.score<3?function(t){const r=mz().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(i):i.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")}(i,{cx:r,cy:300+30*(5-e.score),score:e.score});const a=qrt();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,Grt(i,a);let o=e.x+14;e.people.forEach((t=>{const n=e.actors[t].color,r={cx:o,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};Xrt(i,r),o+=10})),Yrt(n)(e.task,i,a.x,a.y,a.width,a.height,{class:"task"},n,e.colour)},nit=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")},rit={};const iit=D4().journey,ait=iit.leftMargin,oit={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,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){const i=D4().journey,a=this;let o=0;var s;this.sequenceItems.forEach((function(c){o++;const l=a.sequenceItems.length-o+1;a.updateVal(c,"starty",e-l*i.boxMargin,Math.min),a.updateVal(c,"stopy",r+l*i.boxMargin,Math.max),a.updateVal(oit.data,"startx",t-l*i.boxMargin,Math.min),a.updateVal(oit.data,"stopx",n+l*i.boxMargin,Math.max),"activation"!==s&&(a.updateVal(c,"startx",t-l*i.boxMargin,Math.min),a.updateVal(c,"stopx",n+l*i.boxMargin,Math.max),a.updateVal(oit.data,"starty",e-l*i.boxMargin,Math.min),a.updateVal(oit.data,"stopy",r+l*i.boxMargin,Math.max))}))},insert:function(t,e,n,r){const i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(oit.data,"startx",i,Math.min),this.updateVal(oit.data,"starty",o,Math.min),this.updateVal(oit.data,"stopx",a,Math.max),this.updateVal(oit.data,"stopy",s,Math.max),this.updateBounds(i,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}},sit=iit.sectionFills,cit=iit.sectionColours,lit=function(t,e,n){const r=D4().journey;let i="";const a=n+(2*r.height+r.diagramMarginY);let o=0,s="#CCC",c="black",l=0;for(const[n,u]of e.entries()){if(i!==u.section){s=sit[o%sit.length],l=o%sit.length,c=cit[o%cit.length];const e={x:n*r.taskMargin+n*r.width+ait,y:50,text:u.section,fill:s,num:l,colour:c};Zrt(t,e,r),i=u.section,o++}const e=u.people.reduce(((t,e)=>(rit[e]&&(t[e]=rit[e]),t)),{});u.x=n*r.taskMargin+n*r.width+ait,u.y=a,u.width=r.diagramMarginX,u.height=r.diagramMarginY,u.colour=c,u.fill=s,u.num=l,u.actors=e,eit(t,u,r),oit.insert(u.x,u.y,u.x+u.width+r.taskMargin,450)}},uit={setConf:function(t){Object.keys(t).forEach((function(e){iit[e]=t[e]}))},draw:function(t,e,n,r){const i=D4().journey;r.db.clear(),r.parser.parse(t+"\n");const a=D4().securityLevel;let o;"sandbox"===a&&(o=JR("#i"+e));const s=JR("sandbox"===a?o.nodes()[0].contentDocument.body:"body");oit.init();const c=s.select("#"+e);nit(c);const l=r.db.getTasks(),u=r.db.getDiagramTitle(),h=r.db.getActors();for(const t in rit)delete rit[t];let f=0;h.forEach((t=>{rit[t]={color:i.actorColours[f%i.actorColours.length],position:f},f++})),function(t){const e=D4().journey;let n=60;Object.keys(rit).forEach((r=>{const i=rit[r].color,a={cx:20,cy:n,r:7,fill:i,stroke:"#000",pos:rit[r].position};Jrt(t,a);const o={x:40,y:n+7,fill:"#666",text:r,textMargin:5|e.boxTextMargin};tit(t,o),n+=20}))}(c),oit.insert(0,0,ait,50*Object.keys(rit).length),lit(c,l,0);const d=oit.getBounds();u&&c.append("text").text(u).attr("x",ait).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const A=d.stopy-d.starty+2*i.diagramMarginY,g=ait+d.stopx+2*i.diagramMarginX;$4(c,A,g,i.useMaxWidth),c.append("line").attr("x1",ait).attr("y1",4*i.height).attr("x2",g-ait-4).attr("y2",4*i.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const p=u?70:0;c.attr("viewBox",`${d.startx} -25 ${g} ${A+p}`),c.attr("preserveAspectRatio","xMinYMin meet"),c.attr("height",A+p+25)}};let hit={};const fit={setConf:function(t){hit={...hit,...t}},draw:(t,e,n)=>{try{H0.debug("Renering svg for syntax error\n");const t=JR("#"+e),r=t.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 graph"),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),t.attr("height",100),t.attr("width",500),t.attr("viewBox","768 0 912 512")}catch(t){H0.error("Error while rendering info diagram"),H0.error((r=t)instanceof Error?r.message:String(r))}var r}},dit="flowchart-elk",Ait={id:dit,detector:(t,e)=>{var n;return!!(t.match(/^\s*flowchart-elk/)||t.match(/^\s*flowchart|graph/)&&"elk"===(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer))},loader:async()=>{const{diagram:t}=await Promise.resolve().then((function(){return mat}));return{id:dit,diagram:t}}},git=Ait,pit="timeline",mit={id:pit,detector:t=>null!==t.match(/^\s*timeline/),loader:async()=>{const{diagram:t}=await Promise.resolve().then((function(){return Xat}));return{id:pit,diagram:t}}},bit=mit,vit="mindmap",yit={id:vit,detector:t=>null!==t.match(/^\s*mindmap/),loader:async()=>{const{diagram:t}=await Promise.resolve().then((function(){return yot}));return{id:vit,diagram:t}}},wit=yit;let kit=!1;const Cit=()=>{kit||(kit=!0,Z3(git,bit,wit),T5("error",{db:{clear:()=>{}},styles:z4,renderer:fit,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},(t=>"error"===t.toLowerCase().trim())),T5("---",{db:{clear:()=>{}},styles:z4,renderer:fit,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 unindented `---` blocks")}},init:()=>null},(t=>t.toLowerCase().trimStart().startsWith("---"))),T5("c4",{parser:h6,db:T6,renderer:i8,styles:t5,init:t=>{i8.setConf(t.c4)}},f6),T5("class",{parser:o8,db:x8,renderer:P8,styles:j4,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,x8.clear()}},s8),T5("classDiagram",{parser:o8,db:x8,renderer:E7,styles:j4,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,x8.clear()}},c8),T5("er",{parser:B7,db:M7,renderer:K7,styles:K4},_7),T5("gantt",{parser:Z9,db:Mtt,renderer:Ftt,styles:X4},ttt),T5("info",{parser:Ptt,db:Utt,renderer:$tt,styles:V4},Htt),T5("pie",{parser:Ktt,db:Vtt,renderer:Jtt,styles:W4},ztt),T5("requirement",{parser:tet,db:set,renderer:vet,styles:q4},eet),T5("sequence",{parser:wet,db:jet,renderer:wnt,styles:Y4,init:t=>{if(t.sequence||(t.sequence={}),t.sequence.arrowMarkerAbsolute=t.arrowMarkerAbsolute,"sequenceDiagram"in t)throw new Error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.");jet.setWrap(t.wrap),wnt.setConf(t.sequence)}},ket),T5("state",{parser:Cnt,db:ert,renderer:hrt,styles:J4,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,ert.clear()}},xnt),T5("stateDiagram",{parser:Cnt,db:ert,renderer:Nrt,styles:J4,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,ert.clear()}},Ent),T5("journey",{parser:Rrt,db:zrt,renderer:uit,styles:Z4,init:t=>{uit.setConf(t.journey),zrt.clear()}},Qrt),T5("flowchart",{parser:G7,db:K9,renderer:Y9,styles:G4,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,X9(t.flowchart),K9.clear(),K9.setGen("gen-1")}},X7),T5("flowchart-v2",{parser:G7,db:K9,renderer:Y9,styles:G4,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,O4({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),Y9.setConf(t.flowchart),K9.clear(),K9.setGen("gen-2")}},V7),T5("gitGraph",{parser:S5,db:X5,renderer:c6,styles:l6},L5))};class xit{constructor(t,e){var n,r;this.txt=t,this.type="graph",this.detectTypeFailed=!1;const i=D4();this.txt=t;try{this.type=J3(t,i)}catch(t){this.handleError(t,e),this.type="error",this.detectTypeFailed=!0}const a=B5(this.type);H0.debug("Type "+this.type),this.db=a.db,null==(r=(n=this.db).clear)||r.call(n),this.renderer=a.renderer,this.parser=a.parser;const o=this.parser.parse.bind(this.parser);this.parser.parse=t=>o(function(t,e){var n;const r=t.match(V3);if(r){const i=X3(r[1],{schema:G3});return(null==i?void 0:i.title)&&(null==(n=e.setDiagramTitle)||n.call(e,i.title)),t.slice(r[0].length)}return t}(t,this.db)),this.parser.parser.yy=this.db,a.init&&(a.init(i),H0.info("Initialized diagram "+this.type,i)),this.txt+="\n",this.parse(this.txt,e)}parse(t,e){var n,r;if(this.detectTypeFailed)return!1;try{return t+="\n",null==(r=(n=this.db).clear)||r.call(n),this.parser.parse(t),!0}catch(t){this.handleError(t,e)}return!1}handleError(t,e){if(void 0===e)throw t;k4(t)?e(t.str,t.hash):e(t)}getParser(){return this.parser}getType(){return this.type}}const Eit=(t,e)=>{const n=J3(t,D4());try{B5(n)}catch(r){const i=(t=>Y3[t].loader)(n);if(!i)throw new Error(`Diagram ${n} not found.`);return i().then((({diagram:r})=>(T5(n,r,void 0),new xit(t,e))))}return new xit(t,e)},Tit=xit,Bit="graphics-document document";const _it=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],Sit="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Lit="sandbox",Iit="loose",Mit="http://www.w3.org/1999/xlink",Oit="http://www.w3.org/1999/xhtml",Dit=["foreignobject"],Fit=["dominant-baseline"];const Nit=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},Pit=function(t){let e=t;return e=e.replace(/fl°°/g,"&#"),e=e.replace(/fl°/g,"&"),e=e.replace(/¶ß/g,";"),e},Rit=(t,e,n=[])=>`\n.${t} ${e} { ${n.join(" !important; ")} !important; }`,Qit=(t,e,n,r)=>{const i=((t,e,n={})=>{var r;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}}`),!vZ(n)&&_it.includes(e)){const e=t.htmlLabels||(null==(r=t.flowchart)?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const t in n){const r=n[t];vZ(r.styles)||e.forEach((t=>{i+=Rit(r.id,t,r.styles)})),vZ(r.textStyles)||(i+=Rit(r.id,"tspan",r.textStyles))}}return i})(t,e,n);return mV(fV(`${r}{${n5(e,i,t.themeVariables)}}`),bV)},Uit=(t="",e,n)=>{let r=t;return n||e||(r=r.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),r=Pit(r),r=r.replace(/<br>/g,"<br/>"),r},$it=(t="",e)=>`<iframe style="width:100%;height:${e?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;base64,${btoa('<body style="margin:0">'+t+"</body>")}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`,Hit=(t,e,n,r,i)=>{const a=t.append("div");a.attr("id",n),r&&a.attr("style",r);const o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),t};function jit(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Kit=(t,e,n,r)=>{var i,a,o;null==(i=t.getElementById(e))||i.remove(),null==(a=t.getElementById(n))||a.remove(),null==(o=t.getElementById(r))||o.remove()};function zit(t,e,n,r){!function(t,e){t.attr("role",Bit),vZ(e)||t.attr("aria-roledescription",e)}(e,t),function(t,e,n,r){if(void 0!==t.insert&&(e||n)){if(n){const e="chart-desc-"+r;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(n)}if(e){const n="chart-title-"+r;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}(e,n,r,e.attr("id"))}const Git=Object.freeze({render:function(t,e,n,r){var i,a,o,s;Cit(),P4();const c=x4.detectInit(e);c&&(y4(c),N4(c));const l=D4();H0.debug(l),e.length>((null==l?void 0:l.maxTextSize)??5e4)&&(e=Sit),e=e.replace(/\r\n?/g,"\n");const u="#"+t,h="i"+t,f="#"+h,d="d"+t,A="#"+d;let g=JR("body");const p=l.securityLevel===Lit,m=l.securityLevel===Iit,b=l.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),p){const t=jit(JR(r),h);g=JR(t.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=JR(r);Hit(g,t,d,`font-family: ${b}`,Mit)}else{if(Kit(document,t,d,h),p){const t=jit(JR("body"),h);g=JR(t.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=JR("body");Hit(g,t,d)}let v,y;e=Nit(e);try{if(v=Eit(e),"then"in v)throw new Error("Diagram is a promise. Use renderAsync.")}catch(t){v=new Tit("error"),y=t}const w=g.select(A).node(),k=v.type,C=w.firstChild,x=C.firstChild,E=_it.includes(k)?v.renderer.getClasses(e,v):{},T=Qit(l,k,E,u),B=document.createElement("style");B.innerHTML=T,C.insertBefore(B,x);try{v.renderer.draw(e,t,E4,v)}catch(n){throw fit.draw(e,t,E4),n}zit(k,g.select(`${A} svg`),null==(a=(i=v.db).getAccTitle)?void 0:a.call(i),null==(s=(o=v.db).getAccDescription)?void 0:s.call(o)),g.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Oit);let _=g.select(A).node().innerHTML;if(H0.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),_=Uit(_,p,Y0(l.arrowMarkerAbsolute)),p){const t=g.select(A+" svg").node();_=$it(_,t)}else m||(_=sG.sanitize(_,{ADD_TAGS:Dit,ADD_ATTR:Fit}));if(void 0!==n)switch(k){case"flowchart":case"flowchart-v2":n(_,K9.bindFunctions);break;case"gantt":n(_,Mtt.bindFunctions);break;case"class":case"classDiagram":n(_,x8.bindFunctions);break;default:n(_)}else H0.debug("CB = undefined!");zet();const S=JR(p?f:A).node();if(S&&"remove"in S&&S.remove(),y)throw y;return _},renderAsync:async function(t,e,n,r){var i,a,o,s;Cit(),P4();const c=x4.detectInit(e);c&&(y4(c),N4(c));const l=D4();H0.debug(l),e.length>((null==l?void 0:l.maxTextSize)??5e4)&&(e=Sit),e=e.replace(/\r\n?/g,"\n");const u="#"+t,h="i"+t,f="#"+h,d="d"+t,A="#"+d;let g=JR("body");const p=l.securityLevel===Lit,m=l.securityLevel===Iit,b=l.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),p){const t=jit(JR(r),h);g=JR(t.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=JR(r);Hit(g,t,d,`font-family: ${b}`,Mit)}else{if(Kit(document,t,d,h),p){const t=jit(JR("body"),h);g=JR(t.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=JR("body");Hit(g,t,d)}let v,y;e=Nit(e);try{v=await Eit(e)}catch(t){v=new Tit("error"),y=t}const w=g.select(A).node(),k=v.type,C=w.firstChild,x=C.firstChild,E=_it.includes(k)?v.renderer.getClasses(e,v):{},T=Qit(l,k,E,u),B=document.createElement("style");B.innerHTML=T,C.insertBefore(B,x);try{await v.renderer.draw(e,t,E4,v)}catch(n){throw fit.draw(e,t,E4),n}zit(k,g.select(`${A} svg`),null==(a=(i=v.db).getAccTitle)?void 0:a.call(i),null==(s=(o=v.db).getAccDescription)?void 0:s.call(o)),g.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Oit);let _=g.select(A).node().innerHTML;if(H0.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),_=Uit(_,p,Y0(l.arrowMarkerAbsolute)),p){const t=g.select(A+" svg").node();_=$it(_,t)}else m||(_=sG.sanitize(_,{ADD_TAGS:Dit,ADD_ATTR:Fit}));if(void 0!==n)switch(k){case"flowchart":case"flowchart-v2":n(_,K9.bindFunctions);break;case"gantt":n(_,Mtt.bindFunctions);break;case"class":case"classDiagram":n(_,x8.bindFunctions);break;default:n(_)}else H0.debug("CB = undefined!");zet();const S=JR(p?f:A).node();if(S&&"remove"in S&&S.remove(),y)throw y;return _},parse:function(t,e){return Cit(),new Tit(t,e).parse(t,e)},parseAsync:async function(t,e){return Cit(),(await Eit(t,e)).parse(t,e)},parseDirective:m5,initialize:function(t={}){var e;(null==t?void 0:t.fontFamily)&&!(null==(e=t.themeVariables)?void 0:e.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),B4=n4({},t),(null==t?void 0:t.theme)&&t.theme in c2?t.themeVariables=c2[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=c2.default.getThemeVariables(t.themeVariables));const n="object"==typeof t?(t=>(_4=n4({},T4),_4=n4(_4,t),t.theme&&c2[t.theme]&&(_4.themeVariables=c2[t.theme].getThemeVariables(t.themeVariables)),I4(_4,S4),_4))(t):M4();j0(n.logLevel),Cit()},getConfig:D4,setConfig:O4,getSiteConfig:M4,updateSiteConfig:t=>(_4=n4(_4,t),I4(_4,S4),_4),reset:()=>{P4()},globalReset:()=>{P4(T4)},defaultConfig:T4});j0(D4().logLevel),P4(D4());const Xit=(t,e,n)=>{H0.warn(t),k4(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}))},Vit=async function(t,e,n){const r=Git.getConfig();let i;if(t&&(Zit.sequenceConfig=t),H0.debug((n?"":"No ")+"Callback function found"),void 0===e)i=document.querySelectorAll(".mermaid");else if("string"==typeof e)i=document.querySelectorAll(e);else if(e instanceof HTMLElement)i=[e];else{if(!(e instanceof NodeList))throw new Error("Invalid argument nodes for mermaid.init");i=e}H0.debug(`Found ${i.length} diagrams`),void 0!==(null==t?void 0:t.startOnLoad)&&(H0.debug("Start On Load: "+(null==t?void 0:t.startOnLoad)),Git.updateSiteConfig({startOnLoad:null==t?void 0:t.startOnLoad}));const a=new x4.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const s=[];for(const t of Array.from(i)){if(H0.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");const e=`mermaid-${a.next()}`;o=t.innerHTML,o=cN(x4.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=x4.detectInit(o);r&&H0.debug("Detected early reinit: ",r);try{await Git.renderAsync(e,o,((r,i)=>{t.innerHTML=r,void 0!==n&&n(e),i&&i(t)}),t)}catch(t){Xit(t,s,Zit.parseError)}}if(s.length>0)throw s[0]},Wit=function(){if(Zit.startOnLoad){const{startOnLoad:t}=Git.getConfig();t&&Zit.init().catch((t=>H0.error("Mermaid failed to initialize",t)))}};"undefined"!=typeof document&&window.addEventListener("load",Wit,!1);const qit=[];let Yit=!1;const Jit=async()=>{if(!Yit){for(Yit=!0;qit.length>0;){const t=qit.shift();if(t)try{await t()}catch(t){H0.error("Error executing queue",t)}}Yit=!1}},Zit={startOnLoad:!0,diagrams:{},mermaidAPI:Git,parse:t=>Git.parse(t,Zit.parseError),parseAsync:t=>new Promise(((e,n)=>{qit.push((()=>new Promise(((r,i)=>{Git.parseAsync(t,Zit.parseError).then((t=>{r(t),e(t)}),(t=>{H0.error("Error parsing",t),i(t),n(t)}))})))),Jit().catch(n)})),render:Git.render,renderAsync:(t,e,n,r)=>new Promise(((i,a)=>{qit.push((()=>new Promise(((o,s)=>{Git.renderAsync(t,e,n,r).then((t=>{o(t),i(t)}),(t=>{H0.error("Error parsing",t),s(t),a(t)}))})))),Jit().catch(a)})),init:async function(t,e,n){try{await Vit(t,e,n)}catch(t){H0.warn("Syntax Error rendering"),k4(t)&&H0.warn(t.str),Zit.parseError&&Zit.parseError(t)}},initThrowsErrors:function(t,e,n){const r=Git.getConfig();let i;if(t&&(Zit.sequenceConfig=t),H0.debug((n?"":"No ")+"Callback function found"),void 0===e)i=document.querySelectorAll(".mermaid");else if("string"==typeof e)i=document.querySelectorAll(e);else if(e instanceof HTMLElement)i=[e];else{if(!(e instanceof NodeList))throw new Error("Invalid argument nodes for mermaid.init");i=e}H0.debug(`Found ${i.length} diagrams`),void 0!==(null==t?void 0:t.startOnLoad)&&(H0.debug("Start On Load: "+(null==t?void 0:t.startOnLoad)),Git.updateSiteConfig({startOnLoad:null==t?void 0:t.startOnLoad}));const a=new x4.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const s=[];for(const t of Array.from(i)){if(H0.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");const e=`mermaid-${a.next()}`;o=t.innerHTML,o=cN(x4.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=x4.detectInit(o);r&&H0.debug("Detected early reinit: ",r);try{Git.render(e,o,((r,i)=>{t.innerHTML=r,void 0!==n&&n(e),i&&i(t)}),t)}catch(t){Xit(t,s,Zit.parseError)}}if(s.length>0)throw s[0]},initThrowsErrorsAsync:Vit,registerExternalDiagrams:async(t,{lazyLoad:e=!0}={})=>{e?Z3(...t):await(async(...t)=>{H0.debug(`Loading ${t.length} external diagrams`);const e=await Promise.allSettled(t.map((async({id:t,detector:e,loader:n})=>{const{diagram:r}=await n();T5(t,r,e)}))),n=e.filter((t=>"rejected"===t.status));if(n.length>0){H0.error(`Failed to load ${n.length} external diagrams`);for(const t of n)H0.error(t);throw new Error(`Failed to load ${n.length} external diagrams`)}})(...t)},initialize:function(t){Git.initialize(t)},parseError:void 0,contentLoaded:Wit,setParseErrorHandler:function(t){Zit.parseError=t}};var tat=null==Zit?void 0:Zit.mermaidAPI;jF.usePlugin(XF,{mermaidAPI:tat,theme:"default",sequence:{useMaxWidth:!1}}),jF.usePlugin(eN,{}),jF.usePlugin(sN);var eat=r((function(t,n){t.exports=function(){function t(e,n,r){function a(s,c){if(!n[s]){if(!e[s]){if(!c&&i)return i();if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};e[s][0].call(u.exports,(function(t){return a(e[s][1][t]||t)}),u,u.exports,t,e,n,r)}return n[s].exports}for(var o=i,s=0;s<r.length;s++)a(r[s]);return a}return t}()({1:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.defaultLayoutOptions,a=void 0===r?{}:r,s=n.algorithms,c=void 0===s?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:s,l=n.workerFactory,u=n.workerUrl;if(i(this,t),this.defaultLayoutOptions=a,this.initialized=!1,void 0===u&&void 0===l)throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var h=l;void 0!==u&&void 0===l&&(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 r(t,[{key:"layout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.layoutOptions,r=void 0===n?this.defaultLayoutOptions:n,i=e.logging,a=void 0!==i&&i,o=e.measureExecutionTime,s=void 0!==o&&o;return t?this.worker.postMessage({cmd:"layout",graph:t,layoutOptions:r,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(i(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 r(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(r,i){n.resolvers[e]=function(t,e){t?(n.convertGwtStyleError(t),i(t)):r(e)},n.worker.postMessage(t)}))}},{key:"receive",value:function(t,e){var n=e.data,r=t.resolvers[n.id];r&&(delete t.resolvers[n.id],n.error?r(n.error):r(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,r){(function(t){(function(){var e;function i(){}function a(){}function o(){}function s(){}function c(){}function l(){}function u(){}function h(){}function f(){}function d(){}function A(){}function g(){}function p(){}function m(){}function b(){}function v(){}function y(){}function w(){}function k(){}function C(){}function x(){}function E(){}function T(){}function B(){}function _(){}function S(){}function L(){}function I(){}function M(){}function O(){}function D(){}function F(){}function N(){}function P(){}function R(){}function Q(){}function U(){}function $(){}function H(){}function j(){}function K(){}function z(){}function G(){}function X(){}function V(){}function W(){}function q(){}function Y(){}function J(){}function Z(){}function tt(){}function et(){}function nt(){}function rt(){}function it(){}function at(){}function ot(){}function st(){}function ct(){}function lt(){}function ut(){}function ht(){}function ft(){}function dt(){}function At(){}function gt(){}function pt(){}function mt(){}function bt(){}function vt(){}function yt(){}function wt(){}function kt(){}function Ct(){}function xt(){}function Et(){}function Tt(){}function Bt(){}function _t(){}function St(){}function Lt(){}function It(){}function Mt(){}function Ot(){}function Dt(){}function Ft(){}function Nt(){}function Pt(){}function Rt(){}function Qt(){}function Ut(){}function $t(){}function Ht(){}function jt(){}function Kt(){}function zt(){}function Gt(){}function Xt(){}function Vt(){}function Wt(){}function qt(){}function Yt(){}function Jt(){}function Zt(){}function te(){}function ee(){}function ne(){}function re(){}function ie(){}function ae(){}function oe(){}function se(){}function ce(){}function le(){}function ue(){}function he(){}function fe(){}function de(){}function Ae(){}function ge(){}function pe(){}function me(){}function be(){}function ve(){}function ye(){}function we(){}function ke(){}function Ce(){}function xe(){}function Ee(){}function Te(){}function Be(){}function _e(){}function Se(){}function Le(){}function Ie(){}function Me(){}function Oe(){}function De(){}function Fe(){}function Ne(){}function Pe(){}function Re(){}function Qe(){}function Ue(){}function $e(){}function He(){}function je(){}function Ke(){}function ze(){}function Ge(){}function Xe(){}function Ve(){}function We(){}function qe(){}function Ye(){}function Je(){}function Ze(){}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 An(){}function gn(){}function pn(){}function mn(){}function bn(){}function vn(){}function yn(){}function wn(){}function kn(){}function Cn(){}function xn(){}function En(){}function Tn(){}function Bn(){}function _n(){}function Sn(){}function Ln(){}function In(){}function Mn(){}function On(){}function Dn(){}function Fn(){}function Nn(){}function Pn(){}function Rn(){}function Qn(){}function Un(){}function $n(){}function Hn(){}function jn(){}function Kn(){}function zn(){}function Gn(){}function Xn(){}function Vn(){}function Wn(){}function qn(){}function Yn(){}function Jn(){}function Zn(){}function tr(){}function er(){}function nr(){}function rr(){}function ir(){}function ar(){}function or(){}function sr(){}function cr(){}function lr(){}function ur(){}function hr(){}function fr(){}function dr(){}function Ar(){}function gr(){}function pr(){}function mr(){}function br(){}function vr(){}function yr(){}function wr(){}function kr(){}function Cr(){}function xr(){}function Er(){}function Tr(){}function Br(){}function _r(){}function Sr(){}function Lr(){}function Ir(){}function Mr(){}function Or(){}function Dr(){}function Fr(){}function Nr(){}function Pr(){}function Rr(){}function Qr(){}function Ur(){}function $r(){}function Hr(){}function jr(){}function Kr(){}function zr(){}function Gr(){}function Xr(){}function Vr(){}function Wr(){}function qr(){}function Yr(){}function Jr(){}function Zr(){}function ti(){}function ei(){}function ni(){}function ri(){}function ii(){}function ai(){}function oi(){}function si(){}function ci(){}function li(){}function ui(){}function hi(){}function fi(){}function di(){}function Ai(){}function gi(){}function pi(){}function mi(){}function bi(){}function vi(){}function yi(){}function wi(){}function ki(){}function Ci(){}function xi(){}function Ei(){}function Ti(){}function Bi(){}function _i(){}function Si(){}function Li(){}function Ii(){}function Mi(){}function Oi(){}function Di(){}function Fi(){}function Ni(){}function Pi(){}function Ri(){}function Qi(){}function Ui(){}function $i(){}function Hi(){}function ji(){}function Ki(){}function zi(){}function Gi(){}function Xi(){}function Vi(){}function Wi(){}function qi(){}function Yi(){}function Ji(){}function Zi(){}function ta(){}function ea(){}function na(){}function ra(){}function ia(){}function aa(){}function oa(){}function sa(){}function ca(){}function la(){}function ua(){}function ha(){}function fa(){}function da(){}function Aa(){}function ga(){}function pa(){}function ma(){}function ba(){}function va(){}function ya(){}function wa(){}function ka(){}function Ca(){}function xa(){}function Ea(){}function Ta(){}function Ba(){}function _a(){}function Sa(){}function La(){}function Ia(){}function Ma(){}function Oa(){}function Da(){}function Fa(){}function Na(){}function Pa(){}function Ra(){}function Qa(){}function Ua(){}function $a(){}function Ha(){}function ja(){}function Ka(){}function za(){}function Ga(){}function Xa(){}function Va(){}function Wa(){}function qa(){}function Ya(){}function Ja(){}function Za(){}function to(){}function eo(){}function no(){}function ro(){}function io(){}function ao(){}function oo(){}function so(){}function co(){}function lo(){}function uo(){}function ho(){}function fo(){}function Ao(){}function go(){}function po(){}function mo(){}function bo(){}function vo(){}function yo(){}function wo(){}function ko(){}function Co(){}function xo(){}function Eo(){}function To(){}function Bo(){}function _o(){}function So(){}function Lo(){}function Io(){}function Mo(){}function Oo(){}function Do(){}function Fo(){}function No(){}function Po(){}function Ro(){}function Qo(){}function Uo(){}function $o(){}function Ho(){}function jo(){}function Ko(){}function zo(){}function Go(){}function Xo(){}function Vo(){}function Wo(){}function qo(){}function Yo(){}function Jo(){}function Zo(){}function ts(){}function es(){}function ns(){}function rs(){}function is(){}function as(){}function os(){}function ss(){}function cs(){}function ls(){}function us(){}function hs(){}function fs(){}function ds(){}function As(){}function gs(){}function ps(){}function ms(){}function bs(){}function vs(){}function ys(){}function ws(){}function ks(){}function Cs(){}function xs(){}function Es(){}function Ts(){}function Bs(){}function _s(){}function Ss(){}function Ls(){}function Is(){}function Ms(){}function Os(){}function Ds(){}function Fs(){}function Ns(){}function Ps(){}function Rs(){}function Qs(){}function Us(){}function $s(){}function Hs(){}function js(){}function Ks(){}function zs(){}function Gs(){}function Xs(){}function Vs(){}function Ws(){}function qs(){}function Ys(){}function Js(){}function Zs(){}function tc(){}function ec(){}function nc(){}function rc(){}function ic(){}function ac(){}function oc(){}function sc(){}function cc(){}function lc(){}function uc(){}function hc(){}function fc(){}function dc(){}function Ac(){}function gc(){}function pc(){}function mc(){}function bc(){}function vc(){}function yc(){}function wc(){}function kc(){}function Cc(){}function xc(){}function Ec(){}function Tc(){}function Bc(){}function _c(){}function Sc(){}function Lc(){}function Ic(){}function Mc(){}function Oc(){}function Dc(){}function Fc(){}function Nc(){}function Pc(){}function Rc(){}function Qc(){}function Uc(){}function $c(){}function Hc(){}function jc(){}function Kc(){}function zc(){}function Gc(){}function Xc(){}function Vc(){}function Wc(){}function qc(){}function Yc(){}function Jc(){}function Zc(){}function tl(){}function el(){}function nl(){}function rl(){}function il(){}function al(){}function ol(){}function sl(){}function cl(){}function ll(){}function ul(){}function hl(){}function fl(){}function dl(){}function Al(){}function gl(){}function pl(){}function ml(){}function bl(){}function vl(){}function yl(){}function wl(){}function kl(){}function Cl(){}function xl(){}function El(){}function Tl(){}function Bl(){}function _l(){}function Sl(){}function Ll(){}function Il(){}function Ml(){}function Ol(){}function Dl(){}function Fl(){}function Nl(){}function Pl(){}function Rl(){}function Ql(){}function Ul(){}function $l(){}function Hl(){}function jl(){}function Kl(){}function zl(){}function Gl(){}function Xl(){}function Vl(){}function Wl(){}function ql(){}function Yl(){}function Jl(){}function Zl(){}function tu(){}function eu(){}function nu(){}function ru(){}function iu(){}function au(){}function ou(){}function su(){}function cu(){}function lu(){}function uu(){}function hu(){}function fu(){}function du(){}function Au(){}function gu(){}function pu(){}function mu(){}function bu(){}function vu(){}function yu(){}function wu(){}function ku(){}function Cu(){}function xu(){}function Eu(){}function Tu(){}function Bu(){}function _u(){}function Su(){}function Lu(){}function Iu(){}function Mu(){}function Ou(){}function Du(){}function Fu(){}function Nu(){}function Pu(){}function Ru(){}function Qu(){ey()}function Uu(){jlt()}function $u(){kmt()}function Hu(){Rwt()}function ju(){wTt()}function Ku(){uPt()}function zu(){Pyt()}function Gu(){rwt()}function Xu(){wE()}function Vu(){mE()}function Wu(){$Q()}function qu(){kE()}function Yu(){_it()}function Ju(){xE()}function Zu(){B6()}function th(){Trt()}function eh(){V8()}function nh(){PZ()}function rh(){Klt()}function ih(){REt()}function ah(){Brt()}function oh(){K2()}function sh(){uVt()}function ch(){jyt()}function lh(){RZ()}function uh(){$Xt()}function hh(){FZ()}function fh(){_rt()}function dh(){qst()}function Ah(){HZ()}function gh(){T7()}function ph(){EE()}function mh(){PIt()}function bh(){zyt()}function vh(){Qat()}function yh(){xEt()}function wh(){fPt()}function kh(){Ubt()}function Ch(){BIt()}function xh(){Not()}function Eh(){UZ()}function Th(){cQt()}function Bh(){IIt()}function _h(){XMt()}function Sh(){O7()}function Lh(){EEt()}function Ih(){cVt()}function Mh(){Glt()}function Oh(){mgt()}function Dh(){H$t()}function Fh(){aQ()}function Nh(){dat()}function Ph(){uUt()}function Rh(t){vV(t)}function Qh(t){this.a=t}function Uh(t){this.a=t}function $h(t){this.a=t}function Hh(t){this.a=t}function jh(t){this.a=t}function Kh(t){this.a=t}function zh(t){this.a=t}function Gh(t){this.a=t}function Xh(t){this.a=t}function Vh(t){this.a=t}function Wh(t){this.a=t}function qh(t){this.a=t}function Yh(t){this.a=t}function Jh(t){this.a=t}function Zh(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.a=t}function af(t){this.a=t}function of(t){this.a=t}function sf(t){this.b=t}function cf(t){this.c=t}function lf(t){this.a=t}function uf(t){this.a=t}function hf(t){this.a=t}function ff(t){this.a=t}function df(t){this.a=t}function Af(t){this.a=t}function gf(t){this.a=t}function pf(t){this.a=t}function mf(t){this.a=t}function bf(t){this.a=t}function vf(t){this.a=t}function yf(t){this.a=t}function wf(t){this.a=t}function kf(t){this.a=t}function Cf(t){this.a=t}function xf(t){this.a=t}function Ef(t){this.a=t}function Tf(){this.a=[]}function Bf(t,e){t.a=e}function _f(t,e){t.a=e}function Sf(t,e){t.b=e}function Lf(t,e){t.b=e}function If(t,e){t.b=e}function Mf(t,e){t.j=e}function Of(t,e){t.g=e}function Df(t,e){t.i=e}function Ff(t,e){t.c=e}function Nf(t,e){t.d=e}function Pf(t,e){t.d=e}function Rf(t,e){t.c=e}function Qf(t,e){t.k=e}function Uf(t,e){t.c=e}function $f(t,e){t.c=e}function Hf(t,e){t.a=e}function jf(t,e){t.a=e}function Kf(t,e){t.f=e}function zf(t,e){t.a=e}function Gf(t,e){t.b=e}function Xf(t,e){t.d=e}function Vf(t,e){t.i=e}function Wf(t,e){t.o=e}function qf(t,e){t.r=e}function Yf(t,e){t.a=e}function Jf(t,e){t.b=e}function Zf(t,e){t.e=e}function td(t,e){t.f=e}function ed(t,e){t.g=e}function nd(t,e){t.e=e}function rd(t,e){t.f=e}function id(t,e){t.f=e}function ad(t,e){t.n=e}function od(t,e){t.a=e}function sd(t,e){t.a=e}function cd(t,e){t.c=e}function ld(t,e){t.c=e}function ud(t,e){t.d=e}function hd(t,e){t.e=e}function fd(t,e){t.g=e}function dd(t,e){t.a=e}function Ad(t,e){t.c=e}function gd(t,e){t.d=e}function pd(t,e){t.e=e}function md(t,e){t.f=e}function bd(t,e){t.j=e}function vd(t,e){t.a=e}function yd(t,e){t.b=e}function wd(t,e){t.a=e}function kd(t){t.b=t.a}function Cd(t){t.c=t.d.d}function xd(t){this.d=t}function Ed(t){this.a=t}function Td(t){this.a=t}function Bd(t){this.a=t}function _d(t){this.a=t}function Sd(t){this.a=t}function Ld(t){this.a=t}function Id(t){this.a=t}function Md(t){this.a=t}function Od(t){this.a=t}function Dd(t){this.a=t}function Fd(t){this.a=t}function Nd(t){this.a=t}function Pd(t){this.a=t}function Rd(t){this.a=t}function Qd(t){this.b=t}function Ud(t){this.b=t}function $d(t){this.b=t}function Hd(t){this.a=t}function jd(t){this.a=t}function Kd(t){this.a=t}function zd(t){this.c=t}function Gd(t){this.c=t}function Xd(t){this.c=t}function Vd(t){this.a=t}function Wd(t){this.a=t}function qd(t){this.a=t}function Yd(t){this.a=t}function Jd(t){this.a=t}function Zd(t){this.a=t}function tA(t){this.a=t}function eA(t){this.a=t}function nA(t){this.a=t}function rA(t){this.a=t}function iA(t){this.a=t}function aA(t){this.a=t}function oA(t){this.a=t}function sA(t){this.a=t}function cA(t){this.a=t}function lA(t){this.a=t}function uA(t){this.a=t}function hA(t){this.a=t}function fA(t){this.a=t}function dA(t){this.a=t}function AA(t){this.a=t}function gA(t){this.a=t}function pA(t){this.a=t}function mA(t){this.a=t}function bA(t){this.a=t}function vA(t){this.a=t}function yA(t){this.a=t}function wA(t){this.a=t}function kA(t){this.a=t}function CA(t){this.a=t}function xA(t){this.a=t}function EA(t){this.a=t}function TA(t){this.a=t}function BA(t){this.a=t}function _A(t){this.a=t}function SA(t){this.a=t}function LA(t){this.a=t}function IA(t){this.a=t}function MA(t){this.a=t}function OA(t){this.a=t}function DA(t){this.a=t}function FA(t){this.a=t}function NA(t){this.a=t}function PA(t){this.a=t}function RA(t){this.a=t}function QA(t){this.e=t}function UA(t){this.a=t}function $A(t){this.a=t}function HA(t){this.a=t}function jA(t){this.a=t}function KA(t){this.a=t}function zA(t){this.a=t}function GA(t){this.a=t}function XA(t){this.a=t}function VA(t){this.a=t}function WA(t){this.a=t}function qA(t){this.a=t}function YA(t){this.a=t}function JA(t){this.a=t}function ZA(t){this.a=t}function tg(t){this.a=t}function eg(t){this.a=t}function ng(t){this.a=t}function rg(t){this.a=t}function ig(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.a=t}function ug(t){this.a=t}function hg(t){this.a=t}function fg(t){this.a=t}function dg(t){this.a=t}function Ag(t){this.a=t}function gg(t){this.a=t}function pg(t){this.a=t}function mg(t){this.a=t}function bg(t){this.a=t}function vg(t){this.a=t}function yg(t){this.a=t}function wg(t){this.a=t}function kg(t){this.a=t}function Cg(t){this.a=t}function xg(t){this.a=t}function Eg(t){this.a=t}function Tg(t){this.a=t}function Bg(t){this.a=t}function _g(t){this.a=t}function Sg(t){this.a=t}function Lg(t){this.a=t}function Ig(t){this.a=t}function Mg(t){this.a=t}function Og(t){this.a=t}function Dg(t){this.a=t}function Fg(t){this.a=t}function Ng(t){this.a=t}function Pg(t){this.a=t}function Rg(t){this.a=t}function Qg(t){this.c=t}function Ug(t){this.b=t}function $g(t){this.a=t}function Hg(t){this.a=t}function jg(t){this.a=t}function Kg(t){this.a=t}function zg(t){this.a=t}function Gg(t){this.a=t}function Xg(t){this.a=t}function Vg(t){this.a=t}function Wg(t){this.a=t}function qg(t){this.a=t}function Yg(t){this.a=t}function Jg(t){this.a=t}function Zg(t){this.a=t}function tp(t){this.a=t}function ep(t){this.a=t}function np(t){this.a=t}function rp(t){this.a=t}function ip(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.a=t}function dp(t){this.a=t}function Ap(t){this.a=t}function gp(t){this.a=t}function pp(t){this.a=t}function mp(t){this.a=t}function bp(t){this.a=t}function vp(t){this.a=t}function yp(t){this.a=t}function wp(t){this.a=t}function kp(t){this.a=t}function Cp(t){this.a=t}function xp(t){this.a=t}function Ep(t){this.a=t}function Tp(t){this.a=t}function Bp(t){this.a=t}function _p(t){this.a=t}function Sp(t){this.a=t}function Lp(t){this.a=t}function Ip(t){this.a=t}function Mp(t){this.a=t}function Op(t){this.a=t}function Dp(t){this.a=t}function Fp(t){this.a=t}function Np(t){this.a=t}function Pp(t){this.a=t}function Rp(t){this.a=t}function Qp(t){this.a=t}function Up(t){this.a=t}function $p(t){this.a=t}function Hp(t){this.a=t}function jp(t){this.a=t}function Kp(t){this.a=t}function zp(t){this.a=t}function Gp(t){this.a=t}function Xp(t){this.a=t}function Vp(t){this.a=t}function Wp(t){this.a=t}function qp(t){this.a=t}function Yp(t){this.a=t}function Jp(t){this.a=t}function Zp(t){this.a=t}function tm(t){this.a=t}function em(t){this.a=t}function nm(t){this.a=t}function rm(t){this.a=t}function im(t){this.a=t}function am(t){this.b=t}function om(t){this.f=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 Am(t){this.a=t}function gm(t){this.a=t}function pm(t){this.a=t}function mm(t){this.a=t}function bm(t){this.b=t}function vm(t){this.c=t}function ym(t){this.e=t}function wm(t){this.a=t}function km(t){this.a=t}function Cm(t){this.a=t}function xm(t){this.a=t}function Em(t){this.a=t}function Tm(t){this.d=t}function Bm(t){this.a=t}function _m(t){this.a=t}function Sm(t){this.e=t}function Lm(){this.a=0}function Im(){DI(this)}function Mm(){OI(this)}function Om(){LG(this)}function Dm(){fW(this)}function Fm(){}function Nm(){this.c=LMe}function Pm(t,e){e.Wb(t)}function Rm(t,e){t.b+=e}function Qm(t){t.b=new ow}function Um(t){return t.e}function $m(t){return t.a}function Hm(t){return t.a}function jm(t){return t.a}function Km(t){return t.a}function zm(t){return t.a}function Gm(){return null}function Xm(){return null}function Vm(){iC(),AXt()}function Wm(t){t.b.tf(t.e)}function qm(t,e){t.b=e-t.b}function Ym(t,e){t.a=e-t.a}function Jm(t,e){e.ad(t.a)}function Zm(t,e){H_t(e,t)}function tb(t,e,n){t.Od(n,e)}function eb(t,e){t.e=e,e.b=t}function nb(t){sQ(),this.a=t}function rb(t){sQ(),this.a=t}function ib(t){sQ(),this.a=t}function ab(t){GX(),this.a=t}function ob(t){EY(),eee.be(t)}function sb(){AD.call(this)}function cb(){AD.call(this)}function lb(){sb.call(this)}function ub(){sb.call(this)}function hb(){sb.call(this)}function fb(){sb.call(this)}function db(){sb.call(this)}function Ab(){sb.call(this)}function gb(){sb.call(this)}function pb(){sb.call(this)}function mb(){sb.call(this)}function bb(){sb.call(this)}function vb(){sb.call(this)}function yb(){this.a=this}function wb(){this.Bb|=256}function kb(){this.b=new EL}function Cb(){Cb=L,new Om}function xb(){lb.call(this)}function Eb(t,e){t.length=e}function Tb(t,e){G$(t.a,e)}function Bb(t,e){zTt(t.c,e)}function _b(t,e){kG(t.b,e)}function Sb(t,e){_bt(t.a,e)}function Lb(t,e){Sft(t.a,e)}function Ib(t,e){fot(t.e,e)}function Mb(t){LLt(t.c,t.b)}function Ob(t,e){t.kc().Nb(e)}function Db(t){this.a=gdt(t)}function Fb(){this.a=new Om}function Nb(){this.a=new Om}function Pb(){this.a=new Mm}function Rb(){this.a=new Mm}function Qb(){this.a=new Mm}function Ub(){this.a=new yt}function $b(){this.a=new v6}function Hb(){this.a=new fe}function jb(){this.a=new Gx}function Kb(){this.a=new D0}function zb(){this.a=new rZ}function Gb(){this.a=new SP}function Xb(){this.a=new Mm}function Vb(){this.a=new Mm}function Wb(){this.a=new Mm}function qb(){this.a=new Mm}function Yb(){this.d=new Mm}function Jb(){this.a=new Fb}function Zb(){this.a=new Om}function tv(){this.b=new Om}function ev(){this.b=new Mm}function nv(){this.e=new Mm}function rv(){this.d=new Mm}function iv(){this.a=new ih}function av(){Mm.call(this)}function ov(){Pb.call(this)}function sv(){MP.call(this)}function cv(){Vb.call(this)}function lv(){uv.call(this)}function uv(){Fm.call(this)}function hv(){Fm.call(this)}function fv(){hv.call(this)}function dv(){dY.call(this)}function Av(){dY.call(this)}function gv(){Gv.call(this)}function pv(){Gv.call(this)}function mv(){Gv.call(this)}function bv(){Xv.call(this)}function vv(){Wx.call(this)}function yv(){rc.call(this)}function wv(){rc.call(this)}function kv(){Jv.call(this)}function Cv(){Jv.call(this)}function xv(){Om.call(this)}function Ev(){Om.call(this)}function Tv(){Om.call(this)}function Bv(){Fb.call(this)}function _v(){wrt.call(this)}function Sv(){wb.call(this)}function Lv(){_O.call(this)}function Iv(){_O.call(this)}function Mv(){Om.call(this)}function Ov(){Om.call(this)}function Dv(){Om.call(this)}function Fv(){yc.call(this)}function Nv(){yc.call(this)}function Pv(){Fv.call(this)}function Rv(){Nu.call(this)}function Qv(t){Aet.call(this,t)}function Uv(t){Aet.call(this,t)}function $v(t){Xh.call(this,t)}function Hv(t){Cx.call(this,t)}function jv(t){Hv.call(this,t)}function Kv(t){Cx.call(this,t)}function zv(){this.a=new Wx}function Gv(){this.a=new Fb}function Xv(){this.a=new Om}function Vv(){this.a=new Mm}function Wv(){this.j=new Mm}function qv(){this.a=new Vo}function Yv(){this.a=new IC}function Jv(){this.a=new vc}function Zv(){Zv=L,Rte=new Ow}function ty(){ty=L,Pte=new Mw}function ey(){ey=L,Ste=new a}function ny(){ny=L,Kte=new rD}function ry(t){Hv.call(this,t)}function iy(t){Hv.call(this,t)}function ay(t){d4.call(this,t)}function oy(t){d4.call(this,t)}function sy(t){XR.call(this,t)}function cy(t){vTt.call(this,t)}function ly(t){Tx.call(this,t)}function uy(t){_x.call(this,t)}function hy(t){_x.call(this,t)}function fy(t){_x.call(this,t)}function dy(t){lz.call(this,t)}function Ay(t){dy.call(this,t)}function gy(){Ef.call(this,{})}function py(t){TO(),this.a=t}function my(t){t.b=null,t.c=0}function by(t,e){t.e=e,BFt(t,e)}function vy(t,e){t.a=e,a_t(t)}function yy(t,e,n){t.a[e.g]=n}function wy(t,e,n){dkt(n,t,e)}function ky(t,e){YP(e.i,t.n)}function Cy(t,e){clt(t).td(e)}function xy(t,e){return t*t/e}function Ey(t,e){return t.g-e.g}function Ty(t){return new xf(t)}function By(t){return new HX(t)}function _y(t){dy.call(this,t)}function Sy(t){dy.call(this,t)}function Ly(t){dy.call(this,t)}function Iy(t){lz.call(this,t)}function My(t){Rat(),this.a=t}function Oy(t){iQ(),this.a=t}function Dy(t){RK(),this.f=t}function Fy(t){RK(),this.f=t}function Ny(t){dy.call(this,t)}function Py(t){dy.call(this,t)}function Ry(t){dy.call(this,t)}function Qy(t){dy.call(this,t)}function Uy(t){dy.call(this,t)}function $y(t){return vV(t),t}function Hy(t){return vV(t),t}function jy(t){return vV(t),t}function Ky(t){return vV(t),t}function zy(t){return vV(t),t}function Gy(t){return t.b==t.c}function Xy(t){return!!t&&t.b}function Vy(t){return!!t&&t.k}function Wy(t){return!!t&&t.j}function qy(t){vV(t),this.a=t}function Yy(t){return Jct(t),t}function Jy(t){pG(t,t.length)}function Zy(t){dy.call(this,t)}function tw(t){dy.call(this,t)}function ew(t){dy.call(this,t)}function nw(t){dy.call(this,t)}function rw(t){dy.call(this,t)}function iw(t){dy.call(this,t)}function aw(t){YD.call(this,t,0)}function ow(){o1.call(this,12,3)}function sw(){sw=L,tee=new k}function cw(){cw=L,qte=new i}function lw(){lw=L,ree=new p}function uw(){uw=L,lee=new b}function hw(){throw Um(new gb)}function fw(){throw Um(new gb)}function dw(){throw Um(new gb)}function Aw(){throw Um(new gb)}function gw(){throw Um(new gb)}function pw(){throw Um(new gb)}function mw(){this.a=xN(bX(QVt))}function bw(t){sQ(),this.a=bX(t)}function vw(t,e){t.Td(e),e.Sd(t)}function yw(t,e){t.a.ec().Mc(e)}function ww(t,e,n){t.c.lf(e,n)}function kw(t){Sy.call(this,t)}function Cw(t){Py.call(this,t)}function xw(){Sd.call(this,"")}function Ew(){Sd.call(this,"")}function Tw(){Sd.call(this,"")}function Bw(){Sd.call(this,"")}function _w(t){Sy.call(this,t)}function Sw(t){Ud.call(this,t)}function Lw(t){hD.call(this,t)}function Iw(t){Sw.call(this,t)}function Mw(){Jh.call(this,null)}function Ow(){Jh.call(this,null)}function Dw(){Dw=L,EY()}function Fw(){Fw=L,vne=bCt()}function Nw(t){return t.a?t.b:0}function Pw(t){return t.a?t.b:0}function Rw(t,e){return t.a-e.a}function Qw(t,e){return t.a-e.a}function Uw(t,e){return t.a-e.a}function $w(t,e){return m9(t,e)}function Hw(t,e){return AZ(t,e)}function jw(t,e){return e in t.a}function Kw(t,e){return t.f=e,t}function zw(t,e){return t.b=e,t}function Gw(t,e){return t.c=e,t}function Xw(t,e){return t.g=e,t}function Vw(t,e){return t.a=e,t}function Ww(t,e){return t.f=e,t}function qw(t,e){return t.k=e,t}function Yw(t,e){return t.a=e,t}function Jw(t,e){return t.e=e,t}function Zw(t,e){return t.e=e,t}function tk(t,e){return t.f=e,t}function ek(t,e){t.b=!0,t.d=e}function nk(t,e){t.b=new fI(e)}function rk(t,e,n){e.td(t.a[n])}function ik(t,e,n){e.we(t.a[n])}function ak(t,e){return t.b-e.b}function ok(t,e){return t.g-e.g}function sk(t,e){return t.s-e.s}function ck(t,e){return t?0:e-1}function lk(t,e){return t?0:e-1}function uk(t,e){return t?e-1:0}function hk(t,e){return e.Yf(t)}function fk(t,e){return t.b=e,t}function dk(t,e){return t.a=e,t}function Ak(t,e){return t.c=e,t}function gk(t,e){return t.d=e,t}function pk(t,e){return t.e=e,t}function mk(t,e){return t.f=e,t}function bk(t,e){return t.a=e,t}function vk(t,e){return t.b=e,t}function yk(t,e){return t.c=e,t}function wk(t,e){return t.c=e,t}function kk(t,e){return t.b=e,t}function Ck(t,e){return t.d=e,t}function xk(t,e){return t.e=e,t}function Ek(t,e){return t.f=e,t}function Tk(t,e){return t.g=e,t}function Bk(t,e){return t.a=e,t}function _k(t,e){return t.i=e,t}function Sk(t,e){return t.j=e,t}function Lk(t,e){return t.k=e,t}function Ik(t,e){return t.j=e,t}function Mk(t,e){REt(),TZ(e,t)}function Ok(t,e,n){HK(t.a,e,n)}function Dk(t){QW.call(this,t)}function Fk(t){QW.call(this,t)}function Nk(t){JR.call(this,t)}function Pk(t){Hdt.call(this,t)}function Rk(t){get.call(this,t)}function Qk(t){gq.call(this,t)}function Uk(t){gq.call(this,t)}function $k(){_M.call(this,"")}function Hk(){this.a=0,this.b=0}function jk(){this.b=0,this.a=0}function Kk(t,e){t.b=0,Ont(t,e)}function zk(t,e){t.c=e,t.b=!0}function Gk(t,e){return t.c._b(e)}function Xk(t){return t.e&&t.e()}function Vk(t){return t?t.d:null}function Wk(t,e){return ght(t.b,e)}function qk(t){return t?t.g:null}function Yk(t){return t?t.i:null}function Jk(t){return wN(t),t.o}function Zk(){Zk=L,dLe=Gwt()}function tC(){tC=L,ALe=sxt()}function eC(){eC=L,YIe=Vwt()}function nC(){nC=L,fOe=Xwt()}function rC(){rC=L,dOe=n_t()}function iC(){iC=L,lIe=irt()}function aC(){throw Um(new gb)}function oC(){throw Um(new gb)}function sC(){throw Um(new gb)}function cC(){throw Um(new gb)}function lC(){throw Um(new gb)}function uC(){throw Um(new gb)}function hC(t){this.a=new zx(t)}function fC(t){hGt(),FXt(this,t)}function dC(t){this.a=new Gz(t)}function AC(t,e){for(;t.ye(e););}function gC(t,e){for(;t.sd(e););}function pC(t,e){return t.a+=e,t}function mC(t,e){return t.a+=e,t}function bC(t,e){return t.a+=e,t}function vC(t,e){return t.a+=e,t}function yC(t){return wV(t),t.a}function wC(t){return t.b!=t.d.c}function kC(t){return t.l|t.m<<22}function CC(t,e){return t.d[e.p]}function xC(t,e){return EFt(t,e)}function EC(t,e,n){t.splice(e,n)}function TC(t){t.c?ONt(t):DNt(t)}function BC(t){this.a=0,this.b=t}function _C(){this.a=new BDt(eke)}function SC(){this.b=new BDt($ye)}function LC(){this.b=new BDt(GCe)}function IC(){this.b=new BDt(GCe)}function MC(){throw Um(new gb)}function OC(){throw Um(new gb)}function DC(){throw Um(new gb)}function FC(){throw Um(new gb)}function NC(){throw Um(new gb)}function PC(){throw Um(new gb)}function RC(){throw Um(new gb)}function QC(){throw Um(new gb)}function UC(){throw Um(new gb)}function $C(){throw Um(new gb)}function HC(){throw Um(new bb)}function jC(){throw Um(new bb)}function KC(t){this.a=new zC(t)}function zC(t){jrt(this,t,SCt())}function GC(t){return!t||gV(t)}function XC(t){return-1!=zOe[t]}function VC(){0!=iee&&(iee=0),oee=-1}function WC(){null==TVt&&(TVt=[])}function qC(t,e){tIt(Vq(t.a),e)}function YC(t,e){tIt(Vq(t.a),e)}function JC(t,e){UO.call(this,t,e)}function ZC(t,e){JC.call(this,t,e)}function tx(t,e){this.b=t,this.c=e}function ex(t,e){this.b=t,this.a=e}function nx(t,e){this.a=t,this.b=e}function rx(t,e){this.a=t,this.b=e}function ix(t,e){this.a=t,this.b=e}function ax(t,e){this.a=t,this.b=e}function ox(t,e){this.a=t,this.b=e}function sx(t,e){this.a=t,this.b=e}function cx(t,e){this.a=t,this.b=e}function lx(t,e){this.a=t,this.b=e}function ux(t,e){this.b=t,this.a=e}function hx(t,e){this.b=t,this.a=e}function fx(t,e){this.b=t,this.a=e}function dx(t,e){this.b=t,this.a=e}function Ax(t,e){this.f=t,this.g=e}function gx(t,e){this.e=t,this.d=e}function px(t,e){this.g=t,this.i=e}function mx(t,e){this.a=t,this.b=e}function bx(t,e){this.a=t,this.f=e}function vx(t,e){this.b=t,this.c=e}function yx(t,e){this.a=t,this.b=e}function wx(t,e){this.a=t,this.b=e}function kx(t,e){this.a=t,this.b=e}function Cx(t){iD(t.dc()),this.c=t}function xx(t){this.b=Q$(bX(t),83)}function Ex(t){this.a=Q$(bX(t),83)}function Tx(t){this.a=Q$(bX(t),15)}function Bx(t){this.a=Q$(bX(t),15)}function _x(t){this.b=Q$(bX(t),47)}function Sx(){this.q=new e.Date}function Lx(){Lx=L,Uee=new I}function Ix(){Ix=L,hne=new B}function Mx(t){return t.f.c+t.g.c}function Ox(t,e){return t.b.Hc(e)}function Dx(t,e){return t.b.Ic(e)}function Fx(t,e){return t.b.Qc(e)}function Nx(t,e){return t.b.Hc(e)}function Px(t,e){return t.c.uc(e)}function Rx(t,e){return t.a._b(e)}function Qx(t,e){return Oht(t.c,e)}function Ux(t,e){return cG(t.b,e)}function $x(t,e){return t>e&&e<SWt}function Hx(t,e){return t.Gc(e),t}function jx(t,e){return Qit(t,e),t}function Kx(t){return zX(),t?cee:see}function zx(t){Zst.call(this,t,0)}function Gx(){Gz.call(this,null)}function Xx(){Q8.call(this,null)}function Vx(t){this.c=t,Stt(this)}function Wx(){EM(this),bq(this)}function qx(t,e){wV(t),t.a.Nb(e)}function Yx(t,e){return t.Gc(e),t}function Jx(t,e){return t.a.f=e,t}function Zx(t,e){return t.a.d=e,t}function tE(t,e){return t.a.g=e,t}function eE(t,e){return t.a.j=e,t}function nE(t,e){return t.a.a=e,t}function rE(t,e){return t.a.d=e,t}function iE(t,e){return t.a.e=e,t}function aE(t,e){return t.a.g=e,t}function oE(t,e){return t.a.f=e,t}function sE(t){return t.b=!1,t}function cE(){cE=L,Ene=new TL}function lE(){lE=L,Tne=new BL}function uE(){uE=L,Une=new G}function hE(){hE=L,pse=new Pe}function fE(){fE=L,nae=new BF}function dE(){dE=L,Zne=new lt}function AE(){AE=L,vse=new Re}function gE(){gE=L,sre=new At}function pE(){pE=L,Hoe=new ve}function mE(){mE=L,Rse=new Hk}function bE(){bE=L,joe=new Te}function vE(){vE=L,Xoe=new DK}function yE(){yE=L,cse=new xe}function wE(){wE=L,Qse=new dn}function kE(){kE=L,Jce=new Yn}function CE(){CE=L,fle=new Oi}function xE(){xE=L,Vle=new ia}function EE(){EE=L,Gwe=new Q2}function TE(){TE=L,zCe=new IE}function BE(){BE=L,VCe=new pN}function _E(){_E=L,Hxe=new zV}function SE(){SE=L,Gme=new Ws}function LE(){Ert(),this.c=new ow}function IE(){Ax.call(this,$1t,0)}function ME(t,e){Ypt(t.c.b,e.c,e)}function OE(t,e){Ypt(t.c.c,e.b,e)}function DE(t,e,n){mZ(t.d,e.f,n)}function FE(t,e,n,r){Ymt(t,r,e,n)}function NE(t,e,n,r){oDt(r,t,e,n)}function PE(t,e,n,r){sGt(r,t,e,n)}function RE(t,e){return t.a=e.g,t}function QE(t,e){return ewt(t.a,e)}function UE(t){return t.b?t.b:t.a}function $E(t){return(t.c+t.a)/2}function HE(){HE=L,uLe=new nc}function jE(){jE=L,TLe=new hc}function KE(){KE=L,DIe=new Ev}function zE(){zE=L,jIe=new Tv}function GE(){GE=L,HIe=new Mv}function XE(){XE=L,qIe=new Dv}function VE(){VE=L,IMe=new jM}function WE(){WE=L,MMe=new KM}function qE(){qE=L,eOe=new Dl}function YE(){YE=L,rOe=new Fl}function JE(){JE=L,pIe=new Om}function ZE(){ZE=L,GMe=new Mm}function tT(){tT=L,kDe=new Ru}function eT(t){e.clearTimeout(t)}function nT(t){this.a=Q$(bX(t),224)}function rT(t){return Q$(t,42).cd()}function iT(t){return t.b<t.d.gc()}function aT(t,e){return TK(t.a,e)}function oT(t,e){return Vut(t,e)>0}function sT(t,e){return Vut(t,e)<0}function cT(t,e){return t.a.get(e)}function lT(t,e){return e.split(t)}function uT(t,e){return cG(t.e,e)}function hT(t){return vV(t),!1}function fT(t){f1.call(this,t,21)}function dT(t,e){PJ.call(this,t,e)}function AT(t,e){Ax.call(this,t,e)}function gT(t,e){Ax.call(this,t,e)}function pT(t){XX(),XR.call(this,t)}function mT(t,e){yK(t,t.length,e)}function bT(t,e){VG(t,t.length,e)}function vT(t,e,n){e.ud(t.a.Ge(n))}function yT(t,e,n){e.we(t.a.Fe(n))}function wT(t,e,n){e.td(t.a.Kb(n))}function kT(t,e,n){t.Mb(n)&&e.td(n)}function CT(t,e,n){t.splice(e,0,n)}function xT(t,e){return xD(t.e,e)}function ET(t,e){this.d=t,this.e=e}function TT(t,e){this.b=t,this.a=e}function BT(t,e){this.b=t,this.a=e}function _T(t,e){this.b=t,this.a=e}function ST(t,e){this.a=t,this.b=e}function LT(t,e){this.a=t,this.b=e}function IT(t,e){this.a=t,this.b=e}function MT(t,e){this.a=t,this.b=e}function OT(t,e){this.a=t,this.b=e}function DT(t,e){this.b=t,this.a=e}function FT(t,e){this.b=t,this.a=e}function NT(t,e){Ax.call(this,t,e)}function PT(t,e){Ax.call(this,t,e)}function RT(t,e){Ax.call(this,t,e)}function QT(t,e){Ax.call(this,t,e)}function UT(t,e){Ax.call(this,t,e)}function $T(t,e){Ax.call(this,t,e)}function HT(t,e){Ax.call(this,t,e)}function jT(t,e){Ax.call(this,t,e)}function KT(t,e){Ax.call(this,t,e)}function zT(t,e){Ax.call(this,t,e)}function GT(t,e){Ax.call(this,t,e)}function XT(t,e){Ax.call(this,t,e)}function VT(t,e){Ax.call(this,t,e)}function WT(t,e){Ax.call(this,t,e)}function qT(t,e){Ax.call(this,t,e)}function YT(t,e){Ax.call(this,t,e)}function JT(t,e){Ax.call(this,t,e)}function ZT(t,e){Ax.call(this,t,e)}function tB(t,e){this.a=t,this.b=e}function eB(t,e){this.a=t,this.b=e}function nB(t,e){this.a=t,this.b=e}function rB(t,e){this.a=t,this.b=e}function iB(t,e){this.a=t,this.b=e}function aB(t,e){this.a=t,this.b=e}function oB(t,e){this.a=t,this.b=e}function sB(t,e){this.a=t,this.b=e}function cB(t,e){this.a=t,this.b=e}function lB(t,e){this.b=t,this.a=e}function uB(t,e){this.b=t,this.a=e}function hB(t,e){this.b=t,this.a=e}function fB(t,e){this.b=t,this.a=e}function dB(t,e){this.c=t,this.d=e}function AB(t,e){this.e=t,this.d=e}function gB(t,e){this.a=t,this.b=e}function pB(t,e){this.b=e,this.c=t}function mB(t,e){Ax.call(this,t,e)}function bB(t,e){Ax.call(this,t,e)}function vB(t,e){Ax.call(this,t,e)}function yB(t,e){Ax.call(this,t,e)}function wB(t,e){Ax.call(this,t,e)}function kB(t,e){Ax.call(this,t,e)}function CB(t,e){Ax.call(this,t,e)}function xB(t,e){Ax.call(this,t,e)}function EB(t,e){Ax.call(this,t,e)}function TB(t,e){Ax.call(this,t,e)}function BB(t,e){Ax.call(this,t,e)}function _B(t,e){Ax.call(this,t,e)}function SB(t,e){Ax.call(this,t,e)}function LB(t,e){Ax.call(this,t,e)}function IB(t,e){Ax.call(this,t,e)}function MB(t,e){Ax.call(this,t,e)}function OB(t,e){Ax.call(this,t,e)}function DB(t,e){Ax.call(this,t,e)}function FB(t,e){Ax.call(this,t,e)}function NB(t,e){Ax.call(this,t,e)}function PB(t,e){Ax.call(this,t,e)}function RB(t,e){Ax.call(this,t,e)}function QB(t,e){Ax.call(this,t,e)}function UB(t,e){Ax.call(this,t,e)}function $B(t,e){Ax.call(this,t,e)}function HB(t,e){Ax.call(this,t,e)}function jB(t,e){Ax.call(this,t,e)}function KB(t,e){Ax.call(this,t,e)}function zB(t,e){Ax.call(this,t,e)}function GB(t,e){Ax.call(this,t,e)}function XB(t,e){Ax.call(this,t,e)}function VB(t,e){Ax.call(this,t,e)}function WB(t,e){Ax.call(this,t,e)}function qB(t,e){Ax.call(this,t,e)}function YB(t,e){this.b=t,this.a=e}function JB(t,e){this.a=t,this.b=e}function ZB(t,e){this.a=t,this.b=e}function t_(t,e){this.a=t,this.b=e}function e_(t,e){this.a=t,this.b=e}function n_(t,e){Ax.call(this,t,e)}function r_(t,e){Ax.call(this,t,e)}function i_(t,e){this.b=t,this.d=e}function a_(t,e){Ax.call(this,t,e)}function o_(t,e){Ax.call(this,t,e)}function s_(t,e){this.a=t,this.b=e}function c_(t,e){this.a=t,this.b=e}function l_(t,e){Ax.call(this,t,e)}function u_(t,e){Ax.call(this,t,e)}function h_(t,e){Ax.call(this,t,e)}function f_(t,e){Ax.call(this,t,e)}function d_(t,e){Ax.call(this,t,e)}function A_(t,e){Ax.call(this,t,e)}function g_(t,e){Ax.call(this,t,e)}function p_(t,e){Ax.call(this,t,e)}function m_(t,e){Ax.call(this,t,e)}function b_(t,e){Ax.call(this,t,e)}function v_(t,e){Ax.call(this,t,e)}function y_(t,e){Ax.call(this,t,e)}function w_(t,e){Ax.call(this,t,e)}function k_(t,e){Ax.call(this,t,e)}function C_(t,e){Ax.call(this,t,e)}function x_(t,e){Ax.call(this,t,e)}function E_(t,e){return xD(t.c,e)}function T_(t,e){return xD(e.b,t)}function B_(t,e){return-t.b.Je(e)}function __(t,e){return xD(t.g,e)}function S_(t,e){Ax.call(this,t,e)}function L_(t,e){Ax.call(this,t,e)}function I_(t,e){this.a=t,this.b=e}function M_(t,e){this.a=t,this.b=e}function O_(t,e){this.a=t,this.b=e}function D_(t,e){Ax.call(this,t,e)}function F_(t,e){Ax.call(this,t,e)}function N_(t,e){Ax.call(this,t,e)}function P_(t,e){Ax.call(this,t,e)}function R_(t,e){Ax.call(this,t,e)}function Q_(t,e){Ax.call(this,t,e)}function U_(t,e){Ax.call(this,t,e)}function $_(t,e){Ax.call(this,t,e)}function H_(t,e){Ax.call(this,t,e)}function j_(t,e){Ax.call(this,t,e)}function K_(t,e){Ax.call(this,t,e)}function z_(t,e){Ax.call(this,t,e)}function G_(t,e){Ax.call(this,t,e)}function X_(t,e){Ax.call(this,t,e)}function V_(t,e){Ax.call(this,t,e)}function W_(t,e){Ax.call(this,t,e)}function q_(t,e){this.a=t,this.b=e}function Y_(t,e){this.a=t,this.b=e}function J_(t,e){this.a=t,this.b=e}function Z_(t,e){this.a=t,this.b=e}function tS(t,e){this.a=t,this.b=e}function eS(t,e){this.a=t,this.b=e}function nS(t,e){this.a=t,this.b=e}function rS(t,e){Ax.call(this,t,e)}function iS(t,e){this.a=t,this.b=e}function aS(t,e){this.a=t,this.b=e}function oS(t,e){this.a=t,this.b=e}function sS(t,e){this.a=t,this.b=e}function cS(t,e){this.a=t,this.b=e}function lS(t,e){this.a=t,this.b=e}function uS(t,e){this.b=t,this.a=e}function hS(t,e){this.b=t,this.a=e}function fS(t,e){this.b=t,this.a=e}function dS(t,e){this.b=t,this.a=e}function AS(t,e){this.a=t,this.b=e}function gS(t,e){this.a=t,this.b=e}function pS(t,e){YOt(t.a,Q$(e,56))}function mS(t,e){p9(t.a,Q$(e,11))}function bS(t,e){return cH(),e!=t}function vS(){return Fw(),new vne}function yS(){$Z(),this.b=new Fb}function wS(){AFt(),this.a=new Fb}function kS(){NZ(),NK.call(this)}function CS(t,e){Ax.call(this,t,e)}function xS(t,e){this.a=t,this.b=e}function ES(t,e){this.a=t,this.b=e}function TS(t,e){this.a=t,this.b=e}function BS(t,e){this.a=t,this.b=e}function _S(t,e){this.a=t,this.b=e}function SS(t,e){this.a=t,this.b=e}function LS(t,e){this.d=t,this.b=e}function IS(t,e){this.d=t,this.e=e}function MS(t,e){this.f=t,this.c=e}function OS(t,e){this.b=t,this.c=e}function DS(t,e){this.i=t,this.g=e}function FS(t,e){this.e=t,this.a=e}function NS(t,e){this.a=t,this.b=e}function PS(t,e){t.i=null,ait(t,e)}function RS(t,e){t&&XV(aIe,t,e)}function QS(t,e){return rgt(t.a,e)}function US(t){return agt(t.c,t.b)}function $S(t){return t?t.dd():null}function HS(t){return null==t?null:t}function jS(t){return typeof t===IVt}function KS(t){return typeof t===MVt}function zS(t){return typeof t===OVt}function GS(t,e){return t.Hd().Xb(e)}function XS(t,e){return Wat(t.Kc(),e)}function VS(t,e){return 0==Vut(t,e)}function WS(t,e){return Vut(t,e)>=0}function qS(t,e){return 0!=Vut(t,e)}function YS(t){return""+(vV(t),t)}function JS(t,e){return t.substr(e)}function ZS(t){return Kdt(t),t.d.gc()}function tL(t){return KLt(t,t.c),t}function eL(t){return qH(null==t),t}function nL(t,e){return t.a+=""+e,t}function rL(t,e){return t.a+=""+e,t}function iL(t,e){return t.a+=""+e,t}function aL(t,e){return t.a+=""+e,t}function oL(t,e){return t.a+=""+e,t}function sL(t,e){return t.a+=""+e,t}function cL(t,e){n5(t,e,t.a,t.a.a)}function lL(t,e){n5(t,e,t.c.b,t.c)}function uL(t,e,n){Pkt(e,NBt(t,n))}function hL(t,e,n){Pkt(e,NBt(t,n))}function fL(t,e){ktt(new SO(t),e)}function dL(t,e){t.q.setTime(y2(e))}function AL(t,e){jz.call(this,t,e)}function gL(t,e){jz.call(this,t,e)}function pL(t,e){jz.call(this,t,e)}function mL(t){LG(this),Cat(this,t)}function bL(t){return u1(t,0),null}function vL(t){return t.a=0,t.b=0,t}function yL(t,e){return t.a=e.g+1,t}function wL(t,e){return 2==t.j[e.p]}function kL(t){return sX(Q$(t,79))}function CL(){CL=L,Sie=hut(tmt())}function xL(){xL=L,Yce=hut(kDt())}function EL(){this.b=new zx(tet(12))}function TL(){this.b=0,this.a=!1}function BL(){this.b=0,this.a=!1}function _L(t){this.a=t,Qu.call(this)}function SL(t){this.a=t,Qu.call(this)}function LL(t,e){eP.call(this,t,e)}function IL(t,e){ZP.call(this,t,e)}function ML(t,e){DS.call(this,t,e)}function OL(t,e){Lot.call(this,t,e)}function DL(t,e){VD.call(this,t,e)}function FL(t,e){JE(),XV(pIe,t,e)}function NL(t,e){return lF(t.a,0,e)}function PL(t,e){return t.a.a.a.cc(e)}function RL(t,e){return HS(t)===HS(e)}function QL(t,e){return Tft(t.a,e.a)}function UL(t,e){return wM(t.a,e.a)}function $L(t,e){return RG(t.a,e.a)}function HL(t,e){return t.indexOf(e)}function jL(t,e){return t==e?0:t?1:-1}function KL(t){return t<10?"0"+t:""+t}function zL(t){return bX(t),new _L(t)}function GL(t){return CM(t.l,t.m,t.h)}function XL(t){return TJ((vV(t),t))}function VL(t){return TJ((vV(t),t))}function WL(t,e){return wM(t.g,e.g)}function qL(t){return typeof t===MVt}function YL(t){return t==Yoe||t==tse}function JL(t){return t==Yoe||t==Joe}function ZL(t){return w9(t.b.b,t,0)}function tI(t){this.a=vS(),this.b=t}function eI(t){this.a=vS(),this.b=t}function nI(t,e){return G$(t.a,e),e}function rI(t,e){return G$(t.c,e),t}function iI(t,e){return Yat(t.a,e),t}function aI(t,e){return HQ(),e.a+=t}function oI(t,e){return HQ(),e.a+=t}function sI(t,e){return HQ(),e.c+=t}function cI(t,e){j7(t,0,t.length,e)}function lI(){tA.call(this,new p4)}function uI(){aK.call(this,0,0,0,0)}function hI(){KW.call(this,0,0,0,0)}function fI(t){this.a=t.a,this.b=t.b}function dI(t){return t==PBe||t==RBe}function AI(t){return t==UBe||t==NBe}function gI(t){return t==lbe||t==cbe}function pI(t){return t!=V_e&&t!=W_e}function mI(t){return t.Lg()&&t.Mg()}function bI(t){return mW(Q$(t,118))}function vI(t){return Yat(new Q2,t)}function yI(t,e){return new Lot(e,t)}function wI(t,e){return new Lot(e,t)}function kI(t,e,n){wnt(t,e),knt(t,n)}function CI(t,e,n){Ent(t,e),xnt(t,n)}function xI(t,e,n){Tnt(t,e),Bnt(t,n)}function EI(t,e,n){Cnt(t,e),Snt(t,n)}function TI(t,e,n){_nt(t,e),Lnt(t,n)}function BI(t,e){Flt(t,e),Dnt(t,t.D)}function _I(t){MS.call(this,t,!0)}function SI(t,e,n){MN.call(this,t,e,n)}function LI(t){SNt(),cot.call(this,t)}function II(){AT.call(this,"Head",1)}function MI(){AT.call(this,"Tail",3)}function OI(t){t.c=O8(Lte,$Vt,1,0,5,1)}function DI(t){t.a=O8(Lte,$Vt,1,8,5,1)}function FI(t){Set(t.xf(),new xA(t))}function NI(t){return null!=t?Zct(t):0}function PI(t,e){return Bet(e,GJ(t))}function RI(t,e){return Bet(e,GJ(t))}function QI(t,e){return t[t.length]=e}function UI(t,e){return t[t.length]=e}function $I(t){return R$(t.b.Kc(),t.a)}function HI(t,e){return zrt(EX(t.d),e)}function jI(t,e){return zrt(EX(t.g),e)}function KI(t,e){return zrt(EX(t.j),e)}function zI(t,e){eP.call(this,t.b,e)}function GI(t){aK.call(this,t,t,t,t)}function XI(t){return t.b&&V$t(t),t.a}function VI(t){return t.b&&V$t(t),t.c}function WI(t,e){Vne||(t.b=e)}function qI(t,e,n){return LX(t,e,n),n}function YI(t,e,n){LX(t.c[e.g],e.g,n)}function JI(t,e,n){Q$(t.c,69).Xh(e,n)}function ZI(t,e,n){xI(n,n.i+t,n.j+e)}function tM(t,e){l7(i4(t.a),t1(e))}function eM(t,e){l7(U9(t.a),e1(e))}function nM(t){dVt(),Sm.call(this,t)}function rM(t){return null==t?0:Zct(t)}function iM(){iM=L,sye=new $dt(o_e)}function aM(){aM=L,new oM,new Mm}function oM(){new Om,new Om,new Om}function sM(){sM=L,Cb(),nee=new Om}function cM(){cM=L,e.Math.log(2)}function lM(){lM=L,jE(),DMe=TLe}function uM(){throw Um(new Zy(Cte))}function hM(){throw Um(new Zy(Cte))}function fM(){throw Um(new Zy(xte))}function dM(){throw Um(new Zy(xte))}function AM(t){this.a=t,V$.call(this,t)}function gM(t){this.a=t,xx.call(this,t)}function pM(t){this.a=t,xx.call(this,t)}function mM(t,e){bK(t.c,t.c.length,e)}function bM(t){return t.a<t.c.c.length}function vM(t){return t.a<t.c.a.length}function yM(t,e){return t.a?t.b:e.De()}function wM(t,e){return t<e?-1:t>e?1:0}function kM(t,e){return Vut(t,e)>0?t:e}function CM(t,e,n){return{l:t,m:e,h:n}}function xM(t,e){null!=t.a&&mS(e,t.a)}function EM(t){t.a=new M,t.c=new M}function TM(t){this.b=t,this.a=new Mm}function BM(t){this.b=new ee,this.a=t}function _M(t){IP.call(this),this.a=t}function SM(){AT.call(this,"Range",2)}function LM(){tkt(),this.a=new BDt(Koe)}function IM(t,e){bX(e),wW(t).Jc(new d)}function MM(t,e){return QZ(),e.n.b+=t}function OM(t,e,n){return XV(t.g,n,e)}function DM(t,e,n){return XV(t.k,n,e)}function FM(t,e){return XV(t.a,e.a,e)}function NM(t,e,n){return _gt(e,n,t.c)}function PM(t){return new O_(t.c,t.d)}function RM(t){return new O_(t.c,t.d)}function QM(t){return new O_(t.a,t.b)}function UM(t,e){return tzt(t.a,e,null)}function $M(t){xZ(t,null),CZ(t,null)}function HM(t){GZ(t,null),XZ(t,null)}function jM(){VD.call(this,null,null)}function KM(){WD.call(this,null,null)}function zM(t){this.a=t,Om.call(this)}function GM(t){this.b=(xq(),new zd(t))}function XM(t){t.j=O8(Qee,cWt,310,0,0,1)}function VM(t,e,n){t.c.Vc(e,Q$(n,133))}function WM(t,e,n){t.c.ji(e,Q$(n,133))}function qM(t,e){cjt(t),t.Gc(Q$(e,15))}function YM(t,e){return Ujt(t.c,t.b,e)}function JM(t,e){return new gD(t.Kc(),e)}function ZM(t,e){return-1!=Qst(t.Kc(),e)}function tO(t,e){return null!=t.a.Bc(e)}function eO(t){return t.Ob()?t.Pb():null}function nO(t){return Ugt(t,0,t.length)}function rO(t,e){return null!=t&&Wmt(t,e)}function iO(t,e){t.q.setHours(e),h$t(t,e)}function aO(t,e){t.c&&(FH(e),vJ(e))}function oO(t,e,n){Q$(t.Kb(n),164).Nb(e)}function sO(t,e,n){return $Kt(t,e,n),n}function cO(t,e,n){t.a=1502^e,t.b=n^aYt}function lO(t,e,n){return t.a[e.g][n.g]}function uO(t,e){return t.a[e.c.p][e.p]}function hO(t,e){return t.e[e.c.p][e.p]}function fO(t,e){return t.c[e.c.p][e.p]}function dO(t,e){return t.j[e.p]=pOt(e)}function AO(t,e){return l6(t.f,e.tg())}function gO(t,e){return l6(t.b,e.tg())}function pO(t,e){return t.a<zR(e)?-1:1}function mO(t,e,n){return n?0!=e:e!=t-1}function bO(t,e,n){return t.a=e,t.b=n,t}function vO(t,e){return t.a*=e,t.b*=e,t}function yO(t,e,n){return LX(t.g,e,n),n}function wO(t,e,n,r){LX(t.a[e.g],n.g,r)}function kO(t,e){PF(e,t.a.a.a,t.a.a.b)}function CO(t){t.a=Q$(vot(t.b.a,4),126)}function xO(t){t.a=Q$(vot(t.b.a,4),126)}function EO(t){_Y(t,n8t),$Ot(t,_Gt(t))}function TO(){TO=L,xne=new py(null)}function BO(){(BO=L)(),Lne=new z}function _O(){this.Bb|=256,this.Bb|=512}function SO(t){this.i=t,this.f=this.i.j}function LO(t,e,n){bH.call(this,t,e,n)}function IO(t,e,n){LO.call(this,t,e,n)}function MO(t,e,n){LO.call(this,t,e,n)}function OO(t,e,n){IO.call(this,t,e,n)}function DO(t,e,n){bH.call(this,t,e,n)}function FO(t,e,n){bH.call(this,t,e,n)}function NO(t,e,n){CH.call(this,t,e,n)}function PO(t,e,n){CH.call(this,t,e,n)}function RO(t,e,n){NO.call(this,t,e,n)}function QO(t,e,n){DO.call(this,t,e,n)}function UO(t,e){this.a=t,xx.call(this,e)}function $O(t,e){this.a=t,aw.call(this,e)}function HO(t,e){this.a=t,aw.call(this,e)}function jO(t,e){this.a=t,aw.call(this,e)}function KO(t){this.a=t,cf.call(this,t.d)}function zO(t){this.c=t,this.a=this.c.a}function GO(t,e){this.a=e,aw.call(this,t)}function XO(t,e){this.a=e,d4.call(this,t)}function VO(t,e){this.a=t,d4.call(this,e)}function WO(t,e){return fz(hz(t.c)).Xb(e)}function qO(t,e){return edt(t,new Tw,e).a}function YO(t,e){return bX(e),new JO(t,e)}function JO(t,e){this.a=e,_x.call(this,t)}function ZO(t){this.b=t,this.a=this.b.a.e}function tD(t){t.b.Qb(),--t.d.f.d,LK(t.d)}function eD(t){Jh.call(this,Q$(bX(t),35))}function nD(t){Jh.call(this,Q$(bX(t),35))}function rD(){Ax.call(this,"INSTANCE",0)}function iD(t){if(!t)throw Um(new fb)}function aD(t){if(!t)throw Um(new db)}function oD(t){if(!t)throw Um(new bb)}function sD(){sD=L,qE(),nOe=new Ph}function cD(){cD=L,pee=!1,mee=!0}function lD(t){Sd.call(this,(vV(t),t))}function uD(t){Sd.call(this,(vV(t),t))}function hD(t){Ud.call(this,t),this.a=t}function fD(t){$d.call(this,t),this.a=t}function dD(t){Sw.call(this,t),this.a=t}function AD(){XM(this),yq(this),this._d()}function gD(t,e){this.a=e,_x.call(this,t)}function pD(t,e){return new PBt(t.a,t.b,e)}function mD(t,e){return t.lastIndexOf(e)}function bD(t,e,n){return t.indexOf(e,n)}function vD(t){return null==t?KVt:Udt(t)}function yD(t){return null==t?null:t.name}function wD(t){return null!=t.a?t.a:null}function kD(t){return wC(t.a)?a1(t):null}function CD(t,e){return null!=LJ(t.a,e)}function xD(t,e){return!!e&&t.b[e.g]==e}function ED(t){return t.$H||(t.$H=++rre)}function TD(t){return t.l+t.m*_qt+t.h*Sqt}function BD(t,e){return G$(e.a,t.a),t.a}function _D(t,e){return G$(e.b,t.a),t.a}function SD(t,e){return G$(e.a,t.a),t.a}function LD(t){return EF(null!=t.a),t.a}function ID(t){tA.call(this,new $8(t))}function MD(t,e){Ept.call(this,t,e,null)}function OD(t){this.a=t,Qd.call(this,t)}function DD(){DD=L,Iie=new eP(AJt,0)}function FD(t,e){return++t.b,G$(t.a,e)}function ND(t,e){return++t.b,b9(t.a,e)}function PD(t,e){return Tft(t.n.a,e.n.a)}function RD(t,e){return Tft(t.c.d,e.c.d)}function QD(t,e){return Tft(t.c.c,e.c.c)}function UD(t,e){return Q$(c6(t.b,e),15)}function $D(t,e){return t.n.b=(vV(e),e)}function HD(t,e){return t.n.b=(vV(e),e)}function jD(t){return bM(t.a)||bM(t.b)}function KD(t,e,n){return g3(t,e,n,t.b)}function zD(t,e,n){return g3(t,e,n,t.c)}function GD(t,e,n){Q$(D9(t,e),21).Fc(n)}function XD(t,e,n){Sft(t.a,n),_bt(t.a,e)}function VD(t,e){VE(),this.a=t,this.b=e}function WD(t,e){WE(),this.b=t,this.c=e}function qD(t,e){RK(),this.f=e,this.d=t}function YD(t,e){f6(e,t),this.d=t,this.c=e}function JD(t){var e;e=t.a,t.a=t.b,t.b=e}function ZD(t){return HQ(),!!t&&!t.dc()}function tF(t){return new c4(3,t)}function eF(t,e){return new hR(t,t.gc(),e)}function nF(t){return ny(),Ttt((DZ(),Gte),t)}function rF(t){this.d=t,SO.call(this,t)}function iF(t){this.c=t,SO.call(this,t)}function aF(t){this.c=t,rF.call(this,t)}function oF(){CE(),this.b=new bg(this)}function sF(t){return hrt(t,LWt),new q6(t)}function cF(t){return EY(),parseInt(t)||-1}function lF(t,e,n){return t.substr(e,n-e)}function uF(t,e,n){return bD(t,qxt(e),n)}function hF(t){return XG(t.c,t.c.length)}function fF(t){return null!=t.f?t.f:""+t.g}function dF(t){return null!=t.f?t.f:""+t.g}function AF(t){return EF(0!=t.b),t.a.a.c}function gF(t){return EF(0!=t.b),t.c.b.c}function pF(t){rO(t,150)&&Q$(t,150).Gh()}function mF(t){return t.b=Q$(mq(t.a),42)}function bF(t){cE(),this.b=t,this.a=!0}function vF(t){lE(),this.b=t,this.a=!0}function yF(t){t.d=new TF(t),t.e=new Om}function wF(t){if(!t)throw Um(new pb)}function kF(t){if(!t)throw Um(new fb)}function CF(t){if(!t)throw Um(new db)}function xF(t){if(!t)throw Um(new ub)}function EF(t){if(!t)throw Um(new bb)}function TF(t){J$.call(this,t,null,null)}function BF(){Ax.call(this,"POLYOMINO",0)}function _F(t,e,n,r){sz.call(this,t,e,n,r)}function SF(t,e){return REt(),YSt(t,e.e,e)}function LF(t,e,n){return SE(),n.qg(t,e)}function IF(t,e){return!!t.q&&cG(t.q,e)}function MF(t,e){return t>0?e*e/t:e*e*100}function OF(t,e){return t>0?e/(t*t):100*e}function DF(t,e,n){return G$(e,sAt(t,n))}function FF(t,e,n){O7(),t.Xe(e)&&n.td(t)}function NF(t,e,n){t.Zc(e).Rb(n)}function PF(t,e,n){return t.a+=e,t.b+=n,t}function RF(t,e,n){return t.a*=e,t.b*=n,t}function QF(t,e,n){return t.a-=e,t.b-=n,t}function UF(t,e){return t.a=e.a,t.b=e.b,t}function $F(t){return t.a=-t.a,t.b=-t.b,t}function HF(t){this.c=t,this.a=1,this.b=1}function jF(t){this.c=t,Tnt(t,0),Bnt(t,0)}function KF(t){Wx.call(this),Znt(this,t)}function zF(t){NXt(),Qm(this),this.mf(t)}function GF(t,e){VE(),VD.call(this,t,e)}function XF(t,e){WE(),WD.call(this,t,e)}function VF(t,e){WE(),WD.call(this,t,e)}function WF(t,e){WE(),XF.call(this,t,e)}function qF(t,e,n){b7.call(this,t,e,n,2)}function YF(t,e){lM(),rK.call(this,t,e)}function JF(t,e){lM(),YF.call(this,t,e)}function ZF(t,e){lM(),YF.call(this,t,e)}function tN(t,e){lM(),ZF.call(this,t,e)}function eN(t,e){lM(),rK.call(this,t,e)}function nN(t,e){lM(),eN.call(this,t,e)}function rN(t,e){lM(),rK.call(this,t,e)}function iN(t,e){return t.c.Fc(Q$(e,133))}function aN(t,e,n){return OHt(R9(t,e),n)}function oN(t,e,n){return e.Qk(t.e,t.c,n)}function sN(t,e,n){return e.Rk(t.e,t.c,n)}function cN(t,e){return tht(t.e,Q$(e,49))}function lN(t,e,n){cft(U9(t.a),e,e1(n))}function uN(t,e,n){cft(i4(t.a),e,t1(n))}function hN(t,e){e.$modCount=t.$modCount}function fN(){fN=L,Xwe=new am("root")}function dN(){dN=L,AIe=new kv,new Cv}function AN(){this.a=new gJ,this.b=new gJ}function gN(){wrt.call(this),this.Bb|=Uqt}function pN(){Ax.call(this,"GROW_TREE",0)}function mN(t){return null==t?null:dGt(t)}function bN(t){return null==t?null:MTt(t)}function vN(t){return null==t?null:Udt(t)}function yN(t){return null==t?null:Udt(t)}function wN(t){null==t.o&&gMt(t)}function kN(t){return qH(null==t||jS(t)),t}function CN(t){return qH(null==t||KS(t)),t}function xN(t){return qH(null==t||zS(t)),t}function EN(t){this.q=new e.Date(y2(t))}function TN(t,e){this.c=t,gx.call(this,t,e)}function BN(t,e){this.a=t,TN.call(this,t,e)}function _N(t,e){this.d=t,Cd(this),this.b=e}function SN(t,e){Q8.call(this,t),this.a=e}function LN(t,e){Q8.call(this,t),this.a=e}function IN(t){HAt.call(this,0,0),this.f=t}function MN(t,e,n){G6.call(this,t,e,n,null)}function ON(t,e,n){G6.call(this,t,e,n,null)}function DN(t,e,n){return t.ue(e,n)<=0?n:e}function FN(t,e,n){return t.ue(e,n)<=0?e:n}function NN(t,e){return Q$(utt(t.b,e),149)}function PN(t,e){return Q$(utt(t.c,e),229)}function RN(t){return Q$(Oj(t.a,t.b),287)}function QN(t){return new O_(t.c,t.d+t.a)}function UN(t){return QZ(),gI(Q$(t,197))}function $N(){$N=L,Lie=Zft((bgt(),PSe))}function HN(t,e){e.a?QFt(t,e):CD(t.a,e.b)}function jN(t,e){Vne||G$(t.a,e)}function KN(t,e){return mE(),dot(e.d.i,t)}function zN(t,e){return _it(),new iRt(e,t)}function GN(t,e){return _Y(e,oJt),t.f=e,t}function XN(t,e,n){return n=CQt(t,e,3,n)}function VN(t,e,n){return n=CQt(t,e,6,n)}function WN(t,e,n){return n=CQt(t,e,9,n)}function qN(t,e,n){++t.j,t.Ki(),I8(t,e,n)}function YN(t,e,n){++t.j,t.Hi(e,t.oi(e,n))}function JN(t,e,n){t.Zc(e).Rb(n)}function ZN(t,e,n){return J$t(t.c,t.b,e,n)}function tP(t,e){return(e&FVt)%t.d.length}function eP(t,e){am.call(this,t),this.a=e}function nP(t,e){vm.call(this,t),this.a=e}function rP(t,e){vm.call(this,t),this.a=e}function iP(t,e){this.c=t,get.call(this,e)}function aP(t,e){this.a=t,bm.call(this,e)}function oP(t,e){this.a=t,bm.call(this,e)}function sP(t){this.a=(hrt(t,LWt),new q6(t))}function cP(t){this.a=(hrt(t,LWt),new q6(t))}function lP(t){return!t.a&&(t.a=new A),t.a}function uP(t){return t>8?0:t+1}function hP(t,e){return cD(),t==e?0:t?1:-1}function fP(t,e,n){return mK(t,Q$(e,22),n)}function dP(t,e,n){return t.apply(e,n)}function AP(t,e,n){return t.a+=Ugt(e,0,n),t}function gP(t,e){var n;return n=t.e,t.e=e,n}function pP(t,e){t[nYt].call(t,e)}function mP(t,e){t[nYt].call(t,e)}function bP(t,e){t.a.Vc(t.b,e),++t.b,t.c=-1}function vP(t){LG(t.e),t.d.b=t.d,t.d.a=t.d}function yP(t){t.b?yP(t.b):t.f.c.zc(t.e,t.d)}function wP(t,e,n){dE(),Bf(t,e.Ce(t.a,n))}function kP(t,e){return Vk(xgt(t.a,e,!0))}function CP(t,e){return Vk(Egt(t.a,e,!0))}function xP(t,e){return $w(new Array(e),t)}function EP(t){return String.fromCharCode(t)}function TP(t){return null==t?null:t.message}function BP(){this.a=new Mm,this.b=new Mm}function _P(){this.a=new fe,this.b=new kb}function SP(){this.b=new Hk,this.c=new Mm}function LP(){this.d=new Hk,this.e=new Hk}function IP(){this.n=new Hk,this.o=new Hk}function MP(){this.n=new hv,this.i=new hI}function OP(){this.a=new Ju,this.b=new sa}function DP(){this.a=new Mm,this.d=new Mm}function FP(){this.b=new Fb,this.a=new Fb}function NP(){this.b=new Om,this.a=new Om}function PP(){this.b=new SC,this.a=new po}function RP(){MP.call(this),this.a=new Hk}function QP(t){Sot.call(this,t,(Y7(),Mne))}function UP(t,e,n,r){aK.call(this,t,e,n,r)}function $P(t,e,n){null!=n&&Mrt(e,Lvt(t,n))}function HP(t,e,n){null!=n&&Ort(e,Lvt(t,n))}function jP(t,e,n){return n=CQt(t,e,11,n)}function KP(t,e){return t.a+=e.a,t.b+=e.b,t}function zP(t,e){return t.a-=e.a,t.b-=e.b,t}function GP(t,e){return t.n.a=(vV(e),e+10)}function XP(t,e){return t.n.a=(vV(e),e+10)}function VP(t,e){return e==t||Ekt(BOt(e),t)}function WP(t,e){return null==XV(t.a,e,"")}function qP(t,e){return mE(),!dot(e.d.i,t)}function YP(t,e){dI(t.f)?iMt(t,e):_xt(t,e)}function JP(t,e){return e.Hh(t.a)}function ZP(t,e){Sy.call(this,e7t+t+s8t+e)}function tR(t,e,n,r){tG.call(this,t,e,n,r)}function eR(t,e,n,r){tG.call(this,t,e,n,r)}function nR(t,e,n,r){eR.call(this,t,e,n,r)}function rR(t,e,n,r){eG.call(this,t,e,n,r)}function iR(t,e,n,r){eG.call(this,t,e,n,r)}function aR(t,e,n,r){eG.call(this,t,e,n,r)}function oR(t,e,n,r){iR.call(this,t,e,n,r)}function sR(t,e,n,r){iR.call(this,t,e,n,r)}function cR(t,e,n,r){aR.call(this,t,e,n,r)}function lR(t,e,n,r){sR.call(this,t,e,n,r)}function uR(t,e,n,r){Yz.call(this,t,e,n,r)}function hR(t,e,n){this.a=t,YD.call(this,e,n)}function fR(t,e,n){this.c=e,this.b=n,this.a=t}function dR(t,e,n){return t.d=Q$(e.Kb(n),164)}function AR(t,e){return t.Aj().Nh().Kh(t,e)}function gR(t,e){return t.Aj().Nh().Ih(t,e)}function pR(t,e){return vV(t),HS(t)===HS(e)}function mR(t,e){return vV(t),HS(t)===HS(e)}function bR(t,e){return Vk(xgt(t.a,e,!1))}function vR(t,e){return Vk(Egt(t.a,e,!1))}function yR(t,e){return t.b.sd(new LT(t,e))}function wR(t,e){return t.b.sd(new IT(t,e))}function kR(t,e){return t.b.sd(new MT(t,e))}function CR(t,e,n){return t.lastIndexOf(e,n)}function xR(t,e,n){return Tft(t[e.b],t[n.b])}function ER(t,e){return lct(e,($Xt(),Fge),t)}function TR(t,e){return wM(e.a.d.p,t.a.d.p)}function BR(t,e){return wM(t.a.d.p,e.a.d.p)}function _R(t,e){return Tft(t.c-t.s,e.c-e.s)}function SR(t){return t.c?w9(t.c.a,t,0):-1}function LR(t){return t<100?null:new Rk(t)}function IR(t){return t==K_e||t==G_e||t==z_e}function MR(t,e){return rO(e,15)&&WNt(t.c,e)}function OR(t,e){Vne||e&&(t.d=e)}function DR(t,e){return!!hlt(t,e)}function FR(t,e){this.c=t,HG.call(this,t,e)}function NR(t){this.c=t,pL.call(this,fWt,0)}function PR(t,e){q$.call(this,t,t.length,e)}function RR(t,e,n){return Q$(t.c,69).lk(e,n)}function QR(t,e,n){return Q$(t.c,69).mk(e,n)}function UR(t,e,n){return oN(t,Q$(e,332),n)}function $R(t,e,n){return sN(t,Q$(e,332),n)}function HR(t,e,n){return _Ct(t,Q$(e,332),n)}function jR(t,e,n){return Wxt(t,Q$(e,332),n)}function KR(t,e){return null==e?null:hht(t.b,e)}function zR(t){return KS(t)?(vV(t),t):t.ke()}function GR(t){return!isNaN(t)&&!isFinite(t)}function XR(t){sQ(),this.a=(xq(),new Sw(t))}function VR(t){cH(),this.d=t,this.a=new Im}function WR(t,e,n){this.a=t,this.b=e,this.c=n}function qR(t,e,n){this.a=t,this.b=e,this.c=n}function YR(t,e,n){this.d=t,this.b=n,this.a=e}function JR(t){EM(this),bq(this),Qit(this,t)}function ZR(t){OI(this),Z$(this.c,0,t.Pc())}function tQ(t){lV(t.a),j8(t.c,t.b),t.b=null}function eQ(t){this.a=t,Lx(),uot(Date.now())}function nQ(){nQ=L,ere=new i,nre=new i}function rQ(){rQ=L,kne=new O,Cne=new D}function iQ(){iQ=L,hIe=O8(Lte,$Vt,1,0,5,1)}function aQ(){aQ=L,kMe=O8(Lte,$Vt,1,0,5,1)}function oQ(){oQ=L,CMe=O8(Lte,$Vt,1,0,5,1)}function sQ(){sQ=L,new nb((xq(),xq(),cne))}function cQ(t){return Y7(),Ttt((J7(),Pne),t)}function lQ(t){return Hlt(),Ttt((t8(),Yne),t)}function uQ(t){return lmt(),Ttt((B4(),gre),t)}function hQ(t){return Ftt(),Ttt((_4(),vre),t)}function fQ(t){return tPt(),Ttt((Dot(),Rre),t)}function dQ(t){return Fet(),Ttt((Y6(),Gre),t)}function AQ(t){return q7(),Ttt((J6(),Zre),t)}function gQ(t){return H9(),Ttt((Z6(),aie),t)}function pQ(t){return AVt(),Ttt((CL(),Sie),t)}function mQ(t){return Fot(),Ttt((t9(),Pie),t)}function bQ(t){return $mt(),Ttt((e9(),jie),t)}function vQ(t){return Hmt(),Ttt((n9(),eae),t)}function yQ(t){return fE(),Ttt((V2(),iae),t)}function wQ(t){return Ntt(),Ttt((S4(),Pae),t)}function kQ(t){return $9(),Ttt((e8(),Ioe),t)}function CQ(t){return vEt(),Ttt((ztt(),$oe),t)}function xQ(t){return Lst(),Ttt((Z7(),nse),t)}function EQ(t){return Uht(),Ttt((n8(),Ase),t)}function TQ(t,e){if(!t)throw Um(new Py(e))}function BQ(t){return oTt(),Ttt((lnt(),Sse),t)}function _Q(t){aK.call(this,t.d,t.c,t.a,t.b)}function SQ(t){aK.call(this,t.d,t.c,t.a,t.b)}function LQ(t,e,n){this.b=t,this.c=e,this.a=n}function IQ(t,e,n){this.b=t,this.a=e,this.c=n}function MQ(t,e,n){this.a=t,this.b=e,this.c=n}function OQ(t,e,n){this.a=t,this.b=e,this.c=n}function DQ(t,e,n){this.a=t,this.b=e,this.c=n}function FQ(t,e,n){this.a=t,this.b=e,this.c=n}function NQ(t,e,n){this.b=t,this.a=e,this.c=n}function PQ(t,e,n){this.e=e,this.b=t,this.d=n}function RQ(t,e,n){return dE(),t.a.Od(e,n),e}function QQ(t){var e;return(e=new wt).e=t,e}function UQ(t){var e;return(e=new Yb).b=t,e}function $Q(){$Q=L,Kse=new Dn,zse=new Fn}function HQ(){HQ=L,dle=new bi,Ale=new vi}function jQ(t){return _st(),Ttt((i9(),ole),t)}function KQ(t){return Sst(),Ttt((o9(),wle),t)}function zQ(t){return yNt(),Ttt((jat(),Xle),t)}function GQ(t){return IBt(),Ttt((fnt(),nue),t)}function XQ(t){return X8(),Ttt((F4(),oue),t)}function VQ(t){return Srt(),Ttt((r8(),hue),t)}function WQ(t){return MCt(),Ttt((Utt(),_le),t)}function qQ(t){return Bit(),Ttt((o8(),Ple),t)}function YQ(t){return ort(),Ttt((i8(),pue),t)}function JQ(t){return Vbt(),Ttt((Rtt(),Cue),t)}function ZQ(t){return Ptt(),Ttt((I4(),Bue),t)}function tU(t){return Yst(),Ttt((a8(),Mue),t)}function eU(t){return gTt(),Ttt((pnt(),Uue),t)}function nU(t){return A9(),Ttt((M4(),Kue),t)}function rU(t){return Ukt(),Ttt((Ant(),Jue),t)}function iU(t){return YEt(),Ttt((dnt(),ohe),t)}function aU(t){return fNt(),Ttt((Vst(),bhe),t)}function oU(t){return Pot(),Ttt((c8(),Che),t)}function sU(t){return j9(),Ttt((s8(),_he),t)}function cU(t){return j2(),Ttt((N4(),Mhe),t)}function lU(t){return Cdt(),Ttt(($tt(),jfe),t)}function uU(t){return Cxt(),Ttt((gnt(),nbe),t)}function hU(t){return xut(),Ttt((l8(),sbe),t)}function fU(t){return fbt(),Ttt((s9(),dbe),t)}function dU(t){return art(),Ttt((f8(),Kbe),t)}function AU(t){return cDt(),Ttt((Hat(),Lbe),t)}function gU(t){return bct(),Ttt((h8(),Fbe),t)}function pU(t){return K9(),Ttt((D4(),Qbe),t)}function mU(t){return $at(),Ttt((u8(),Wbe),t)}function bU(t){return Obt(),Ttt((Qtt(),ybe),t)}function vU(t){return S6(),Ttt((O4(),Zbe),t)}function yU(t){return zlt(),Ttt((A8(),ive),t)}function wU(t){return Aat(),Ttt((g8(),lve),t)}function kU(t){return Ist(),Ttt((d8(),Ave),t)}function CU(t){return srt(),Ttt((p8(),Mve),t)}function xU(t){return V4(),Ttt((R4(),Hve),t)}function EU(t){return AJ(),Ttt((Q4(),eye),t)}function TU(t){return oZ(),Ttt((U4(),aye),t)}function BU(t){return _6(),Ttt((P4(),Eye),t)}function _U(t){return dJ(),Ttt(($4(),Dye),t)}function SU(t){return Kyt(),Ttt((r9(),Uye),t)}function LU(t){return FBt(),Ttt((mnt(),qye),t)}function IU(t){return sZ(),Ttt((K4(),Rwe),t)}function MU(t){return Tit(),Ttt((j4(),Ywe),t)}function OU(t){return Q0(),Ttt((H4(),Hwe),t)}function DU(t){return Bdt(),Ttt((m8(),nke),t)}function FU(t){return D7(),Ttt((z4(),oke),t)}function NU(t){return $lt(),Ttt((b8(),hke),t)}function PU(t){return Svt(),Ttt((a9(),jke),t)}function RU(t){return Uat(),Ttt((y8(),Vke),t)}function QU(t){return Edt(),Ttt((v8(),tCe),t)}function UU(t){return qOt(),Ttt((Ktt(),QCe),t)}function $U(t){return Tdt(),Ttt((w8(),KCe),t)}function HU(t){return TE(),Ttt((G2(),XCe),t)}function jU(t){return BE(),Ttt((z2(),qCe),t)}function KU(t){return L6(),Ttt((X4(),txe),t)}function zU(t){return ITt(),Ttt((Htt(),sxe),t)}function GU(t){return _E(),Ttt((X2(),Kxe),t)}function XU(t){return Mst(),Ttt((G4(),Vxe),t)}function VU(t){return rmt(),Ttt((jtt(),hEe),t)}function WU(t){return TBt(),Ttt((Kat(),wEe),t)}function qU(t){return dbt(),Ttt((hnt(),OEe),t)}function YU(t){return dCt(),Ttt((unt(),ZEe),t)}function JU(t){return hVt(),Ttt((xL(),Yce),t)}function ZU(t){return Eit(),Ttt((L4(),jse),t)}function t$(t){return Qht(),Ttt((Gtt(),HBe),t)}function e$(t){return Net(),Ttt((C8(),XBe),t)}function n$(t){return xdt(),Ttt((u9(),ZBe),t)}function r$(t){return Zxt(),Ttt((vnt(),s_e),t)}function i$(t){return oht(),Ttt((k8(),v_e),t)}function a$(t){return Gyt(),Ttt((l9(),E_e),t)}function o$(t){return ZIt(),Ttt((Oot(),N_e),t)}function s$(t){return imt(),Ttt((Xtt(),j_e),t)}function c$(t){return WCt(),Ttt(($et(),Y_e),t)}function l$(t){return hSt(),Ttt((bnt(),aSe),t)}function u$(t){return bgt(),Ttt((f9(),QSe),t)}function h$(t){return ZRt(),Ttt((Wst(),qSe),t)}function f$(t){return yGt(),Ttt((Vtt(),_Se),t)}function d$(t){return QAt(),Ttt((h9(),nLe),t)}function A$(t){return Ult(),Ttt((c9(),lLe),t)}function g$(t){return lIt(),Ttt((zat(),nIe),t)}function p$(t,e){return vV(t),t+(vV(e),e)}function m$(t,e){return Lx(),l7(Vq(t.a),e)}function b$(t,e){return Lx(),l7(Vq(t.a),e)}function v$(t,e){this.c=t,this.a=e,this.b=e-t}function y$(t,e,n){this.a=t,this.b=e,this.c=n}function w$(t,e,n){this.a=t,this.b=e,this.c=n}function k$(t,e,n){this.a=t,this.b=e,this.c=n}function C$(t,e,n){this.a=t,this.b=e,this.c=n}function x$(t,e,n){this.a=t,this.b=e,this.c=n}function E$(t,e,n){this.e=t,this.a=e,this.c=n}function T$(t,e,n){lM(),mJ.call(this,t,e,n)}function B$(t,e,n){lM(),nV.call(this,t,e,n)}function _$(t,e,n){lM(),nV.call(this,t,e,n)}function S$(t,e,n){lM(),nV.call(this,t,e,n)}function L$(t,e,n){lM(),B$.call(this,t,e,n)}function I$(t,e,n){lM(),B$.call(this,t,e,n)}function M$(t,e,n){lM(),I$.call(this,t,e,n)}function O$(t,e,n){lM(),_$.call(this,t,e,n)}function D$(t,e,n){lM(),S$.call(this,t,e,n)}function F$(t,e){return bX(t),bX(e),new cx(t,e)}function N$(t,e){return bX(t),bX(e),new PH(t,e)}function P$(t,e){return bX(t),bX(e),new RH(t,e)}function R$(t,e){return bX(t),bX(e),new ux(t,e)}function Q$(t,e){return qH(null==t||Wmt(t,e)),t}function U$(t){var e;return ltt(e=new Mm,t),e}function $$(t){var e;return ltt(e=new Fb,t),e}function H$(t){var e;return Hit(e=new jb,t),e}function j$(t){var e;return Hit(e=new Wx,t),e}function K$(t){return!t.e&&(t.e=new Mm),t.e}function z$(t){return!t.c&&(t.c=new $c),t.c}function G$(t,e){return t.c[t.c.length]=e,!0}function X$(t,e){this.c=t,this.b=e,this.a=!1}function V$(t){this.d=t,Cd(this),this.b=nz(t.d)}function W$(){this.a=";,;",this.b="",this.c=""}function q$(t,e,n){Kz.call(this,e,n),this.a=t}function Y$(t,e,n){this.b=t,AL.call(this,e,n)}function J$(t,e,n){this.c=t,ET.call(this,e,n)}function Z$(t,e,n){R_t(n,0,t,e,n.length,!1)}function tH(t,e,n,r,i){t.b=e,t.c=n,t.d=r,t.a=i}function eH(t,e){e&&(t.b=e,t.a=(wV(e),e.a))}function nH(t,e,n,r,i){t.d=e,t.c=n,t.a=r,t.b=i}function rH(t){var e,n;e=t.b,n=t.c,t.b=n,t.c=e}function iH(t){var e,n;n=t.d,e=t.a,t.d=e,t.a=n}function aH(t){return oot(OG(qL(t)?Tot(t):t))}function oH(t,e){return wM(oj(t.d),oj(e.d))}function sH(t,e){return e==(yGt(),TSe)?t.c:t.d}function cH(){cH=L,yGt(),Fve=TSe,Nve=oSe}function lH(){this.b=Hy(CN(bmt((uPt(),ioe))))}function uH(t){return dE(),O8(Lte,$Vt,1,t,5,1)}function hH(t){return new O_(t.c+t.b,t.d+t.a)}function fH(t,e){return xE(),wM(t.d.p,e.d.p)}function dH(t){return EF(0!=t.b),Let(t,t.a.a)}function AH(t){return EF(0!=t.b),Let(t,t.c.b)}function gH(t,e){if(!t)throw Um(new Ly(e))}function pH(t,e){if(!t)throw Um(new Py(e))}function mH(t,e,n){dB.call(this,t,e),this.b=n}function bH(t,e,n){IS.call(this,t,e),this.c=n}function vH(t,e,n){fet.call(this,e,n),this.d=t}function yH(t){oQ(),yc.call(this),this.th(t)}function wH(t,e,n){this.a=t,ML.call(this,e,n)}function kH(t,e,n){this.a=t,ML.call(this,e,n)}function CH(t,e,n){IS.call(this,t,e),this.c=n}function xH(){F5(),oV.call(this,(GE(),HIe))}function EH(t){return null!=t&&!Gdt(t,LIe,IIe)}function TH(t,e){return(Xht(t)<<4|Xht(e))&WWt}function BH(t,e){return JV(),Kbt(t,e),new HV(t,e)}function _H(t,e){var n;t.n&&(n=e,G$(t.f,n))}function SH(t,e,n){net(t,e,new HX(n))}function LH(t,e){var n;return n=t.c,Prt(t,e),n}function IH(t,e){return t.g=e<0?-1:e,t}function MH(t,e){return Ket(t),t.a*=e,t.b*=e,t}function OH(t,e,n,r,i){t.c=e,t.d=n,t.b=r,t.a=i}function DH(t,e){return n5(t,e,t.c.b,t.c),!0}function FH(t){t.a.b=t.b,t.b.a=t.a,t.a=t.b=null}function NH(t){this.b=t,this.a=uz(this.b.a).Ed()}function PH(t,e){this.b=t,this.a=e,Qu.call(this)}function RH(t,e){this.a=t,this.b=e,Qu.call(this)}function QH(t,e){Kz.call(this,e,1040),this.a=t}function UH(t){return 0==t||isNaN(t)?t:t<0?-1:1}function $H(t){return Cq(),TEt(t)==qJ(SEt(t))}function HH(t){return Cq(),SEt(t)==qJ(TEt(t))}function jH(t,e){return qkt(t,new dB(e.a,e.b))}function KH(t){return!h5(t)&&t.c.i.c==t.d.i.c}function zH(t){var e;return e=t.n,t.a.b+e.d+e.a}function GH(t){var e;return e=t.n,t.e.b+e.d+e.a}function XH(t){var e;return e=t.n,t.e.a+e.b+e.c}function VH(t){return dVt(),new oK(0,t)}function WH(t){return t.a?t.a:tq(t)}function qH(t){if(!t)throw Um(new Ny(null))}function YH(){YH=L,xq(),iOe=new Hd(T9t)}function JH(){JH=L,new cbt((Zv(),Rte),(ty(),Pte))}function ZH(){ZH=L,_ee=O8(Lee,cWt,19,256,0,1)}function tj(t,e,n,r){aAt.call(this,t,e,n,r,0,0)}function ej(t,e,n){return XV(t.b,Q$(n.b,17),e)}function nj(t,e,n){return XV(t.b,Q$(n.b,17),e)}function rj(t,e){return G$(t,new O_(e.a,e.b))}function ij(t,e){return t.c<e.c?-1:t.c==e.c?0:1}function aj(t){return t.e.c.length+t.g.c.length}function oj(t){return t.e.c.length-t.g.c.length}function sj(t){return t.b.c.length-t.e.c.length}function cj(t){return QZ(),(yGt(),hSe).Hc(t.j)}function lj(t){oQ(),yH.call(this,t),this.a=-1}function uj(t,e){OS.call(this,t,e),this.a=this}function hj(t,e){var n;return(n=mX(t,e)).i=2,n}function fj(t,e){return++t.j,t.Ti(e)}function dj(t,e,n){return t.a=-1,GD(t,e.g,n),t}function Aj(t,e,n){Pzt(t.a,t.b,t.c,Q$(e,202),n)}function gj(t,e){Urt(t,null==e?null:(vV(e),e))}function pj(t,e){Nrt(t,null==e?null:(vV(e),e))}function mj(t,e){Nrt(t,null==e?null:(vV(e),e))}function bj(t,e,n){return new fR(dV(t).Ie(),n,e)}function vj(t,e,n,r,i,a){return Vkt(t,e,n,r,i,0,a)}function yj(){yj=L,wee=O8(Cee,cWt,217,256,0,1)}function wj(){wj=L,Iee=O8(Nee,cWt,162,256,0,1)}function kj(){kj=L,Pee=O8(Ree,cWt,184,256,0,1)}function Cj(){Cj=L,xee=O8(Eee,cWt,172,128,0,1)}function xj(){tH(this,!1,!1,!1,!1)}function Ej(t){GX(),this.a=(xq(),new Hd(bX(t)))}function Tj(t){for(bX(t);t.Ob();)t.Pb(),t.Qb()}function Bj(t){t.a.cd(),Q$(t.a.dd(),14).gc(),fw()}function _j(t){this.c=t,this.b=this.c.d.vc().Kc()}function Sj(t){this.c=t,this.a=new Vx(this.c.a)}function Lj(t){this.a=new zx(t.gc()),Qit(this,t)}function Ij(t){tA.call(this,new p4),Qit(this,t)}function Mj(t,e){return t.a+=Ugt(e,0,e.length),t}function Oj(t,e){return u1(e,t.c.length),t.c[e]}function Dj(t,e){return u1(e,t.a.length),t.a[e]}function Fj(t,e){dE(),Q8.call(this,t),this.a=e}function Nj(t,e){return wpt(rdt(wpt(t.a).a,e.a))}function Pj(t,e){return vV(t),Oat(t,(vV(e),e))}function Rj(t,e){return vV(e),Oat(e,(vV(t),t))}function Qj(t,e){return LX(e,0,Uj(e[0],wpt(1)))}function Uj(t,e){return Nj(Q$(t,162),Q$(e,162))}function $j(t){return t.c-Q$(Oj(t.a,t.b),287).b}function Hj(t){return t.q?t.q:(xq(),xq(),lne)}function jj(t){return t.e.Hd().gc()*t.c.Hd().gc()}function Kj(t,e,n){return wM(e.d[t.g],n.d[t.g])}function zj(t,e,n){return wM(t.d[e.p],t.d[n.p])}function Gj(t,e,n){return wM(t.d[e.p],t.d[n.p])}function Xj(t,e,n){return wM(t.d[e.p],t.d[n.p])}function Vj(t,e,n){return wM(t.d[e.p],t.d[n.p])}function Wj(t,n,r){return e.Math.min(r/t,1/n)}function qj(t,n){return t?0:e.Math.max(0,n-1)}function Yj(t,e){var n;for(n=0;n<e;++n)t[n]=-1}function Jj(t){var e;return(e=oCt(t))?Jj(e):t}function Zj(t,e){return null==t.a&&dPt(t),t.a[e]}function tK(t){return t.c?t.c.f:t.e.b}function eK(t){return t.c?t.c.g:t.e.a}function nK(t){get.call(this,t.gc()),gX(this,t)}function rK(t,e){lM(),ym.call(this,e),this.a=t}function iK(t,e,n){this.a=t,LO.call(this,e,n,2)}function aK(t,e,n,r){nH(this,t,e,n,r)}function oK(t,e){dVt(),Sm.call(this,t),this.a=e}function sK(t){this.b=new Wx,this.a=t,this.c=-1}function cK(){this.d=new O_(0,0),this.e=new Fb}function lK(t){YD.call(this,0,0),this.a=t,this.b=0}function uK(t){this.a=t,this.c=new Om,rct(this)}function hK(t){if(t.e.c!=t.b)throw Um(new pb)}function fK(t){if(t.c.e!=t.a)throw Um(new pb)}function dK(t){return qL(t)?0|t:kC(t)}function AK(t,e){return dVt(),new KG(t,e)}function gK(t,e){return null==t?null==e:mR(t,e)}function pK(t,e){return null==t?null==e:bpt(t,e)}function mK(t,e,n){return sit(t.a,e),wG(t,e.g,n)}function bK(t,e,n){nut(0,e,t.length),j7(t,0,e,n)}function vK(t,e,n){IZ(e,t.c.length),CT(t.c,e,n)}function yK(t,e,n){var r;for(r=0;r<e;++r)t[r]=n}function wK(t,e){var n;return Ict(n=Zft(t),e),n}function kK(t,e){return!t&&(t=[]),t[t.length]=e,t}function CK(t,e){return!(void 0===t.a.get(e))}function xK(t,e){return Grt(new tt,new aA(t),e)}function EK(t){return null==t?xne:new py(vV(t))}function TK(t,e){return rO(e,22)&&xD(t,Q$(e,22))}function BK(t,e){return rO(e,22)&&Iet(t,Q$(e,22))}function _K(t){return $Mt(t,26)*rYt+$Mt(t,27)*iYt}function SK(t){return Array.isArray(t)&&t.im===S}function LK(t){t.b?LK(t.b):t.d.dc()&&t.f.c.Bc(t.e)}function IK(t,e){KP(t.c,e),t.b.c+=e.a,t.b.d+=e.b}function MK(t,e){IK(t,zP(new O_(e.a,e.b),t.c))}function OK(t,e){this.b=new Wx,this.a=t,this.c=e}function DK(){this.b=new Se,this.c=new uY(this)}function FK(){this.d=new bt,this.e=new lY(this)}function NK(){NZ(),this.f=new Wx,this.e=new Wx}function PK(){QZ(),this.k=new Om,this.d=new Fb}function RK(){RK=L,hLe=new zI((cVt(),iBe),0)}function QK(){QK=L,Hte=new lK(O8(Lte,$Vt,1,0,5,1))}function UK(t,e,n){VIt(n,t,1),G$(e,new rB(n,t))}function $K(t,e,n){Qwt(n,t,1),G$(e,new hB(n,t))}function HK(t,e,n){return kG(t,new OT(e.a,n.a))}function jK(t,e,n){return-wM(t.f[e.p],t.f[n.p])}function KK(t,e,n){var r;t&&((r=t.i).c=e,r.b=n)}function zK(t,e,n){var r;t&&((r=t.i).d=e,r.a=n)}function GK(t,e,n){return t.a=-1,GD(t,e.g+1,n),t}function XK(t,e,n){return n=CQt(t,Q$(e,49),7,n)}function VK(t,e,n){return n=CQt(t,Q$(e,49),3,n)}function WK(t,e,n){this.a=t,IO.call(this,e,n,22)}function qK(t,e,n){this.a=t,IO.call(this,e,n,14)}function YK(t,e,n,r){lM(),M0.call(this,t,e,n,r)}function JK(t,e,n,r){lM(),M0.call(this,t,e,n,r)}function ZK(t,e){e.Bb&l6t&&!t.a.o&&(t.a.o=e)}function tz(t){return null!=t&&DG(t)&&!(t.im===S)}function ez(t){return!Array.isArray(t)&&t.im===S}function nz(t){return rO(t,15)?Q$(t,15).Yc():t.Kc()}function rz(t){return t.Qc(O8(Lte,$Vt,1,t.gc(),5,1))}function iz(t,e){return hpt(R9(t,e))?e.Qh():null}function az(t){t?Qvt(t,(Lx(),Uee)):Lx()}function oz(t){this.a=(QK(),Hte),this.d=Q$(bX(t),47)}function sz(t,e,n,r){this.a=t,G6.call(this,t,e,n,r)}function cz(t){tT(),this.a=0,this.b=t-1,this.c=1}function lz(t){XM(this),this.g=t,yq(this),this._d()}function uz(t){return t.c?t.c:t.c=t.Id()}function hz(t){return t.d?t.d:t.d=t.Jd()}function fz(t){return t.c||(t.c=t.Dd())}function dz(t){return t.f||(t.f=t.Dc())}function Az(t){return t.i||(t.i=t.bc())}function gz(t){return dVt(),new pJ(10,t,0)}function pz(t){return qL(t)?""+t:jNt(t)}function mz(t){if(t.e.j!=t.d)throw Um(new pb)}function bz(t,e){return oot(hTt(qL(t)?Tot(t):t,e))}function vz(t,e){return oot(wIt(qL(t)?Tot(t):t,e))}function yz(t,e){return oot(YTt(qL(t)?Tot(t):t,e))}function wz(t,e){return hP((vV(t),t),(vV(e),e))}function kz(t,e){return Tft((vV(t),t),(vV(e),e))}function Cz(t,e){return bX(e),t.a.Ad(e)&&!t.b.Ad(e)}function xz(t,e){return CM(t.l&e.l,t.m&e.m,t.h&e.h)}function Ez(t,e){return CM(t.l|e.l,t.m|e.m,t.h|e.h)}function Tz(t,e){return CM(t.l^e.l,t.m^e.m,t.h^e.h)}function Bz(t,e){return Iht(t,(vV(e),new nA(e)))}function _z(t,e){return Iht(t,(vV(e),new rA(e)))}function Sz(t){return gat(),0!=Q$(t,11).e.c.length}function Lz(t){return gat(),0!=Q$(t,11).g.c.length}function Iz(t,e){return _it(),Tft(e.a.o.a,t.a.o.a)}function Mz(t,e,n){return CGt(t,Q$(e,11),Q$(n,11))}function Oz(t){return t.e?D6(t.e):null}function Dz(t){t.d||(t.d=t.b.Kc(),t.c=t.b.gc())}function Fz(t,e,n){t.a.Mb(n)&&(t.b=!0,e.td(n))}function Nz(t,e){if(t<0||t>=e)throw Um(new xb)}function Pz(t,e,n){return LX(e,0,Uj(e[0],n[0])),e}function Rz(t,e,n){e.Ye(n,Hy(CN(FX(t.b,n)))*t.a)}function Qz(t,e,n){return wNt(),Fat(t,e)&&Fat(t,n)}function Uz(t){return hSt(),!t.Hc(tSe)&&!t.Hc(nSe)}function $z(t){return new O_(t.c+t.b/2,t.d+t.a/2)}function Hz(t,e){return e.kh()?tht(t.b,Q$(e,49)):e}function jz(t,e){this.e=t,this.d=64&e?e|lWt:e}function Kz(t,e){this.c=0,this.d=t,this.b=64|e|lWt}function zz(t){this.b=new q6(11),this.a=(Eq(),t)}function Gz(t){this.b=null,this.a=(Eq(),t||fne)}function Xz(t){this.a=rbt(t.a),this.b=new ZR(t.b)}function Vz(t){this.b=t,rF.call(this,t),CO(this)}function Wz(t){this.b=t,aF.call(this,t),xO(this)}function qz(t,e,n){this.a=t,tR.call(this,e,n,5,6)}function Yz(t,e,n,r){this.b=t,LO.call(this,e,n,r)}function Jz(t,e,n,r,i){v7.call(this,t,e,n,r,i,-1)}function Zz(t,e,n,r,i){y7.call(this,t,e,n,r,i,-1)}function tG(t,e,n,r){LO.call(this,t,e,n),this.b=r}function eG(t,e,n,r){bH.call(this,t,e,n),this.b=r}function nG(t){MS.call(this,t,!1),this.a=!1}function rG(t,e){this.b=t,cf.call(this,t.b),this.a=e}function iG(t,e){GX(),yx.call(this,t,cht(new qy(e)))}function aG(t,e){return dVt(),new rV(t,e,0)}function oG(t,e){return dVt(),new rV(6,t,e)}function sG(t,e){return mR(t.substr(0,e.length),e)}function cG(t,e){return zS(e)?tY(t,e):!!SY(t.f,e)}function lG(t,e){for(vV(e);t.Ob();)e.td(t.Pb())}function uG(t,e,n){SNt(),this.e=t,this.d=e,this.a=n}function hG(t,e,n,r){var i;(i=t.i).i=e,i.a=n,i.b=r}function fG(t){var e;for(e=t;e.f;)e=e.f;return e}function dG(t){var e;return EF(null!=(e=kct(t))),e}function AG(t){var e;return EF(null!=(e=bft(t))),e}function gG(t,e){var n;return f6(e,n=t.a.gc()),n-e}function pG(t,e){var n;for(n=0;n<e;++n)t[n]=!1}function mG(t,e,n,r){var i;for(i=e;i<n;++i)t[i]=r}function bG(t,e,n,r){nut(e,n,t.length),mG(t,e,n,r)}function vG(t,e,n){Nz(n,t.a.c.length),r5(t.a,n,e)}function yG(t,e,n){this.c=t,this.a=e,xq(),this.b=n}function wG(t,e,n){var r;return r=t.b[e],t.b[e]=n,r}function kG(t,e){return null==t.a.zc(e,t)}function CG(t){if(!t)throw Um(new bb);return t.d}function xG(t,e){if(null==t)throw Um(new Uy(e))}function EG(t,e){return!!e&&Qit(t,e)}function TG(t,e,n){return eut(t,e.g,n),sit(t.c,e),t}function BG(t){return xzt(t,(Qht(),PBe)),t.d=!0,t}function _G(t){return!t.j&&bd(t,QRt(t.g,t.b)),t.j}function SG(t){CF(-1!=t.b),s6(t.c,t.a=t.b),t.b=-1}function LG(t){t.f=new tI(t),t.g=new eI(t),oY(t)}function IG(t){return new Fj(null,$G(t,t.length))}function MG(t){return new oz(new GO(t.a.length,t.a))}function OG(t){return CM(~t.l&Eqt,~t.m&Eqt,~t.h&Tqt)}function DG(t){return typeof t===LVt||typeof t===DVt}function FG(t){return t==Nqt?D9t:t==Pqt?"-INF":""+t}function NG(t){return t==Nqt?D9t:t==Pqt?"-INF":""+t}function PG(t,n){return t>0?e.Math.log(t/n):-100}function RG(t,e){return Vut(t,e)<0?-1:Vut(t,e)>0?1:0}function QG(t,e,n){return EHt(t,Q$(e,46),Q$(n,167))}function UG(t,e){return Q$(fz(uz(t.a)).Xb(e),42).cd()}function $G(t,e){return pet(e,t.length),new QH(t,e)}function HG(t,e){this.d=t,SO.call(this,t),this.e=e}function jG(t){this.d=(vV(t),t),this.a=0,this.c=fWt}function KG(t,e){Sm.call(this,1),this.a=t,this.b=e}function zG(t,e){return t.c?zG(t.c,e):G$(t.b,e),t}function GG(t,e,n){var r;return r=dtt(t,e),n4(t,e,n),r}function XG(t,e){return m9(t.slice(0,e),t)}function VG(t,e,n){var r;for(r=0;r<e;++r)LX(t,r,n)}function WG(t,e,n,r,i){for(;e<n;)r[i++]=lW(t,e++)}function qG(t,e){return Tft(t.c.c+t.c.b,e.c.c+e.c.b)}function YG(t,e){return null==xct(t.a,e,(cD(),pee))}function JG(t,e){n5(t.d,e,t.b.b,t.b),++t.a,t.c=null}function ZG(t,e){qM(t,rO(e,153)?e:Q$(e,1937).gl())}function tX(t,e){qx(LW(t.Oc(),new Yi),new Bg(e))}function eX(t,e,n,r,i){OCt(t,Q$(c6(e.k,n),15),n,r,i)}function nX(t){t.s=NaN,t.c=NaN,JLt(t,t.e),JLt(t,t.j)}function rX(t){t.a=null,t.e=null,LG(t.b),t.d=0,++t.c}function iX(t){return e.Math.abs(t.d.e-t.e.e)-t.a}function aX(t,e,n){return Q$(t.c._c(e,Q$(n,133)),42)}function oX(){return ny(),Tst(Hw(Xte,1),IWt,538,0,[Kte])}function sX(t){return Cq(),qJ(TEt(t))==qJ(SEt(t))}function cX(t){LP.call(this),this.a=t,G$(t.a,this)}function lX(t,e){this.d=Eft(t),this.c=e,this.a=.5*e}function uX(){p4.call(this),this.a=!0,this.b=!0}function hX(t){return(null==t.i&&HUt(t),t.i).length}function fX(t){return rO(t,99)&&!!(Q$(t,18).Bb&l6t)}function dX(t,e){++t.j,cxt(t,t.i,e),KSt(t,Q$(e,332))}function AX(t,e){return e=t.nk(null,e),Ixt(t,null,e)}function gX(t,e){return t.hi()&&(e=JJ(t,e)),t.Wh(e)}function pX(t,e,n){var r;return Wnt(n,r=mX(t,e)),r}function mX(t,e){var n;return(n=new pct).j=t,n.d=e,n}function bX(t){if(null==t)throw Um(new Ab);return t}function vX(t){return t.j||(t.j=new ff(t))}function yX(t){return t.f||(t.f=new KO(t))}function wX(t){return t.k||(t.k=new Vh(t))}function kX(t){return t.k||(t.k=new Vh(t))}function CX(t){return t.g||(t.g=new Xh(t))}function xX(t){return t.i||(t.i=new Yh(t))}function EX(t){return t.d||(t.d=new tf(t))}function TX(t){return bX(t),rO(t,475)?Q$(t,475):Udt(t)}function BX(t){return rO(t,607)?t:new hJ(t)}function _X(t,e){return f2(e,t.c.b.c.gc()),new sx(t,e)}function SX(t,e,n){return dVt(),new k0(t,e,n)}function LX(t,e,n){return xF(null==n||WQt(t,n)),t[e]=n}function IX(t,e){var n;return f2(e,n=t.a.gc()),n-1-e}function MX(t,e){return t.a+=String.fromCharCode(e),t}function OX(t,e){return t.a+=String.fromCharCode(e),t}function DX(t,e){for(vV(e);t.c<t.d;)t.ze(e,t.c++)}function FX(t,e){return zS(e)?xJ(t,e):$S(SY(t.f,e))}function NX(t,e){return Cq(),t==TEt(e)?SEt(e):TEt(e)}function PX(t,e){JX(t,new HX(null!=e.f?e.f:""+e.g))}function RX(t,e){JX(t,new HX(null!=e.f?e.f:""+e.g))}function QX(t){this.b=new Mm,this.a=new Mm,this.c=t}function UX(t){this.c=new Hk,this.a=new Mm,this.b=t}function $X(t){LP.call(this),this.a=new Hk,this.c=t}function HX(t){if(null==t)throw Um(new Ab);this.a=t}function jX(t){Cb(),this.b=new Mm,this.a=t,mKt(this,t)}function KX(t){this.c=t,this.a=new Wx,this.b=new Wx}function zX(){zX=L,see=new Cf(!1),cee=new Cf(!0)}function GX(){GX=L,sQ(),Qte=new xY((xq(),xq(),cne))}function XX(){XX=L,sQ(),Vte=new pT((xq(),xq(),une))}function VX(){VX=L,JIe=jSt(),gVt(),tMe&&Nwt()}function WX(t,e){return _it(),Q$(oW(t,e.d),15).Fc(e)}function qX(t,e,n,r){return 0==n||(n-r)/n<t.e||e>=t.g}function YX(t,e,n){return OPt(t,vit(t,e,n))}function JX(t,e){var n;dtt(t,n=t.a.length),n4(t,n,e)}function ZX(t,e){console[t].call(console,e)}function tV(t,e){var n;++t.j,n=t.Vi(),t.Ii(t.oi(n,e))}function eV(t,e,n){Q$(e.b,65),Set(e.a,new w$(t,n,e))}function nV(t,e,n){ym.call(this,e),this.a=t,this.b=n}function rV(t,e,n){Sm.call(this,t),this.a=e,this.b=n}function iV(t,e,n){this.a=t,vm.call(this,e),this.b=n}function aV(t,e,n){this.a=t,U2.call(this,8,e,null,n)}function oV(t){this.a=(vV(R7t),R7t),this.b=t,new Mv}function sV(t){this.c=t,this.b=this.c.a,this.a=this.c.e}function cV(t){this.c=t,this.b=t.a.d.a,hN(t.a.e,this)}function lV(t){CF(-1!=t.c),t.d.$c(t.c),t.b=t.c,t.c=-1}function uV(t){return e.Math.sqrt(t.a*t.a+t.b*t.b)}function hV(t,e){return Nz(e,t.a.c.length),Oj(t.a,e)}function fV(t,e){return HS(t)===HS(e)||null!=t&&Oht(t,e)}function dV(t){return 0>=t?new Xx:Xrt(t-1)}function AV(t){return!!CDe&&tY(CDe,t)}function gV(t){return t?t.dc():!t.Kc().Ob()}function pV(t){return!t.a&&t.c?t.c.b:t.a}function mV(t){return!t.a&&(t.a=new LO(LLe,t,4)),t.a}function bV(t){return!t.d&&(t.d=new LO(GIe,t,1)),t.d}function vV(t){if(null==t)throw Um(new Ab);return t}function yV(t){t.c?t.c.He():(t.d=!0,WDt(t))}function wV(t){t.c?wV(t.c):(Wft(t),t.d=!0)}function kV(t){kW(t.a),t.b=O8(Lte,$Vt,1,t.b.length,5,1)}function CV(t,e){return wM(e.j.c.length,t.j.c.length)}function xV(t,e){t.c<0||t.b.b<t.c?lL(t.b,e):t.a._e(e)}function EV(t,e){var n;(n=t.Yg(e))>=0?t.Bh(n):iSt(t,e)}function TV(t){return t.c.i.c==t.d.i.c}function BV(t){if(4!=t.p)throw Um(new db);return t.e}function _V(t){if(3!=t.p)throw Um(new db);return t.e}function SV(t){if(6!=t.p)throw Um(new db);return t.f}function LV(t){if(6!=t.p)throw Um(new db);return t.k}function IV(t){if(3!=t.p)throw Um(new db);return t.j}function MV(t){if(4!=t.p)throw Um(new db);return t.j}function OV(t){return!t.b&&(t.b=new km(new Ov)),t.b}function DV(t){return-2==t.c&&Ad(t,oEt(t.g,t.b)),t.c}function FV(t,e){var n;return(n=mX("",t)).n=e,n.i=1,n}function NV(t,e){IK(Q$(e.b,65),t),Set(e.a,new SA(t))}function PV(t,e){l7((!t.a&&(t.a=new oP(t,t)),t.a),e)}function RV(t,e){this.b=t,HG.call(this,t,e),CO(this)}function QV(t,e){this.b=t,FR.call(this,t,e),xO(this)}function UV(t,e,n,r){px.call(this,t,e),this.d=n,this.a=r}function $V(t,e,n,r){px.call(this,t,n),this.a=e,this.f=r}function HV(t,e){GM.call(this,Vrt(bX(t),bX(e))),this.a=e}function jV(){AEt.call(this,E9t,(nC(),fOe)),Xjt(this)}function KV(){AEt.call(this,V7t,(eC(),YIe)),SHt(this)}function zV(){Ax.call(this,"DELAUNAY_TRIANGULATION",0)}function GV(t){return String.fromCharCode.apply(null,t)}function XV(t,e,n){return zS(e)?mZ(t,e,n):w_t(t.f,e,n)}function VV(t){return xq(),t?t.ve():(Eq(),Eq(),Ane)}function WV(t,e,n){return Ost(),n.pg(t,Q$(e.cd(),146))}function qV(t,e){return JH(),new cbt(new nD(t),new eD(e))}function YV(t){return hrt(t,OWt),Ztt(rdt(rdt(5,t),t/10|0))}function JV(){JV=L,Ute=new cy(Tst(Hw($te,1),yWt,42,0,[]))}function ZV(t){return!t.d&&(t.d=new Ud(t.c.Cc())),t.d}function tW(t){return!t.a&&(t.a=new Iw(t.c.vc())),t.a}function eW(t){return!t.b&&(t.b=new Sw(t.c.ec())),t.b}function nW(t,e){for(;e-- >0;)t=t<<1|(t<0?1:0);return t}function rW(t,e){return HS(t)===HS(e)||null!=t&&Oht(t,e)}function iW(t,e){return cD(),Q$(e.b,19).a<t}function aW(t,e){return cD(),Q$(e.a,19).a<t}function oW(t,e){return TK(t.a,e)?t.b[Q$(e,22).g]:null}function sW(t,e,n,r){t.a=lF(t.a,0,e)+""+r+JS(t.a,n)}function cW(t,e){t.u.Hc((hSt(),tSe))&&TSt(t,e),j6(t,e)}function lW(t,e){return h1(e,t.length),t.charCodeAt(e)}function uW(){dy.call(this,"There is no more element.")}function hW(t){this.d=t,this.a=this.d.b,this.b=this.d.c}function fW(t){t.b=!1,t.c=!1,t.d=!1,t.a=!1}function dW(t,e,n,r){return Nat(t,e,n,!1),Jht(t,r),t}function AW(t){return t.j.c=O8(Lte,$Vt,1,0,5,1),t.a=-1,t}function gW(t){return!t.c&&(t.c=new cR(FLe,t,5,8)),t.c}function pW(t){return!t.b&&(t.b=new cR(FLe,t,4,7)),t.b}function mW(t){return!t.n&&(t.n=new tG(HLe,t,1,7)),t.n}function bW(t){return!t.c&&(t.c=new tG(KLe,t,9,9)),t.c}function vW(t){return t.e==B9t&&pd(t,Cpt(t.g,t.b)),t.e}function yW(t){return t.f==B9t&&md(t,pwt(t.g,t.b)),t.f}function wW(t){var e;return!(e=t.b)&&(t.b=e=new Wh(t)),e}function kW(t){var e;for(e=t.Kc();e.Ob();)e.Pb(),e.Qb()}function CW(t){if(Kdt(t.d),t.d.d!=t.c)throw Um(new pb)}function xW(t,e){this.b=t,this.c=e,this.a=new Vx(this.b)}function EW(t,e,n){this.a=GWt,this.d=t,this.b=e,this.c=n}function TW(t,e){this.d=(vV(t),t),this.a=16449,this.c=e}function BW(t,e){Yft(t,Hy(Nnt(e,"x")),Hy(Nnt(e,"y")))}function _W(t,e){Yft(t,Hy(Nnt(e,"x")),Hy(Nnt(e,"y")))}function SW(t,e){return Wft(t),new Fj(t,new V7(e,t.a))}function LW(t,e){return Wft(t),new Fj(t,new C6(e,t.a))}function IW(t,e){return Wft(t),new SN(t,new w6(e,t.a))}function MW(t,e){return Wft(t),new LN(t,new k6(e,t.a))}function OW(t,e){return new gY(Q$(bX(t),62),Q$(bX(e),62))}function DW(t,e){return yE(),Tft((vV(t),t),(vV(e),e))}function FW(){return fE(),Tst(Hw(Eae,1),IWt,481,0,[nae])}function NW(){return TE(),Tst(Hw(WCe,1),IWt,482,0,[zCe])}function PW(){return BE(),Tst(Hw(ZCe,1),IWt,551,0,[VCe])}function RW(){return _E(),Tst(Hw(Xxe,1),IWt,530,0,[Hxe])}function QW(t){this.a=new Mm,this.e=O8(_De,cWt,48,t,0,2)}function UW(t,e,n,r){this.a=t,this.e=e,this.d=n,this.c=r}function $W(t,e,n,r){this.a=t,this.c=e,this.b=n,this.d=r}function HW(t,e,n,r){this.c=t,this.b=e,this.a=n,this.d=r}function jW(t,e,n,r){this.c=t,this.b=e,this.d=n,this.a=r}function KW(t,e,n,r){this.c=t,this.d=e,this.b=n,this.a=r}function zW(t,e,n,r){this.a=t,this.d=e,this.c=n,this.b=r}function GW(t,e,n,r){Ax.call(this,t,e),this.a=n,this.b=r}function XW(t,e,n,r){this.a=t,this.c=e,this.d=n,this.b=r}function VW(t,e,n){kHt(t.a,n),Zot(n),LIt(t.b,n),rjt(e,n)}function WW(t,e,n){var r;return r=IGt(t),e.Kh(n,r)}function qW(t,e){var n,r;return(n=t/e)>(r=TJ(n))&&++r,r}function YW(t){var e;return int(e=new Nm,t),e}function JW(t){var e;return FEt(e=new Nm,t),e}function ZW(t,e){return Pat(e,FX(t.f,e)),null}function tq(t){return qrt(t)||null}function eq(t){return!t.b&&(t.b=new tG(NLe,t,12,3)),t.b}function nq(t){return null!=t&&Ox(vIe,t.toLowerCase())}function rq(t,e){return Tft(eK(t)*tK(t),eK(e)*tK(e))}function iq(t,e){return Tft(eK(t)*tK(t),eK(e)*tK(e))}function aq(t,e){return Tft(t.d.c+t.d.b/2,e.d.c+e.d.b/2)}function oq(t,e){return Tft(t.g.c+t.g.b/2,e.g.c+e.g.b/2)}function sq(t,e,n){n.a?Bnt(t,e.b-t.f/2):Tnt(t,e.a-t.g/2)}function cq(t,e,n,r){this.a=t,this.b=e,this.c=n,this.d=r}function lq(t,e,n,r){this.a=t,this.b=e,this.c=n,this.d=r}function uq(t,e,n,r){this.e=t,this.a=e,this.c=n,this.d=r}function hq(t,e,n,r){this.a=t,this.c=e,this.d=n,this.b=r}function fq(t,e,n,r){lM(),t6.call(this,e,n,r),this.a=t}function dq(t,e,n,r){lM(),t6.call(this,e,n,r),this.a=t}function Aq(t,e){this.a=t,_N.call(this,t,Q$(t.d,15).Zc(e))}function gq(t){this.f=t,this.c=this.f.e,t.f>0&&okt(this)}function pq(t,e,n,r){this.b=t,this.c=r,pL.call(this,e,n)}function mq(t){return EF(t.b<t.d.gc()),t.d.Xb(t.c=t.b++)}function bq(t){t.a.a=t.c,t.c.b=t.a,t.a.b=t.c.a=null,t.b=0}function vq(t,e){return t.b=e.b,t.c=e.c,t.d=e.d,t.a=e.a,t}function yq(t){return t.n&&(t.e!==QWt&&t._d(),t.j=null),t}function wq(t){return qH(null==t||DG(t)&&!(t.im===S)),t}function kq(t){this.b=new Mm,gst(this.b,this.b),this.a=t}function Cq(){Cq=L,xae=new Mm,Cae=new Om,kae=new Mm}function xq(){xq=L,cne=new T,lne=new _,une=new E}function Eq(){Eq=L,fne=new P,dne=new P,Ane=new R}function Tq(){Tq=L,cre=new gt,ure=new FK,lre=new pt}function Bq(){256==ire&&(ere=nre,nre=new i,ire=0),++ire}function _q(t){return t.f||(t.f=new gx(t,t.c))}function Sq(t){return WSt(t)&&$y(kN(JIt(t,($Xt(),dpe))))}function Lq(t,e){return YSt(t,Q$(bEt(e,($Xt(),Gpe)),19),e)}function Iq(t,e){return Cht(t.j,e.s,e.c)+Cht(e.e,t.s,t.c)}function Mq(t,e){t.e&&!t.e.a&&(Rm(t.e,e),Mq(t.e,e))}function Oq(t,e){t.d&&!t.d.a&&(Rm(t.d,e),Oq(t.d,e))}function Dq(t,e){return-Tft(eK(t)*tK(t),eK(e)*tK(e))}function Fq(t){return Q$(t.cd(),146).tg()+":"+Udt(t.dd())}function Nq(t){var e;HQ(),(e=Q$(t.g,10)).n.a=t.d.c+e.d.b}function Pq(t,e,n){return CE(),Ddt(Q$(FX(t.e,e),522),n)}function Rq(t,e){return tlt(t),tlt(e),Ey(Q$(t,22),Q$(e,22))}function Qq(t,e,n){t.i=0,t.e=0,e!=n&&Gct(t,e,n)}function Uq(t,e,n){t.i=0,t.e=0,e!=n&&Xct(t,e,n)}function $q(t,e,n){net(t,e,new xf(zR(n)))}function Hq(t,e,n,r,i,a){y7.call(this,t,e,n,r,i,a?-2:-1)}function jq(t,e,n,r){IS.call(this,e,n),this.b=t,this.a=r}function Kq(t,e){new Wx,this.a=new vv,this.b=t,this.c=e}function zq(t,e){return Q$(bEt(t,(lVt(),rfe)),15).Fc(e),e}function Gq(t,e){if(null==t)throw Um(new Uy(e));return t}function Xq(t){return!t.q&&(t.q=new tG(XIe,t,11,10)),t.q}function Vq(t){return!t.s&&(t.s=new tG(PIe,t,21,17)),t.s}function Wq(t){return!t.a&&(t.a=new tG(jLe,t,10,11)),t.a}function qq(t){return rO(t,14)?new Lj(Q$(t,14)):$$(t.Kc())}function Yq(t){return new $O(t,t.e.Hd().gc()*t.c.Hd().gc())}function Jq(t){return new HO(t,t.e.Hd().gc()*t.c.Hd().gc())}function Zq(t){return t&&t.hashCode?t.hashCode():ED(t)}function tY(t,e){return null==e?!!SY(t.f,null):CK(t.g,e)}function eY(t){return bX(t),evt(new oz(YO(t.a.Kc(),new u)))}function nY(t){return xq(),rO(t,54)?new Lw(t):new hD(t)}function rY(t,e,n){return!!t.f&&t.f.Ne(e,n)}function iY(t,e){return t.a=lF(t.a,0,e)+""+JS(t.a,e+1),t}function aY(t,e){var n;return(n=tO(t.a,e))&&(e.d=null),n}function oY(t){var e,n;e=0|(n=t).$modCount,n.$modCount=e+1}function sY(t){this.b=t,this.c=t,t.e=null,t.c=null,this.a=1}function cY(t){this.b=t,this.a=new dC(Q$(bX(new te),62))}function lY(t){this.c=t,this.b=new dC(Q$(bX(new mt),62))}function uY(t){this.c=t,this.b=new dC(Q$(bX(new _e),62))}function hY(){this.a=new Vb,this.b=new cv,this.d=new Fe}function fY(){this.a=new vv,this.b=(hrt(3,LWt),new q6(3))}function dY(){this.b=new Fb,this.d=new Wx,this.e=new ov}function AY(t){this.c=t.c,this.d=t.d,this.b=t.b,this.a=t.a}function gY(t,e){jv.call(this,new Gz(t)),this.a=t,this.b=e}function pY(){nTt(this,new Dh),this.wb=(VX(),JIe),eC()}function mY(t){Sxt(t,"No crossing minimization",1),$Tt(t)}function bY(t){Dw(),e.setTimeout((function(){throw t}),0)}function vY(t){return t.u||(E5(t),t.u=new aP(t,t)),t.u}function yY(t){return Q$(vot(t,16),26)||t.zh()}function wY(t,e){return rO(e,146)&&mR(t.b,Q$(e,146).tg())}function kY(t,e){return t.a?e.Wg().Kc():Q$(e.Wg(),69).Zh()}function CY(t){return t.k==(oTt(),Tse)&&IF(t,(lVt(),jhe))}function xY(t){this.a=(xq(),rO(t,54)?new Lw(t):new hD(t))}function EY(){var t,e;EY=L,e=!Fgt(),t=new g,eee=e?new C:t}function TY(t,e){var n;return n=Jk(t.gm),null==e?n:n+": "+e}function BY(t,e){var n;return y4(n=t.b.Qc(e),t.b.gc()),n}function _Y(t,e){if(null==t)throw Um(new Uy(e));return t}function SY(t,e){return lut(t,e,gZ(t,null==e?0:t.b.se(e)))}function LY(t,e,n){return n>=0&&mR(t.substr(n,e.length),e)}function IY(t,e,n,r,i,a,o){return new h4(t.e,e,n,r,i,a,o)}function MY(t,e,n,r,i,a){this.a=t,yrt.call(this,e,n,r,i,a)}function OY(t,e,n,r,i,a){this.a=t,yrt.call(this,e,n,r,i,a)}function DY(t,e){this.g=t,this.d=Tst(Hw(_se,1),a1t,10,0,[e])}function FY(t,e){this.e=t,this.a=Lte,this.b=LPt(e),this.c=e}function NY(t,e){MP.call(this),Det(this),this.a=t,this.c=e}function PY(t,e,n,r){LX(t.c[e.g],n.g,r),LX(t.c[n.g],e.g,r)}function RY(t,e,n,r){LX(t.c[e.g],e.g,n),LX(t.b[e.g],e.g,r)}function QY(){return S6(),Tst(Hw(rve,1),IWt,376,0,[Ybe,qbe])}function UY(){return A9(),Tst(Hw(Yue,1),IWt,479,0,[Hue,$ue])}function $Y(){return Ptt(),Tst(Hw(Iue,1),IWt,419,0,[xue,Eue])}function HY(){return X8(),Tst(Hw(uue,1),IWt,422,0,[rue,iue])}function jY(){return j2(),Tst(Hw(Hfe,1),IWt,420,0,[She,Lhe])}function KY(){return K9(),Tst(Hw(jbe,1),IWt,421,0,[Nbe,Pbe])}function zY(){return V4(),Tst(Hw(Xve,1),IWt,523,0,[Uve,Qve])}function GY(){return _6(),Tst(Hw(Oye,1),IWt,520,0,[Cye,kye])}function XY(){return AJ(),Tst(Hw(iye,1),IWt,516,0,[Zve,Jve])}function VY(){return oZ(),Tst(Hw(xye,1),IWt,515,0,[nye,rye])}function WY(){return dJ(),Tst(Hw(Qye,1),IWt,455,0,[Iye,Mye])}function qY(){return Q0(),Tst(Hw(qwe,1),IWt,425,0,[Uwe,Qwe])}function YY(){return sZ(),Tst(Hw($we,1),IWt,480,0,[Fwe,Nwe])}function JY(){return Tit(),Tst(Hw(eke,1),IWt,495,0,[Vwe,Wwe])}function ZY(){return D7(),Tst(Hw(uke,1),IWt,426,0,[rke,ike])}function tJ(){return Mst(),Tst(Hw(Wxe,1),IWt,429,0,[Gxe,zxe])}function eJ(){return L6(),Tst(Hw(oxe,1),IWt,430,0,[JCe,YCe])}function nJ(){return lmt(),Tst(Hw(bre,1),IWt,428,0,[dre,fre])}function rJ(){return Ftt(),Tst(Hw(Nre,1),IWt,427,0,[pre,mre])}function iJ(){return Ntt(),Tst(Hw(Loe,1),IWt,424,0,[Dae,Fae])}function aJ(){return Eit(),Tst(Hw(Gse,1),IWt,511,0,[$se,Use])}function oJ(t,e,n,r){return n>=0?t.jh(e,n,r):t.Sg(null,n,r)}function sJ(t){return 0==t.b.b?t.a.$e():dH(t.b)}function cJ(t){if(5!=t.p)throw Um(new db);return dK(t.f)}function lJ(t){if(5!=t.p)throw Um(new db);return dK(t.k)}function uJ(t){return HS(t.a)===HS((dat(),TMe))&&Njt(t),t.a}function hJ(t){this.a=Q$(bX(t),271),this.b=(xq(),new dD(t))}function fJ(t,e){Yf(this,new O_(t.a,t.b)),Jf(this,j$(e))}function dJ(){dJ=L,Iye=new o_(iJt,0),Mye=new o_(aJt,1)}function AJ(){AJ=L,Zve=new r_(aJt,0),Jve=new r_(iJt,1)}function gJ(){iy.call(this,new zx(tet(12))),iD(!0),this.a=2}function pJ(t,e,n){dVt(),Sm.call(this,t),this.b=e,this.a=n}function mJ(t,e,n){lM(),ym.call(this,e),this.a=t,this.b=n}function bJ(t){MP.call(this),Det(this),this.a=t,this.c=!0}function vJ(t){var e;e=t.c.d.b,t.b=e,t.a=t.c.d,e.a=t.c.d.b=t}function yJ(t){prt(t.a),FI(t.a),tAt(new EA(t.a))}function wJ(t,e){sPt(t,!0),Set(t.e.wf(),new LQ(t,!0,e))}function kJ(t,e){return r4(e),qnt(t,O8(_De,lqt,25,e,15,1),e)}function CJ(t,e){return Cq(),t==qJ(TEt(e))||t==qJ(SEt(e))}function xJ(t,e){return null==e?$S(SY(t.f,null)):cT(t.g,e)}function EJ(t){return 0==t.b?null:(EF(0!=t.b),Let(t,t.a.a))}function TJ(t){return 0|Math.max(Math.min(t,FVt),-2147483648)}function BJ(t,e){var n=Jte[t.charCodeAt(0)];return null==n?t:n}function _J(t,e){return Gq(t,"set1"),Gq(e,"set2"),new wx(t,e)}function SJ(t,e){return KP($F(Zet(t.f,e)),t.f.d)}function LJ(t,e){var n;return qKt(t,e,n=new j),n.d}function IJ(t,e,n,r){var i;i=new RP,e.a[n.g]=i,mK(t.b,r,i)}function MJ(t,e,n){var r;(r=t.Yg(e))>=0?t.sh(r,n):COt(t,e,n)}function OJ(t,e,n){cZ(),t&&XV(oIe,t,e),t&&XV(aIe,t,n)}function DJ(t,e,n){this.i=new Mm,this.b=t,this.g=e,this.a=n}function FJ(t,e,n){this.c=new Mm,this.e=t,this.f=e,this.b=n}function NJ(t,e,n){this.a=new Mm,this.e=t,this.f=e,this.c=n}function PJ(t,e){XM(this),this.f=e,this.g=t,yq(this),this._d()}function RJ(t,e){var n;n=t.q.getHours(),t.q.setDate(e),h$t(t,n)}function QJ(t,e){var n;for(bX(e),n=t.a;n;n=n.c)e.Od(n.g,n.i)}function UJ(t){var e;return Ict(e=new hC(tet(t.length)),t),e}function $J(t){function e(){}return e.prototype=t||{},new e}function HJ(t,e){return!!dst(t,e)&&(ert(t),!0)}function jJ(t,e){if(null==e)throw Um(new Ab);return opt(t,e)}function KJ(t){if(t.qe())return null;var e=t.n;return EVt[e]}function zJ(t){return t.Db>>16!=3?null:Q$(t.Cb,33)}function GJ(t){return t.Db>>16!=9?null:Q$(t.Cb,33)}function XJ(t){return t.Db>>16!=6?null:Q$(t.Cb,79)}function VJ(t){return t.Db>>16!=7?null:Q$(t.Cb,235)}function WJ(t){return t.Db>>16!=7?null:Q$(t.Cb,160)}function qJ(t){return t.Db>>16!=11?null:Q$(t.Cb,33)}function YJ(t,e){var n;return(n=t.Yg(e))>=0?t.lh(n):HSt(t,e)}function JJ(t,e){var n;return sEt(n=new Ij(e),t),new ZR(n)}function ZJ(t){var e;return e=t.d,e=t.si(t.f),l7(t,e),e.Ob()}function tZ(t,e){return t.b+=e.b,t.c+=e.c,t.d+=e.d,t.a+=e.a,t}function eZ(t,n){return e.Math.abs(t)<e.Math.abs(n)?t:n}function nZ(t){return!t.a&&(t.a=new tG(jLe,t,10,11)),t.a.i>0}function rZ(){this.a=new lI,this.e=new Fb,this.g=0,this.i=0}function iZ(t){this.a=t,this.b=O8(Pve,cWt,1944,t.e.length,0,2)}function aZ(t,e,n){var r;r=Oct(t,e,n),t.b=new bit(r.c.length)}function oZ(){oZ=L,nye=new n_(pJt,0),rye=new n_("UP",1)}function sZ(){sZ=L,Fwe=new h_(z3t,0),Nwe=new h_("FAN",1)}function cZ(){cZ=L,oIe=new Om,aIe=new Om,RS(bne,new gc)}function lZ(t){if(0!=t.p)throw Um(new db);return qS(t.f,0)}function uZ(t){if(0!=t.p)throw Um(new db);return qS(t.k,0)}function hZ(t){return t.Db>>16!=3?null:Q$(t.Cb,147)}function fZ(t){return t.Db>>16!=6?null:Q$(t.Cb,235)}function dZ(t){return t.Db>>16!=17?null:Q$(t.Cb,26)}function AZ(t,e){var n=t.a=t.a||[];return n[e]||(n[e]=t.le(e))}function gZ(t,e){var n;return null==(n=t.a.get(e))?new Array:n}function pZ(t,e){var n;n=t.q.getHours(),t.q.setMonth(e),h$t(t,n)}function mZ(t,e,n){return null==e?w_t(t.f,null,n):odt(t.g,e,n)}function bZ(t,e,n,r,i,a){return new M9(t.e,e,t.aj(),n,r,i,a)}function vZ(t,e,n){return t.a=lF(t.a,0,e)+""+n+JS(t.a,e),t}function yZ(t,e,n){return G$(t.a,(JV(),Kbt(e,n),new px(e,n))),t}function wZ(t){return oD(t.c),t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function kZ(t){return oD(t.e),t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function CZ(t,e){t.d&&b9(t.d.e,t),t.d=e,t.d&&G$(t.d.e,t)}function xZ(t,e){t.c&&b9(t.c.g,t),t.c=e,t.c&&G$(t.c.g,t)}function EZ(t,e){t.c&&b9(t.c.a,t),t.c=e,t.c&&G$(t.c.a,t)}function TZ(t,e){t.i&&b9(t.i.j,t),t.i=e,t.i&&G$(t.i.j,t)}function BZ(t,e,n){this.a=e,this.c=t,this.b=(bX(n),new ZR(n))}function _Z(t,e,n){this.a=e,this.c=t,this.b=(bX(n),new ZR(n))}function SZ(t,e){this.a=t,this.c=QM(this.a),this.b=new AY(e)}function LZ(t){return Wft(t),SW(t,new pA(new Fb))}function IZ(t,e){if(t<0||t>e)throw Um(new Sy(wYt+t+kYt+e))}function MZ(t,e){return BK(t.a,e)?wG(t,Q$(e,22).g,null):null}function OZ(t){return Eut(),cD(),0!=Q$(t.a,81).d.e}function DZ(){DZ=L,Gte=hut((ny(),Tst(Hw(Xte,1),IWt,538,0,[Kte])))}function FZ(){FZ=L,gve=GK(new Q2,(vEt(),Qoe),(hVt(),$ce))}function NZ(){NZ=L,pve=GK(new Q2,(vEt(),Qoe),(hVt(),$ce))}function PZ(){PZ=L,bve=GK(new Q2,(vEt(),Qoe),(hVt(),$ce))}function RZ(){RZ=L,jve=dj(new Q2,(vEt(),Qoe),(hVt(),dce))}function QZ(){QZ=L,Vve=dj(new Q2,(vEt(),Qoe),(hVt(),dce))}function UZ(){UZ=L,Yve=dj(new Q2,(vEt(),Qoe),(hVt(),dce))}function $Z(){$Z=L,oye=dj(new Q2,(vEt(),Qoe),(hVt(),dce))}function HZ(){HZ=L,jwe=GK(new Q2,(Kyt(),Rye),(FBt(),jye))}function jZ(t,e,n,r){this.c=t,this.d=r,GZ(this,e),XZ(this,n)}function KZ(t){this.c=new Wx,this.b=t.b,this.d=t.c,this.a=t.a}function zZ(t){this.a=e.Math.cos(t),this.b=e.Math.sin(t)}function GZ(t,e){t.a&&b9(t.a.k,t),t.a=e,t.a&&G$(t.a.k,t)}function XZ(t,e){t.b&&b9(t.b.f,t),t.b=e,t.b&&G$(t.b.f,t)}function VZ(t,e){eV(t,t.b,t.c),Q$(t.b.b,65),e&&Q$(e.b,65).b}function WZ(t,e){Kft(t,e),rO(t.Cb,88)&&L_t(E5(Q$(t.Cb,88)),2)}function qZ(t,e){rO(t.Cb,88)&&L_t(E5(Q$(t.Cb,88)),4),Oit(t,e)}function YZ(t,e){rO(t.Cb,179)&&(Q$(t.Cb,179).tb=null),Oit(t,e)}function JZ(t,e){return YE(),ctt(e)?new uj(e,t):new OS(e,t)}function ZZ(t,e){null!=e.c&&JX(t,new HX(e.c))}function t1(t){var e;return eC(),int(e=new Nm,t),e}function e1(t){var e;return eC(),int(e=new Nm,t),e}function n1(t,e){var n;return n=new UX(t),e.c[e.c.length]=n,n}function r1(t,e){var n;return(n=Q$(hht(_q(t.a),e),14))?n.gc():0}function i1(t){return Wft(t),Eq(),Eq(),vet(t,dne)}function a1(t){for(var e;;)if(e=t.Pb(),!t.Ob())return e}function o1(t,e){Kv.call(this,new zx(tet(t))),hrt(e,sWt),this.a=e}function s1(t,e,n){$ht(e,n,t.gc()),this.c=t,this.a=e,this.b=n-e}function c1(t,e,n){var r;$ht(e,n,t.c.length),r=n-e,EC(t.c,e,r)}function l1(t,e){cO(t,dK(t0(vz(e,24),cYt)),dK(t0(e,cYt)))}function u1(t,e){if(t<0||t>=e)throw Um(new Sy(wYt+t+kYt+e))}function h1(t,e){if(t<0||t>=e)throw Um(new _w(wYt+t+kYt+e))}function f1(t,e){this.b=(vV(t),t),this.a=e&Rqt?e:64|e|lWt}function d1(t){DI(this),Eb(this.a,yct(e.Math.max(8,t))<<1)}function A1(t){return Lct(Tst(Hw(EEe,1),cWt,8,0,[t.i.n,t.n,t.a]))}function g1(){return Hlt(),Tst(Hw(Jne,1),IWt,132,0,[jne,Kne,zne])}function p1(){return Fet(),Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])}function m1(){return q7(),Tst(Hw(tie,1),IWt,461,0,[Wre,Vre,qre])}function b1(){return H9(),Tst(Hw(_ie,1),IWt,462,0,[rie,nie,eie])}function v1(){return Uht(),Tst(Hw(mse,1),IWt,423,0,[fse,hse,use])}function y1(){return $9(),Tst(Hw(Uoe,1),IWt,379,0,[_oe,Boe,Soe])}function w1(){return xut(),Tst(Hw(fbe,1),IWt,378,0,[rbe,ibe,abe])}function k1(){return Srt(),Tst(Hw(gue,1),IWt,314,0,[cue,sue,lue])}function C1(){return ort(),Tst(Hw(kue,1),IWt,337,0,[fue,Aue,due])}function x1(){return Yst(),Tst(Hw(Que,1),IWt,450,0,[Sue,_ue,Lue])}function E1(){return Bit(),Tst(Hw(Gle,1),IWt,361,0,[Fle,Dle,Ole])}function T1(){return j9(),Tst(Hw(Ihe,1),IWt,303,0,[Ehe,The,xhe])}function B1(){return Pot(),Tst(Hw(Bhe,1),IWt,292,0,[yhe,whe,vhe])}function _1(){return art(),Tst(Hw(Vbe,1),IWt,452,0,[Hbe,Ube,$be])}function S1(){return bct(),Tst(Hw(Rbe,1),IWt,339,0,[Mbe,Ibe,Obe])}function L1(){return $at(),Tst(Hw(Jbe,1),IWt,375,0,[zbe,Gbe,Xbe])}function I1(){return Ist(),Tst(Hw(xve,1),IWt,377,0,[hve,fve,uve])}function M1(){return zlt(),Tst(Hw(cve,1),IWt,336,0,[tve,eve,nve])}function O1(){return Aat(),Tst(Hw(dve,1),IWt,338,0,[sve,ave,ove])}function D1(){return srt(),Tst(Hw(Ove,1),IWt,454,0,[_ve,Sve,Lve])}function F1(){return Bdt(),Tst(Hw(ake,1),IWt,442,0,[tke,Jwe,Zwe])}function N1(){return $lt(),Tst(Hw(Hke,1),IWt,380,0,[ske,cke,lke])}function P1(){return Edt(),Tst(Hw(MCe,1),IWt,381,0,[Yke,Jke,qke])}function R1(){return Uat(),Tst(Hw(Wke,1),IWt,293,0,[zke,Gke,Kke])}function Q1(){return Tdt(),Tst(Hw(GCe,1),IWt,437,0,[UCe,$Ce,HCe])}function U1(){return oht(),Tst(Hw(x_e,1),IWt,334,0,[p_e,g_e,m_e])}function $1(){return Net(),Tst(Hw(JBe,1),IWt,272,0,[jBe,KBe,zBe])}function H1(t,e){return yMt(t,e,rO(e,99)&&!!(Q$(e,18).Bb&Uqt))}function j1(t,e,n){var r;return(r=iHt(t,e,!1)).b<=e&&r.a<=n}function K1(t,e,n){var r;(r=new ao).b=e,r.a=n,++e.b,G$(t.d,r)}function z1(t,e){var n;return kF(!!(n=(vV(t),t).g)),vV(e),n(e)}function G1(t,e){var n,r;return r=gG(t,e),n=t.a.Zc(r),new vx(t,n)}function X1(t){return t.Db>>16!=6?null:Q$(iIt(t),235)}function V1(t){if(2!=t.p)throw Um(new db);return dK(t.f)&WWt}function W1(t){if(2!=t.p)throw Um(new db);return dK(t.k)&WWt}function q1(t){return t.a==(F5(),ZMe)&&dd(t,eOt(t.g,t.b)),t.a}function Y1(t){return t.d==(F5(),ZMe)&&gd(t,ORt(t.g,t.b)),t.d}function J1(t){return EF(t.a<t.c.c.length),t.b=t.a++,t.c.c[t.b]}function Z1(t,e){t.b=t.b|e.b,t.c=t.c|e.c,t.d=t.d|e.d,t.a=t.a|e.a}function t0(t,e){return oot(xz(qL(t)?Tot(t):t,qL(e)?Tot(e):e))}function e0(t,e){return oot(Ez(qL(t)?Tot(t):t,qL(e)?Tot(e):e))}function n0(t,e){return oot(Tz(qL(t)?Tot(t):t,qL(e)?Tot(e):e))}function r0(t){return rdt(bz(uot($Mt(t,32)),32),uot($Mt(t,32)))}function i0(t){return bX(t),rO(t,14)?new ZR(Q$(t,14)):U$(t.Kc())}function a0(t,e){return Dtt(),t.c==e.c?Tft(e.d,t.d):Tft(t.c,e.c)}function o0(t,e){return Dtt(),t.c==e.c?Tft(t.d,e.d):Tft(t.c,e.c)}function s0(t,e){return Dtt(),t.c==e.c?Tft(t.d,e.d):Tft(e.c,t.c)}function c0(t,e){return Dtt(),t.c==e.c?Tft(e.d,t.d):Tft(e.c,t.c)}function l0(t,e){var n;n=Hy(CN(t.a.We((cVt(),_Be)))),VGt(t,e,n)}function u0(t,e){var n;n=Q$(FX(t.g,e),57),Set(e.d,new oB(t,n))}function h0(t,e){var n,r;return(n=syt(t))<(r=syt(e))?-1:n>r?1:0}function f0(t,e){var n;return n=x9(e),Q$(FX(t.c,n),19).a}function d0(t,e){var n;for(n=t+"";n.length<e;)n="0"+n;return n}function A0(t){return null==t.c||0==t.c.length?"n_"+t.g:"n_"+t.c}function g0(t){return null==t.c||0==t.c.length?"n_"+t.b:"n_"+t.c}function p0(t,e){return t&&t.equals?t.equals(e):HS(t)===HS(e)}function m0(t,e){return 0==e?!!t.o&&0!=t.o.f:mmt(t,e)}function b0(t,e,n){var r;t.n&&e&&n&&(r=new tc,G$(t.e,r))}function v0(t,e,n){var r;r=t.d[e.p],t.d[e.p]=t.d[n.p],t.d[n.p]=r}function y0(t,e,n){this.d=t,this.j=e,this.e=n,this.o=-1,this.p=3}function w0(t,e,n){this.d=t,this.k=e,this.f=n,this.o=-1,this.p=5}function k0(t,e,n){Sm.call(this,25),this.b=t,this.a=e,this.c=n}function C0(t){dVt(),Sm.call(this,t),this.c=!1,this.a=!1}function x0(t,e,n,r,i,a){$nt.call(this,t,e,n,r,i),a&&(this.o=-2)}function E0(t,e,n,r,i,a){Hnt.call(this,t,e,n,r,i),a&&(this.o=-2)}function T0(t,e,n,r,i,a){q5.call(this,t,e,n,r,i),a&&(this.o=-2)}function B0(t,e,n,r,i,a){znt.call(this,t,e,n,r,i),a&&(this.o=-2)}function _0(t,e,n,r,i,a){Y5.call(this,t,e,n,r,i),a&&(this.o=-2)}function S0(t,e,n,r,i,a){jnt.call(this,t,e,n,r,i),a&&(this.o=-2)}function L0(t,e,n,r,i,a){Knt.call(this,t,e,n,r,i),a&&(this.o=-2)}function I0(t,e,n,r,i,a){J5.call(this,t,e,n,r,i),a&&(this.o=-2)}function M0(t,e,n,r){ym.call(this,n),this.b=t,this.c=e,this.d=r}function O0(t,e){this.a=new Mm,this.d=new Mm,this.f=t,this.c=e}function D0(){this.c=new LM,this.a=new hY,this.b=new tv,hE()}function F0(){Ost(),this.b=new Om,this.a=new Om,this.c=new Mm}function N0(t,e){this.g=t,this.d=(F5(),ZMe),this.a=ZMe,this.b=e}function P0(t,e){this.f=t,this.a=(F5(),JMe),this.c=JMe,this.b=e}function R0(t,e){!t.c&&(t.c=new kat(t,0)),xHt(t.c,(zjt(),LOe),e)}function Q0(){Q0=L,Uwe=new f_("DFS",0),Qwe=new f_("BFS",1)}function U0(t,e,n){var r;return!!(r=Q$(t.Zb().xc(e),14))&&r.Hc(n)}function $0(t,e,n){var r;return!!(r=Q$(t.Zb().xc(e),14))&&r.Mc(n)}function H0(t,e,n,r){return t.a+=""+lF(null==e?KVt:Udt(e),n,r),t}function j0(t,e,n,r,i,a){return Nat(t,e,n,a),Yht(t,r),tft(t,i),t}function K0(t){return EF(t.b.b!=t.d.a),t.c=t.b=t.b.b,--t.a,t.c.c}function z0(t){for(;t.d>0&&0==t.a[--t.d];);0==t.a[t.d++]&&(t.e=0)}function G0(t){return t.a?0==t.e.length?t.a.a:t.a.a+""+t.e:t.c}function X0(t){return!(!t.a||0==U9(t.a.a).i||t.b&&Pbt(t.b))}function V0(t){return!(!t.u||0==i4(t.u.a).i||t.n&&Nbt(t.n))}function W0(t){return bj(t.e.Hd().gc()*t.c.Hd().gc(),16,new Hh(t))}function q0(t,e){return RG(uot(t.q.getTime()),uot(e.q.getTime()))}function Y0(t){return Q$(Wpt(t,O8(bse,i1t,17,t.c.length,0,1)),474)}function J0(t){return Q$(Wpt(t,O8(_se,a1t,10,t.c.length,0,1)),193)}function Z0(t){return QZ(),!(h5(t)||!h5(t)&&t.c.i.c==t.d.i.c)}function t2(t,e,n){bX(t),Dyt(new BZ(new ZR(t),e,n))}function e2(t,e,n){bX(t),Fyt(new _Z(new ZR(t),e,n))}function n2(t,e){var n;return n=1-e,t.a[n]=dit(t.a[n],n),dit(t,e)}function r2(t,e){var n;t.e=new qv,mM(n=dNt(e),t.c),_Nt(t,n,0)}function i2(t,e,n,r){var i;(i=new vs).a=e,i.b=n,i.c=r,DH(t.a,i)}function a2(t,e,n,r){var i;(i=new vs).a=e,i.b=n,i.c=r,DH(t.b,i)}function o2(t){var e,n;return n=tQt(e=new uX,t),vzt(e),n}function s2(){var t,e;return t=new Nm,G$(GMe,e=t),e}function c2(t){return t.j.c=O8(Lte,$Vt,1,0,5,1),kW(t.c),AW(t.a),t}function l2(t){return CE(),rO(t.g,10)?Q$(t.g,10):null}function u2(t){return!wW(t).dc()&&(IM(t,new v),!0)}function h2(t){if(!("stack"in t))try{throw t}catch(t){}return t}function f2(t,e){if(t<0||t>=e)throw Um(new Sy(M_t(t,e)));return t}function d2(t,e,n){if(t<0||e<t||e>n)throw Um(new Sy(sBt(t,e,n)))}function A2(t,e){if(kG(t.a,e),e.d)throw Um(new dy(_Yt));e.d=t}function g2(t,e){if(e.$modCount!=t.$modCount)throw Um(new pb)}function p2(t,e){return!!rO(e,42)&&xvt(t.a,Q$(e,42))}function m2(t,e){return!!rO(e,42)&&xvt(t.a,Q$(e,42))}function b2(t,e){return!!rO(e,42)&&xvt(t.a,Q$(e,42))}function v2(t,e){return t.a<=t.b&&(e.ud(t.a++),!0)}function y2(t){var e;return qL(t)?-0==(e=t)?0:e:gtt(t)}function w2(t){var e;return wV(t),e=new U,AC(t.a,new AA(e)),e}function k2(t){var e;return wV(t),e=new Q,AC(t.a,new dA(e)),e}function C2(t,e){this.a=t,xd.call(this,t),IZ(e,t.gc()),this.b=e}function x2(t){this.e=t,this.b=this.e.a.entries(),this.a=new Array}function E2(t){return bj(t.e.Hd().gc()*t.c.Hd().gc(),273,new $h(t))}function T2(t){return new q6((hrt(t,OWt),Ztt(rdt(rdt(5,t),t/10|0))))}function B2(t){return Q$(Wpt(t,O8(Hse,o1t,11,t.c.length,0,1)),1943)}function _2(t,e,n){return n.f.c.length>0?QG(t.a,e,n):QG(t.b,e,n)}function S2(t,e,n){t.d&&b9(t.d.e,t),t.d=e,t.d&&vK(t.d.e,n,t)}function L2(t,e){mXt(e,t),iH(t.d),iH(Q$(bEt(t,($Xt(),Spe)),207))}function I2(t,e){pXt(e,t),rH(t.d),rH(Q$(bEt(t,($Xt(),Spe)),207))}function M2(t,e){var n,r;return r=null,(n=jJ(t,e))&&(r=n.fe()),r}function O2(t,e){var n,r;return r=null,(n=dtt(t,e))&&(r=n.ie()),r}function D2(t,e){var n,r;return r=null,(n=jJ(t,e))&&(r=n.ie()),r}function F2(t,e){var n,r;return r=null,(n=jJ(t,e))&&(r=vBt(n)),r}function N2(t,e,n){var r;return r=Wgt(n),dRt(t.g,r,e),dRt(t.i,e,n),e}function P2(t,e,n){var r;r=Mgt();try{return dP(t,e,n)}finally{b3(r)}}function R2(t){var e;e=t.Wg(),this.a=rO(e,69)?Q$(e,69).Zh():e.Kc()}function Q2(){Wv.call(this),this.j.c=O8(Lte,$Vt,1,0,5,1),this.a=-1}function U2(t,e,n,r){this.d=t,this.n=e,this.g=n,this.o=r,this.p=-1}function $2(t,e,n,r){this.e=r,this.d=null,this.c=t,this.a=e,this.b=n}function H2(t,e,n){this.d=new Rg(this),this.e=t,this.i=e,this.f=n}function j2(){j2=L,She=new DB(eJt,0),Lhe=new DB("TOP_LEFT",1)}function K2(){K2=L,kve=qV(nft(1),nft(4)),wve=qV(nft(1),nft(2))}function z2(){z2=L,qCe=hut((BE(),Tst(Hw(ZCe,1),IWt,551,0,[VCe])))}function G2(){G2=L,XCe=hut((TE(),Tst(Hw(WCe,1),IWt,482,0,[zCe])))}function X2(){X2=L,Kxe=hut((_E(),Tst(Hw(Xxe,1),IWt,530,0,[Hxe])))}function V2(){V2=L,iae=hut((fE(),Tst(Hw(Eae,1),IWt,481,0,[nae])))}function W2(){return Fot(),Tst(Hw(Hie,1),IWt,406,0,[Fie,Mie,Oie,Die])}function q2(){return Y7(),Tst(Hw(Rne,1),IWt,297,0,[Mne,One,Dne,Fne])}function Y2(){return Hmt(),Tst(Hw(rae,1),IWt,394,0,[Yie,qie,Jie,Zie])}function J2(){return $mt(),Tst(Hw(Kie,1),IWt,323,0,[Qie,Rie,Uie,$ie])}function Z2(){return Lst(),Tst(Hw(dse,1),IWt,405,0,[Yoe,tse,Joe,Zoe])}function t3(){return _st(),Tst(Hw(gle,1),IWt,360,0,[ile,nle,rle,ele])}function e3(t,e,n,r){return rO(n,54)?new _F(t,e,n,r):new sz(t,e,n,r)}function n3(){return Sst(),Tst(Hw(Ble,1),IWt,411,0,[ple,mle,ble,vle])}function r3(t){return t.j==(yGt(),xSe)&&xD(zLt(t),oSe)}function i3(t,e){var n;xZ(n=e.a,e.c.d),CZ(n,e.d.d),Jet(n.a,t.n)}function a3(t,e){return Q$(LD(Bz(Q$(c6(t.k,e),15).Oc(),Vle)),113)}function o3(t,e){return Q$(LD(_z(Q$(c6(t.k,e),15).Oc(),Vle)),113)}function s3(t){return new f1(tat(Q$(t.a.dd(),14).gc(),t.a.cd()),16)}function c3(t){return rO(t,14)?Q$(t,14).dc():!t.Kc().Ob()}function l3(t){return CE(),rO(t.g,145)?Q$(t.g,145):null}function u3(t){if(t.e.g!=t.b)throw Um(new pb);return!!t.c&&t.d>0}function h3(t){return EF(t.b!=t.d.c),t.c=t.b,t.b=t.b.a,++t.a,t.c.c}function f3(t,e){vV(e),LX(t.a,t.c,e),t.c=t.c+1&t.a.length-1,dyt(t)}function d3(t,e){vV(e),t.b=t.b-1&t.a.length-1,LX(t.a,t.b,e),dyt(t)}function A3(t,e){var n;for(n=t.j.c.length;n<e;n++)G$(t.j,t.rg())}function g3(t,e,n,r){var i;return i=r[e.g][n.g],Hy(CN(bEt(t.a,i)))}function p3(t,e,n,r,i){this.i=t,this.a=e,this.e=n,this.j=r,this.f=i}function m3(t,e,n,r,i){this.a=t,this.e=e,this.f=n,this.b=r,this.g=i}function b3(t){t&&Btt((sw(),tee)),--iee,t&&-1!=oee&&(eT(oee),oee=-1)}function v3(){return fbt(),Tst(Hw(vbe,1),IWt,197,0,[ube,hbe,lbe,cbe])}function y3(){return Kyt(),Tst(Hw($ye,1),IWt,393,0,[Fye,Nye,Pye,Rye])}function w3(){return Svt(),Tst(Hw(Xke,1),IWt,340,0,[$ke,Qke,Uke,Rke])}function k3(){return bgt(),Tst(Hw(WSe,1),IWt,374,0,[NSe,PSe,FSe,DSe])}function C3(){return Gyt(),Tst(Hw(F_e,1),IWt,285,0,[C_e,y_e,w_e,k_e])}function x3(){return xdt(),Tst(Hw(o_e,1),IWt,218,0,[YBe,WBe,VBe,qBe])}function E3(){return QAt(),Tst(Hw(rLe,1),IWt,311,0,[tLe,YSe,ZSe,JSe])}function T3(){return Ult(),Tst(Hw(fLe,1),IWt,396,0,[aLe,oLe,iLe,sLe])}function B3(t){return cZ(),cG(oIe,t)?Q$(FX(oIe,t),331).ug():null}function _3(t,e,n){return e<0?HSt(t,n):Q$(n,66).Nj().Sj(t,t.yh(),e)}function S3(t,e,n){var r;return r=Wgt(n),dRt(t.d,r,e),XV(t.e,e,n),e}function L3(t,e,n){var r;return r=Wgt(n),dRt(t.j,r,e),XV(t.k,e,n),e}function I3(t){var e;return Zk(),e=new ic,t&&$Ot(e,t),e}function M3(t){var e;return e=t.ri(t.i),t.i>0&&aHt(t.g,0,e,0,t.i),e}function O3(t,e){var n;return JE(),!(n=Q$(FX(pIe,t),55))||n.wj(e)}function D3(t){if(1!=t.p)throw Um(new db);return dK(t.f)<<24>>24}function F3(t){if(1!=t.p)throw Um(new db);return dK(t.k)<<24>>24}function N3(t){if(7!=t.p)throw Um(new db);return dK(t.k)<<16>>16}function P3(t){if(7!=t.p)throw Um(new db);return dK(t.f)<<16>>16}function R3(t){var e;for(e=0;t.Ob();)t.Pb(),e=rdt(e,1);return Ztt(e)}function Q3(t,e){var n;return n=new Bw,t.xd(n),n.a+="..",e.yd(n),n.a}function U3(t,e,n){var r;r=Q$(FX(t.g,n),57),G$(t.a.c,new nS(e,r))}function $3(t,e,n){return kz(CN($S(SY(t.f,e))),CN($S(SY(t.f,n))))}function H3(t,e,n){return zUt(t,e,n,rO(e,99)&&!!(Q$(e,18).Bb&Uqt))}function j3(t,e,n){return p$t(t,e,n,rO(e,99)&&!!(Q$(e,18).Bb&Uqt))}function K3(t,e,n){return DMt(t,e,n,rO(e,99)&&!!(Q$(e,18).Bb&Uqt))}function z3(t,e){return t==(oTt(),Tse)&&e==Tse?4:t==Tse||e==Tse?8:32}function G3(t,e){return HS(e)===HS(t)?"(this Map)":null==e?KVt:Udt(e)}function X3(t,e){return Q$(null==e?$S(SY(t.f,null)):cT(t.g,e),281)}function V3(t,e,n){var r;return r=Wgt(n),XV(t.b,r,e),XV(t.c,e,n),e}function W3(t,e){var n;for(n=e;n;)PF(t,n.i,n.j),n=qJ(n);return t}function q3(t,e){var n;return n=nY(U$(new T9(t,e))),Tj(new T9(t,e)),n}function Y3(t,e){var n;return YE(),CTt(n=Q$(t,66).Mj(),e),n.Ok(e)}function J3(t,e,n,r,i){G$(e,b_t(i,GMt(i,n,r))),zEt(t,i,e)}function Z3(t,e,n){t.i=0,t.e=0,e!=n&&(Xct(t,e,n),Gct(t,e,n))}function t4(t,e){var n;n=t.q.getHours(),t.q.setFullYear(e+cqt),h$t(t,n)}function e4(t,e,n){if(n){var r=n.ee();t.a[e]=r(n)}else delete t.a[e]}function n4(t,e,n){if(n){var r=n.ee();n=r(n)}else n=void 0;t.a[e]=n}function r4(t){if(t<0)throw Um(new Qy("Negative array size: "+t))}function i4(t){return t.n||(E5(t),t.n=new WK(t,GIe,t),vY(t)),t.n}function a4(t){return EF(t.a<t.c.a.length),t.b=t.a,Stt(t),t.c.b[t.b]}function o4(t){t.b!=t.c&&(t.a=O8(Lte,$Vt,1,8,5,1),t.b=0,t.c=0)}function s4(t){this.b=new Om,this.c=new Om,this.d=new Om,this.a=t}function c4(t,e){dVt(),Sm.call(this,t),this.a=e,this.c=-1,this.b=-1}function l4(t,e,n,r){y0.call(this,1,n,r),this.c=t,this.b=e}function u4(t,e,n,r){w0.call(this,1,n,r),this.c=t,this.b=e}function h4(t,e,n,r,i,a,o){yrt.call(this,e,r,i,a,o),this.c=t,this.a=n}function f4(t,e,n){this.e=t,this.a=Lte,this.b=LPt(e),this.c=e,this.d=n}function d4(t){this.e=t,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function A4(t){this.c=t,this.a=Q$(_wt(t),148),this.b=this.a.Aj().Nh()}function g4(t){this.d=t,this.b=this.d.a.entries(),this.a=this.b.next()}function p4(){Om.call(this),yF(this),this.d.b=this.d,this.d.a=this.d}function m4(t,e){LP.call(this),this.a=t,this.b=e,G$(this.a.b,this)}function b4(t,e){return eL(null!=e?xJ(t,e):$S(SY(t.f,e)))}function v4(t,e){return eL(null!=e?xJ(t,e):$S(SY(t.f,e)))}function y4(t,e){var n;for(n=0;n<e;++n)LX(t,n,new Kd(Q$(t[n],42)))}function w4(t,e){var n;for(n=t.d-1;n>=0&&t.a[n]===e[n];n--);return n<0}function k4(t,e){var n;return Klt(),0!=(n=t.j.g-e.j.g)?n:0}function C4(t,e){return vV(e),null!=t.a?EK(e.Kb(t.a)):xne}function x4(t){var e;return t?new Ij(t):(Hit(e=new lI,t),e)}function E4(t,e){return e.b.Kb(k9(t,e.c.Ee(),new bA(e)))}function T4(t){vxt(),cO(this,dK(t0(vz(t,24),cYt)),dK(t0(t,cYt)))}function B4(){B4=L,gre=hut((lmt(),Tst(Hw(bre,1),IWt,428,0,[dre,fre])))}function _4(){_4=L,vre=hut((Ftt(),Tst(Hw(Nre,1),IWt,427,0,[pre,mre])))}function S4(){S4=L,Pae=hut((Ntt(),Tst(Hw(Loe,1),IWt,424,0,[Dae,Fae])))}function L4(){L4=L,jse=hut((Eit(),Tst(Hw(Gse,1),IWt,511,0,[$se,Use])))}function I4(){I4=L,Bue=hut((Ptt(),Tst(Hw(Iue,1),IWt,419,0,[xue,Eue])))}function M4(){M4=L,Kue=hut((A9(),Tst(Hw(Yue,1),IWt,479,0,[Hue,$ue])))}function O4(){O4=L,Zbe=hut((S6(),Tst(Hw(rve,1),IWt,376,0,[Ybe,qbe])))}function D4(){D4=L,Qbe=hut((K9(),Tst(Hw(jbe,1),IWt,421,0,[Nbe,Pbe])))}function F4(){F4=L,oue=hut((X8(),Tst(Hw(uue,1),IWt,422,0,[rue,iue])))}function N4(){N4=L,Mhe=hut((j2(),Tst(Hw(Hfe,1),IWt,420,0,[She,Lhe])))}function P4(){P4=L,Eye=hut((_6(),Tst(Hw(Oye,1),IWt,520,0,[Cye,kye])))}function R4(){R4=L,Hve=hut((V4(),Tst(Hw(Xve,1),IWt,523,0,[Uve,Qve])))}function Q4(){Q4=L,eye=hut((AJ(),Tst(Hw(iye,1),IWt,516,0,[Zve,Jve])))}function U4(){U4=L,aye=hut((oZ(),Tst(Hw(xye,1),IWt,515,0,[nye,rye])))}function $4(){$4=L,Dye=hut((dJ(),Tst(Hw(Qye,1),IWt,455,0,[Iye,Mye])))}function H4(){H4=L,Hwe=hut((Q0(),Tst(Hw(qwe,1),IWt,425,0,[Uwe,Qwe])))}function j4(){j4=L,Ywe=hut((Tit(),Tst(Hw(eke,1),IWt,495,0,[Vwe,Wwe])))}function K4(){K4=L,Rwe=hut((sZ(),Tst(Hw($we,1),IWt,480,0,[Fwe,Nwe])))}function z4(){z4=L,oke=hut((D7(),Tst(Hw(uke,1),IWt,426,0,[rke,ike])))}function G4(){G4=L,Vxe=hut((Mst(),Tst(Hw(Wxe,1),IWt,429,0,[Gxe,zxe])))}function X4(){X4=L,txe=hut((L6(),Tst(Hw(oxe,1),IWt,430,0,[JCe,YCe])))}function V4(){V4=L,Uve=new qB("UPPER",0),Qve=new qB("LOWER",1)}function W4(t,e){var n;$q(n=new gy,"x",e.a),$q(n,"y",e.b),JX(t,n)}function q4(t,e){var n;$q(n=new gy,"x",e.a),$q(n,"y",e.b),JX(t,n)}function Y4(t,e){var n,r;r=!1;do{r|=n=fct(t,e)}while(n);return r}function J4(t,e){var n,r;for(n=e,r=0;n>0;)r+=t.a[n],n-=n&-n;return r}function Z4(t,e){var n;for(n=e;n;)PF(t,-n.i,-n.j),n=qJ(n);return t}function t5(t,e){var n,r;for(vV(e),r=t.Kc();r.Ob();)n=r.Pb(),e.td(n)}function e5(t,e){var n;return new px(n=e.cd(),t.e.pc(n,Q$(e.dd(),14)))}function n5(t,e,n,r){var i;(i=new M).c=e,i.b=n,i.a=r,r.b=n.a=i,++t.b}function r5(t,e,n){var r;return u1(e,t.c.length),r=t.c[e],t.c[e]=n,r}function i5(t,e,n){return Q$(null==e?w_t(t.f,null,n):odt(t.g,e,n),281)}function a5(t){return t.c&&t.d?g0(t.c)+"->"+g0(t.d):"e_"+ED(t)}function o5(t,e){return(Wft(t),yC(new Fj(t,new V7(e,t.a)))).sd(Zne)}function s5(){return vEt(),Tst(Hw(Koe,1),IWt,356,0,[Foe,Noe,Poe,Roe,Qoe])}function c5(){return yGt(),Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe])}function l5(t){return Dw(),function(){return P2(t,this,arguments)}}function u5(){return Date.now?Date.now():(new Date).getTime()}function h5(t){return!(!t.c||!t.d||!t.c.i||t.c.i!=t.d.i)}function f5(t){if(!t.c.Sb())throw Um(new bb);return t.a=!0,t.c.Ub()}function d5(t){t.i=0,bT(t.b,null),bT(t.c,null),t.a=null,t.e=null,++t.g}function A5(t){dT.call(this,null==t?KVt:Udt(t),rO(t,78)?Q$(t,78):null)}function g5(t){eVt(),Qm(this),this.a=new Wx,Alt(this,t),DH(this.a,t)}function p5(){OI(this),this.b=new O_(Nqt,Nqt),this.a=new O_(Pqt,Pqt)}function m5(t,e){this.c=0,this.b=e,gL.call(this,t,17493),this.a=this.c}function b5(t){v5(),Vne||(this.c=t,this.e=!0,this.a=new Mm)}function v5(){v5=L,Vne=!0,Gne=!1,Xne=!1,qne=!1,Wne=!1}function y5(t,e){return!!rO(e,149)&&mR(t.c,Q$(e,149).c)}function w5(t,e){var n;return n=0,t&&(n+=t.f.a/2),e&&(n+=e.f.a/2),n}function k5(t,e){return Q$(utt(t.d,e),23)||Q$(utt(t.e,e),23)}function C5(t){this.b=t,SO.call(this,t),this.a=Q$(vot(this.b.a,4),126)}function x5(t){this.b=t,iF.call(this,t),this.a=Q$(vot(this.b.a,4),126)}function E5(t){return t.t||(t.t=new dm(t),cft(new Oy(t),0,t.t)),t.t}function T5(){return Qht(),Tst(Hw(GBe,1),IWt,103,0,[QBe,RBe,PBe,NBe,UBe])}function B5(){return imt(),Tst(Hw(q_e,1),IWt,249,0,[Q_e,$_e,P_e,R_e,U_e])}function _5(){return rmt(),Tst(Hw(yEe,1),IWt,175,0,[cEe,sEe,aEe,lEe,oEe])}function S5(){return ITt(),Tst(Hw(jxe,1),IWt,316,0,[exe,nxe,axe,rxe,ixe])}function L5(){return Obt(),Tst(Hw(Sbe,1),IWt,315,0,[bbe,gbe,pbe,Abe,mbe])}function I5(){return Vbt(),Tst(Hw(Tue,1),IWt,335,0,[bue,mue,yue,wue,vue])}function M5(){return qOt(),Tst(Hw(jCe,1),IWt,355,0,[DCe,OCe,NCe,FCe,PCe])}function O5(){return MCt(),Tst(Hw(Nle,1),IWt,363,0,[Cle,Ele,Tle,xle,kle])}function D5(){return Cdt(),Tst(Hw(ebe,1),IWt,163,0,[$fe,Pfe,Rfe,Qfe,Ufe])}function F5(){var t,e;F5=L,eC(),e=new wb,JMe=e,t=new _v,ZMe=t}function N5(t){var e;return t.c||rO(e=t.r,88)&&(t.c=Q$(e,26)),t.c}function P5(t){return t.e=3,t.d=t.Yb(),2!=t.e&&(t.e=0,!0)}function R5(t){return CM(t&Eqt,t>>22&Eqt,t<0?Tqt:0)}function Q5(t){var e,n,r;for(n=0,r=(e=t).length;n<r;++n)yV(e[n])}function U5(t,e){var n,r;(n=Q$(fht(t.c,e),14))&&(r=n.gc(),n.$b(),t.d-=r)}function $5(t,e){var n;return!!(n=hlt(t,e.cd()))&&rW(n.e,e.dd())}function H5(t,e){return 0==e||0==t.e?t:e>0?kgt(t,e):_Ft(t,-e)}function j5(t,e){return 0==e||0==t.e?t:e>0?_Ft(t,e):kgt(t,-e)}function K5(t){if(AIt(t))return t.c=t.a,t.a.Pb();throw Um(new bb)}function z5(t){var e,n;return e=t.c.i,n=t.d.i,e.k==(oTt(),Cse)&&n.k==Cse}function G5(t){var e;return Hot(e=new fY,t),lct(e,($Xt(),ppe),null),e}function X5(t,e,n){var r;return(r=t.Yg(e))>=0?t._g(r,n,!0):iLt(t,e,n)}function V5(t,e,n,r){var i;for(i=0;i<Yre;i++)zK(t.a[e.g][i],n,r[e.g])}function W5(t,e,n,r){var i;for(i=0;i<Jre;i++)KK(t.a[i][e.g],n,r[e.g])}function q5(t,e,n,r,i){y0.call(this,e,r,i),this.c=t,this.a=n}function Y5(t,e,n,r,i){w0.call(this,e,r,i),this.c=t,this.a=n}function J5(t,e,n,r,i){e6.call(this,e,r,i),this.c=t,this.a=n}function Z5(t,e,n,r,i){e6.call(this,e,r,i),this.c=t,this.b=n}function t6(t,e,n){ym.call(this,n),this.b=t,this.c=e,this.d=(UAt(),HMe)}function e6(t,e,n){this.d=t,this.k=e?1:0,this.f=n?1:0,this.o=-1,this.p=0}function n6(t,e,n){var r;Cat(r=new zM(t.a),t.a.a),w_t(r.f,e,n),t.a.a=r}function r6(t,e){t.qi(t.i+1),yO(t,t.i,t.oi(t.i,e)),t.bi(t.i++,e),t.ci()}function i6(t){var e,n;++t.j,e=t.g,n=t.i,t.g=null,t.i=0,t.di(n,e),t.ci()}function a6(t){var e;return bX(t),Ict(e=new q6(YV(t.length)),t),e}function o6(t){var e;return bX(t),YBt(e=t?new ZR(t):U$(t.Kc())),cht(e)}function s6(t,e){var n;return u1(e,t.c.length),n=t.c[e],EC(t.c,e,1),n}function c6(t,e){var n;return!(n=Q$(t.c.xc(e),14))&&(n=t.ic(e)),t.pc(e,n)}function l6(t,e){var n,r;return vV(t),n=t,vV(e),n==(r=e)?0:n<r?-1:1}function u6(t){var e;return e=t.e+t.f,isNaN(e)&&GR(t.d)?t.d:e}function h6(t,e){return t.a?oL(t.a,t.b):t.a=new uD(t.d),iL(t.a,e),t}function f6(t,e){if(t<0||t>e)throw Um(new Sy(A_t(t,e,"index")));return t}function d6(t,e,n,r){var i;return mxt(i=O8(_De,lqt,25,e,15,1),t,e,n,r),i}function A6(t,e){var n;n=t.q.getHours()+(e/60|0),t.q.setMinutes(e),h$t(t,n)}function g6(t,n){return e.Math.min(G8(n.a,t.d.d.c),G8(n.b,t.d.d.c))}function p6(t,e){return zS(e)?null==e?gIt(t.f,null):jot(t.g,e):gIt(t.f,e)}function m6(t){this.c=t,this.a=new Gd(this.c.a),this.b=new Gd(this.c.b)}function b6(){this.e=new Mm,this.c=new Mm,this.d=new Mm,this.b=new Mm}function v6(){this.g=new Qb,this.b=new Qb,this.a=new Mm,this.k=new Mm}function y6(t,e,n){this.a=t,this.c=e,this.d=n,G$(e.e,this),G$(n.b,this)}function w6(t,e){AL.call(this,e.rd(),-6&e.qd()),vV(t),this.a=t,this.b=e}function k6(t,e){gL.call(this,e.rd(),-6&e.qd()),vV(t),this.a=t,this.b=e}function C6(t,e){pL.call(this,e.rd(),-6&e.qd()),vV(t),this.a=t,this.b=e}function x6(t,e,n){this.a=t,this.b=e,this.c=n,G$(t.t,this),G$(e.i,this)}function E6(){this.b=new Wx,this.a=new Wx,this.b=new Wx,this.a=new Wx}function T6(){T6=L,kEe=new am("org.eclipse.elk.labels.labelManager")}function B6(){B6=L,tle=new eP("separateLayerConnections",(_st(),ile))}function _6(){_6=L,Cye=new a_("REGULAR",0),kye=new a_("CRITICAL",1)}function S6(){S6=L,Ybe=new zB("STACKED",0),qbe=new zB("SEQUENCED",1)}function L6(){L6=L,JCe=new k_("FIXED",0),YCe=new k_("CENTER_NODE",1)}function I6(t,e){var n;return n=DKt(t,e),t.b=new bit(n.c.length),vjt(t,n)}function M6(t,e,n){return++t.e,--t.f,Q$(t.d[e].$c(n),133).dd()}function O6(t){var e;return t.a||rO(e=t.r,148)&&(t.a=Q$(e,148)),t.a}function D6(t){return t.a?t.e?D6(t.e):null:t}function F6(t,e){return t.p<e.p?1:t.p>e.p?-1:0}function N6(t,e){return vV(e),t.c<t.d&&(t.ze(e,t.c++),!0)}function P6(t,e){return!!cG(t.a,e)&&(p6(t.a,e),!0)}function R6(t){var e;return e=t.cd(),F$(Q$(t.dd(),14).Nc(),new Gh(e))}function Q6(t){var e;return e=Q$(XG(t.b,t.b.length),9),new WR(t.a,e,t.c)}function U6(t){return Wft(t),new SN(t,new Y$(t,t.a.e,4|t.a.d))}function $6(t){var e;for(wV(t),e=0;t.a.sd(new ut);)e=rdt(e,1);return e}function H6(t,e,n){var r,i;for(r=0,i=0;i<e.length;i++)r+=t.$f(e[i],r,n)}function j6(t,e){var n;t.C&&((n=Q$(oW(t.b,e),124).n).d=t.C.d,n.a=t.C.a)}function K6(t,e,n){return f2(e,t.e.Hd().gc()),f2(n,t.c.Hd().gc()),t.a[e][n]}function z6(t,e){SNt(),this.e=t,this.d=1,this.a=Tst(Hw(_De,1),lqt,25,15,[e])}function G6(t,e,n,r){this.f=t,this.e=e,this.d=n,this.b=r,this.c=r?r.d:null}function X6(t){var e,n,r,i;i=t.d,e=t.a,n=t.b,r=t.c,t.d=n,t.a=r,t.b=i,t.c=e}function V6(t,e,n,r){bUt(t,e,n,p$t(t,e,r,rO(e,99)&&!!(Q$(e,18).Bb&Uqt)))}function W6(t,e){Sxt(e,"Label management",1),eL(bEt(t,(T6(),kEe))),$Tt(e)}function q6(t){OI(this),pH(t>=0,"Initial capacity must not be negative")}function Y6(){Y6=L,Gre=hut((Fet(),Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])))}function J6(){J6=L,Zre=hut((q7(),Tst(Hw(tie,1),IWt,461,0,[Wre,Vre,qre])))}function Z6(){Z6=L,aie=hut((H9(),Tst(Hw(_ie,1),IWt,462,0,[rie,nie,eie])))}function t8(){t8=L,Yne=hut((Hlt(),Tst(Hw(Jne,1),IWt,132,0,[jne,Kne,zne])))}function e8(){e8=L,Ioe=hut(($9(),Tst(Hw(Uoe,1),IWt,379,0,[_oe,Boe,Soe])))}function n8(){n8=L,Ase=hut((Uht(),Tst(Hw(mse,1),IWt,423,0,[fse,hse,use])))}function r8(){r8=L,hue=hut((Srt(),Tst(Hw(gue,1),IWt,314,0,[cue,sue,lue])))}function i8(){i8=L,pue=hut((ort(),Tst(Hw(kue,1),IWt,337,0,[fue,Aue,due])))}function a8(){a8=L,Mue=hut((Yst(),Tst(Hw(Que,1),IWt,450,0,[Sue,_ue,Lue])))}function o8(){o8=L,Ple=hut((Bit(),Tst(Hw(Gle,1),IWt,361,0,[Fle,Dle,Ole])))}function s8(){s8=L,_he=hut((j9(),Tst(Hw(Ihe,1),IWt,303,0,[Ehe,The,xhe])))}function c8(){c8=L,Che=hut((Pot(),Tst(Hw(Bhe,1),IWt,292,0,[yhe,whe,vhe])))}function l8(){l8=L,sbe=hut((xut(),Tst(Hw(fbe,1),IWt,378,0,[rbe,ibe,abe])))}function u8(){u8=L,Wbe=hut(($at(),Tst(Hw(Jbe,1),IWt,375,0,[zbe,Gbe,Xbe])))}function h8(){h8=L,Fbe=hut((bct(),Tst(Hw(Rbe,1),IWt,339,0,[Mbe,Ibe,Obe])))}function f8(){f8=L,Kbe=hut((art(),Tst(Hw(Vbe,1),IWt,452,0,[Hbe,Ube,$be])))}function d8(){d8=L,Ave=hut((Ist(),Tst(Hw(xve,1),IWt,377,0,[hve,fve,uve])))}function A8(){A8=L,ive=hut((zlt(),Tst(Hw(cve,1),IWt,336,0,[tve,eve,nve])))}function g8(){g8=L,lve=hut((Aat(),Tst(Hw(dve,1),IWt,338,0,[sve,ave,ove])))}function p8(){p8=L,Mve=hut((srt(),Tst(Hw(Ove,1),IWt,454,0,[_ve,Sve,Lve])))}function m8(){m8=L,nke=hut((Bdt(),Tst(Hw(ake,1),IWt,442,0,[tke,Jwe,Zwe])))}function b8(){b8=L,hke=hut(($lt(),Tst(Hw(Hke,1),IWt,380,0,[ske,cke,lke])))}function v8(){v8=L,tCe=hut((Edt(),Tst(Hw(MCe,1),IWt,381,0,[Yke,Jke,qke])))}function y8(){y8=L,Vke=hut((Uat(),Tst(Hw(Wke,1),IWt,293,0,[zke,Gke,Kke])))}function w8(){w8=L,KCe=hut((Tdt(),Tst(Hw(GCe,1),IWt,437,0,[UCe,$Ce,HCe])))}function k8(){k8=L,v_e=hut((oht(),Tst(Hw(x_e,1),IWt,334,0,[p_e,g_e,m_e])))}function C8(){C8=L,XBe=hut((Net(),Tst(Hw(JBe,1),IWt,272,0,[jBe,KBe,zBe])))}function x8(){return WCt(),Tst(Hw(iSe,1),IWt,98,0,[W_e,V_e,X_e,K_e,G_e,z_e])}function E8(t,e){return!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),rgt(t.o,e)}function T8(t){return!t.g&&(t.g=new lc),!t.g.d&&(t.g.d=new um(t)),t.g.d}function B8(t){return!t.g&&(t.g=new lc),!t.g.a&&(t.g.a=new hm(t)),t.g.a}function _8(t){return!t.g&&(t.g=new lc),!t.g.b&&(t.g.b=new lm(t)),t.g.b}function S8(t){return!t.g&&(t.g=new lc),!t.g.c&&(t.g.c=new fm(t)),t.g.c}function L8(t,e,n){var r,i;for(i=new Lot(e,t),r=0;r<n;++r)ibt(i);return i}function I8(t,e,n){var r,i;if(null!=n)for(r=0;r<e;++r)i=n[r],t.fi(r,i)}function M8(t,e,n,r){var i;return LUt(i=O8(_De,lqt,25,e+1,15,1),t,e,n,r),i}function O8(t,e,n,r,i,a){var o;return o=Uvt(i,r),10!=i&&Tst(Hw(t,a),e,n,i,o),o}function D8(t,e,n,r){return n&&(r=n.gh(e,LAt(n.Tg(),t.c.Lj()),null,r)),r}function F8(t,e,n,r){return n&&(r=n.ih(e,LAt(n.Tg(),t.c.Lj()),null,r)),r}function N8(t,e,n){Q$(t.b,65),Q$(t.b,65),Q$(t.b,65),Set(t.a,new MQ(n,e,t))}function P8(t,e,n){if(t<0||e>n||e<t)throw Um(new _w(bYt+t+yYt+e+lYt+n))}function R8(t){if(!t)throw Um(new Ry("Unable to add element to queue"))}function Q8(t){t?(this.c=t,this.b=null):(this.c=null,this.b=new Mm)}function U8(t,e){ET.call(this,t,e),this.a=O8(Nne,yWt,436,2,0,1),this.b=!0}function $8(t){Zst.call(this,t,0),yF(this),this.d.b=this.d,this.d.a=this.d}function H8(t){var e;return 0==(e=t.b).b?null:Q$(Fmt(e,0),188).b}function j8(t,e){var n;return(n=new j).c=!0,n.d=e.dd(),qKt(t,e.cd(),n)}function K8(t,e){var n;n=t.q.getHours()+(e/3600|0),t.q.setSeconds(e),h$t(t,n)}function z8(t,e,n){var r;(r=t.b[n.c.p][n.p]).b+=e.b,r.c+=e.c,r.a+=e.a,++r.a}function G8(t,n){var r,i;return r=t.a-n.a,i=t.b-n.b,e.Math.sqrt(r*r+i*i)}function X8(){X8=L,rue=new wB("QUADRATIC",0),iue=new wB("SCANLINE",1)}function V8(){V8=L,mve=GK(dj(new Q2,(vEt(),Foe),(hVt(),vce)),Qoe,$ce)}function W8(){return dCt(),Tst(Hw($Be,1),IWt,291,0,[YEe,qEe,WEe,XEe,GEe,VEe])}function q8(){return dbt(),Tst(Hw(JEe,1),IWt,248,0,[TEe,SEe,LEe,IEe,BEe,_Ee])}function Y8(){return IBt(),Tst(Hw(aue,1),IWt,227,0,[Yle,Zle,qle,Jle,tue,Wle])}function J8(){return YEt(),Tst(Hw(mhe,1),IWt,275,0,[rhe,the,ihe,nhe,ehe,Zue])}function Z8(){return Ukt(),Tst(Hw(ahe,1),IWt,274,0,[Vue,Xue,que,Gue,Wue,zue])}function t7(){return Cxt(),Tst(Hw(obe,1),IWt,313,0,[Zme,Yme,Wme,qme,tbe,Jme])}function e7(){return gTt(),Tst(Hw(jue,1),IWt,276,0,[Due,Oue,Nue,Fue,Rue,Pue])}function n7(){return FBt(),Tst(Hw(Pwe,1),IWt,327,0,[Vye,Kye,Gye,zye,Xye,jye])}function r7(){return hSt(),Tst(Hw(BSe,1),IWt,273,0,[nSe,tSe,eSe,Z_e,J_e,rSe])}function i7(){return Zxt(),Tst(Hw(b_e,1),IWt,312,0,[i_e,n_e,a_e,t_e,r_e,e_e])}function a7(){return oTt(),Tst(Hw(Lse,1),IWt,267,0,[Tse,Ese,Cse,Bse,xse,kse])}function o7(t){CF(!!t.c),g2(t.e,t),t.c.Qb(),t.c=null,t.b=Ast(t),hN(t.e,t)}function s7(t){return g2(t.c.a.e,t),EF(t.b!=t.c.a.d),t.a=t.b,t.b=t.b.a,t.a}function c7(t){var e;return t.a||-1==t.b||(e=t.c.Tg(),t.a=eet(e,t.b)),t.a}function l7(t,e){return!(t.hi()&&t.Hc(e)||(t.Yh(e),0))}function u7(t,e){return _Y(e,"Horizontal alignment cannot be null"),t.b=e,t}function h7(t,e,n){var r;return dVt(),r=JGt(t,e),n&&r&&AV(t)&&(r=null),r}function f7(t,e,n){var r;for(r=t.Kc();r.Ob();)JPt(Q$(r.Pb(),37),e,n)}function d7(t,e){var n;for(n=e.Kc();n.Ob();)IRt(t,Q$(n.Pb(),37),0,0)}function A7(t,n,r){var i;t.d[n.g]=r,(i=t.g.c)[n.g]=e.Math.max(i[n.g],r+1)}function g7(t,e){var n,r,i;return i=t.r,r=t.d,(n=iHt(t,e,!0)).b!=i||n.a!=r}function p7(t,e){return uT(t.e,e)||Ypt(t.e,e,new nmt(e)),Q$(utt(t.e,e),113)}function m7(t,e,n,r){return vV(t),vV(e),vV(n),vV(r),new yG(t,e,new K)}function b7(t,e,n,r){this.rj(),this.a=e,this.b=t,this.c=new Yz(this,e,n,r)}function v7(t,e,n,r,i,a){U2.call(this,e,r,i,a),this.c=t,this.b=n}function y7(t,e,n,r,i,a){U2.call(this,e,r,i,a),this.c=t,this.a=n}function w7(t,e,n){var r,i;i=null,(r=jJ(t,n))&&(i=vBt(r)),Gpt(e,n,i)}function k7(t,e,n){var r,i;i=null,(r=jJ(t,n))&&(i=vBt(r)),Gpt(e,n,i)}function C7(t,e,n){var r;return(r=IMt(t.b,e))?OHt(R9(t,r),n):null}function x7(t,e){var n;return(n=t.Yg(e))>=0?t._g(n,!0,!0):iLt(t,e,!0)}function E7(t,e){return Tft(Hy(CN(bEt(t,(lVt(),kfe)))),Hy(CN(bEt(e,kfe))))}function T7(){T7=L,Kwe=spt(spt(RE(new Q2,(Kyt(),Nye)),(FBt(),Vye)),Kye)}function B7(t,e,n){var r;return r=Oct(t,e,n),t.b=new bit(r.c.length),cNt(t,r)}function _7(t){if(t.b<=0)throw Um(new bb);return--t.b,t.a-=t.c.c,nft(t.a)}function S7(t){var e;if(!t.a)throw Um(new uW);return e=t.a,t.a=qJ(t.a),e}function L7(t){for(;!t.a;)if(!kR(t.c,new gA(t)))return!1;return!0}function I7(t){return bX(t),rO(t,198)?Q$(t,198):new of(t)}function M7(t){O7(),Q$(t.We((cVt(),lBe)),174).Fc((hSt(),eSe)),t.Ye(cBe,null)}function O7(){O7=L,Zxe=new As,eEe=new gs,tEe=mlt((cVt(),cBe),Zxe,$Te,eEe)}function D7(){D7=L,rke=new g_("LEAF_NUMBER",0),ike=new g_("NODE_SIZE",1)}function F7(t,e,n){t.a=e,t.c=n,t.b.a.$b(),bq(t.d),t.e.a.c=O8(Lte,$Vt,1,0,5,1)}function N7(t){t.a=O8(_De,lqt,25,t.b+1,15,1),t.c=O8(_De,lqt,25,t.b,15,1),t.d=0}function P7(t,e){t.a.ue(e.d,t.b)>0&&(G$(t.c,new mH(e.c,e.d,t.d)),t.b=e.d)}function R7(t,e){if(null==t.g||e>=t.i)throw Um(new IL(e,t.i));return t.g[e]}function Q7(t,e,n){if(Dlt(t,n),null!=n&&!t.wj(n))throw Um(new ub);return n}function U7(t){var e;if(t.Ek())for(e=t.i-1;e>=0;--e)Xet(t,e);return M3(t)}function $7(t){var e,n;if(!t.b)return null;for(n=t.b;e=n.a[0];)n=e;return n}function H7(t,e){var n;return r4(e),(n=m9(t.slice(0,e),t)).length=e,n}function j7(t,e,n,r){Eq(),r=r||fne,g_t(t.slice(e,n),t,e,n,-e,r)}function K7(t,e,n,r,i){return e<0?iLt(t,n,r):Q$(n,66).Nj().Pj(t,t.yh(),e,r,i)}function z7(t){return rO(t,172)?""+Q$(t,172).a:null==t?null:Udt(t)}function G7(t){return rO(t,172)?""+Q$(t,172).a:null==t?null:Udt(t)}function X7(t,e){if(e.a)throw Um(new dy(_Yt));kG(t.a,e),e.a=t,!t.j&&(t.j=e)}function V7(t,e){pL.call(this,e.rd(),-16449&e.qd()),vV(t),this.a=t,this.c=e}function W7(t,e){var n,r;return r=e/t.c.Hd().gc()|0,n=e%t.c.Hd().gc(),K6(t,r,n)}function q7(){q7=L,Wre=new HT(iJt,0),Vre=new HT(eJt,1),qre=new HT(aJt,2)}function Y7(){Y7=L,Mne=new AT("All",0),One=new II,Dne=new SM,Fne=new MI}function J7(){J7=L,Pne=hut((Y7(),Tst(Hw(Rne,1),IWt,297,0,[Mne,One,Dne,Fne])))}function Z7(){Z7=L,nse=hut((Lst(),Tst(Hw(dse,1),IWt,405,0,[Yoe,tse,Joe,Zoe])))}function t9(){t9=L,Pie=hut((Fot(),Tst(Hw(Hie,1),IWt,406,0,[Fie,Mie,Oie,Die])))}function e9(){e9=L,jie=hut(($mt(),Tst(Hw(Kie,1),IWt,323,0,[Qie,Rie,Uie,$ie])))}function n9(){n9=L,eae=hut((Hmt(),Tst(Hw(rae,1),IWt,394,0,[Yie,qie,Jie,Zie])))}function r9(){r9=L,Uye=hut((Kyt(),Tst(Hw($ye,1),IWt,393,0,[Fye,Nye,Pye,Rye])))}function i9(){i9=L,ole=hut((_st(),Tst(Hw(gle,1),IWt,360,0,[ile,nle,rle,ele])))}function a9(){a9=L,jke=hut((Svt(),Tst(Hw(Xke,1),IWt,340,0,[$ke,Qke,Uke,Rke])))}function o9(){o9=L,wle=hut((Sst(),Tst(Hw(Ble,1),IWt,411,0,[ple,mle,ble,vle])))}function s9(){s9=L,dbe=hut((fbt(),Tst(Hw(vbe,1),IWt,197,0,[ube,hbe,lbe,cbe])))}function c9(){c9=L,lLe=hut((Ult(),Tst(Hw(fLe,1),IWt,396,0,[aLe,oLe,iLe,sLe])))}function l9(){l9=L,E_e=hut((Gyt(),Tst(Hw(F_e,1),IWt,285,0,[C_e,y_e,w_e,k_e])))}function u9(){u9=L,ZBe=hut((xdt(),Tst(Hw(o_e,1),IWt,218,0,[YBe,WBe,VBe,qBe])))}function h9(){h9=L,nLe=hut((QAt(),Tst(Hw(rLe,1),IWt,311,0,[tLe,YSe,ZSe,JSe])))}function f9(){f9=L,QSe=hut((bgt(),Tst(Hw(WSe,1),IWt,374,0,[NSe,PSe,FSe,DSe])))}function d9(){d9=L,H$t(),QOe=Nqt,ROe=Pqt,$Oe=new Md(Nqt),UOe=new Md(Pqt)}function A9(){A9=L,Hue=new _B(WZt,0),$ue=new _B("IMPROVE_STRAIGHTNESS",1)}function g9(t,e){return cH(),G$(t,new nS(e,nft(e.e.c.length+e.g.c.length)))}function p9(t,e){return cH(),G$(t,new nS(e,nft(e.e.c.length+e.g.c.length)))}function m9(t,e){return 10!=ptt(e)&&Tst(tlt(e),e.hm,e.__elementTypeId$,ptt(e),t),t}function b9(t,e){var n;return-1!=(n=w9(t,e,0))&&(s6(t,n),!0)}function v9(t,e){var n;return(n=Q$(p6(t.e,e),387))?(FH(n),n.e):null}function y9(t){var e;return qL(t)&&(e=0-t,!isNaN(e))?e:oot(act(t))}function w9(t,e,n){for(;n<t.c.length;++n)if(rW(e,t.c[n]))return n;return-1}function k9(t,e,n){var r;return wV(t),(r=new ct).a=e,t.a.Nb(new BT(r,n)),r.a}function C9(t){var e;return wV(t),e=O8(MDe,Hqt,25,0,15,1),AC(t.a,new fA(e)),e}function x9(t){var e;return e=Q$(Oj(t.j,0),11),Q$(bEt(e,(lVt(),dfe)),11)}function E9(t){var e;if(!Jrt(t))throw Um(new bb);return t.e=1,e=t.d,t.d=null,e}function T9(t,e){var n;this.f=t,this.b=e,n=Q$(FX(t.b,e),283),this.c=n?n.b:null}function B9(){HQ(),this.b=new Om,this.f=new Om,this.g=new Om,this.e=new Om}function _9(t,e){this.a=O8(_se,a1t,10,t.a.c.length,0,1),Wpt(t.a,this.a),this.b=e}function S9(t){var e;for(e=t.p+1;e<t.c.a.c.length;++e)--Q$(Oj(t.c.a,e),10).p}function L9(t){var e;null!=(e=t.Ai())&&-1!=t.d&&Q$(e,92).Ng(t),t.i&&t.i.Fi()}function I9(t){XM(this),this.g=t?TY(t,t.$d()):null,this.f=t,yq(this),this._d()}function M9(t,e,n,r,i,a,o){yrt.call(this,e,r,i,a,o),this.c=t,this.b=n}function O9(t,e,n,r,i){return vV(t),vV(e),vV(n),vV(r),vV(i),new yG(t,e,r)}function D9(t,e){if(e<0)throw Um(new Sy(Z4t+e));return A3(t,e+1),Oj(t.j,e)}function F9(t,e,n,r){if(!t)throw Um(new Py(IPt(e,Tst(Hw(Lte,1),$Vt,1,5,[n,r]))))}function N9(t,e){return rW(e,Oj(t.f,0))||rW(e,Oj(t.f,1))||rW(e,Oj(t.f,2))}function P9(t,e){IR(Q$(Q$(t.f,33).We((cVt(),aBe)),98))&&Wdt(bW(Q$(t.f,33)),e)}function R9(t,e){var n,r;return!(r=(n=Q$(e,675)).Oh())&&n.Rh(r=new FS(t,e)),r}function Q9(t,e){var n,r;return!(r=(n=Q$(e,677)).pk())&&n.tk(r=new N0(t,e)),r}function U9(t){return t.b||(t.b=new qK(t,GIe,t),!t.a&&(t.a=new oP(t,t))),t.b}function $9(){$9=L,_oe=new GT("XY",0),Boe=new GT("X",1),Soe=new GT("Y",2)}function H9(){H9=L,rie=new jT("TOP",0),nie=new jT(eJt,1),eie=new jT(sJt,2)}function j9(){j9=L,Ehe=new OB(WZt,0),The=new OB("TOP",1),xhe=new OB(sJt,2)}function K9(){K9=L,Nbe=new HB("INPUT_ORDER",0),Pbe=new HB("PORT_DEGREE",1)}function z9(){z9=L,fee=CM(Eqt,Eqt,524287),dee=CM(0,0,Bqt),Aee=R5(1),R5(2),gee=R5(0)}function G9(t,e,n){t.a.c=O8(Lte,$Vt,1,0,5,1),Gjt(t,e,n),0==t.a.c.length||uQt(t,e)}function X9(t){var e,n;return WG(t,0,n=t.length,e=O8(BDe,XWt,25,n,15,1),0),e}function V9(t){var e;return t.dh()||(e=hX(t.Tg())-t.Ah(),t.ph().bk(e)),t.Pg()}function W9(t){var e;return null==(e=ent(vot(t,32)))&&(upt(t),e=ent(vot(t,32))),e}function q9(t,e){var n;return(n=LAt(t.d,e))>=0?Jmt(t,n,!0,!0):iLt(t,e,!0)}function Y9(t,e){var n,r;return CE(),n=l3(t),r=l3(e),!!n&&!!r&&!Pmt(n.k,r.k)}function J9(t,e){Tnt(t,null==e||GR((vV(e),e))||isNaN((vV(e),e))?0:(vV(e),e))}function Z9(t,e){Bnt(t,null==e||GR((vV(e),e))||isNaN((vV(e),e))?0:(vV(e),e))}function ttt(t,e){Ent(t,null==e||GR((vV(e),e))||isNaN((vV(e),e))?0:(vV(e),e))}function ett(t,e){xnt(t,null==e||GR((vV(e),e))||isNaN((vV(e),e))?0:(vV(e),e))}function ntt(t){(this.q?this.q:(xq(),xq(),lne)).Ac(t.q?t.q:(xq(),xq(),lne))}function rtt(t,e){return rO(e,99)&&Q$(e,18).Bb&Uqt?new OL(e,t):new Lot(e,t)}function itt(t,e){return rO(e,99)&&Q$(e,18).Bb&Uqt?new OL(e,t):new Lot(e,t)}function att(t,e){Xie=new ne,tae=e,Q$((Gie=t).b,65),N8(Gie,Xie,null),ojt(Gie)}function ott(t,e,n){var r;return r=t.g[e],yO(t,e,t.oi(e,n)),t.gi(e,n,r),t.ci(),r}function stt(t,e){var n;return(n=t.Xc(e))>=0&&(t.$c(n),!0)}function ctt(t){var e;return t.d!=t.r&&(e=_wt(t),t.e=!!e&&e.Cj()==k7t,t.d=e),t.e}function ltt(t,e){var n;for(bX(t),bX(e),n=!1;e.Ob();)n|=t.Fc(e.Pb());return n}function utt(t,e){var n;return(n=Q$(FX(t.e,e),387))?(aO(t,n),n.e):null}function htt(t){var e,n;return e=t/60|0,0==(n=t%60)?""+e:e+":"+n}function ftt(t,e){return Wft(t),new Fj(t,new NR(new C6(e,t.a)))}function dtt(t,e){var n=t.a[e],r=(Jst(),uee)[typeof n];return r?r(n):yut(typeof n)}function Att(t){switch(t.g){case 0:return FVt;case 1:return-1;default:return 0}}function gtt(t){return Pwt(t,(z9(),gee))<0?-TD(act(t)):t.l+t.m*_qt+t.h*Sqt}function ptt(t){return null==t.__elementTypeCategory$?10:t.__elementTypeCategory$}function mtt(t){var e;return null!=(e=0==t.b.c.length?null:Oj(t.b,0))&&lit(t,0),e}function btt(t,e){for(;e[0]<t.length&&HL(" \t\r\n",qxt(lW(t,e[0])))>=0;)++e[0]}function vtt(t,e){this.e=e,this.a=Vot(t),this.a<54?this.f=y2(t):this.c=Zpt(t)}function ytt(t,e,n,r){dVt(),Sm.call(this,26),this.c=t,this.a=e,this.d=n,this.b=r}function wtt(t,e,n){var r,i;for(r=10,i=0;i<n-1;i++)e<r&&(t.a+="0"),r*=10;t.a+=e}function ktt(t,e){var n;for(n=0;t.e!=t.i.gc();)Aj(e,ymt(t),nft(n)),n!=FVt&&++n}function Ctt(t,e){var n;for(++t.d,++t.c[e],n=e+1;n<t.a.length;)++t.a[n],n+=n&-n}function xtt(t,e){var n,r,i;i=e.c.i,r=(n=Q$(FX(t.f,i),57)).d.c-n.e.c,qit(e.a,r,0)}function Ett(t){var e,n;return e=t+128,!(n=(yj(),wee)[e])&&(n=wee[e]=new Ld(t)),n}function Ttt(t,e){var n;return vV(e),Ott(!!(n=t[":"+e]),Tst(Hw(Lte,1),$Vt,1,5,[e])),n}function Btt(t){var e,n;if(t.b){n=null;do{e=t.b,t.b=null,n=cBt(e,n)}while(t.b);t.b=n}}function _tt(t){var e,n;if(t.a){n=null;do{e=t.a,t.a=null,n=cBt(e,n)}while(t.a);t.a=n}}function Stt(t){var e;for(++t.a,e=t.c.a.length;t.a<e;++t.a)if(t.c.b[t.a])return}function Ltt(t,e){var n,r;for(n=(r=e.c)+1;n<=e.f;n++)t.a[n]>t.a[r]&&(r=n);return r}function Itt(t,e){var n;return 0==(n=_dt(t.e.c,e.e.c))?Tft(t.e.d,e.e.d):n}function Mtt(t,e){return 0==e.e||0==t.e?ene:(ILt(),LDt(t,e))}function Ott(t,e){if(!t)throw Um(new Py(qDt("Enum constant undefined: %s",e)))}function Dtt(){Dtt=L,ase=new Ee,ose=new Ce,rse=new Le,ise=new Ie,sse=new Me}function Ftt(){Ftt=L,pre=new QT("BY_SIZE",0),mre=new QT("BY_SIZE_AND_SHAPE",1)}function Ntt(){Ntt=L,Dae=new zT("EADES",0),Fae=new zT("FRUCHTERMAN_REINGOLD",1)}function Ptt(){Ptt=L,xue=new EB("READING_DIRECTION",0),Eue=new EB("ROTATION",1)}function Rtt(){Rtt=L,Cue=hut((Vbt(),Tst(Hw(Tue,1),IWt,335,0,[bue,mue,yue,wue,vue])))}function Qtt(){Qtt=L,ybe=hut((Obt(),Tst(Hw(Sbe,1),IWt,315,0,[bbe,gbe,pbe,Abe,mbe])))}function Utt(){Utt=L,_le=hut((MCt(),Tst(Hw(Nle,1),IWt,363,0,[Cle,Ele,Tle,xle,kle])))}function $tt(){$tt=L,jfe=hut((Cdt(),Tst(Hw(ebe,1),IWt,163,0,[$fe,Pfe,Rfe,Qfe,Ufe])))}function Htt(){Htt=L,sxe=hut((ITt(),Tst(Hw(jxe,1),IWt,316,0,[exe,nxe,axe,rxe,ixe])))}function jtt(){jtt=L,hEe=hut((rmt(),Tst(Hw(yEe,1),IWt,175,0,[cEe,sEe,aEe,lEe,oEe])))}function Ktt(){Ktt=L,QCe=hut((qOt(),Tst(Hw(jCe,1),IWt,355,0,[DCe,OCe,NCe,FCe,PCe])))}function ztt(){ztt=L,$oe=hut((vEt(),Tst(Hw(Koe,1),IWt,356,0,[Foe,Noe,Poe,Roe,Qoe])))}function Gtt(){Gtt=L,HBe=hut((Qht(),Tst(Hw(GBe,1),IWt,103,0,[QBe,RBe,PBe,NBe,UBe])))}function Xtt(){Xtt=L,j_e=hut((imt(),Tst(Hw(q_e,1),IWt,249,0,[Q_e,$_e,P_e,R_e,U_e])))}function Vtt(){Vtt=L,_Se=hut((yGt(),Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe])))}function Wtt(t,e){var n;return(n=Q$(FX(t.a,e),134))||(n=new Jt,XV(t.a,e,n)),n}function qtt(t){var e;return!!(e=Q$(bEt(t,(lVt(),Fhe)),305))&&e.a==t}function Ytt(t){var e;return!!(e=Q$(bEt(t,(lVt(),Fhe)),305))&&e.i==t}function Jtt(t,e){return vV(e),Dz(t),!!t.d.Ob()&&(e.td(t.d.Pb()),!0)}function Ztt(t){return Vut(t,FVt)>0?FVt:Vut(t,RWt)<0?RWt:dK(t)}function tet(t){return t<3?(hrt(t,_Wt),t+1):t<SWt?TJ(t/.75+1):FVt}function eet(t,e){var n;return null==t.i&&HUt(t),n=t.i,e>=0&&e<n.length?n[e]:null}function net(t,e,n){var r;if(null==e)throw Um(new Ab);return r=jJ(t,e),e4(t,e,n),r}function ret(t){return t.a>=-.01&&t.a<=uJt&&(t.a=0),t.b>=-.01&&t.b<=uJt&&(t.b=0),t}function iet(t,e){return e==(rQ(),rQ(),Cne)?t.toLocaleLowerCase():t.toLowerCase()}function aet(t){return(2&t.i?"interface ":1&t.i?"":"class ")+(wN(t),t.o)}function oet(t){var e;e=new Lv,l7((!t.q&&(t.q=new tG(XIe,t,11,10)),t.q),e)}function set(t,e){var n;return n=e>0?e-1:e,Lk(Ik(Qnt(IH(new zv,n),t.n),t.j),t.k)}function cet(t,e,n,r){t.j=-1,HLt(t,kBt(t,e,n),(YE(),Q$(e,66).Mj().Ok(r)))}function uet(t){this.g=t,this.f=new Mm,this.a=e.Math.min(this.g.c.c,this.g.d.c)}function het(t){this.b=new Mm,this.a=new Mm,this.c=new Mm,this.d=new Mm,this.e=t}function fet(t,e){this.a=new Om,this.e=new Om,this.b=(xut(),abe),this.c=t,this.b=e}function det(t,e,n){MP.call(this),Det(this),this.a=t,this.c=n,this.b=e.d,this.f=e.e}function Aet(t){this.d=t,this.c=t.c.vc().Kc(),this.b=null,this.a=null,this.e=(ny(),Kte)}function get(t){if(t<0)throw Um(new Py("Illegal Capacity: "+t));this.g=this.ri(t)}function pet(t,e){if(0>t||t>e)throw Um(new kw("fromIndex: 0, toIndex: "+t+lYt+e))}function met(t){var e;if(t.a==t.b.a)throw Um(new bb);return e=t.a,t.c=e,t.a=t.a.e,e}function bet(t){var e;CF(!!t.c),e=t.c.a,Let(t.d,t.c),t.b==t.c?t.b=e:--t.a,t.c=null}function vet(t,e){var n;return Wft(t),n=new pq(t,t.a.rd(),4|t.a.qd(),e),new Fj(t,n)}function yet(t,e){var n,r;return(n=Q$(hht(t.d,e),14))?(r=e,t.e.pc(r,n)):null}function wet(t,e){var n;for(n=t.Kc();n.Ob();)lct(Q$(n.Pb(),70),(lVt(),afe),e)}function ket(t){var e;return(e=Hy(CN(bEt(t,($Xt(),ipe)))))<0&&lct(t,ipe,e=0),e}function Cet(t,n,r){var i;Qwt(r,i=e.Math.max(0,t.b/2-.5),1),G$(n,new eB(r,i))}function xet(t,e,n){return TJ(UH(t.a.e[Q$(e.a,10).p]-t.a.e[Q$(n.a,10).p]))}function Eet(t,e,n,r,i,a){var o;xZ(o=G5(r),i),CZ(o,a),YSt(t.a,r,new IQ(o,e,n.f))}function Tet(t,e){var n;if(!(n=ODt(t.Tg(),e)))throw Um(new Py(r6t+e+o6t));return n}function Bet(t,e){var n;for(n=t;qJ(n);)if((n=qJ(n))==e)return!0;return!1}function _et(t,e){var n,r,i;for(r=e.a.cd(),n=Q$(e.a.dd(),14).gc(),i=0;i<n;i++)t.td(r)}function Set(t,e){var n,r,i,a;for(vV(e),i=0,a=(r=t.c).length;i<a;++i)n=r[i],e.td(n)}function Let(t,e){var n;return n=e.c,e.a.b=e.b,e.b.a=e.a,e.a=e.b=null,e.c=null,--t.b,n}function Iet(t,e){return!(!e||t.b[e.g]!=e||(LX(t.b,e.g,null),--t.c,0))}function Met(t,e){return!!Jit(t,e,dK(idt(EWt,nW(dK(idt(null==e?0:Zct(e),TWt)),15))))}function Oet(t,e){IR(Q$(bEt(Q$(t.e,10),($Xt(),tme)),98))&&(xq(),mM(Q$(t.e,10).j,e))}function Det(t){t.b=(q7(),Vre),t.f=(H9(),nie),t.d=(hrt(2,LWt),new q6(2)),t.e=new Hk}function Fet(){Fet=L,Hre=new $T("BEGIN",0),jre=new $T(eJt,1),Kre=new $T("END",2)}function Net(){Net=L,jBe=new P_(eJt,0),KBe=new P_("HEAD",1),zBe=new P_("TAIL",2)}function Pet(){return lIt(),Tst(Hw(rIe,1),IWt,237,0,[tIe,YLe,JLe,qLe,ZLe,VLe,XLe,WLe])}function Ret(){return TBt(),Tst(Hw(xEe,1),IWt,277,0,[vEe,fEe,pEe,bEe,dEe,AEe,gEe,mEe])}function Qet(){return yNt(),Tst(Hw(eue,1),IWt,270,0,[Qle,Hle,Rle,zle,$le,Ule,Kle,jle])}function Uet(){return cDt(),Tst(Hw(Dbe,1),IWt,260,0,[Bbe,kbe,Ebe,Cbe,xbe,wbe,Tbe,_be])}function $et(){$et=L,Y_e=hut((WCt(),Tst(Hw(iSe,1),IWt,98,0,[W_e,V_e,X_e,K_e,G_e,z_e])))}function Het(){Het=L,Jre=(Fet(),Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])).length,Yre=Jre}function jet(t){this.b=(bX(t),new ZR(t)),this.a=new Mm,this.d=new Mm,this.e=new Hk}function Ket(t){var n;return(n=e.Math.sqrt(t.a*t.a+t.b*t.b))>0&&(t.a/=n,t.b/=n),t}function zet(t){var e;return t.w?t.w:((e=X1(t))&&!e.kh()&&(t.w=e),e)}function Get(t){var e;return null==t?null:Vxt(e=Q$(t,190),e.length)}function Xet(t,e){if(null==t.g||e>=t.i)throw Um(new IL(e,t.i));return t.li(e,t.g[e])}function Vet(t){var e,n;for(e=t.a.d.j,n=t.c.d.j;e!=n;)sit(t.b,e),e=xft(e);sit(t.b,e)}function Wet(t){var e;for(e=0;e<t.c.length;e++)(u1(e,t.c.length),Q$(t.c[e],11)).p=e}function qet(t,e,n){var r,i,a;for(i=e[n],r=0;r<i.length;r++)a=i[r],t.e[a.c.p][a.p]=r}function Yet(t,e){var n,r,i,a;for(i=0,a=(r=t.d).length;i<a;++i)n=r[i],uO(t.g,n).a=e}function Jet(t,e){var n;for(n=cmt(t,0);n.b!=n.d.c;)KP(Q$(h3(n),8),e);return t}function Zet(t,e){return zP(QM(Q$(FX(t.g,e),8)),PM(Q$(FX(t.f,e),460).b))}function tnt(t){var e;return g2(t.e,t),EF(t.b),t.c=t.a,e=Q$(t.a.Pb(),42),t.b=Ast(t),e}function ent(t){var e;return qH(null==t||Array.isArray(t)&&!((e=ptt(t))>=14&&e<=16)),t}function nnt(t,e,n){var r=function(){return t.apply(r,arguments)};return e.apply(r,n),r}function rnt(t,e,n){var r,i;r=e;do{i=Hy(t.p[r.p])+n,t.p[r.p]=i,r=t.a[r.p]}while(r!=e)}function int(t,e){var n,r;r=t.a,n=Wht(t,e,null),r!=e&&!t.e&&(n=azt(t,e,n)),n&&n.Fi()}function ant(t,n){return cM(),rrt(PWt),e.Math.abs(t-n)<=PWt||t==n||isNaN(t)&&isNaN(n)}function ont(t,n){return cM(),rrt(PWt),e.Math.abs(t-n)<=PWt||t==n||isNaN(t)&&isNaN(n)}function snt(t,e){return REt(),wM(t.b.c.length-t.e.c.length,e.b.c.length-e.e.c.length)}function cnt(t,e){return Yk(Yit(t,e,dK(idt(EWt,nW(dK(idt(null==e?0:Zct(e),TWt)),15)))))}function lnt(){lnt=L,Sse=hut((oTt(),Tst(Hw(Lse,1),IWt,267,0,[Tse,Ese,Cse,Bse,xse,kse])))}function unt(){unt=L,ZEe=hut((dCt(),Tst(Hw($Be,1),IWt,291,0,[YEe,qEe,WEe,XEe,GEe,VEe])))}function hnt(){hnt=L,OEe=hut((dbt(),Tst(Hw(JEe,1),IWt,248,0,[TEe,SEe,LEe,IEe,BEe,_Ee])))}function fnt(){fnt=L,nue=hut((IBt(),Tst(Hw(aue,1),IWt,227,0,[Yle,Zle,qle,Jle,tue,Wle])))}function dnt(){dnt=L,ohe=hut((YEt(),Tst(Hw(mhe,1),IWt,275,0,[rhe,the,ihe,nhe,ehe,Zue])))}function Ant(){Ant=L,Jue=hut((Ukt(),Tst(Hw(ahe,1),IWt,274,0,[Vue,Xue,que,Gue,Wue,zue])))}function gnt(){gnt=L,nbe=hut((Cxt(),Tst(Hw(obe,1),IWt,313,0,[Zme,Yme,Wme,qme,tbe,Jme])))}function pnt(){pnt=L,Uue=hut((gTt(),Tst(Hw(jue,1),IWt,276,0,[Due,Oue,Nue,Fue,Rue,Pue])))}function mnt(){mnt=L,qye=hut((FBt(),Tst(Hw(Pwe,1),IWt,327,0,[Vye,Kye,Gye,zye,Xye,jye])))}function bnt(){bnt=L,aSe=hut((hSt(),Tst(Hw(BSe,1),IWt,273,0,[nSe,tSe,eSe,Z_e,J_e,rSe])))}function vnt(){vnt=L,s_e=hut((Zxt(),Tst(Hw(b_e,1),IWt,312,0,[i_e,n_e,a_e,t_e,r_e,e_e])))}function ynt(){return ZIt(),Tst(Hw(H_e,1),IWt,93,0,[B_e,T_e,S_e,D_e,O_e,M_e,L_e,I_e,__e])}function wnt(t,e){var n;n=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&fot(t,new l4(t,0,n,t.a))}function knt(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&fot(t,new l4(t,1,n,t.b))}function Cnt(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&fot(t,new l4(t,3,n,t.b))}function xnt(t,e){var n;n=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&fot(t,new l4(t,3,n,t.f))}function Ent(t,e){var n;n=t.g,t.g=e,4&t.Db&&!(1&t.Db)&&fot(t,new l4(t,4,n,t.g))}function Tnt(t,e){var n;n=t.i,t.i=e,4&t.Db&&!(1&t.Db)&&fot(t,new l4(t,5,n,t.i))}function Bnt(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&fot(t,new l4(t,6,n,t.j))}function _nt(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&fot(t,new l4(t,1,n,t.j))}function Snt(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&fot(t,new l4(t,4,n,t.c))}function Lnt(t,e){var n;n=t.k,t.k=e,4&t.Db&&!(1&t.Db)&&fot(t,new l4(t,2,n,t.k))}function Int(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&fot(t,new u4(t,2,n,t.d))}function Mnt(t,e){var n;n=t.s,t.s=e,4&t.Db&&!(1&t.Db)&&fot(t,new u4(t,4,n,t.s))}function Ont(t,e){var n;n=t.t,t.t=e,4&t.Db&&!(1&t.Db)&&fot(t,new u4(t,5,n,t.t))}function Dnt(t,e){var n;n=t.F,t.F=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,5,n,e))}function Fnt(t,e){var n;return(n=Q$(FX((JE(),pIe),t),55))?n.xj(e):O8(Lte,$Vt,1,e,5,1)}function Nnt(t,e){var n;return e in t.a&&(n=jJ(t,e).he())?n.a:null}function Pnt(t,e){var n,r;return Zk(),r=new cc,!!e&&_Dt(r,e),Drt(n=r,t),n}function Rnt(t,e,n){if(Dlt(t,n),!t.Bk()&&null!=n&&!t.wj(n))throw Um(new ub);return n}function Qnt(t,e){return t.n=e,t.n?(t.f=new Mm,t.e=new Mm):(t.f=null,t.e=null),t}function Unt(t,e,n,r,i,a){var o;return Wnt(n,o=mX(t,e)),o.i=i?8:0,o.f=r,o.e=i,o.g=a,o}function $nt(t,e,n,r,i){this.d=e,this.k=r,this.f=i,this.o=-1,this.p=1,this.c=t,this.a=n}function Hnt(t,e,n,r,i){this.d=e,this.k=r,this.f=i,this.o=-1,this.p=2,this.c=t,this.a=n}function jnt(t,e,n,r,i){this.d=e,this.k=r,this.f=i,this.o=-1,this.p=6,this.c=t,this.a=n}function Knt(t,e,n,r,i){this.d=e,this.k=r,this.f=i,this.o=-1,this.p=7,this.c=t,this.a=n}function znt(t,e,n,r,i){this.d=e,this.j=r,this.e=i,this.o=-1,this.p=4,this.c=t,this.a=n}function Gnt(t,e){var n,r,i,a;for(i=0,a=(r=e).length;i<a;++i)n=r[i],X7(t.a,n);return t}function Xnt(t){var e,n,r;for(n=0,r=(e=t).length;n<r;++n)bX(e[n]);return new SL(t)}function Vnt(t){var e=/function(?:\s+([\w$]+))?\s*\(/.exec(t);return e&&e[1]||KWt}function Wnt(t,e){if(t){e.n=t;var n=KJ(e);n?n.gm=e:EVt[t]=[e]}}function qnt(t,n,r){var i;return i=t.length,R_t(t,0,n,0,e.Math.min(r,i),!0),n}function Ynt(t,e,n){var r,i;for(i=e.Kc();i.Ob();)r=Q$(i.Pb(),79),kG(t,Q$(n.Kb(r),33))}function Jnt(){WC();for(var t=TVt,e=0;e<arguments.length;e++)t.push(arguments[e])}function Znt(t,e){var n,r,i;for(r=0,i=(n=e).length;r<i;++r)n5(t,n[r],t.c.b,t.c)}function trt(t,n){t.b=e.Math.max(t.b,n.d),t.e+=n.r+(0==t.a.c.length?0:t.c),G$(t.a,n)}function ert(t){CF(t.c>=0),rpt(t.d,t.c)<0&&(t.a=t.a-1&t.d.a.length-1,t.b=t.d.c),t.c=-1}function nrt(t){return t.a<54?t.f<0?-1:t.f>0?1:0:(!t.c&&(t.c=vut(t.f)),t.c).e}function rrt(t){if(!(t>=0))throw Um(new Py("tolerance ("+t+") must be >= 0"));return t}function irt(){return rEe||ylt(rEe=new SPt,Tst(Hw(Pre,1),$Vt,130,0,[new Ih])),rEe}function art(){art=L,Hbe=new jB(lJt,0),Ube=new jB("INPUT",1),$be=new jB("OUTPUT",2)}function ort(){ort=L,fue=new CB("ARD",0),Aue=new CB("MSD",1),due=new CB("MANUAL",2)}function srt(){srt=L,_ve=new WB("BARYCENTER",0),Sve=new WB(k1t,1),Lve=new WB(C1t,2)}function crt(t,e){var n;if(n=t.gc(),e<0||e>n)throw Um(new ZP(e,n));return new FR(t,e)}function lrt(t,e){var n;return rO(e,42)?t.c.Mc(e):(n=rgt(t,e),Xgt(t,e),n)}function urt(t,e,n){return _ut(t,e),Oit(t,n),Mnt(t,0),Ont(t,1),Zht(t,!0),qht(t,!0),t}function hrt(t,e){if(t<0)throw Um(new Py(e+" cannot be negative but was: "+t));return t}function frt(t,e){var n,r;for(n=0,r=t.gc();n<r;++n)if(rW(e,t.Xb(n)))return n;return-1}function drt(t){var e;for(e=t.c.Cc().Kc();e.Ob();)Q$(e.Pb(),14).$b();t.c.$b(),t.d=0}function Art(t){var e,n,r,i;for(r=0,i=(n=t.a).length;r<i;++r)VG(e=n[r],e.length,null)}function grt(t){var e,n;if(0==t)return 32;for(n=0,e=1;!(e&t);e<<=1)++n;return n}function prt(t){var e;for(e=new Gd(eyt(t));e.a<e.c.c.length;)Q$(J1(e),680).Gf()}function mrt(t){pE(),this.g=new Om,this.f=new Om,this.b=new Om,this.c=new gJ,this.i=t}function brt(){this.f=new Hk,this.d=new fv,this.c=new Hk,this.a=new Mm,this.b=new Mm}function vrt(t,e,n,r){this.rj(),this.a=e,this.b=t,this.c=null,this.c=new uR(this,e,n,r)}function yrt(t,e,n,r,i){this.d=t,this.n=e,this.g=n,this.o=r,this.p=-1,i||(this.o=-2-r-1)}function wrt(){_O.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=y6t}function krt(){return ZRt(),Tst(Hw(eLe,1),IWt,259,0,[HSe,KSe,$Se,zSe,GSe,VSe,XSe,jSe,USe])}function Crt(){return tPt(),Tst(Hw(Qre,1),IWt,250,0,[Fre,Lre,Ire,Sre,Ore,Dre,Mre,_re,Bre])}function xrt(){xrt=L,See=Tst(Hw(_De,1),lqt,25,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function Ert(){Ert=L,vve=dj(dj(dj(new Q2,(vEt(),Foe),(hVt(),rce)),Noe,_ce),Poe,Bce)}function Trt(){Trt=L,yve=dj(dj(dj(new Q2,(vEt(),Foe),(hVt(),rce)),Noe,_ce),Poe,Bce)}function Brt(){Brt=L,Cve=dj(dj(dj(new Q2,(vEt(),Foe),(hVt(),rce)),Noe,_ce),Poe,Bce)}function _rt(){_rt=L,Tve=GK(dj(dj(new Q2,(vEt(),Poe),(hVt(),Ice)),Roe,wce),Qoe,Lce)}function Srt(){Srt=L,cue=new kB("LAYER_SWEEP",0),sue=new kB(U1t,1),lue=new kB(WZt,2)}function Lrt(t,e){var n,r;return n=t.c,(r=e.e[t.p])>0?Q$(Oj(n.a,r-1),10):null}function Irt(t,e){var n;n=t.k,t.k=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,2,n,t.k))}function Mrt(t,e){var n;n=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,8,n,t.f))}function Ort(t,e){var n;n=t.i,t.i=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,7,n,t.i))}function Drt(t,e){var n;n=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,8,n,t.a))}function Frt(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,0,n,t.b))}function Nrt(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,0,n,t.b))}function Prt(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,1,n,t.c))}function Rrt(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,1,n,t.c))}function Qrt(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,4,n,t.c))}function Urt(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,1,n,t.d))}function $rt(t,e){var n;n=t.D,t.D=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,2,n,t.D))}function Hrt(t,e){t.r>0&&t.c<t.r&&(t.c+=e,t.i&&t.i.d>0&&0!=t.g&&Hrt(t.i,e/t.r*t.i.d))}function jrt(t,e,n){var r;t.b=e,t.a=n,r=512&~t.a?new Nu:new Rv,t.c=xNt(r,t.b,t.a)}function Krt(t,e){return IFt(t.e,e)?(YE(),ctt(e)?new uj(e,t):new OS(e,t)):new NS(e,t)}function zrt(t,e){return qk(Jit(t.a,e,dK(idt(EWt,nW(dK(idt(null==e?0:Zct(e),TWt)),15)))))}function Grt(t,e,n){return O9(t,new lA(e),new ot,new uA(n),Tst(Hw(Jne,1),IWt,132,0,[]))}function Xrt(t){return 0>t?new Xx:new LN(null,new m5(t+1,t))}function Vrt(t,e){var n;return xq(),n=new zx(1),zS(t)?mZ(n,t,e):w_t(n.f,t,e),new zd(n)}function Wrt(t,e){var n,r;return(n=t.o+t.p)<(r=e.o+e.p)?-1:n==r?0:1}function qrt(t){var e;return rO(e=bEt(t,(lVt(),dfe)),160)?bAt(Q$(e,160)):null}function Yrt(t){var n;return(t=e.Math.max(t,2))>(n=yct(t))?(n<<=1)>0?n:SWt:n}function Jrt(t){switch(aD(3!=t.e),t.e){case 2:return!1;case 0:return!0}return P5(t)}function Zrt(t,e){var n;return!!rO(e,8)&&(n=Q$(e,8),t.a==n.a&&t.b==n.b)}function tit(t,e,n){var r,i;return i=e>>5,r=31&e,t0(yz(t.n[n][i],dK(bz(r,1))),3)}function eit(t,e){var n,r;for(r=e.vc().Kc();r.Ob();)mkt(t,(n=Q$(r.Pb(),42)).cd(),n.dd())}function nit(t,e){var n;n=new ne,Q$(e.b,65),Q$(e.b,65),Q$(e.b,65),Set(e.a,new k$(t,n,e))}function rit(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,21,n,t.b))}function iit(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,11,n,t.d))}function ait(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,13,n,t.j))}function oit(t,e,n){var r,i,a;for(a=t.a.length-1,i=t.b,r=0;r<n;i=i+1&a,++r)LX(e,r,t.a[i])}function sit(t,e){var n;return vV(e),n=e.g,!t.b[n]&&(LX(t.b,n,e),++t.c,!0)}function cit(t,e){var n;return!((n=null==e?-1:w9(t.b,e,0))<0||(lit(t,n),0))}function lit(t,e){var n;n=s6(t.b,t.b.c.length-1),e<t.b.c.length&&(r5(t.b,e,n),P_t(t,e))}function uit(t,e){0==(v5(),Vne?null:e.c).length&&jN(e,new X),mZ(t.a,Vne?null:e.c,e)}function hit(t,e){Sxt(e,"Hierarchical port constraint processing",1),fmt(t),qXt(t),$Tt(e)}function fit(t,e){var n,r;for(r=e.Kc();r.Ob();)n=Q$(r.Pb(),266),t.b=!0,kG(t.e,n),n.b=t}function dit(t,e){var n,r;return n=1-e,r=t.a[n],t.a[n]=r.a[e],r.a[e]=t,t.b=!0,r.b=!1,r}function Ait(t,e){var n,r;return n=Q$(bEt(t,($Xt(),sme)),8),r=Q$(bEt(e,sme),8),Tft(n.b,r.b)}function git(t){FK.call(this),this.b=Hy(CN(bEt(t,($Xt(),bme)))),this.a=Q$(bEt(t,Yge),218)}function pit(t,e,n){H2.call(this,t,e,n),this.a=new Om,this.b=new Om,this.d=new Gg(this)}function mit(t){this.e=t,this.d=new hC(tet(Az(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function bit(t){this.b=t,this.a=O8(_De,lqt,25,t+1,15,1),this.c=O8(_De,lqt,25,t,15,1),this.d=0}function vit(t,e,n){var r;return wFt(t,e,r=new Mm,n,!0,!0),t.b=new bit(r.c.length),r}function yit(t,e){var n;return(n=Q$(FX(t.c,e),458))||((n=new rv).c=e,XV(t.c,n.c,n)),n}function wit(t,e){var n=t.a,r=0;for(var i in n)n.hasOwnProperty(i)&&(e[r++]=i);return e}function kit(t){return null==t.b?(WE(),WE(),MMe):t.Lk()?t.Kk():t.Jk()}function Cit(t){var e,n;for(n=new SO(t);n.e!=n.i.gc();)Tnt(e=Q$(ymt(n),33),0),Bnt(e,0)}function xit(){xit=L,soe=new am(SZt),coe=new am(LZt),ooe=new am(IZt),aoe=new am(MZt)}function Eit(){Eit=L,$se=new YT("TO_INTERNAL_LTR",0),Use=new YT("TO_INPUT_DIRECTION",1)}function Tit(){Tit=L,Vwe=new d_("P1_NODE_PLACEMENT",0),Wwe=new d_("P2_EDGE_ROUTING",1)}function Bit(){Bit=L,Fle=new vB("START",0),Dle=new vB("MIDDLE",1),Ole=new vB("END",2)}function _it(){_it=L,Zce=new eP("edgelabelcenterednessanalysis.includelabel",(cD(),pee))}function Sit(t,e){qx(SW(new Fj(null,new f1(new Td(t.b),1)),new q_(t,e)),new J_(t,e))}function Lit(){this.c=new BC(0),this.b=new BC(U3t),this.d=new BC(Q3t),this.a=new BC(YJt)}function Iit(t){var e,n;for(n=t.c.a.ec().Kc();n.Ob();)Kf(e=Q$(n.Pb(),214),new $Et(e.e))}function Mit(t){var e,n;for(n=t.c.a.ec().Kc();n.Ob();)jf(e=Q$(n.Pb(),214),new Xz(e.f))}function Oit(t,e){var n;n=t.zb,t.zb=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,1,n,t.zb))}function Dit(t,e){var n;n=t.xb,t.xb=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,3,n,t.xb))}function Fit(t,e){var n;n=t.yb,t.yb=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,2,n,t.yb))}function Nit(t,e){var n;(n=new _v).n=e,l7((!t.s&&(t.s=new tG(PIe,t,21,17)),t.s),n)}function Pit(t,e){var n;(n=new gN).n=e,l7((!t.s&&(t.s=new tG(PIe,t,21,17)),t.s),n)}function Rit(t,e){var n,r;for(j7(n=t.Pc(),0,n.length,e),r=0;r<n.length;r++)t._c(r,n[r])}function Qit(t,e){var n,r,i;for(vV(e),n=!1,i=e.Kc();i.Ob();)r=i.Pb(),n|=t.Fc(r);return n}function Uit(t){var e,n,r;for(e=0,r=t.Kc();r.Ob();)e=~~(e+=null!=(n=r.Pb())?Zct(n):0);return e}function $it(t){var e;return 0==t?"UTC":(t<0?(t=-t,e="UTC+"):e="UTC-",e+htt(t))}function Hit(t,e){var n;return rO(e,14)?(n=Q$(e,14),t.Gc(n)):ltt(t,Q$(bX(e),20).Kc())}function jit(t,e,n){fet.call(this,e,n),this.d=O8(_se,a1t,10,t.a.c.length,0,1),Wpt(t.a,this.d)}function Kit(t){t.a=null,t.e=null,t.b.c=O8(Lte,$Vt,1,0,5,1),t.f.c=O8(Lte,$Vt,1,0,5,1),t.c=null}function zit(t,e){e?null==t.B&&(t.B=t.D,t.D=null):null!=t.B&&(t.D=t.B,t.B=null)}function Git(t,e){return Hy(CN(LD(Iht(LW(new Fj(null,new f1(t.c.b,16)),new Og(t)),e))))}function Xit(t,e){return Hy(CN(LD(Iht(LW(new Fj(null,new f1(t.c.b,16)),new Mg(t)),e))))}function Vit(t,e){Sxt(e,y1t,1),qx(ftt(new Fj(null,new f1(t.b,16)),new Je),new Ze),$Tt(e)}function Wit(t,e){var n,r;return n=Q$(JIt(t,(zyt(),Ike)),19),r=Q$(JIt(e,Ike),19),wM(n.a,r.a)}function qit(t,e,n){var r,i;for(i=cmt(t,0);i.b!=i.d.c;)(r=Q$(h3(i),8)).a+=e,r.b+=n;return t}function Yit(t,e,n){var r;for(r=t.b[n&t.f];r;r=r.b)if(n==r.a&&fV(e,r.g))return r;return null}function Jit(t,e,n){var r;for(r=t.c[n&t.f];r;r=r.d)if(n==r.f&&fV(e,r.i))return r;return null}function Zit(t,e,n){var r,i,a;for(r=0,i=0;i<n;i++)a=e[i],t[i]=a<<1|r,r=a>>>31;0!=r&&(t[n]=r)}function tat(t,e){var n,r;for(xq(),r=new Mm,n=0;n<t;++n)r.c[r.c.length]=e;return new Lw(r)}function eat(t){var e;return VS((e=k2(t)).a,0)?(cE(),cE(),Ene):(cE(),new bF(e.b))}function nat(t){var e;return VS((e=k2(t)).a,0)?(cE(),cE(),Ene):(cE(),new bF(e.c))}function rat(t){var e;return VS((e=w2(t)).a,0)?(lE(),lE(),Tne):(lE(),new vF(e.b))}function iat(t){return t.b.c.i.k==(oTt(),Cse)?Q$(bEt(t.b.c.i,(lVt(),dfe)),11):t.b.c}function aat(t){return t.b.d.i.k==(oTt(),Cse)?Q$(bEt(t.b.d.i,(lVt(),dfe)),11):t.b.d}function oat(t,e,n,r,i,a,o,s,c,l,u,h,f){return f_t(t,e,n,r,i,a,o,s,c,l,u,h,f),jft(t,!1),t}function sat(t,e,n,r,i,a,o){Ax.call(this,t,e),this.d=n,this.e=r,this.c=i,this.b=a,this.a=a6(o)}function cat(t,e){typeof window===LVt&&typeof window.$gwt===LVt&&(window.$gwt[t]=e)}function lat(t,e){return Lst(),t==Yoe&&e==tse||t==tse&&e==Yoe||t==Zoe&&e==Joe||t==Joe&&e==Zoe}function uat(t,e){return Lst(),t==Yoe&&e==Joe||t==Yoe&&e==Zoe||t==tse&&e==Zoe||t==tse&&e==Joe}function hat(t,n){return cM(),rrt(uJt),e.Math.abs(0-n)<=uJt||0==n||isNaN(0)&&isNaN(n)?0:t/n}function fat(){return fNt(),Tst(Hw(khe,1),IWt,256,0,[che,uhe,hhe,fhe,dhe,Ahe,phe,she,lhe,ghe])}function dat(){dat=L,xMe=new Bv,TMe=Tst(Hw(PIe,1),O7t,170,0,[]),EMe=Tst(Hw(XIe,1),D7t,59,0,[])}function Aat(){Aat=L,sve=new XB("NO",0),ave=new XB("GREEDY",1),ove=new XB("LOOK_BACK",2)}function gat(){gat=L,Dse=new $e,Mse=new Ue,Ose=new He,Ise=new je,Fse=new Ke,Nse=new ze}function pat(t){var e,n;for(n=0,e=new Gd(t.b);e.a<e.c.c.length;)Q$(J1(e),29).p=n,++n}function mat(t,e){var n;return ISt(new O_((n=Rxt(t)).c,n.d),new O_(n.b,n.a),t.rf(),e,t.Hf())}function bat(t,e){var n;return t.b?null:(n=set(t,t.g),DH(t.a,n),n.i=t,t.d=e,n)}function vat(t,e,n){Sxt(n,"DFS Treeifying phase",1),wgt(t,e),iFt(t,e),t.a=null,t.b=null,$Tt(n)}function yat(t,e,n){this.g=t,this.d=e,this.e=n,this.a=new Mm,z_t(this),xq(),mM(this.a,null)}function wat(t){this.i=t.gc(),this.i>0&&(this.g=this.ri(this.i+(this.i/8|0)+1),t.Qc(this.g))}function kat(t,e){CH.call(this,zMe,t,e),this.b=this,this.a=aFt(t.Tg(),eet(this.e.Tg(),this.c))}function Cat(t,e){var n,r;for(vV(e),r=e.vc().Kc();r.Ob();)n=Q$(r.Pb(),42),t.zc(n.cd(),n.dd())}function xat(t,e,n){var r;for(r=n.Kc();r.Ob();)if(!H3(t,e,r.Pb()))return!1;return!0}function Eat(t,e,n,r,i){var a;return n&&(a=LAt(e.Tg(),t.c),i=n.gh(e,-1-(-1==a?r:a),null,i)),i}function Tat(t,e,n,r,i){var a;return n&&(a=LAt(e.Tg(),t.c),i=n.ih(e,-1-(-1==a?r:a),null,i)),i}function Bat(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 _at(t){switch(t.g){case 2:return yGt(),TSe;case 4:return yGt(),oSe;default:return t}}function Sat(t){switch(t.g){case 1:return yGt(),xSe;case 3:return yGt(),sSe;default:return t}}function Lat(t){var e,n,r;return t.j==(yGt(),sSe)&&(n=xD(e=zLt(t),oSe),(r=xD(e,TSe))||r&&n)}function Iat(t){var e;return new WR(e=Q$(t.e&&t.e(),9),Q$(XG(e,e.length),9),e.length)}function Mat(t,e){Sxt(e,y1t,1),tAt(sE(new EA((AE(),new UW(t,!1,!1,new Qe))))),$Tt(e)}function Oat(t,e){return cD(),zS(t)?l6(t,xN(e)):KS(t)?kz(t,CN(e)):jS(t)?wz(t,kN(e)):t.wd(e)}function Dat(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),G$(t.a,n)}function Fat(t,e){var n,r,i,a;return i=t.c,n=t.c+t.b,a=t.d,r=t.d+t.a,e.a>i&&e.a<n&&e.b>a&&e.b<r}function Nat(t,e,n,r){rO(t.Cb,179)&&(Q$(t.Cb,179).tb=null),Oit(t,n),e&&RSt(t,e),r&&t.xk(!0)}function Pat(t,e){var n;$q(n=Q$(e,183),"x",t.i),$q(n,"y",t.j),$q(n,B6t,t.g),$q(n,T6t,t.f)}function Rat(){Rat=L,Bve=spt(yL(dj(dj(new Q2,(vEt(),Poe),(hVt(),Ice)),Roe,wce),Qoe),Lce)}function Qat(){Qat=L,Dve=spt(yL(dj(dj(new Q2,(vEt(),Poe),(hVt(),Ice)),Roe,wce),Qoe),Lce)}function Uat(){Uat=L,zke=new b_(WZt,0),Gke=new b_("POLAR_COORDINATE",1),Kke=new b_("ID",2)}function $at(){$at=L,zbe=new KB("EQUALLY",0),Gbe=new KB(bJt,1),Xbe=new KB("NORTH_SOUTH",2)}function Hat(){Hat=L,Lbe=hut((cDt(),Tst(Hw(Dbe,1),IWt,260,0,[Bbe,kbe,Ebe,Cbe,xbe,wbe,Tbe,_be])))}function jat(){jat=L,Xle=hut((yNt(),Tst(Hw(eue,1),IWt,270,0,[Qle,Hle,Rle,zle,$le,Ule,Kle,jle])))}function Kat(){Kat=L,wEe=hut((TBt(),Tst(Hw(xEe,1),IWt,277,0,[vEe,fEe,pEe,bEe,dEe,AEe,gEe,mEe])))}function zat(){zat=L,nIe=hut((lIt(),Tst(Hw(rIe,1),IWt,237,0,[tIe,YLe,JLe,qLe,ZLe,VLe,XLe,WLe])))}function Gat(){Gat=L,Vie=new eP("debugSVG",(cD(),!1)),Wie=new eP("overlapsExisted",!0)}function Xat(t,e){return O9(new oA(t),new sA(e),new cA(e),new et,Tst(Hw(Jne,1),IWt,132,0,[]))}function Vat(){var t;return $ne||($ne=new Nb,WI(t=new b5(""),(uE(),Une)),uit($ne,t)),$ne}function Wat(t,e){for(bX(e);t.Ob();)if(!Wot(Q$(t.Pb(),10)))return!1;return!0}function qat(t,e){var n;return!!(n=GPt(irt(),t))&&(qmt(e,(cVt(),mBe),n),!0)}function Yat(t,e){var n;for(n=0;n<e.j.c.length;n++)Q$(D9(t,n),21).Gc(Q$(D9(e,n),14));return t}function Jat(t,e){var n,r;for(r=new Gd(e.b);r.a<r.c.c.length;)n=Q$(J1(r),29),t.a[n.p]=WEt(n)}function Zat(t,e){var n,r;for(vV(e),r=t.vc().Kc();r.Ob();)n=Q$(r.Pb(),42),e.Od(n.cd(),n.dd())}function tot(t,e){rO(e,83)?(Q$(t.c,76).Xj(),eit(t,Q$(e,83))):Q$(t.c,76).Wb(e)}function eot(t){return rO(t,152)?o6(Q$(t,152)):rO(t,131)?Q$(t,131).a:rO(t,54)?new ly(t):new Tx(t)}function not(t,e){return e<t.b.gc()?Q$(t.b.Xb(e),10):e==t.b.gc()?t.a:Q$(Oj(t.e,e-t.b.gc()-1),10)}function rot(t,n){t.a=rdt(t.a,1),t.c=e.Math.min(t.c,n),t.b=e.Math.max(t.b,n),t.d=rdt(t.d,n)}function iot(t,e){Sxt(e,"Edge and layer constraint edge reversal",1),Qzt(MPt(t)),$Tt(e)}function aot(t){var e;null==t.d?(++t.e,t.f=0,rht(null)):(++t.e,e=t.d,t.d=null,t.f=0,rht(e))}function oot(t){var e;return 0==(e=t.h)?t.l+t.m*_qt:e==Tqt?t.l+t.m*_qt-Sqt:t}function sot(t){return $N(),t.A.Hc((bgt(),DSe))&&!t.B.Hc((ZRt(),KSe))?ZAt(t):null}function cot(t){if(vV(t),0==t.length)throw Um(new Cw("Zero length BigInteger"));nRt(this,t)}function lot(t){if(!t)throw Um(new Ry("no calls to next() since the last call to remove()"))}function uot(t){return Iqt<t&&t<Sqt?t<0?e.Math.ceil(t):e.Math.floor(t):oot(gDt(t))}function hot(t,e){var n,r,i;for(n=t.c.Ee(),i=e.Kc();i.Ob();)r=i.Pb(),t.a.Od(n,r);return t.b.Kb(n)}function fot(t,e){var n,r,i;if(null!=(n=t.Jg())&&t.Mg())for(r=0,i=n.length;r<i;++r)n[r].ui(e)}function dot(t,e){var n,r;for(r=pV(n=t).e;r;){if((n=r)==e)return!0;r=pV(n).e}return!1}function Aot(t,e,n){var r,i;return(r=t.a.f[e.p])<(i=t.a.f[n.p])?-1:r==i?0:1}function got(t,e,n){var r,i;return i=Q$(KR(t.d,e),19),r=Q$(KR(t.b,n),19),i&&r?K6(t,i.a,r.a):null}function pot(t,e){var n,r;for(r=new SO(t);r.e!=r.i.gc();)xI(n=Q$(ymt(r),33),n.i+e.b,n.j+e.d)}function mot(t,e){var n,r;for(r=new Gd(e);r.a<r.c.c.length;)n=Q$(J1(r),70),G$(t.d,n),PEt(t,n)}function bot(t,e){var n,r;r=new Mm,n=e;do{r.c[r.c.length]=n,n=Q$(FX(t.k,n),17)}while(n);return r}function vot(t,e){var n;return t.Db&e?-1==(n=Nvt(t,e))?t.Eb:ent(t.Eb)[n]:null}function yot(t,e){var n;return(n=new Nh).G=e,!t.rb&&(t.rb=new qz(t,QIe,t)),l7(t.rb,n),n}function wot(t,e){var n;return(n=new wb).G=e,!t.rb&&(t.rb=new qz(t,QIe,t)),l7(t.rb,n),n}function kot(t,e){switch(e){case 1:return!!t.n&&0!=t.n.i;case 2:return null!=t.k}return m0(t,e)}function Cot(t){switch(t.a.g){case 1:return new wS;case 3:return new lyt;default:return new Th}}function xot(t){var e;if(t.g>1||t.Ob())return++t.a,t.g=0,e=t.i,t.Ob(),e;throw Um(new bb)}function Eot(t){var e;return iM(),aT(sye,t)||((e=new so).a=t,fP(sye,t,e)),Q$(oW(sye,t),635)}function Tot(t){var e,n,r;return n=0,(r=t)<0&&(r+=Sqt,n=Tqt),e=TJ(r/_qt),CM(TJ(r-e*_qt),e,n)}function Bot(t){var e,n,r;for(r=0,n=new Vx(t.a);n.a<n.c.a.length;)e=a4(n),t.b.Hc(e)&&++r;return r}function _ot(t){var e,n,r;for(e=1,r=t.Kc();r.Ob();)e=~~(e=31*e+(null==(n=r.Pb())?0:Zct(n)));return e}function Sot(t,e){var n;this.c=t,gvt(t,n=new Mm,e,t.b,null,!1,null,!1),this.a=new C2(n,0)}function Lot(t,e){this.b=t,this.e=e,this.d=e.j,this.f=(YE(),Q$(t,66).Oj()),this.k=aFt(e.e.Tg(),t)}function Iot(t,e,n){this.b=(vV(t),t),this.d=(vV(e),e),this.e=(vV(n),n),this.c=this.d+""+this.e}function Mot(){this.a=Q$(bmt((uPt(),$ae)),19).a,this.c=Hy(CN(bmt(roe))),this.b=Hy(CN(bmt(Zae)))}function Oot(){Oot=L,N_e=hut((ZIt(),Tst(Hw(H_e,1),IWt,93,0,[B_e,T_e,S_e,D_e,O_e,M_e,L_e,I_e,__e])))}function Dot(){Dot=L,Rre=hut((tPt(),Tst(Hw(Qre,1),IWt,250,0,[Fre,Lre,Ire,Sre,Ore,Dre,Mre,_re,Bre])))}function Fot(){Fot=L,Fie=new KT("UP",0),Mie=new KT(pJt,1),Oie=new KT(iJt,2),Die=new KT(aJt,3)}function Not(){Not=L,sZ(),bwe=new LL(G3t,vwe=Fwe),Q0(),pwe=new LL(X3t,mwe=Uwe)}function Pot(){Pot=L,yhe=new MB("ONE_SIDED",0),whe=new MB("TWO_SIDED",1),vhe=new MB("OFF",2)}function Rot(t){t.r=new Fb,t.w=new Fb,t.t=new Mm,t.i=new Mm,t.d=new Fb,t.a=new hI,t.c=new Om}function Qot(t){this.n=new Mm,this.e=new Wx,this.j=new Wx,this.k=new Mm,this.f=new Mm,this.p=t}function Uot(t,e){t.c&&(YRt(t,e,!0),qx(new Fj(null,new f1(e,16)),new $g(t))),YRt(t,e,!1)}function $ot(t,e,n){return t==(srt(),Lve)?new Ba:0!=$Mt(e,1)?new Fk(n.length):new Dk(n.length)}function Hot(t,e){var n;return e?((n=e.Ve()).dc()||(t.q?Cat(t.q,n):t.q=new mL(n)),t):t}function jot(t,e){var n;return void 0===(n=t.a.get(e))?++t.d:(mP(t.a,e),--t.c,oY(t.b)),n}function Kot(t,e){var n;return 0==(n=e.p-t.p)?Tft(t.f.a*t.f.b,e.f.a*e.f.b):n}function zot(t,e){var n,r;return(n=t.f.c.length)<(r=e.f.c.length)?-1:n==r?0:1}function Got(t){return 0!=t.b.c.length&&Q$(Oj(t.b,0),70).a?Q$(Oj(t.b,0),70).a:tq(t)}function Xot(t){var e;if(t){if((e=t).dc())throw Um(new bb);return e.Xb(e.gc()-1)}return a1(t.Kc())}function Vot(t){var e;return Vut(t,0)<0&&(t=aH(t)),64-(0!=(e=dK(vz(t,32)))?JSt(e):JSt(dK(t))+32)}function Wot(t){var e;return e=Q$(bEt(t,(lVt(),Vhe)),61),t.k==(oTt(),Cse)&&(e==(yGt(),TSe)||e==oSe)}function qot(t,e,n){var r,i;(i=Q$(bEt(t,($Xt(),ppe)),74))&&(Xlt(r=new vv,0,i),Jet(r,n),Qit(e,r))}function Yot(t,e,n){var r,i,a,o;r=(o=pV(t)).d,i=o.c,a=t.n,e&&(a.a=a.a-r.b-i.a),n&&(a.b=a.b-r.d-i.b)}function Jot(t,e){var n,r;return(n=t.j)!=(r=e.j)?n.g-r.g:t.p==e.p?0:n==(yGt(),sSe)?t.p-e.p:e.p-t.p}function Zot(t){var e,n;for(TGt(t),n=new Gd(t.d);n.a<n.c.c.length;)(e=Q$(J1(n),101)).i&&GTt(e)}function tst(t,e,n,r,i){LX(t.c[e.g],n.g,r),LX(t.c[n.g],e.g,r),LX(t.b[e.g],n.g,i),LX(t.b[n.g],e.g,i)}function est(t,e,n,r){Q$(n.b,65),Q$(n.b,65),Q$(r.b,65),Q$(r.b,65),Q$(r.b,65),Set(r.a,new w$(t,e,r))}function nst(t,e){t.d==(Qht(),PBe)||t.d==UBe?Q$(e.a,57).c.Fc(Q$(e.b,57)):Q$(e.b,57).c.Fc(Q$(e.a,57))}function rst(t,e,n,r){return 1==n?(!t.n&&(t.n=new tG(HLe,t,1,7)),Rmt(t.n,e,r)):eTt(t,e,n,r)}function ist(t,e){var n;return Oit(n=new Hc,e),l7((!t.A&&(t.A=new MO(BMe,t,7)),t.A),n),n}function ast(t,e,n){var r,i;return i=M2(e,L6t),pkt((r=new iS(t,n)).a,r.b,i),i}function ost(t){var e;return t.a&&(1&t.Bb||!t.a.kh())||rO(e=_wt(t),148)&&(t.a=Q$(e,148)),t.a}function sst(t,e){var n,r;for(vV(e),r=e.Kc();r.Ob();)if(n=r.Pb(),!t.Hc(n))return!1;return!0}function cst(t,e){var n,r,i;return n=t.l+e.l,r=t.m+e.m+(n>>22),i=t.h+e.h+(r>>22),CM(n&Eqt,r&Eqt,i&Tqt)}function lst(t,e){var n,r,i;return n=t.l-e.l,r=t.m-e.m+(n>>22),i=t.h-e.h+(r>>22),CM(n&Eqt,r&Eqt,i&Tqt)}function ust(t){var e;return t<128?(!(e=(Cj(),xee)[t])&&(e=xee[t]=new Id(t)),e):new Id(t)}function hst(t){var e;return rO(t,78)?t:((e=t&&t.__java$exception)||ob(e=new wut(t)),e)}function fst(t){if(rO(t,186))return Q$(t,118);if(t)return null;throw Um(new Uy(e8t))}function dst(t,e){if(null==e)return!1;for(;t.a!=t.b;)if(Oht(e,Rut(t)))return!0;return!1}function Ast(t){return!!t.a.Ob()||t.a==t.d&&(t.a=new x2(t.e.f),t.a.Ob())}function gst(t,e){var n;return 0!=(n=e.Pc()).length&&(Z$(t.c,t.c.length,n),!0)}function pst(t,e,n){var r,i;for(i=e.vc().Kc();i.Ob();)r=Q$(i.Pb(),42),t.yc(r.cd(),r.dd(),n);return t}function mst(t,e){var n;for(n=new Gd(t.b);n.a<n.c.c.length;)lct(Q$(J1(n),70),(lVt(),afe),e)}function bst(t,e,n){var r,i;for(i=new Gd(t.b);i.a<i.c.c.length;)xI(r=Q$(J1(i),33),r.i+e,r.j+n)}function vst(t,e){if(!t)throw Um(new Py(IPt("value already present: %s",Tst(Hw(Lte,1),$Vt,1,5,[e]))))}function yst(t,e){return!(!t||!e||t==e)&&Rgt(t.d.c,e.d.c+e.d.b)&&Rgt(e.d.c,t.d.c+t.d.b)}function wst(){return v5(),Vne?new b5(null):QLt(Vat(),"com.google.common.base.Strings")}function kst(t,e){var n;return n=sF(e.a.gc()),qx(vet(new Fj(null,new f1(e,1)),t.i),new M_(t,n)),n}function Cst(t){var e;return Oit(e=new Hc,"T"),l7((!t.d&&(t.d=new MO(BMe,t,11)),t.d),e),e}function xst(t){var e,n,r,i;for(e=1,n=0,i=t.gc();n<i;++n)e=31*e+(null==(r=t.ki(n))?0:Zct(r));return e}function Est(t,e,n,r){var i;return f2(e,t.e.Hd().gc()),f2(n,t.c.Hd().gc()),i=t.a[e][n],LX(t.a[e],n,r),i}function Tst(t,e,n,r,i){return i.gm=t,i.hm=e,i.im=S,i.__elementTypeId$=n,i.__elementTypeCategory$=r,i}function Bst(t,n,r,i,a){return wNt(),e.Math.min(KKt(t,n,r,i,a),KKt(r,i,t,n,$F(new O_(a.a,a.b))))}function _st(){_st=L,ile=new ZT(WZt,0),nle=new ZT(B1t,1),rle=new ZT(_1t,2),ele=new ZT("BOTH",3)}function Sst(){Sst=L,ple=new mB(eJt,0),mle=new mB(iJt,1),ble=new mB(aJt,2),vle=new mB("TOP",3)}function Lst(){Lst=L,Yoe=new VT("Q1",0),tse=new VT("Q4",1),Joe=new VT("Q2",2),Zoe=new VT("Q3",3)}function Ist(){Ist=L,hve=new VB("OFF",0),fve=new VB("SINGLE_EDGE",1),uve=new VB("MULTI_EDGE",2)}function Mst(){Mst=L,Gxe=new x_("MINIMUM_SPANNING_TREE",0),zxe=new x_("MAXIMUM_SPANNING_TREE",1)}function Ost(){Ost=L,new am("org.eclipse.elk.addLayoutConfig"),Yxe=new ls,qxe=new ss}function Dst(t){var e,n;for(e=new Wx,n=cmt(t.d,0);n.b!=n.d.c;)DH(e,Q$(h3(n),188).c);return e}function Fst(t){var e,n;for(n=new Mm,e=t.Kc();e.Ob();)gst(n,dNt(Q$(e.Pb(),33)));return n}function Nst(t){var e;t$t(t,!0),e=VWt,IF(t,($Xt(),lme))&&(e+=Q$(bEt(t,lme),19).a),lct(t,lme,nft(e))}function Pst(t,e,n){var r;LG(t.a),Set(n.i,new yp(t)),ypt(t,r=new TM(Q$(FX(t.a,e.b),65)),e),n.f=r}function Rst(t,e){var n,r;return n=t.c,(r=e.e[t.p])<n.a.c.length-1?Q$(Oj(n.a,r+1),10):null}function Qst(t,e){var n,r;for(Gq(e,"predicate"),r=0;t.Ob();r++)if(n=t.Pb(),e.Lb(n))return r;return-1}function Ust(t,e){var n,r;if(r=0,t<64&&t<=e)for(e=e<64?e:63,n=t;n<=e;n++)r=e0(r,bz(1,n));return r}function $st(t){var e,n,r;for(xq(),r=0,n=t.Kc();n.Ob();)r+=null!=(e=n.Pb())?Zct(e):0,r|=0;return r}function Hst(t){var e;return Zk(),e=new oc,t&&l7((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a),e),e}function jst(t){var e;return(e=new m).a=t,e.b=vct(t),e.c=O8(Wee,cWt,2,2,6,1),e.c[0]=$it(t),e.c[1]=$it(t),e}function Kst(t,e){if(0===e)return!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),void t.o.c.$b();bBt(t,e)}function zst(t,e,n){switch(n.g){case 2:t.b=e;break;case 1:t.c=e;break;case 4:t.d=e;break;case 3:t.a=e}}function Gst(t){switch(t.g){case 1:return w_e;case 2:return y_e;case 3:return k_e;default:return C_e}}function Xst(t){switch(Q$(bEt(t,($Xt(),vpe)),163).g){case 2:case 4:return!0;default:return!1}}function Vst(){Vst=L,bhe=hut((fNt(),Tst(Hw(khe,1),IWt,256,0,[che,uhe,hhe,fhe,dhe,Ahe,phe,she,lhe,ghe])))}function Wst(){Wst=L,qSe=hut((ZRt(),Tst(Hw(eLe,1),IWt,259,0,[HSe,KSe,$Se,zSe,GSe,VSe,XSe,jSe,USe])))}function qst(){qst=L,zwe=dj(spt(spt(RE(dj(new Q2,(Kyt(),Nye),(FBt(),Vye)),Pye),zye),Gye),Rye,Xye)}function Yst(){Yst=L,Sue=new TB(WZt,0),_ue=new TB("INCOMING_ONLY",1),Lue=new TB("OUTGOING_ONLY",2)}function Jst(){Jst=L,uee={boolean:Kx,number:Ty,string:By,object:C_t,function:C_t,undefined:Gm}}function Zst(t,e){pH(t>=0,"Negative initial capacity"),pH(e>=0,"Non-positive load factor"),LG(this)}function tct(t,e,n){return!(t>=128)&&qS(t<64?t0(bz(1,t),n):t0(bz(1,t-64),e),0)}function ect(t,e){return!(!t||!e||t==e)&&_dt(t.b.c,e.b.c+e.b.b)<0&&_dt(e.b.c,t.b.c+t.b.b)<0}function nct(t){var e,n,r;return n=t.n,r=t.o,e=t.d,new KW(n.a-e.b,n.b-e.d,r.a+(e.b+e.c),r.b+(e.d+e.a))}function rct(t){var e,n,r,i;for(r=0,i=(n=t.a).length;r<i;++r)Ect(t,e=n[r],(yGt(),xSe)),Ect(t,e,sSe)}function ict(t){var e,n;for(null==t.j&&(t.j=(EY(),_kt(eee.ce(t)))),e=0,n=t.j.length;e<n;++e);}function act(t){var e,n;return CM(e=1+~t.l&Eqt,n=~t.m+(0==e?1:0)&Eqt,~t.h+(0==e&&0==n?1:0)&Tqt)}function oct(t,e){return CUt(Q$(Q$(FX(t.g,e.a),46).a,65),Q$(Q$(FX(t.g,e.b),46).a,65))}function sct(t,e,n){var r;if(e>(r=t.gc()))throw Um(new ZP(e,r));return t.hi()&&(n=JJ(t,n)),t.Vh(e,n)}function cct(t,e,n){return null==n?(!t.q&&(t.q=new Om),p6(t.q,e)):(!t.q&&(t.q=new Om),XV(t.q,e,n)),t}function lct(t,e,n){return null==n?(!t.q&&(t.q=new Om),p6(t.q,e)):(!t.q&&(t.q=new Om),XV(t.q,e,n)),t}function uct(t){var e,n;return Hot(n=new b6,t),lct(n,(xit(),soe),t),e$t(t,n,e=new Om),Ezt(t,n,e),n}function hct(t){var e,n,r;for(wNt(),n=O8(EEe,cWt,8,2,0,1),r=0,e=0;e<2;e++)r+=.5,n[e]=hvt(r,t);return n}function fct(t,e){var n,r,i;for(n=!1,r=t.a[e].length,i=0;i<r-1;i++)n|=Tgt(t,e,i,i+1);return n}function dct(t,e,n,r,i){var a,o;for(o=n;o<=i;o++)for(a=e;a<=r;a++)mvt(t,a,o)||QPt(t,a,o,!0,!1)}function Act(t,e){this.b=t,ML.call(this,(Q$(Xet(Vq((VX(),JIe).o),10),18),e.i),e.g),this.a=(dat(),TMe)}function gct(t,e){this.c=t,this.d=e,this.b=this.d/this.c.c.Hd().gc()|0,this.a=this.d%this.c.c.Hd().gc()}function pct(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function mct(t,n,r){this.q=new e.Date,this.q.setFullYear(t+cqt,n,r),this.q.setHours(0,0,0,0),h$t(this,0)}function bct(){bct=L,Mbe=new $B(WZt,0),Ibe=new $B("NODES_AND_EDGES",1),Obe=new $B("PREFER_EDGES",2)}function vct(t){var e;return 0==t?"Etc/GMT":(t<0?(t=-t,e="Etc/GMT-"):e="Etc/GMT+",e+htt(t))}function yct(t){var e;if(t<0)return RWt;if(0==t)return 0;for(e=SWt;!(e&t);e>>=1);return e}function wct(t){var e,n;return 32==(n=JSt(t.h))?32==(e=JSt(t.m))?JSt(t.l)+32:e+20-10:n-12}function kct(t){var e;return null==(e=t.a[t.b])?null:(LX(t.a,t.b,null),t.b=t.b+1&t.a.length-1,e)}function Cct(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 xct(t,e,n){var r,i;return r=new U8(e,n),i=new j,t.b=XFt(t,t.b,r,i),i.b||++t.c,t.b.b=!1,i.d}function Ect(t,e,n){var r,i,a;for(a=0,i=Mht(e,n).Kc();i.Ob();)r=Q$(i.Pb(),11),XV(t.c,r,nft(a++))}function Tct(t){var e,n;for(n=new Gd(t.a.b);n.a<n.c.c.length;)(e=Q$(J1(n),81)).g.c=-e.g.c-e.g.b;yDt(t)}function Bct(t){var e,n;for(n=new Gd(t.a.b);n.a<n.c.c.length;)(e=Q$(J1(n),57)).d.c=-e.d.c-e.d.b;vDt(t)}function _ct(t){var e;return(!t.c||!(1&t.Bb)&&64&t.c.Db)&&rO(e=_wt(t),88)&&(t.c=Q$(e,26)),t.c}function Sct(t){var e,n,r;e=1+~t.l&Eqt,n=~t.m+(0==e?1:0)&Eqt,r=~t.h+(0==e&&0==n?1:0)&Tqt,t.l=e,t.m=n,t.h=r}function Lct(t){var e,n,r,i,a;for(e=new Hk,i=0,a=(r=t).length;i<a;++i)n=r[i],e.a+=n.a,e.b+=n.b;return e}function Ict(t,e){var n,r,i,a,o;for(xq(),o=!1,i=0,a=(r=e).length;i<a;++i)n=r[i],o|=t.Fc(n);return o}function Mct(t){var e,n;for(wNt(),n=-17976931348623157e292,e=0;e<t.length;e++)t[e]>n&&(n=t[e]);return n}function Oct(t,e,n){var r;return wFt(t,e,r=new Mm,(yGt(),oSe),!0,!1),wFt(t,n,r,TSe,!1,!1),r}function Dct(t,e,n){var r,i;return i=M2(e,"labels"),GIt((r=new AS(t,n)).a,r.b,i),i}function Fct(t,e,n,r){var i;return(i=bMt(t,e,n,r))||!(i=aft(t,n,r))||Qjt(t,e,i)?i:null}function Nct(t,e,n,r){var i;return(i=vMt(t,e,n,r))||!(i=oft(t,n,r))||Qjt(t,e,i)?i:null}function Pct(t,e){var n;for(n=0;n<t.a.a.length;n++)if(!Q$(Dj(t.a,n),169).Lb(e))return!1;return!0}function Rct(t,e,n){if(bX(e),n.Ob())for(sL(e,TX(n.Pb()));n.Ob();)sL(e,t.a),sL(e,TX(n.Pb()));return e}function Qct(t){var e,n,r;for(xq(),r=1,n=t.Kc();n.Ob();)r=31*r+(null!=(e=n.Pb())?Zct(e):0),r|=0;return r}function Uct(t,e,n,r,i){var a;return a=wIt(t,e),n&&Sct(a),i&&(t=Evt(t,e),hee=r?act(t):CM(t.l,t.m,t.h)),a}function $ct(t,e){var n;try{e.Vd()}catch(e){if(!rO(e=hst(e),78))throw Um(e);n=e,t.c[t.c.length]=n}}function Hct(t,e,n){var r,i;return rO(e,144)&&n?(r=Q$(e,144),i=n,t.a[r.b][i.b]+t.a[i.b][r.b]):0}function jct(t,e){switch(e){case 7:return!!t.e&&0!=t.e.i;case 8:return!!t.d&&0!=t.d.i}return uAt(t,e)}function Kct(t,e){switch(e.g){case 0:rO(t.b,631)||(t.b=new Mot);break;case 1:rO(t.b,632)||(t.b=new lH)}}function zct(t,e){for(;null!=t.g||t.c?null==t.g||0!=t.i&&Q$(t.g[t.i-1],47).Ob():ZJ(t);)pS(e,aOt(t))}function Gct(t,e,n){t.g=LBt(t,e,(yGt(),oSe),t.b),t.d=LBt(t,n,oSe,t.b),0!=t.g.c&&0!=t.d.c&&KEt(t)}function Xct(t,e,n){t.g=LBt(t,e,(yGt(),TSe),t.j),t.d=LBt(t,n,TSe,t.j),0!=t.g.c&&0!=t.d.c&&KEt(t)}function Vct(t,e,n){return!yC(SW(new Fj(null,new f1(t.c,16)),new iA(new Y_(e,n)))).sd((dE(),Zne))}function Wct(t){var e;return wV(t),e=new ct,t.a.sd(e)?(TO(),new py(vV(e.a))):(TO(),TO(),xne)}function qct(t){var e;return!(t.b<=0)&&((e=HL("MLydhHmsSDkK",qxt(lW(t.c,0))))>1||e>=0&&t.b<3)}function Yct(t){var e,n;for(e=new vv,n=cmt(t,0);n.b!=n.d.c;)NF(e,0,new fI(Q$(h3(n),8)));return e}function Jct(t){var e;for(e=new Gd(t.a.b);e.a<e.c.c.length;)Q$(J1(e),81).f.$b();vy(t.b,t),UDt(t)}function Zct(t){return zS(t)?mbt(t):KS(t)?XL(t):jS(t)?(vV(t),t?1231:1237):ez(t)?t.Hb():SK(t)?ED(t):Zq(t)}function tlt(t){return zS(t)?Wee:KS(t)?Tee:jS(t)?yee:ez(t)||SK(t)?t.gm:t.gm||Array.isArray(t)&&Hw(Zte,1)||Zte}function elt(t){if(0===t.g)return new os;throw Um(new Py(O4t+(null!=t.f?t.f:""+t.g)))}function nlt(t){if(0===t.g)return new is;throw Um(new Py(O4t+(null!=t.f?t.f:""+t.g)))}function rlt(t,e,n){if(0===e)return!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),void tot(t.o,n);v_t(t,e,n)}function ilt(t,e,n){this.g=t,this.e=new Hk,this.f=new Hk,this.d=new Wx,this.b=new Wx,this.a=e,this.c=n}function alt(t,e,n,r){this.b=new Mm,this.n=new Mm,this.i=r,this.j=n,this.s=t,this.t=e,this.r=0,this.d=0}function olt(t){this.e=t,this.d=new g4(this.e.g),this.a=this.d,this.b=Ast(this),this.$modCount=t.$modCount}function slt(t){for(;!t.d||!t.d.Ob();){if(!t.b||Gy(t.b))return null;t.d=Q$(dG(t.b),47)}return t.d}function clt(t){return G$(t.c,(Ost(),Yxe)),ont(t.a,Hy(CN(bmt((NAt(),Xme)))))?new Ks:new Tp(t)}function llt(t){switch(t.g){case 1:return Q3t;default:case 2:return 0;case 3:return YJt;case 4:return U3t}}function ult(){var t;return dVt(),xDe||(t=tF(JGt("M",!0)),t=AK(JGt("M",!1),t),xDe=t)}function hlt(t,e){var n,r,i;for(i=t.b;i;){if(0==(n=t.a.ue(e,i.d)))return i;r=n<0?0:1,i=i.a[r]}return null}function flt(t,e,n){var r,i;cD(),r=!!kL(n),(i=Q$(e.xc(r),15))||(i=new Mm,e.zc(r,i)),i.Fc(n)}function dlt(t,e){var n,r;return(n=Q$(JIt(t,(XMt(),dCe)),19).a)==(r=Q$(JIt(e,dCe),19).a)||n<r?-1:n>r?1:0}function Alt(t,e){return!!fDt(t,e)&&(YSt(t.b,Q$(bEt(e,(lVt(),zhe)),21),e),DH(t.a,e),!0)}function glt(t){var e,n;(e=Q$(bEt(t,(lVt(),wfe)),10))&&(b9((n=e.c).a,e),0==n.a.c.length&&b9(pV(e).b,n))}function plt(t){return Vne?O8(Hne,AYt,572,0,0,1):Q$(Wpt(t.a,O8(Hne,AYt,572,t.a.c.length,0,1)),842)}function mlt(t,e,n,r){return JV(),new cy(Tst(Hw($te,1),yWt,42,0,[(Kbt(t,e),new px(t,e)),(Kbt(n,r),new px(n,r))]))}function blt(t,e,n){var r;return urt(r=new Lv,e,n),l7((!t.q&&(t.q=new tG(XIe,t,11,10)),t.q),r),r}function vlt(t){var e,n,r,i;for(n=(i=lT(SLe,t)).length,r=O8(Wee,cWt,2,n,6,1),e=0;e<n;++e)r[e]=i[e];return r}function ylt(t,e){var n,r,i,a,o;for(i=0,a=(r=e).length;i<a;++i)n=r[i],o=new KX(t),n.Qe(o),O$t(o);LG(t.f)}function wlt(t,e){var n;return e===t||!!rO(e,224)&&(n=Q$(e,224),Oht(t.Zb(),n.Zb()))}function klt(t,e){var n;2*e+1>=t.b.c.length||(klt(t,2*e+1),(n=2*e+2)<t.b.c.length&&klt(t,n),P_t(t,e))}function Clt(t,e,n){var r,i;this.g=t,this.c=e,this.a=this,this.d=this,i=Yrt(n),r=O8(Wte,BWt,330,i,0,1),this.b=r}function xlt(t,e,n){var r;for(r=n-1;r>=0&&t[r]===e[r];r--);return r<0?0:sT(t0(t[r],zqt),t0(e[r],zqt))?-1:1}function Elt(t,e){var n,r;for(r=cmt(t,0);r.b!=r.d.c;)(n=Q$(h3(r),214)).e.length>0&&(e.td(n),n.i&&pft(n))}function Tlt(t,e){var n,r;return r=Q$(vot(t.a,4),126),n=O8(fIe,n7t,415,e,0,1),null!=r&&aHt(r,0,n,0,r.length),n}function Blt(t,e){var n;return n=new rPt(!!(256&t.f),t.i,t.a,t.d,!!(16&t.f),t.j,t.g,e),null!=t.e||(n.c=t),n}function _lt(t,e){var n;for(n=t.Zb().Cc().Kc();n.Ob();)if(Q$(n.Pb(),14).Hc(e))return!0;return!1}function Slt(t,e,n,r,i){var a,o;for(o=n;o<=i;o++)for(a=e;a<=r;a++)if(mvt(t,a,o))return!0;return!1}function Llt(t,e,n){var r,i,a,o;for(vV(n),o=!1,a=t.Zc(e),i=n.Kc();i.Ob();)r=i.Pb(),a.Rb(r),o=!0;return o}function Ilt(t,e){var n;return t===e||!!rO(e,83)&&(n=Q$(e,83),KTt(uz(t),n.vc()))}function Mlt(t,e,n){var r,i;for(i=n.Kc();i.Ob();)if(r=Q$(i.Pb(),42),t.re(e,r.dd()))return!0;return!1}function Olt(t,e,n){return t.d[e.p][n.p]||(nbt(t,e,n),t.d[e.p][n.p]=!0,t.d[n.p][e.p]=!0),t.a[e.p][n.p]}function Dlt(t,e){if(!t.ai()&&null==e)throw Um(new Py("The 'no null' constraint is violated"));return e}function Flt(t,e){null==t.D&&null!=t.B&&(t.D=t.B,t.B=null),$rt(t,null==e?null:(vV(e),e)),t.C&&t.yk(null)}function Nlt(t,e){return!(!t||t==e||!IF(e,(lVt(),nfe)))&&Q$(bEt(e,(lVt(),nfe)),10)!=t}function Plt(t){switch(t.i){case 2:return!0;case 1:return!1;case-1:++t.c;default:return t.pl()}}function Rlt(t){switch(t.i){case-2:return!0;case-1:return!1;case 1:--t.c;default:return t.ql()}}function Qlt(t){PJ.call(this,"The given string does not match the expected format for individual spacings.",t)}function Ult(){Ult=L,aLe=new rS("ELK",0),oLe=new rS("JSON",1),iLe=new rS("DOT",2),sLe=new rS("SVG",3)}function $lt(){$lt=L,ske=new p_(WZt,0),cke=new p_("RADIAL_COMPACTION",1),lke=new p_("WEDGE_COMPACTION",2)}function Hlt(){Hlt=L,jne=new gT("CONCURRENT",0),Kne=new gT("IDENTITY_FINISH",1),zne=new gT("UNORDERED",2)}function jlt(){jlt=L,fE(),oae=new LL(UJt,sae=nae),aae=new am($Jt),cae=new am(HJt),lae=new am(jJt)}function Klt(){Klt=L,ule=new kr,hle=new Cr,lle=new xr,cle=new Er,vV(new Tr),sle=new N}function zlt(){zlt=L,tve=new GB("CONSERVATIVE",0),eve=new GB("CONSERVATIVE_SOFT",1),nve=new GB("SLOPPY",2)}function Glt(){Glt=L,d_e=new GI(15),f_e=new zI((cVt(),zTe),d_e),A_e=ABe,c_e=iTe,l_e=NTe,h_e=QTe,u_e=RTe}function Xlt(t,e,n){var r,i;for(r=new Wx,i=cmt(n,0);i.b!=i.d.c;)DH(r,new fI(Q$(h3(i),8)));Llt(t,e,r)}function Vlt(t){var e,n,r;for(e=0,r=O8(EEe,cWt,8,t.b,0,1),n=cmt(t,0);n.b!=n.d.c;)r[e++]=Q$(h3(n),8);return r}function Wlt(t){var e;return!t.a&&(t.a=new tG(zIe,t,9,5)),0!=(e=t.a).i?UE(Q$(Xet(e,0),678)):null}function qlt(t,e){var n;return n=rdt(t,e),sT(n0(t,e),0)|WS(n0(t,n),0)?n:rdt(fWt,n0(yz(n,63),1))}function Ylt(t,e){var n;n=null!=bmt((NAt(),Xme))&&null!=e.wg()?Hy(CN(e.wg()))/Hy(CN(bmt(Xme))):1,XV(t.b,e,n)}function Jlt(t,e){var n,r;return(n=Q$(t.d.Bc(e),14))?((r=t.e.hc()).Gc(n),t.e.d-=n.gc(),n.$b(),r):null}function Zlt(t,e){var n,r;if(0!=(r=t.c[e]))for(t.c[e]=0,t.d-=r,n=e+1;n<t.a.length;)t.a[n]-=r,n+=n&-n}function tut(t){var e;if((e=t.a.c.length)>0)return Nz(e-1,t.a.c.length),s6(t.a,e-1);throw Um(new mb)}function eut(t,e,n){if(e<0)throw Um(new Sy(Z4t+e));e<t.j.c.length?r5(t.j,e,n):(A3(t,e),G$(t.j,n))}function nut(t,e,n){if(t>e)throw Um(new Py(bYt+t+vYt+e));if(t<0||e>n)throw Um(new kw(bYt+t+yYt+e+lYt+n))}function rut(t){if(!(t.a&&8&t.a.i))throw Um(new Ry("Enumeration class expected for layout option "+t.f))}function iut(t){var e;++t.j,0==t.i?t.g=null:t.i<t.g.length&&(e=t.g,t.g=t.ri(t.i),aHt(e,0,t.g,0,t.i))}function aut(t,e){var n,r;for(n=t.a.length-1,t.c=t.c-1&n;e!=t.c;)r=e+1&n,LX(t.a,e,t.a[r]),e=r;LX(t.a,t.c,null)}function out(t,e){var n,r;for(n=t.a.length-1;e!=t.b;)r=e-1&n,LX(t.a,e,t.a[r]),e=r;LX(t.a,t.b,null),t.b=t.b+1&n}function sut(t,e,n){var r;return IZ(e,t.c.length),0!=(r=n.Pc()).length&&(Z$(t.c,e,r),!0)}function cut(t){var e,n;if(null==t)return null;for(e=0,n=t.length;e<n;e++)if(!EH(t[e]))return t[e];return null}function lut(t,e,n){var r,i,a,o;for(a=0,o=(i=n).length;a<o;++a)if(r=i[a],t.b.re(e,r.cd()))return r;return null}function uut(t){var e,n,r,i,a;for(a=1,r=0,i=(n=t).length;r<i;++r)a=31*a+(null!=(e=n[r])?Zct(e):0),a|=0;return a}function hut(t){var e,n,r,i,a;for(e={},i=0,a=(r=t).length;i<a;++i)e[":"+(null!=(n=r[i]).f?n.f:""+n.g)]=n;return e}function fut(t){var e;for(bX(t),TQ(!0,"numberToAdvance must be nonnegative"),e=0;e<0&&AIt(t);e++)K5(t);return e}function dut(t){var e,n,r;for(r=0,n=new oz(YO(t.a.Kc(),new u));AIt(n);)(e=Q$(K5(n),17)).c.i==e.d.i||++r;return r}function Aut(t,e){var n,r,i;for(n=t,i=0;;){if(n==e)return i;if(!(r=n.e))throw Um(new fb);n=pV(r),++i}}function gut(t,e){var n,r,i;for(i=e-t.f,r=new Gd(t.d);r.a<r.c.c.length;)ygt(n=Q$(J1(r),443),n.e,n.f+i);t.f=e}function put(t,n,r){return e.Math.abs(n-t)<R3t||e.Math.abs(r-t)<R3t||(n-t>R3t?t-r>R3t:r-t>R3t)}function mut(t,e){return t?e&&!t.j||rO(t,124)&&0==Q$(t,124).a.b?0:t.Re():0}function but(t,e){return t?e&&!t.k||rO(t,124)&&0==Q$(t,124).a.a?0:t.Se():0}function vut(t){return SNt(),t<0?-1!=t?new Nmt(-1,-t):qee:t<=10?Jee[TJ(t)]:new Nmt(1,t)}function yut(t){throw Jst(),Um(new Ay("Unexpected typeof result '"+t+"'; please report this bug to the GWT team"))}function wut(t){cw(),XM(this),yq(this),this.e=t,BFt(this,t),this.g=null==t?KVt:Udt(t),this.a="",this.b=t,this.a=""}function kut(){this.a=new es,this.f=new dp(this),this.b=new Ap(this),this.i=new gp(this),this.e=new pp(this)}function Cut(){ry.call(this,new $8(tet(16))),hrt(2,sWt),this.b=2,this.a=new UV(null,null,0,null),eb(this.a,this.a)}function xut(){xut=L,rbe=new NB("DUMMY_NODE_OVER",0),ibe=new NB("DUMMY_NODE_UNDER",1),abe=new NB("EQUAL",2)}function Eut(){Eut=L,zoe=UJ(Tst(Hw(GBe,1),IWt,103,0,[(Qht(),PBe),RBe])),Goe=UJ(Tst(Hw(GBe,1),IWt,103,0,[UBe,NBe]))}function Tut(t){return(yGt(),bSe).Hc(t.j)?Hy(CN(bEt(t,(lVt(),Ife)))):Lct(Tst(Hw(EEe,1),cWt,8,0,[t.i.n,t.n,t.a])).b}function But(t){var e,n;for(e=t.b.a.a.ec().Kc();e.Ob();)n=new WMt(Q$(e.Pb(),561),t.e,t.f),G$(t.g,n)}function _ut(t,e){var n,r;n=t.nk(e,null),r=null,e&&(eC(),int(r=new Nm,t.r)),(n=$xt(t,r,n))&&n.Fi()}function Sut(t,e){var n,r;for(r=0!=$Mt(t.d,1),n=!0;n;)n=!1,n=e.c.Tf(e.e,r),n|=FDt(t,e,r,!1),r=!r;Iit(t)}function Lut(t,e){var n,r,i;return r=!1,n=e.q.d,e.d<t.b&&(i=ADt(e.q,t.b),e.q.d>i&&(aCt(e.q,i),r=n!=e.q.d)),r}function Iut(t,n){var r,i,a,o,s;return o=n.i,s=n.j,i=o-(r=t.f).i,a=s-r.j,e.Math.sqrt(i*i+a*a)}function Mut(t,e){var n;return(n=qgt(t))||(NHt(),l7((n=new Tm(qBt(e))).Vk(),t)),n}function Out(t,e){var n,r;return(n=Q$(t.c.Bc(e),14))?((r=t.hc()).Gc(n),t.d-=n.gc(),n.$b(),t.mc(r)):t.jc()}function Dut(t,e){var n;for(n=0;n<e.length;n++)if(t==(h1(n,e.length),e.charCodeAt(n)))return!0;return!1}function Fut(t,e){var n;for(n=0;n<e.length;n++)if(t==(h1(n,e.length),e.charCodeAt(n)))return!0;return!1}function Nut(t){var e,n;if(null==t)return!1;for(e=0,n=t.length;e<n;e++)if(!EH(t[e]))return!1;return!0}function Put(t){var e;if(0!=t.c)return t.c;for(e=0;e<t.a.length;e++)t.c=33*t.c+(-1&t.a[e]);return t.c=t.c*t.e,t.c}function Rut(t){var e;return EF(t.a!=t.b),e=t.d.a[t.a],wF(t.b==t.d.c&&null!=e),t.c=t.a,t.a=t.a+1&t.d.a.length-1,e}function Qut(t){var e;if(!(t.c.c<0?t.a>=t.c.b:t.a<=t.c.b))throw Um(new bb);return e=t.a,t.a+=t.c.c,++t.b,nft(e)}function Uut(t){var e;return e=new uet(t),e2(t.a,sse,new qy(Tst(Hw(qoe,1),$Vt,369,0,[e]))),e.d&&G$(e.f,e.d),e.f}function $ut(t){var e;return Hot(e=new _M(t.a),t),lct(e,(lVt(),dfe),t),e.o.a=t.g,e.o.b=t.f,e.n.a=t.i,e.n.b=t.j,e}function Hut(t,e,n,r){var i,a;for(a=t.Kc();a.Ob();)(i=Q$(a.Pb(),70)).n.a=e.a+(r.a-i.o.a)/2,i.n.b=e.b,e.b+=i.o.b+n}function jut(t,e,n){var r;for(r=e.a.a.ec().Kc();r.Ob();)if(rY(t,Q$(r.Pb(),57),n))return!0;return!1}function Kut(t){var e,n;for(n=new Gd(t.r);n.a<n.c.c.length;)if(e=Q$(J1(n),10),t.n[e.p]<=0)return e;return null}function zut(t){var e,n;for(n=new Fb,e=new Gd(t);e.a<e.c.c.length;)Qit(n,ANt(Q$(J1(e),33)));return n}function Gut(t){var e;return e=vI(Tve),Q$(bEt(t,(lVt(),Yhe)),21).Hc((fNt(),dhe))&&dj(e,(vEt(),Poe),(hVt(),Qce)),e}function Xut(t,e,n){var r;r=new xLt(t,e),YSt(t.r,e.Hf(),r),n&&!Uz(t.u)&&(r.c=new bJ(t.d),Set(e.wf(),new TA(r)))}function Vut(t,e){var n;return qL(t)&&qL(e)&&(n=t-e,!isNaN(n))?n:Pwt(qL(t)?Tot(t):t,qL(e)?Tot(e):e)}function Wut(t,e){return e<t.length&&(h1(e,t.length),63!=t.charCodeAt(e))&&(h1(e,t.length),35!=t.charCodeAt(e))}function qut(t,e,n,r){var i,a;t.a=e,a=r?0:1,t.f=(i=new JTt(t.c,t.a,n,a),new oPt(n,t.a,i,t.e,t.b,t.c==(srt(),Sve)))}function Yut(t,e,n){var r,i;return i=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&(r=new Jz(t,1,1,i,e),n?n.Ei(r):n=r),n}function Jut(t,e,n){var r,i;return i=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&(r=new Jz(t,1,3,i,e),n?n.Ei(r):n=r),n}function Zut(t,e,n){var r,i;return i=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&(r=new Jz(t,1,0,i,e),n?n.Ei(r):n=r),n}function tht(t,e){var n,r,i,a;return(a=y_t((r=e,(i=t?qgt(t):null)&&i.Xk(),r)))==e&&(n=qgt(t))&&n.Xk(),a}function eht(t,e){var n,r,i;for(i=1,n=t,r=e>=0?e:-e;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,r-=1);return e<0?1/i:i}function nht(t,e){var n,r,i;for(i=1,n=t,r=e>=0?e:-e;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,r-=1);return e<0?1/i:i}function rht(t){var e,n;if(null!=t)for(n=0;n<t.length;++n)(e=t[n])&&(Q$(e.g,367),e.i)}function iht(t){var n,r,i;for(i=0,r=new Gd(t.a);r.a<r.c.c.length;)n=Q$(J1(r),187),i=e.Math.max(i,n.g);return i}function aht(t){var e,n,r;for(r=new Gd(t.b);r.a<r.c.c.length;)(e=(n=Q$(J1(r),214)).c.Rf()?n.f:n.a)&&djt(e,n.j)}function oht(){oht=L,p_e=new U_("INHERIT",0),g_e=new U_("INCLUDE_CHILDREN",1),m_e=new U_("SEPARATE_CHILDREN",2)}function sht(t,e){switch(e){case 1:return!t.n&&(t.n=new tG(HLe,t,1,7)),void cjt(t.n);case 2:return void Irt(t,null)}Kst(t,e)}function cht(t){switch(t.gc()){case 0:return Qte;case 1:return new Ej(bX(t.Xb(0)));default:return new xY(t)}}function lht(t){switch(sQ(),t.gc()){case 0:return XX(),Vte;case 1:return new bw(t.Kc().Pb());default:return new pT(t)}}function uht(t){switch(sQ(),t.c){case 0:return XX(),Vte;case 1:return new bw(Y_t(new Vx(t)));default:return new sy(t)}}function hht(t,e){bX(t);try{return t.xc(e)}catch(t){if(rO(t=hst(t),205)||rO(t,173))return null;throw Um(t)}}function fht(t,e){bX(t);try{return t.Bc(e)}catch(t){if(rO(t=hst(t),205)||rO(t,173))return null;throw Um(t)}}function dht(t,e){bX(t);try{return t.Hc(e)}catch(t){if(rO(t=hst(t),205)||rO(t,173))return!1;throw Um(t)}}function Aht(t,e){bX(t);try{return t.Mc(e)}catch(t){if(rO(t=hst(t),205)||rO(t,173))return!1;throw Um(t)}}function ght(t,e){bX(t);try{return t._b(e)}catch(t){if(rO(t=hst(t),205)||rO(t,173))return!1;throw Um(t)}}function pht(t,e){t.a.c.length>0&&Alt(Q$(Oj(t.a,t.a.c.length-1),570),e)||G$(t.a,new g5(e))}function mht(t){var e,n;HQ(),e=t.d.c-t.e.c,Set((n=Q$(t.g,145)).b,new yg(e)),Set(n.c,new wg(e)),t5(n.i,new kg(e))}function bht(t){var e;return(e=new Tw).a+="VerticalSegment ",aL(e,t.e),e.a+=" ",oL(e,qO(new mw,new Gd(t.k))),e.a}function vht(t){var e;return(e=Q$(utt(t.c.c,""),229))||(e=new KZ(yk(vk(new bs,""),"Other")),Ypt(t.c.c,"",e)),e}function yht(t){var e;return 64&t.Db?TMt(t):((e=new lD(TMt(t))).a+=" (name: ",rL(e,t.zb),e.a+=")",e.a)}function wht(t,e,n){var r,i;return i=t.sb,t.sb=e,4&t.Db&&!(1&t.Db)&&(r=new Jz(t,1,4,i,e),n?n.Ei(r):n=r),n}function kht(t,e){var n,r;for(n=0,r=adt(t,e).Kc();r.Ob();)n+=null!=bEt(Q$(r.Pb(),11),(lVt(),wfe))?1:0;return n}function Cht(t,e,n){var r,i,a;for(r=0,a=cmt(t,0);a.b!=a.d.c&&!((i=Hy(CN(h3(a))))>n);)i>=e&&++r;return r}function xht(t,e,n){var r;return r=new M9(t.e,3,13,null,e.c||(gVt(),lMe),obt(t,e),!1),n?n.Ei(r):n=r,n}function Eht(t,e,n){var r;return r=new M9(t.e,4,13,e.c||(gVt(),lMe),null,obt(t,e),!1),n?n.Ei(r):n=r,n}function Tht(t,e,n){var r,i;return i=t.r,t.r=e,4&t.Db&&!(1&t.Db)&&(r=new Jz(t,1,8,i,t.r),n?n.Ei(r):n=r),n}function Bht(t,e){var n,r;return!(r=(n=Q$(e,676)).vk())&&n.wk(r=rO(e,88)?new LS(t,Q$(e,26)):new P0(t,Q$(e,148))),r}function _ht(t,e,n){var r;t.qi(t.i+1),r=t.oi(e,n),e!=t.i&&aHt(t.g,e,t.g,e+1,t.i-e),LX(t.g,e,r),++t.i,t.bi(e,n),t.ci()}function Sht(t,e){var n;return e.a&&(n=e.a.a.length,t.a?oL(t.a,t.b):t.a=new uD(t.d),H0(t.a,e.a,e.d.length,n)),t}function Lht(t,e){var n,r,i;if(e.vi(t.a),null!=(i=Q$(vot(t.a,8),1936)))for(n=0,r=i.length;n<r;++n)null.jm()}function Iht(t,e){var n;return n=new ct,t.a.sd(n)?(TO(),new py(vV(k9(t,n.a,e)))):(wV(t),TO(),TO(),xne)}function Mht(t,e){switch(e.g){case 2:case 1:return adt(t,e);case 3:case 4:return eot(adt(t,e))}return xq(),xq(),cne}function Oht(t,e){return zS(t)?mR(t,e):KS(t)?pR(t,e):jS(t)?(vV(t),HS(t)===HS(e)):ez(t)?t.Fb(e):SK(t)?RL(t,e):p0(t,e)}function Dht(t){return t?1&t.i?t==SDe?yee:t==_De?Lee:t==ODe?Bee:t==MDe?Tee:t==LDe?Nee:t==DDe?Ree:t==IDe?Cee:Eee:t:null}function Fht(t,e,n,r,i){0!=e&&0!=r&&(1==e?i[r]=Abt(i,n,r,t[0]):1==r?i[e]=Abt(i,t,e,n[0]):qLt(t,n,i,e,r))}function Nht(t,e){var n;0!=t.c.length&&(cI(n=Q$(Wpt(t,O8(_se,a1t,10,t.c.length,0,1)),193),new Ln),eLt(n,e))}function Pht(t,e){var n;0!=t.c.length&&(cI(n=Q$(Wpt(t,O8(_se,a1t,10,t.c.length,0,1)),193),new In),eLt(n,e))}function Rht(t,e,n,r){switch(e){case 1:return!t.n&&(t.n=new tG(HLe,t,1,7)),t.n;case 2:return t.k}return kyt(t,e,n,r)}function Qht(){Qht=L,QBe=new N_(lJt,0),RBe=new N_(aJt,1),PBe=new N_(iJt,2),NBe=new N_(pJt,3),UBe=new N_("UP",4)}function Uht(){Uht=L,fse=new WT(WZt,0),hse=new WT("INSIDE_PORT_SIDE_GROUPS",1),use=new WT("FORCE_MODEL_ORDER",2)}function $ht(t,e,n){if(t<0||e>n)throw Um(new Sy(bYt+t+yYt+e+", size: "+n));if(t>e)throw Um(new Py(bYt+t+vYt+e))}function Hht(t,e,n){if(e<0)iSt(t,n);else{if(!n.Ij())throw Um(new Py(r6t+n.ne()+i6t));Q$(n,66).Nj().Vj(t,t.yh(),e)}}function jht(t,e,n,r,i,a,o,s){var c;for(c=n;a<o;)c>=r||e<n&&s.ue(t[e],t[c])<=0?LX(i,a++,t[e++]):LX(i,a++,t[c++])}function Kht(t,e,n,r,i,a){this.e=new Mm,this.f=(art(),Hbe),G$(this.e,t),this.d=e,this.a=n,this.b=r,this.f=i,this.c=a}function zht(t,e){var n,r;for(r=new SO(t);r.e!=r.i.gc();)if(n=Q$(ymt(r),26),HS(e)===HS(n))return!0;return!1}function Ght(t){var e,n,r,i;for(AVt(),r=0,i=(n=tmt()).length;r<i;++r)if(-1!=w9((e=n[r]).a,t,0))return e;return Bie}function Xht(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t>=48&&t<=57?t-48:0}function Vht(t){var e;return 64&t.Db?TMt(t):((e=new lD(TMt(t))).a+=" (source: ",rL(e,t.d),e.a+=")",e.a)}function Wht(t,e,n){var r,i;return i=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&(r=new Jz(t,1,5,i,t.a),n?PCt(n,r):n=r),n}function qht(t,e){var n;n=!!(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,2,n,e))}function Yht(t,e){var n;n=!!(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,8,n,e))}function Jht(t,e){var n;n=!!(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,8,n,e))}function Zht(t,e){var n;n=!!(512&t.Bb),e?t.Bb|=512:t.Bb&=-513,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,3,n,e))}function tft(t,e){var n;n=!!(512&t.Bb),e?t.Bb|=512:t.Bb&=-513,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,9,n,e))}function eft(t,e){var n;return-1==t.b&&t.a&&(n=t.a.Gj(),t.b=n?t.c.Xg(t.a.aj(),n):LAt(t.c.Tg(),t.a)),t.c.Og(t.b,e)}function nft(t){var e,n;return t>-129&&t<128?(e=t+128,!(n=(ZH(),_ee)[e])&&(n=_ee[e]=new Od(t)),n):new Od(t)}function rft(t){var e,n;return t>-129&&t<128?(e=t+128,!(n=(kj(),Pee)[e])&&(n=Pee[e]=new Fd(t)),n):new Fd(t)}function ift(t){var e;return t.k==(oTt(),Cse)&&((e=Q$(bEt(t,(lVt(),Vhe)),61))==(yGt(),sSe)||e==xSe)}function aft(t,e,n){var r,i;return(i=IMt(t.b,e))&&(r=Q$(OHt(R9(t,i),""),26))?bMt(t,r,e,n):null}function oft(t,e,n){var r,i;return(i=IMt(t.b,e))&&(r=Q$(OHt(R9(t,i),""),26))?vMt(t,r,e,n):null}function sft(t,e){var n,r;for(r=new SO(t);r.e!=r.i.gc();)if(n=Q$(ymt(r),138),HS(e)===HS(n))return!0;return!1}function cft(t,e,n){var r;if(e>(r=t.gc()))throw Um(new ZP(e,r));if(t.hi()&&t.Hc(n))throw Um(new Py(a8t));t.Xh(e,n)}function lft(t,e){var n;if(null==(n=cnt(t.i,e)))throw Um(new tw("Node did not exist in input."));return Pat(e,n),null}function uft(t,e){var n;if(rO(n=ODt(t,e),322))return Q$(n,34);throw Um(new Py(r6t+e+"' is not a valid attribute"))}function hft(t,e,n){var r,i;for(i=rO(e,99)&&Q$(e,18).Bb&Uqt?new OL(e,t):new Lot(e,t),r=0;r<n;++r)ibt(i);return i}function fft(t){var e,n,r;for(r=0,n=t.length,e=0;e<n;e++)32==t[e]||13==t[e]||10==t[e]||9==t[e]||(t[r++]=t[e]);return r}function dft(t){var e,n,r;for(e=new Mm,r=new Gd(t.b);r.a<r.c.c.length;)n=Q$(J1(r),594),gst(e,Q$(n.jf(),14));return e}function Aft(t){var e,n;for(n=Q$(bEt(t,(Hjt(),uwe)),15).Kc();n.Ob();)DH((e=Q$(n.Pb(),188)).b.d,e),DH(e.c.b,e)}function gft(t){switch(Q$(bEt(t,(lVt(),efe)),303).g){case 1:lct(t,efe,(j9(),xhe));break;case 2:lct(t,efe,(j9(),The))}}function pft(t){var e;t.g&&(DFt((e=t.c.Rf()?t.f:t.a).a,t.o,!0),DFt(e.a,t.o,!1),lct(t.o,($Xt(),tme),(WCt(),K_e)))}function mft(t){var e;if(!t.a)throw Um(new Ry("Cannot offset an unassigned cut."));e=t.c-t.b,t.b+=e,Oq(t,e),Mq(t,e)}function bft(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,LX(t.a,t.c,null),e)}function vft(t){var e,n;for(n=t.p.a.ec().Kc();n.Ob();)if((e=Q$(n.Pb(),213)).f&&t.b[e.c]<-1e-10)return e;return null}function yft(t,e){switch(t.b.g){case 0:case 1:return e;case 2:case 3:return new KW(e.d,0,e.a,e.b);default:return null}}function wft(t){switch(t.g){case 2:return RBe;case 1:return PBe;case 4:return NBe;case 3:return UBe;default:return QBe}}function kft(t){switch(t.g){case 1:return TSe;case 2:return sSe;case 3:return oSe;case 4:return xSe;default:return ESe}}function Cft(t){switch(t.g){case 1:return xSe;case 2:return TSe;case 3:return sSe;case 4:return oSe;default:return ESe}}function xft(t){switch(t.g){case 1:return oSe;case 2:return xSe;case 3:return TSe;case 4:return sSe;default:return ESe}}function Eft(t){switch(t){case 0:return new mv;case 1:return new gv;case 2:return new pv;default:throw Um(new fb)}}function Tft(t,e){return t<e?-1:t>e?1:t==e?0==t?Tft(1/t,1/e):0:isNaN(t)?isNaN(e)?0:1:-1}function Bft(t,e){Sxt(e,"Sort end labels",1),qx(SW(ftt(new Fj(null,new f1(t.b,16)),new An),new gn),new pn),$Tt(e)}function _ft(t,e,n){var r,i;return t.ej()?(i=t.fj(),r=qSt(t,e,n),t.$i(t.Zi(7,nft(n),r,e,i)),r):qSt(t,e,n)}function Sft(t,e){var n,r,i;null==t.d?(++t.e,--t.f):(i=e.cd(),M6(t,r=((n=e.Sh())&FVt)%t.d.length,LMt(t,r,n,i)))}function Lft(t,e){var n;n=!!(t.Bb&y6t),e?t.Bb|=y6t:t.Bb&=-1025,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,10,n,e))}function Ift(t,e){var n;n=!!(t.Bb&Rqt),e?t.Bb|=Rqt:t.Bb&=-4097,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,12,n,e))}function Mft(t,e){var n;n=!!(t.Bb&C7t),e?t.Bb|=C7t:t.Bb&=-8193,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,15,n,e))}function Oft(t,e){var n;n=!!(t.Bb&x7t),e?t.Bb|=x7t:t.Bb&=-2049,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,11,n,e))}function Dft(t,e){var n;return 0!=(n=Tft(t.b.c,e.b.c))||0!=(n=Tft(t.a.a,e.a.a))?n:Tft(t.a.b,e.a.b)}function Fft(t,e){var n;if(null==(n=FX(t.k,e)))throw Um(new tw("Port did not exist in input."));return Pat(e,n),null}function Nft(t){var e,n;for(n=jMt(zet(t)).Kc();n.Ob();)if(OQt(t,e=xN(n.Pb())))return b4((KE(),DIe),e);return null}function Pft(t,e){var n,r,i,a,o;for(o=aFt(t.e.Tg(),e),a=0,n=Q$(t.g,119),i=0;i<t.i;++i)r=n[i],o.rl(r.ak())&&++a;return a}function Rft(t,e,n){var r,i;return r=Q$(e.We(t.a),35),i=Q$(n.We(t.a),35),null!=r&&null!=i?Oat(r,i):null!=r?-1:null!=i?1:0}function Qft(t,e,n){var r;if(t.c)hEt(t.c,e,n);else for(r=new Gd(t.b);r.a<r.c.c.length;)Qft(Q$(J1(r),157),e,n)}function Uft(t,e){var n,r;for(r=new Gd(e);r.a<r.c.c.length;)n=Q$(J1(r),46),b9(t.b.b,n.b),aY(Q$(n.a,189),Q$(n.b,81))}function $ft(t){var e,n;for(n=OX(new Tw,91),e=!0;t.Ob();)e||(n.a+=QVt),e=!1,aL(n,t.Pb());return(n.a+="]",n).a}function Hft(t,e){var n;n=!!(t.Bb&lWt),e?t.Bb|=lWt:t.Bb&=-16385,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,16,n,e))}function jft(t,e){var n;n=!!(t.Bb&l6t),e?t.Bb|=l6t:t.Bb&=-32769,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,18,n,e))}function Kft(t,e){var n;n=!!(t.Bb&l6t),e?t.Bb|=l6t:t.Bb&=-32769,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,18,n,e))}function zft(t,e){var n;n=!!(t.Bb&Uqt),e?t.Bb|=Uqt:t.Bb&=-65537,4&t.Db&&!(1&t.Db)&&fot(t,new Z5(t,1,20,n,e))}function Gft(t){var e;return e=O8(BDe,XWt,25,2,15,1),t-=Uqt,e[0]=(t>>10)+$qt&WWt,e[1]=56320+(1023&t)&WWt,Ugt(e,0,e.length)}function Xft(t){var e;return(e=Q$(bEt(t,($Xt(),Kge)),103))==(Qht(),QBe)?Hy(CN(bEt(t,wge)))>=1?RBe:NBe:e}function Vft(t){switch(Q$(bEt(t,($Xt(),Yge)),218).g){case 1:return new ra;case 3:return new ca;default:return new na}}function Wft(t){if(t.c)Wft(t.c);else if(t.d)throw Um(new Ry("Stream already terminated, can't be modified or used"))}function qft(t){var e;return 64&t.Db?TMt(t):((e=new lD(TMt(t))).a+=" (identifier: ",rL(e,t.k),e.a+=")",e.a)}function Yft(t,e,n){var r;return Zk(),wnt(r=new ac,e),knt(r,n),t&&l7((!t.a&&(t.a=new LO(MLe,t,5)),t.a),r),r}function Jft(t,e,n,r){var i,a;return vV(r),vV(n),null==(a=null==(i=t.xc(e))?n:Yx(Q$(i,15),Q$(n,14)))?t.Bc(e):t.zc(e,a),a}function Zft(t){var e,n,r,i;return sit(n=new WR(e=Q$(Xk((i=(r=t.gm).f)==zte?r:i),9),Q$(xP(e,e.length),9),0),t),n}function tdt(t,e,n){var r,i;for(i=t.a.ec().Kc();i.Ob();)if(r=Q$(i.Pb(),10),sst(n,Q$(Oj(e,r.p),14)))return r;return null}function edt(t,e,n){try{Rct(t,e,n)}catch(t){throw rO(t=hst(t),597)?Um(new A5(t)):Um(t)}return e}function ndt(t,e){var n;return qL(t)&&qL(e)&&Iqt<(n=t-e)&&n<Sqt?n:oot(lst(qL(t)?Tot(t):t,qL(e)?Tot(e):e))}function rdt(t,e){var n;return qL(t)&&qL(e)&&Iqt<(n=t+e)&&n<Sqt?n:oot(cst(qL(t)?Tot(t):t,qL(e)?Tot(e):e))}function idt(t,e){var n;return qL(t)&&qL(e)&&Iqt<(n=t*e)&&n<Sqt?n:oot(ujt(qL(t)?Tot(t):t,qL(e)?Tot(e):e))}function adt(t,e){var n;return t.i||eSt(t),(n=Q$(oW(t.g,e),46))?new s1(t.j,Q$(n.a,19).a,Q$(n.b,19).a):(xq(),xq(),cne)}function odt(t,e,n){var r;return r=t.a.get(e),t.a.set(e,void 0===n?null:n),void 0===r?(++t.c,oY(t.b)):++t.d,r}function sdt(t,n,r){t.n=vj(LDe,[cWt,Qqt],[364,25],14,[r,TJ(e.Math.ceil(n/32))],2),t.o=n,t.p=r,t.j=n-1>>1,t.k=r-1>>1}function cdt(){var t,n,r;vxt(),r=Ine+++Date.now(),t=TJ(e.Math.floor(r*oYt))&cYt,n=TJ(r-t*sYt),this.a=1502^t,this.b=n^aYt}function ldt(t){var e,n;for(e=new Mm,n=new Gd(t.j);n.a<n.c.c.length;)G$(e,Q$(J1(n),11).b);return bX(e),new _L(e)}function udt(t){var e,n;for(e=new Mm,n=new Gd(t.j);n.a<n.c.c.length;)G$(e,Q$(J1(n),11).e);return bX(e),new _L(e)}function hdt(t){var e,n;for(e=new Mm,n=new Gd(t.j);n.a<n.c.c.length;)G$(e,Q$(J1(n),11).g);return bX(e),new _L(e)}function fdt(t){var e,n;for(n=tMt(zet(dZ(t))).Kc();n.Ob();)if(OQt(t,e=xN(n.Pb())))return v4((zE(),jIe),e);return null}function ddt(t){var e,n;for(e=0,n=t.length;e<n;e++)if(null==t[e])throw Um(new Uy("at index "+e));return new qy(t)}function Adt(t,e){var n;if(rO(n=ODt(t.Tg(),e),99))return Q$(n,18);throw Um(new Py(r6t+e+"' is not a valid reference"))}function gdt(t){var e;return(e=fTt(t))>34028234663852886e22?Nqt:e<-34028234663852886e22?Pqt:e}function pdt(t){return t=((t=((t-=t>>1&1431655765)>>2&858993459)+(858993459&t))>>4)+t&252645135,t+=t>>8,63&(t+=t>>16)}function mdt(t){var e,n,r;for(e=new cP(t.Hd().gc()),r=0,n=I7(t.Hd().Kc());n.Ob();)yZ(e,n.Pb(),nft(r++));return OTt(e.a)}function bdt(t,e){var n,r,i;for(i=new Om,r=e.vc().Kc();r.Ob();)XV(i,(n=Q$(r.Pb(),42)).cd(),hot(t,Q$(n.dd(),15)));return i}function vdt(t,e){0==t.n.c.length&&G$(t.n,new FJ(t.s,t.t,t.i)),G$(t.b,e),cvt(Q$(Oj(t.n,t.n.c.length-1),211),e),UUt(t,e)}function ydt(t){return t.c==t.b.b&&t.i==t.g.b||(t.a.c=O8(Lte,$Vt,1,0,5,1),gst(t.a,t.b),gst(t.a,t.g),t.c=t.b.b,t.i=t.g.b),t.a}function wdt(t,e){var n,r;for(r=0,n=Q$(e.Kb(t),20).Kc();n.Ob();)$y(kN(bEt(Q$(n.Pb(),17),(lVt(),Tfe))))||++r;return r}function kdt(t,n){var r,i;i=Hy(CN(egt(l2(n),($Xt(),bme)))),Qwt(n,r=e.Math.max(0,i/2-.5),1),G$(t,new uB(n,r))}function Cdt(){Cdt=L,$fe=new QB(WZt,0),Pfe=new QB("FIRST",1),Rfe=new QB(B1t,2),Qfe=new QB("LAST",3),Ufe=new QB(_1t,4)}function xdt(){xdt=L,YBe=new R_(lJt,0),WBe=new R_("POLYLINE",1),VBe=new R_("ORTHOGONAL",2),qBe=new R_("SPLINES",3)}function Edt(){Edt=L,Yke=new v_("ASPECT_RATIO_DRIVEN",0),Jke=new v_("MAX_SCALE_DRIVEN",1),qke=new v_("AREA_DRIVEN",2)}function Tdt(){Tdt=L,UCe=new w_("P1_STRUCTURE",0),$Ce=new w_("P2_PROCESSING_ORDER",1),HCe=new w_("P3_EXECUTION",2)}function Bdt(){Bdt=L,tke=new A_("OVERLAP_REMOVAL",0),Jwe=new A_("COMPACTION",1),Zwe=new A_("GRAPH_SIZE_CALCULATION",2)}function _dt(t,n){return cM(),rrt(PWt),e.Math.abs(t-n)<=PWt||t==n||isNaN(t)&&isNaN(n)?0:t<n?-1:t>n?1:jL(isNaN(t),isNaN(n))}function Sdt(t,e){var n,r;for(n=cmt(t,0);n.b!=n.d.c;){if((r=jy(CN(h3(n))))==e)return;if(r>e){K0(n);break}}JG(n,e)}function Ldt(t,e){var n,r,i,a,o;if(n=e.f,Ypt(t.c.d,n,e),null!=e.g)for(a=0,o=(i=e.g).length;a<o;++a)r=i[a],Ypt(t.c.e,r,e)}function Idt(t,e,n,r){var i,a,o;for(i=e+1;i<n;++i)for(a=i;a>e&&r.ue(t[a-1],t[a])>0;--a)o=t[a],LX(t,a,t[a-1]),LX(t,a-1,o)}function Mdt(t,e,n,r){if(e<0)COt(t,n,r);else{if(!n.Ij())throw Um(new Py(r6t+n.ne()+i6t));Q$(n,66).Nj().Tj(t,t.yh(),e,r)}}function Odt(t,e){if(e==t.d)return t.e;if(e==t.e)return t.d;throw Um(new Py("Node "+e+" not part of edge "+t))}function Ddt(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 Fdt(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 Ndt(t,e,n,r){switch(e){case 3:return t.f;case 4:return t.g;case 5:return t.i;case 6:return t.j}return Rht(t,e,n,r)}function Pdt(t){return t.k==(oTt(),Tse)&&o5(new Fj(null,new jG(new oz(YO(hdt(t).a.Kc(),new u)))),new ji)}function Rdt(t){return null==t.e?t:(!t.c&&(t.c=new rPt(!!(256&t.f),t.i,t.a,t.d,!!(16&t.f),t.j,t.g,null)),t.c)}function Qdt(t,e){return t.h==Bqt&&0==t.m&&0==t.l?(e&&(hee=CM(0,0,0)),GL((z9(),Aee))):(e&&(hee=CM(t.l,t.m,t.h)),CM(0,0,0))}function Udt(t){return Array.isArray(t)&&t.im===S?Jk(tlt(t))+"@"+(Zct(t)>>>0).toString(16):t.toString()}function $dt(t){var e;this.a=new WR(e=Q$(t.e&&t.e(),9),Q$(xP(e,e.length),9),0),this.b=O8(Lte,$Vt,1,this.a.a.length,5,1)}function Hdt(t){var e,n,r;for(this.a=new lI,r=new Gd(t);r.a<r.c.c.length;)n=Q$(J1(r),14),fit(e=new cK,n),kG(this.a,e)}function jdt(t){var e,n;for($N(),e=t.o.b,n=Q$(Q$(c6(t.r,(yGt(),xSe)),21),84).Kc();n.Ob();)Q$(n.Pb(),111).e.b+=e}function Kdt(t){var e;if(t.b){if(Kdt(t.b),t.b.d!=t.c)throw Um(new pb)}else t.d.dc()&&(e=Q$(t.f.c.xc(t.e),14))&&(t.d=e)}function zdt(t){var e;return null==t||(e=t.length)>0&&(h1(e-1,t.length),58==t.charCodeAt(e-1))&&!Gdt(t,LIe,IIe)}function Gdt(t,e,n){var r,i;for(r=0,i=t.length;r<i;r++)if(tct((h1(r,t.length),t.charCodeAt(r)),e,n))return!0;return!1}function Xdt(t,e){var n,r;for(r=t.e.a.ec().Kc();r.Ob();)if(tTt(e,(n=Q$(r.Pb(),266)).d)||__t(e,n.d))return!0;return!1}function Vdt(t,e){var n,r,i;for(i=(r=$Pt(t,e))[r.length-1]/2,n=0;n<r.length;n++)if(r[n]>=i)return e.c+n;return e.c+e.b.gc()}function Wdt(t,e){var n,r,i,a;for(dN(),i=e,j7(r=U7(t),0,r.length,i),n=0;n<r.length;n++)n!=(a=gwt(t,r[n],n))&&_ft(t,n,a)}function qdt(t,e){var n,r,i,a,o,s;for(r=0,n=0,o=0,s=(a=e).length;o<s;++o)(i=a[o])>0&&(r+=i,++n);return n>1&&(r+=t.d*(n-1)),r}function Ydt(t){var e,n,r;for((r=new xw).a+="[",e=0,n=t.gc();e<n;)rL(r,vD(t.ki(e))),++e<n&&(r.a+=QVt);return r.a+="]",r.a}function Jdt(t){var e,n,r;return r=Lxt(t),!GC(t.c)&&(net(r,"knownLayouters",n=new Tf),e=new nm(n),t5(t.c,e)),r}function Zdt(t,e){var n,r;for(vV(e),n=!1,r=new Gd(t);r.a<r.c.c.length;)vAt(e,J1(r),!1)&&(SG(r),n=!0);return n}function tAt(t){var e,n;for(n=Hy(CN(t.a.We((cVt(),_Be)))),e=new Gd(t.a.xf());e.a<e.c.c.length;)VGt(t,Q$(J1(e),680),n)}function eAt(t,e){var n,r;for(r=new Gd(e);r.a<r.c.c.length;)n=Q$(J1(r),46),G$(t.b.b,Q$(n.b,81)),A2(Q$(n.a,189),Q$(n.b,81))}function nAt(t,e,n){var r,i;for(r=(i=t.a.b).c.length;r<n;r++)vK(i,0,new UX(t.a));EZ(e,Q$(Oj(i,i.c.length-n),29)),t.b[e.p]=n}function rAt(t,e,n){var r;!(r=n)&&(r=IH(new zv,0)),Sxt(r,HZt,2),bbt(t.b,e,bat(r,1)),Pjt(t,e,bat(r,1)),HGt(e,bat(r,1)),$Tt(r)}function iAt(t,e,n,r,i){QZ(),zDt(iE(rE(nE(aE(new Ub,0),i.d.e-t),e),i.d)),zDt(iE(rE(nE(aE(new Ub,0),n-i.a.e),i.a),r))}function aAt(t,e,n,r,i,a){this.a=t,this.c=e,this.b=n,this.f=r,this.d=i,this.e=a,this.c>0&&this.b>0&&Wj(this.c,this.b,this.a)}function oAt(t){NAt(),this.c=a6(Tst(Hw(nEe,1),$Vt,831,0,[Gme])),this.b=new Om,this.a=t,XV(this.b,Xme,1),Set(Vme,new Ep(this))}function sAt(t,e){var n;return t.d?cG(t.b,e)?Q$(FX(t.b,e),51):(n=e.Kf(),XV(t.b,e,n),n):e.Kf()}function cAt(t,e){var n;return HS(t)===HS(e)||!!rO(e,91)&&(n=Q$(e,91),t.e==n.e&&t.d==n.d&&w4(t,n.a))}function lAt(t){switch(yGt(),t.g){case 4:return sSe;case 1:return oSe;case 3:return xSe;case 2:return TSe;default:return ESe}}function uAt(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 kot(t,e)}function hAt(t){switch(t.g){case 0:return new zo;case 1:return new Go;default:throw Um(new Py(i4t+(null!=t.f?t.f:""+t.g)))}}function fAt(t){switch(t.g){case 0:return new Ko;case 1:return new Xo;default:throw Um(new Py(x1t+(null!=t.f?t.f:""+t.g)))}}function dAt(t){switch(t.g){case 0:return new Xv;case 1:return new bv;default:throw Um(new Py(O4t+(null!=t.f?t.f:""+t.g)))}}function AAt(t){switch(t.g){case 1:return new Ro;case 2:return new AN;default:throw Um(new Py(i4t+(null!=t.f?t.f:""+t.g)))}}function gAt(t){var e,n;if(t.b)return t.b;for(n=Vne?null:t.d;n;){if(e=Vne?null:n.b)return e;n=Vne?null:n.d}return uE(),Une}function pAt(t){var e,n;return 0==t.e?0:(e=t.d<<5,n=t.a[t.d-1],t.e<0&&Bat(t)==t.d-1&&(--n,n|=0),e-=JSt(n))}function mAt(t){var e,n,r;return t<tne.length?tne[t]:(e=31&t,(r=O8(_De,lqt,25,1+(n=t>>5),15,1))[n]=1<<e,new uG(1,n+1,r))}function bAt(t){var e,n,r;return(n=t.zg())?rO(e=t.Ug(),160)&&null!=(r=bAt(Q$(e,160)))?r+"."+n:n:null}function vAt(t,e,n){var r,i;for(i=t.Kc();i.Ob();)if(r=i.Pb(),HS(e)===HS(r)||null!=e&&Oht(e,r))return n&&i.Qb(),!0;return!1}function yAt(t,e,n){var r,i;if(++t.j,n.dc())return!1;for(i=n.Kc();i.Ob();)r=i.Pb(),t.Hi(e,t.oi(e,r)),++e;return!0}function wAt(t,e,n,r){var i,a;if((a=n-e)<3)for(;a<3;)t*=10,++a;else{for(i=1;a>3;)i*=10,--a;t=(t+(i>>1))/i|0}return r.i=t,!0}function kAt(t){return Eut(),cD(),!!(Fdt(Q$(t.a,81).j,Q$(t.b,103))||0!=Q$(t.a,81).d.e&&Fdt(Q$(t.a,81).j,Q$(t.b,103)))}function CAt(t){O7(),Q$(t.We((cVt(),$Te)),174).Hc((ZRt(),XSe))&&(Q$(t.We(lBe),174).Fc((hSt(),rSe)),Q$(t.We($Te),174).Mc(XSe))}function xAt(t,e){var n;if(e){for(n=0;n<t.i;++n)if(Q$(t.g[n],366).Di(e))return!1;return l7(t,e)}return!1}function EAt(t){var e,n,r;for(e=new Tf,r=new $d(t.b.Kc());r.b.Ob();)n=VTt(Q$(r.b.Pb(),686)),GG(e,e.a.length,n);return e.a}function TAt(t){var e;return!t.c&&(t.c=new Ot),mM(t.d,new Ft),qRt(t),e=hNt(t),qx(new Fj(null,new f1(t.d,16)),new BA(t)),e}function BAt(t){var e;return 64&t.Db?yht(t):((e=new lD(yht(t))).a+=" (instanceClassName: ",rL(e,t.D),e.a+=")",e.a)}function _At(t,e){var n,r;e&&(n=Nnt(e,"x"),Cnt(new Yp(t).a,(vV(n),n)),r=Nnt(e,"y"),Snt(new Jp(t).a,(vV(r),r)))}function SAt(t,e){var n,r;e&&(n=Nnt(e,"x"),_nt(new Xp(t).a,(vV(n),n)),r=Nnt(e,"y"),Lnt(new Wp(t).a,(vV(r),r)))}function LAt(t,e){var n,r,i;if(null==t.i&&HUt(t),n=t.i,-1!=(r=e.aj()))for(i=n.length;r<i;++r)if(n[r]==e)return r;return-1}function IAt(t){var e,n,r,i;for(n=Q$(t.g,674),r=t.i-1;r>=0;--r)for(e=n[r],i=0;i<r;++i)if(mUt(t,e,n[i])){Myt(t,r);break}}function MAt(t){var e=t.e;function n(t){return t&&0!=t.length?"\t"+t.join("\n\t"):""}return e&&(e.stack||n(t[zWt]))}function OAt(t){var e;switch(GX(),(e=t.Pc()).length){case 0:return Qte;case 1:return new Ej(bX(e[0]));default:return new xY(ddt(e))}}function DAt(t,e){switch(e.g){case 1:return N$(t.j,(gat(),Mse));case 2:return N$(t.j,(gat(),Dse));default:return xq(),xq(),cne}}function FAt(t,e){switch(e){case 3:return void xnt(t,0);case 4:return void Ent(t,0);case 5:return void Tnt(t,0);case 6:return void Bnt(t,0)}sht(t,e)}function NAt(){NAt=L,SE(),$Xt(),Xme=_me,Vme=a6(Tst(Hw(uEe,1),y3t,146,0,[mme,bme,yme,wme,xme,Eme,Tme,Bme,Lme,Mme,vme,kme,Sme]))}function PAt(t){var e,n;e=t.d==(IBt(),qle),n=ICt(t),lct(t.a,($Xt(),vge),e&&!n||!e&&n?(dbt(),LEe):(dbt(),SEe))}function RAt(t,e){var n;return(n=Q$(E4(t,m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),Kne)]))),15)).Qc(uH(n.gc()))}function QAt(){QAt=L,tLe=new W_("SIMPLE",0),YSe=new W_("GROUP_DEC",1),ZSe=new W_("GROUP_MIXED",2),JSe=new W_("GROUP_INC",3)}function UAt(){UAt=L,HMe=new Mc,FMe=new Oc,NMe=new Dc,PMe=new Fc,RMe=new Nc,QMe=new Pc,UMe=new Rc,$Me=new Qc,jMe=new Uc}function $At(t,e,n){Het(),sv.call(this),this.a=vj(zre,[cWt,rJt],[595,212],0,[Jre,Yre],2),this.c=new hI,this.g=t,this.f=e,this.d=n}function HAt(t,n){this.n=vj(LDe,[cWt,Qqt],[364,25],14,[n,TJ(e.Math.ceil(t/32))],2),this.o=t,this.p=n,this.j=t-1>>1,this.k=n-1>>1}function jAt(t,e){Sxt(e,"End label post-processing",1),qx(SW(ftt(new Fj(null,new f1(t.b,16)),new on),new sn),new cn),$Tt(e)}function KAt(t,e,n){var r;return r=Hy(t.p[e.i.p])+Hy(t.d[e.i.p])+e.n.b+e.a.b,Hy(t.p[n.i.p])+Hy(t.d[n.i.p])+n.n.b+n.a.b-r}function zAt(t,e,n){var r,i;for(r=t0(n,zqt),i=0;0!=Vut(r,0)&&i<e;i++)r=rdt(r,t0(t[i],zqt)),t[i]=dK(r),r=vz(r,32);return dK(r)}function GAt(t){var e,n,r,i;for(i=0,n=0,r=t.length;n<r;n++)h1(n,t.length),(e=t.charCodeAt(n))<64&&(i=e0(i,bz(1,e)));return i}function XAt(t){var e;return null==t?null:new LI((e=Q$t(t,!0)).length>0&&(h1(0,e.length),43==e.charCodeAt(0))?e.substr(1):e)}function VAt(t){var e;return null==t?null:new LI((e=Q$t(t,!0)).length>0&&(h1(0,e.length),43==e.charCodeAt(0))?e.substr(1):e)}function WAt(t,e){return t.i>0&&(e.length<t.i&&(e=Fnt(tlt(e).c,t.i)),aHt(t.g,0,e,0,t.i)),e.length>t.i&&LX(e,t.i,null),e}function qAt(t,e,n){var r,i,a;return t.ej()?(r=t.i,a=t.fj(),_ht(t,r,e),i=t.Zi(3,null,e,r,a),n?n.Ei(i):n=i):_ht(t,t.i,e),n}function YAt(t,e,n){var r,i;return r=new M9(t.e,4,10,rO(i=e.c,88)?Q$(i,26):(gVt(),fMe),null,obt(t,e),!1),n?n.Ei(r):n=r,n}function JAt(t,e,n){var r,i;return r=new M9(t.e,3,10,null,rO(i=e.c,88)?Q$(i,26):(gVt(),fMe),obt(t,e),!1),n?n.Ei(r):n=r,n}function ZAt(t){var e;return $N(),e=new fI(Q$(t.e.We((cVt(),QTe)),8)),t.B.Hc((ZRt(),HSe))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function tgt(t){return fbt(),(t.q?t.q:(xq(),xq(),lne))._b(($Xt(),Fpe))?Q$(bEt(t,Fpe),197):Q$(bEt(pV(t),Npe),197)}function egt(t,e){var n,r;return r=null,IF(t,($Xt(),Cme))&&(n=Q$(bEt(t,Cme),94)).Xe(e)&&(r=n.We(e)),null==r&&(r=bEt(pV(t),e)),r}function ngt(t,e){var n,r,i;return!!rO(e,42)&&(r=(n=Q$(e,42)).cd(),fV(i=hht(t.Rc(),r),n.dd())&&(null!=i||t.Rc()._b(r)))}function rgt(t,e){var n;return t.f>0&&(t.qj(),-1!=LMt(t,((n=null==e?0:Zct(e))&FVt)%t.d.length,n,e))}function igt(t,e){var n,r;return t.f>0&&(t.qj(),n=aLt(t,((r=null==e?0:Zct(e))&FVt)%t.d.length,r,e))?n.dd():null}function agt(t,e){var n,r,i,a;for(a=aFt(t.e.Tg(),e),n=Q$(t.g,119),i=0;i<t.i;++i)if(r=n[i],a.rl(r.ak()))return!1;return!0}function ogt(t){if(null==t.b){for(;t.a.Ob();)if(t.b=t.a.Pb(),!Q$(t.b,49).Zg())return!0;return t.b=null,!1}return!0}function sgt(t,e){t.mj();try{t.d.Vc(t.e++,e),t.f=t.d.j,t.g=-1}catch(t){throw rO(t=hst(t),73)?Um(new pb):Um(t)}}function cgt(t,e){var n,r;return sM(),r=null,e==(n=lP((lw(),lw(),ree)))&&(r=Q$(xJ(nee,t),615)),r||(r=new jX(t),e==n&&mZ(nee,t,r)),r}function lgt(t,n){var r,i;t.a=rdt(t.a,1),t.c=e.Math.min(t.c,n),t.b=e.Math.max(t.b,n),t.d+=n,r=n-t.f,i=t.e+r,t.f=i-t.e-r,t.e=i}function ugt(t,e){var n;t.c=e,t.a=pAt(e),t.a<54&&(t.f=(n=e.d>1?e0(bz(e.a[1],32),t0(e.a[0],zqt)):t0(e.a[0],zqt),y2(idt(e.e,n))))}function hgt(t,e){var n;return qL(t)&&qL(e)&&Iqt<(n=t%e)&&n<Sqt?n:oot((Ljt(qL(t)?Tot(t):t,qL(e)?Tot(e):e,!0),hee))}function fgt(t,e){var n;Fzt(e),(n=Q$(bEt(t,($Xt(),qge)),276))&&lct(t,qge,Lyt(n)),JD(t.c),JD(t.f),X6(t.d),X6(Q$(bEt(t,Spe),207))}function dgt(t){this.e=O8(_De,lqt,25,t.length,15,1),this.c=O8(SDe,JYt,25,t.length,16,1),this.b=O8(SDe,JYt,25,t.length,16,1),this.f=0}function Agt(t){var e,n;for(t.j=O8(MDe,Hqt,25,t.p.c.length,15,1),n=new Gd(t.p);n.a<n.c.c.length;)e=Q$(J1(n),10),t.j[e.p]=e.o.b/t.i}function ggt(t){var e;0!=t.c&&(1==(e=Q$(Oj(t.a,t.b),287)).b?(++t.b,t.b<t.a.c.length&&kd(Q$(Oj(t.a,t.b),287))):--e.b,--t.c)}function pgt(t){var e;e=t.a;do{(e=Q$(K5(new oz(YO(hdt(e).a.Kc(),new u))),17).d.i).k==(oTt(),Ese)&&G$(t.e,e)}while(e.k==(oTt(),Ese))}function mgt(){mgt=L,ISe=new GI(15),LSe=new zI((cVt(),zTe),ISe),OSe=new zI(IBe,15),MSe=new zI(pBe,nft(0)),SSe=new zI(rTe,AZt)}function bgt(){bgt=L,NSe=new X_("PORTS",0),PSe=new X_("PORT_LABELS",1),FSe=new X_("NODE_LABELS",2),DSe=new X_("MINIMUM_SIZE",3)}function vgt(t,e){var n,r;for(r=e.length,n=0;n<r;n+=2)qFt(t,(h1(n,e.length),e.charCodeAt(n)),(h1(n+1,e.length),e.charCodeAt(n+1)))}function ygt(t,e,n){var r,i,a,o;for(a=e-t.e,o=n-t.f,i=new Gd(t.a);i.a<i.c.c.length;)Cbt(r=Q$(J1(i),187),r.s+a,r.t+o);t.e=e,t.f=n}function wgt(t,e){var n,r,i;for(i=e.b.b,t.a=new Wx,t.b=O8(_De,lqt,25,i,15,1),n=0,r=cmt(e.b,0);r.b!=r.d.c;)Q$(h3(r),86).g=n++}function kgt(t,e){var n,r,i,a;return n=e>>5,e&=31,i=t.d+n+(0==e?0:1),Dxt(r=O8(_De,lqt,25,i,15,1),t.a,n,e),z0(a=new uG(t.e,i,r)),a}function Cgt(t,e,n){var r,i;r=Q$(xJ(tDe,e),117),i=Q$(xJ(eDe,e),117),n?(mZ(tDe,t,r),mZ(eDe,t,i)):(mZ(eDe,t,r),mZ(tDe,t,i))}function xgt(t,e,n){var r,i,a;for(i=null,a=t.b;a;){if(r=t.a.ue(e,a.d),n&&0==r)return a;r>=0?a=a.a[1]:(i=a,a=a.a[0])}return i}function Egt(t,e,n){var r,i,a;for(i=null,a=t.b;a;){if(r=t.a.ue(e,a.d),n&&0==r)return a;r<=0?a=a.a[0]:(i=a,a=a.a[1])}return i}function Tgt(t,e,n,r){var i,a,o;return i=!1,MKt(t.f,n,r)&&(Dpt(t.f,t.a[e][n],t.a[e][r]),o=(a=t.a[e])[r],a[r]=a[n],a[n]=o,i=!0),i}function Bgt(t,e,n,r,i){var a,o,s;for(o=i;e.b!=e.c;)a=Q$(dG(e),10),s=Q$(adt(a,r).Xb(0),11),t.d[s.p]=o++,n.c[n.c.length]=s;return o}function _gt(t,n,r){var i,a,o,s,c;return s=t.k,c=n.k,a=CN(egt(t,i=r[s.g][c.g])),o=CN(egt(n,i)),e.Math.max((vV(a),a),(vV(o),o))}function Sgt(t,e,n){var r,i,a,o;for(r=n/t.c.length,i=0,o=new Gd(t);o.a<o.c.c.length;)gut(a=Q$(J1(o),200),a.f+r*i),akt(a,e,r),++i}function Lgt(t,e,n){var r,i,a;for(i=Q$(FX(t.b,n),177),r=0,a=new Gd(e.j);a.a<a.c.c.length;)i[Q$(J1(a),113).d.p]&&++r;return r}function Igt(t){var e,n;return null!=(e=Q$(vot(t.a,4),126))?(aHt(e,0,n=O8(fIe,n7t,415,e.length,0,1),0,e.length),n):hIe}function Mgt(){var t;return 0!=iee&&(t=u5())-aee>2e3&&(aee=t,oee=e.setTimeout(VC,10)),0==iee++&&(_tt((sw(),tee)),!0)}function Ogt(t,e){var n;for(n=new oz(YO(hdt(t).a.Kc(),new u));AIt(n);)if(Q$(K5(n),17).d.i.c==e)return!1;return!0}function Dgt(t,e){var n;if(rO(e,245)){n=Q$(e,245);try{return 0==t.vd(n)}catch(t){if(!rO(t=hst(t),205))throw Um(t)}}return!1}function Fgt(){return Error.stackTraceLimit>0?(e.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function Ngt(t,n){return cM(),cM(),rrt(PWt),(e.Math.abs(t-n)<=PWt||t==n||isNaN(t)&&isNaN(n)?0:t<n?-1:t>n?1:jL(isNaN(t),isNaN(n)))>0}function Pgt(t,n){return cM(),cM(),rrt(PWt),(e.Math.abs(t-n)<=PWt||t==n||isNaN(t)&&isNaN(n)?0:t<n?-1:t>n?1:jL(isNaN(t),isNaN(n)))<0}function Rgt(t,n){return cM(),cM(),rrt(PWt),(e.Math.abs(t-n)<=PWt||t==n||isNaN(t)&&isNaN(n)?0:t<n?-1:t>n?1:jL(isNaN(t),isNaN(n)))<=0}function Qgt(t,e){for(var n=0;!e[n]||""==e[n];)n++;for(var r=e[n++];n<e.length;n++)e[n]&&""!=e[n]&&(r+=t+e[n]);return r}function Ugt(t,n,r){var i,a,o,s;for(P8(n,o=n+r,t.length),s="",a=n;a<o;)i=e.Math.min(a+1e4,o),s+=GV(t.slice(a,i)),a=i;return s}function $gt(t){var e,n,r,i;if(null==t)return null;for(i=new Mm,n=0,r=(e=vlt(t)).length;n<r;++n)G$(i,Q$t(e[n],!0));return i}function Hgt(t){var e,n,r,i;if(null==t)return null;for(i=new Mm,n=0,r=(e=vlt(t)).length;n<r;++n)G$(i,Q$t(e[n],!0));return i}function jgt(t){var e,n,r,i;if(null==t)return null;for(i=new Mm,n=0,r=(e=vlt(t)).length;n<r;++n)G$(i,Q$t(e[n],!0));return i}function Kgt(t,e){var n,r,i;if(t.c)Ent(t.c,e);else for(n=e-eK(t),i=new Gd(t.d);i.a<i.c.c.length;)Kgt(r=Q$(J1(i),157),eK(r)+n)}function zgt(t,e){var n,r,i;if(t.c)xnt(t.c,e);else for(n=e-tK(t),i=new Gd(t.a);i.a<i.c.c.length;)zgt(r=Q$(J1(i),157),tK(r)+n)}function Ggt(t,e){var n,r,i;for(r=new q6(e.gc()),n=e.Kc();n.Ob();)(i=tQt(t,Q$(n.Pb(),56)))&&(r.c[r.c.length]=i);return r}function Xgt(t,e){var n,r;return t.qj(),(n=aLt(t,((r=null==e?0:Zct(e))&FVt)%t.d.length,r,e))?(lrt(t,n),n.dd()):null}function Vgt(t){var e,n;for(n=oBt(t),e=null;2==t.c;)WXt(t),e||(dVt(),dVt(),tjt(e=new nM(2),n),n=e),n.$l(oBt(t));return n}function Wgt(t){if(!(H6t in t.a))throw Um(new tw("Every element must have an id."));return ySt(jJ(t,H6t))}function qgt(t){var e,n,r;if(!(r=t.Zg()))for(e=0,n=t.eh();n;n=n.eh()){if(++e>jqt)return n.fh();if((r=n.Zg())||n==t)break}return r}function Ygt(t){return cZ(),rO(t,156)?Q$(FX(aIe,bne),288).vg(t):cG(aIe,tlt(t))?Q$(FX(aIe,tlt(t)),288).vg(t):null}function Jgt(t){if(bpt(a5t,t))return cD(),mee;if(bpt(o5t,t))return cD(),pee;throw Um(new Py("Expecting true or false"))}function Zgt(t,e){if(e.c==t)return e.d;if(e.d==t)return e.c;throw Um(new Py("Input edge is not connected to the input port."))}function tpt(t,e){return t.e>e.e?1:t.e<e.e?-1:t.d>e.d?t.e:t.d<e.d?-e.e:t.e*xlt(t.a,e.a,t.d)}function ept(t){return t>=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 npt(t,e){var n;return HS(e)===HS(t)||!!rO(e,21)&&(n=Q$(e,21)).gc()==t.gc()&&t.Ic(n)}function rpt(t,e){var n,r,i;return r=t.a.length-1,n=e-t.b&r,i=t.c-e&r,wF(n<(t.c-t.b&r)),n>=i?(aut(t,e),-1):(out(t,e),1)}function ipt(t,e){var n,r;for(h1(e,t.length),n=t.charCodeAt(e),r=e+1;r<t.length&&(h1(r,t.length),t.charCodeAt(r)==n);)++r;return r-e}function apt(t){switch(t.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function opt(t,e){var n,r=t.a;e=String(e),r.hasOwnProperty(e)&&(n=r[e]);var i=(Jst(),uee)[typeof n];return i?i(n):yut(typeof n)}function spt(t,e){if(t.a<0)throw Um(new Ry("Did not call before(...) or after(...) before calling add(...)."));return GD(t,t.a,e),t}function cpt(t,e,n,r){var i;0!=e.c.length&&(i=xOt(n,r),qx(vet(new Fj(null,new f1(oSt(e),1)),new Co),new zW(t,n,i,r)))}function lpt(t,e,n){var r;t.Db&e?null==n?XLt(t,e):-1==(r=Nvt(t,e))?t.Eb=n:LX(ent(t.Eb),r,n):null!=n&&bFt(t,e,n)}function upt(t){var e;return 32&t.Db||0!=(e=hX(Q$(vot(t,16),26)||t.zh())-hX(t.zh()))&&lpt(t,32,O8(Lte,$Vt,1,e,5,1)),t}function hpt(t){var e;return t.b||zk(t,!(e=JP(t.e,t.a))||!mR(o5t,igt((!e.b&&(e.b=new qF((gVt(),bMe),KMe,e)),e.b),"qualified"))),t.c}function fpt(t,e,n){var r,i;return((i=(r=Q$(Xet(U9(t.a),e),87)).c||(gVt(),lMe)).kh()?tht(t.b,Q$(i,49)):i)==n?hUt(r):int(r,n),i}function dpt(t,e){(e||null==console.groupCollapsed?null!=console.group?console.group:console.log:console.groupCollapsed).call(console,t)}function Apt(t,e,n,r){Q$(n.b,65),Q$(n.b,65),Q$(r.b,65),Q$(r.b,65).c.b,N8(r,e,t)}function gpt(t){var e,n;for(e=new Gd(t.g);e.a<e.c.c.length;)Q$(J1(e),562);Kzt(n=new vFt(t.g,Hy(t.a),t.c)),t.g=n.b,t.d=n.a}function ppt(t,n,r){n.b=e.Math.max(n.b,-r.a),n.c=e.Math.max(n.c,r.a-t.a),n.d=e.Math.max(n.d,-r.b),n.a=e.Math.max(n.a,r.b-t.b)}function mpt(t,e){return t.e<e.e?-1:t.e>e.e?1:t.f<e.f?-1:t.f>e.f?1:Zct(t)-Zct(e)}function bpt(t,e){return vV(t),null!=e&&(!!mR(t,e)||t.length==e.length&&mR(t.toLowerCase(),e.toLowerCase()))}function vpt(t,e){var n,r,i,a;for(r=0,i=e.gc();r<i;++r)rO(n=e.il(r),99)&&Q$(n,18).Bb&l6t&&null!=(a=e.jl(r))&&tQt(t,Q$(a,56))}function ypt(t,e,n){var r,i,a;for(a=new Gd(n.a);a.a<a.c.c.length;)i=Q$(J1(a),221),r=new TM(Q$(FX(t.a,i.b),65)),G$(e.a,r),ypt(t,r,i)}function wpt(t){var e,n;return Vut(t,-129)>0&&Vut(t,128)<0?(e=dK(t)+128,!(n=(wj(),Iee)[e])&&(n=Iee[e]=new Dd(t)),n):new Dd(t)}function kpt(t,e){var n,r;return(n=e.Hh(t.a))&&null!=(r=xN(igt((!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),n.b),t8t)))?r:e.ne()}function Cpt(t,e){var n,r;return(n=e.Hh(t.a))&&null!=(r=xN(igt((!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),n.b),t8t)))?r:e.ne()}function xpt(t,e){var n,r;for($Z(),r=new oz(YO(ldt(t).a.Kc(),new u));AIt(r);)if((n=Q$(K5(r),17)).d.i==e||n.c.i==e)return n;return null}function Ept(t,e,n){this.c=t,this.f=new Mm,this.e=new Hk,this.j=new xj,this.n=new xj,this.b=e,this.g=new KW(e.c,e.d,e.b,e.a),this.a=n}function Tpt(t){var e,n,r,i;for(this.a=new lI,this.d=new Fb,this.e=0,r=0,i=(n=t).length;r<i;++r)e=n[r],!this.f&&(this.f=e),A2(this,e)}function Bpt(t){SNt(),0==t.length?(this.e=0,this.d=1,this.a=Tst(Hw(_De,1),lqt,25,15,[0])):(this.e=1,this.d=t.length,this.a=t,z0(this))}function _pt(t,e,n){sv.call(this),this.a=O8(zre,rJt,212,(Fet(),Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])).length,0,1),this.b=t,this.d=e,this.c=n}function Spt(t){this.d=new Mm,this.e=new p4,this.c=O8(_De,lqt,25,(yGt(),Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe])).length,15,1),this.b=t}function Lpt(t){var e,n,r,i;for(lct(i=Q$(bEt(t,(lVt(),dfe)),11),Ife,t.i.n.b),n=0,r=(e=Y0(t.e)).length;n<r;++n)CZ(e[n],i)}function Ipt(t){var e,n,r,i;for(lct(e=Q$(bEt(t,(lVt(),dfe)),11),Ife,t.i.n.b),r=0,i=(n=Y0(t.g)).length;r<i;++r)xZ(n[r],e)}function Mpt(t){var e,n;return!!IF(t.d.i,($Xt(),Gpe))&&(e=Q$(bEt(t.c.i,Gpe),19),n=Q$(bEt(t.d.i,Gpe),19),wM(e.a,n.a)>0)}function Opt(t){var e;HS(JIt(t,(cVt(),wTe)))===HS((oht(),p_e))&&(qJ(t)?(e=Q$(JIt(qJ(t),wTe),334),qmt(t,wTe,e)):qmt(t,wTe,m_e))}function Dpt(t,e,n){var r,i;uEt(t.e,e,n,(yGt(),TSe)),uEt(t.i,e,n,oSe),t.a&&(i=Q$(bEt(e,(lVt(),dfe)),11),r=Q$(bEt(n,dfe),11),v0(t.g,i,r))}function Fpt(t,e,n){var r,i,a;r=e.c.p,a=e.p,t.b[r][a]=new DY(t,e),n&&(t.a[r][a]=new Qg(e),(i=Q$(bEt(e,(lVt(),nfe)),10))&&YSt(t.d,i,e))}function Npt(t,e){var n,r,i;if(G$(xae,t),e.Fc(t),n=Q$(FX(Cae,t),21))for(i=n.Kc();i.Ob();)r=Q$(i.Pb(),33),-1!=w9(xae,r,0)||Npt(r,e)}function Ppt(t,e,n){var r;(Gne?(gAt(t),1):Xne||qne?(uE(),1):Wne&&(uE(),0))&&((r=new eQ(e)).b=n,aTt(t,r))}function Rpt(t,e){var n;n=!t.A.Hc((bgt(),PSe))||t.q==(WCt(),z_e),t.u.Hc((hSt(),tSe))?n?OGt(t,e):aGt(t,e):t.u.Hc(nSe)&&(n?Lzt(t,e):YGt(t,e))}function Qpt(t,e){var n,r;++t.j,null!=e&&sLt(e,n=rO(r=t.a.Cb,97)?Q$(r,97).Jg():null)?lpt(t.a,4,n):lpt(t.a,4,Q$(e,126))}function Upt(t,n,r){return new KW(e.Math.min(t.a,n.a)-r/2,e.Math.min(t.b,n.b)-r/2,e.Math.abs(t.a-n.a)+r,e.Math.abs(t.b-n.b)+r)}function $pt(t,e){var n,r;return 0!=(n=wM(t.a.c.p,e.a.c.p))?n:0!=(r=wM(t.a.d.i.p,e.a.d.i.p))?r:wM(e.a.d.p,t.a.d.p)}function Hpt(t,e,n){var r,i,a,o;return(a=e.j)!=(o=n.j)?a.g-o.g:(r=t.f[e.p],i=t.f[n.p],0==r&&0==i?0:0==r?-1:0==i?1:Tft(r,i))}function jpt(t,e,n){var r;if(!n[e.d])for(n[e.d]=!0,r=new Gd(ydt(e));r.a<r.c.c.length;)jpt(t,Odt(Q$(J1(r),213),e),n)}function Kpt(t,e,n){var r;switch(r=n[t.g][e],t.g){case 1:case 3:return new O_(0,r);case 2:case 4:return new O_(r,0);default:return null}}function zpt(t,e,n){var r;r=Q$(sJ(e.f),209);try{r.Ze(t,n),xV(e.f,r)}catch(t){throw rO(t=hst(t),102),Um(t)}}function Gpt(t,e,n){var r,i,a,o;return r=null,(a=pKt(irt(),e))&&(i=null,null!=(o=Jjt(a,n))&&(i=t.Ye(a,o)),r=i),r}function Xpt(t,e,n,r){var i;return i=new M9(t.e,1,13,e.c||(gVt(),lMe),n.c||(gVt(),lMe),obt(t,e),!1),r?r.Ei(i):r=i,r}function Vpt(t,e,n,r){var i;if(e>=(i=t.length))return i;for(e=e>0?e:0;e<i&&!tct((h1(e,t.length),t.charCodeAt(e)),n,r);e++);return e}function Wpt(t,e){var n,r;for(r=t.c.length,e.length<r&&(e=$w(new Array(r),e)),n=0;n<r;++n)LX(e,n,t.c[n]);return e.length>r&&LX(e,r,null),e}function qpt(t,e){var n,r;for(r=t.a.length,e.length<r&&(e=$w(new Array(r),e)),n=0;n<r;++n)LX(e,n,t.a[n]);return e.length>r&&LX(e,r,null),e}function Ypt(t,e,n){var r,i,a;return(i=Q$(FX(t.e,e),387))?(a=gP(i,n),aO(t,i),a):(r=new J$(t,e,n),XV(t.e,e,r),vJ(r),null)}function Jpt(t){var e;if(null==t)return null;if(null==(e=MMt(Q$t(t,!0))))throw Um(new ew("Invalid hexBinary value: '"+t+"'"));return e}function Zpt(t){return SNt(),Vut(t,0)<0?0!=Vut(t,-1)?new mCt(-1,y9(t)):qee:Vut(t,10)<=0?Jee[dK(t)]:new mCt(1,t)}function tmt(){return AVt(),Tst(Hw(Nie,1),IWt,159,0,[Eie,xie,Tie,pie,gie,mie,yie,vie,bie,Cie,kie,wie,die,fie,Aie,uie,lie,hie,sie,oie,cie,Bie])}function emt(t){var e;this.d=new Mm,this.j=new Hk,this.g=new Hk,e=t.g.b,this.f=Q$(bEt(pV(e),($Xt(),Kge)),103),this.e=Hy(CN(gmt(e,xme)))}function nmt(t){this.b=new Mm,this.e=new Mm,this.d=t,this.a=!yC(SW(new Fj(null,new jG(new m6(t.b))),new iA(new Ki))).sd((dE(),Zne))}function rmt(){rmt=L,cEe=new S_("PARENTS",0),sEe=new S_("NODES",1),aEe=new S_("EDGES",2),lEe=new S_("PORTS",3),oEe=new S_("LABELS",4)}function imt(){imt=L,Q_e=new j_("DISTRIBUTED",0),$_e=new j_("JUSTIFIED",1),P_e=new j_("BEGIN",2),R_e=new j_(eJt,3),U_e=new j_("END",4)}function amt(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}function omt(t){switch(t.g){case 1:return Qht(),UBe;case 4:return Qht(),PBe;case 2:return Qht(),RBe;case 3:return Qht(),NBe}return Qht(),QBe}function smt(t,e,n){var r;switch((r=n.q.getFullYear()-cqt+cqt)<0&&(r=-r),e){case 1:t.a+=r;break;case 2:wtt(t,r%100,2);break;default:wtt(t,r,e)}}function cmt(t,e){var n,r;if(IZ(e,t.b),e>=t.b>>1)for(r=t.c,n=t.b;n>e;--n)r=r.b;else for(r=t.a.a,n=0;n<e;++n)r=r.a;return new YR(t,e,r)}function lmt(){lmt=L,dre=new RT("NUM_OF_EXTERNAL_SIDES_THAN_NUM_OF_EXTENSIONS_LAST",0),fre=new RT("CORNER_CASES_THAN_SINGLE_SIDE_LAST",1)}function umt(t){var e,n,r;for(mM(n=o_t(t),Qse),(r=t.d).c=O8(Lte,$Vt,1,0,5,1),e=new Gd(n);e.a<e.c.c.length;)gst(r,Q$(J1(e),456).b)}function hmt(t){var e,n;for(!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),e=(n=t.o).c.Kc();e.e!=e.i.gc();)Q$(e.nj(),42).dd();return S8(n)}function fmt(t){var e;IR(Q$(bEt(t,($Xt(),tme)),98))&&(uLt((u1(0,(e=t.b).c.length),Q$(e.c[0],29))),uLt(Q$(Oj(e,e.c.length-1),29)))}function dmt(t,n){var r,i,a,o;for(r=0,a=new Gd(n.a);a.a<a.c.c.length;)o=(i=Q$(J1(a),10)).o.a+i.d.c+i.d.b+t.j,r=e.Math.max(r,o);return r}function Amt(t){var e,n,r,i;for(i=0,n=0,r=t.length;n<r;n++)h1(n,t.length),(e=t.charCodeAt(n))>=64&&e<128&&(i=e0(i,bz(1,e-64)));return i}function gmt(t,e){var n,r;return r=null,IF(t,(cVt(),TBe))&&(n=Q$(bEt(t,TBe),94)).Xe(e)&&(r=n.We(e)),null==r&&pV(t)&&(r=bEt(pV(t),e)),r}function pmt(t,e){var n,r,i;(r=(i=e.d.i).k)!=(oTt(),Tse)&&r!=kse&&AIt(n=new oz(YO(hdt(i).a.Kc(),new u)))&&XV(t.k,e,Q$(K5(n),17))}function mmt(t,e){var n,r,i;return r=eet(t.Tg(),e),(n=e-t.Ah())<0?(i=t.Yg(r))>=0?t.lh(i):HSt(t,r):n<0?HSt(t,r):Q$(r,66).Nj().Sj(t,t.yh(),n)}function bmt(t){var e;if(rO(t.a,4)){if(null==(e=Ygt(t.a)))throw Um(new Ry(s5t+t.b+"'. "+r5t+(wN(uIe),uIe.k)+i5t));return e}return t.a}function vmt(t){var e;if(null==t)return null;if(null==(e=zGt(Q$t(t,!0))))throw Um(new ew("Invalid base64Binary value: '"+t+"'"));return e}function ymt(t){var e;try{return e=t.i.Xb(t.e),t.mj(),t.g=t.e++,e}catch(e){throw rO(e=hst(e),73)?(t.mj(),Um(new bb)):Um(e)}}function wmt(t){var e;try{return e=t.c.ki(t.e),t.mj(),t.g=t.e++,e}catch(e){throw rO(e=hst(e),73)?(t.mj(),Um(new bb)):Um(e)}}function kmt(){kmt=L,cVt(),wae=kBe,gae=bTe,uae=rTe,pae=zTe,Rwt(),vae=Cre,bae=wre,yae=Ere,mae=yre,jlt(),fae=oae,hae=aae,dae=cae,Aae=lae}function Cmt(t){switch(yE(),this.c=new Mm,this.d=t,t.g){case 0:case 2:this.a=VV(cse),this.b=Nqt;break;case 3:case 1:this.a=cse,this.b=Pqt}}function xmt(t,e,n){var r;if(t.c)Tnt(t.c,t.c.i+e),Bnt(t.c,t.c.j+n);else for(r=new Gd(t.b);r.a<r.c.c.length;)xmt(Q$(J1(r),157),e,n)}function Emt(t,e){var n,r;if(t.j.length!=e.j.length)return!1;for(n=0,r=t.j.length;n<r;n++)if(!mR(t.j[n],e.j[n]))return!1;return!0}function Tmt(t,e,n){var r;e.a.length>0&&(G$(t.b,new X$(e.a,n)),0<(r=e.a.length)?e.a=e.a.substr(0,0):0>r&&(e.a+=nO(O8(BDe,XWt,25,-r,15,1))))}function Bmt(t,e){var n,r,i;for(n=t.o,i=Q$(Q$(c6(t.r,e),21),84).Kc();i.Ob();)(r=Q$(i.Pb(),111)).e.a=Ayt(r,n.a),r.e.b=n.b*Hy(CN(r.b.We(Iie)))}function _mt(t,e){var n,r,i,a;return i=t.k,n=Hy(CN(bEt(t,(lVt(),kfe)))),a=e.k,r=Hy(CN(bEt(e,kfe))),a!=(oTt(),Cse)?-1:i!=Cse?1:n==r?0:n<r?-1:1}function Smt(t,e){var n,r;return n=Q$(Q$(FX(t.g,e.a),46).a,65),r=Q$(Q$(FX(t.g,e.b),46).a,65),G8(e.a,e.b)-G8(e.a,PM(n.b))-G8(e.b,PM(r.b))}function Lmt(t,e){var n;return n=Q$(bEt(t,($Xt(),ppe)),74),ZM(e,pse)?n?bq(n):(n=new vv,lct(t,ppe,n)):n&&lct(t,ppe,null),n}function Imt(t){var e;return(e=new Tw).a+="n",t.k!=(oTt(),Tse)&&oL(oL((e.a+="(",e),dF(t.k).toLowerCase()),")"),oL((e.a+="_",e),gyt(t)),e.a}function Mmt(t,e){Sxt(e,"Self-Loop post-processing",1),qx(SW(SW(ftt(new Fj(null,new f1(t.b,16)),new Fr),new Nr),new Pr),new Rr),$Tt(e)}function Omt(t,e,n,r){var i;return n>=0?t.hh(e,n,r):(t.eh()&&(r=(i=t.Vg())>=0?t.Qg(r):t.eh().ih(t,-1-i,null,r)),t.Sg(e,n,r))}function Dmt(t,e){switch(e){case 7:return!t.e&&(t.e=new cR(NLe,t,7,4)),void cjt(t.e);case 8:return!t.d&&(t.d=new cR(NLe,t,8,5)),void cjt(t.d)}FAt(t,e)}function Fmt(t,e){var n;n=t.Zc(e);try{return n.Pb()}catch(t){throw rO(t=hst(t),109)?Um(new Sy("Can't get element "+e)):Um(t)}}function Nmt(t,e){this.e=t,e<Gqt?(this.d=1,this.a=Tst(Hw(_De,1),lqt,25,15,[0|e])):(this.d=2,this.a=Tst(Hw(_De,1),lqt,25,15,[e%Gqt|0,e/Gqt|0]))}function Pmt(t,e){var n,r,i,a;for(xq(),n=t,a=e,rO(t,21)&&!rO(e,21)&&(n=e,a=t),i=n.Kc();i.Ob();)if(r=i.Pb(),a.Hc(r))return!1;return!0}function Rmt(t,e,n){var r,i,a,o;return-1!=(r=t.Xc(e))&&(t.ej()?(a=t.fj(),o=Myt(t,r),i=t.Zi(4,o,null,r,a),n?n.Ei(i):n=i):Myt(t,r)),n}function Qmt(t,e,n){var r,i,a,o;return-1!=(r=t.Xc(e))&&(t.ej()?(a=t.fj(),o=fj(t,r),i=t.Zi(4,o,null,r,a),n?n.Ei(i):n=i):fj(t,r)),n}function Umt(t,e){var n;switch(n=Q$(oW(t.b,e),124).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 $mt(){$mt=L,Qie=new PT(bJt,0),Rie=new PT(vJt,1),Uie=new PT(yJt,2),$ie=new PT(wJt,3),Qie.a=!1,Rie.a=!0,Uie.a=!1,$ie.a=!0}function Hmt(){Hmt=L,Yie=new NT(bJt,0),qie=new NT(vJt,1),Jie=new NT(yJt,2),Zie=new NT(wJt,3),Yie.a=!1,qie.a=!0,Jie.a=!1,Zie.a=!0}function jmt(t){var e;e=t.a;do{(e=Q$(K5(new oz(YO(udt(e).a.Kc(),new u))),17).c.i).k==(oTt(),Ese)&&t.b.Fc(e)}while(e.k==(oTt(),Ese));t.b=eot(t.b)}function Kmt(t){var e,n,r;for(r=t.c.a,t.p=(bX(r),new ZR(r)),n=new Gd(r);n.a<n.c.c.length;)(e=Q$(J1(n),10)).p=l_t(e).a;xq(),mM(t.p,new La)}function zmt(t){var e,n,r;if(n=0,0==(r=dNt(t)).c.length)return 1;for(e=new Gd(r);e.a<e.c.c.length;)n+=zmt(Q$(J1(e),33));return n}function Gmt(t,e){var n,r,i;for(i=0,r=Q$(Q$(c6(t.r,e),21),84).Kc();r.Ob();)i+=(n=Q$(r.Pb(),111)).d.b+n.b.rf().a+n.d.c,r.Ob()&&(i+=t.w);return i}function Xmt(t,e){var n,r,i;for(i=0,r=Q$(Q$(c6(t.r,e),21),84).Kc();r.Ob();)i+=(n=Q$(r.Pb(),111)).d.d+n.b.rf().b+n.d.a,r.Ob()&&(i+=t.w);return i}function Vmt(t,e,n,r){if(e.a<r.a)return!0;if(e.a==r.a){if(e.b<r.b)return!0;if(e.b==r.b&&t.b>n.b)return!0}return!1}function Wmt(t,e){return zS(t)?!!SVt[e]:t.hm?!!t.hm[e]:KS(t)?!!_Vt[e]:!!jS(t)&&!!BVt[e]}function qmt(t,e,n){return null==n?(!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),Xgt(t.o,e)):(!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),mkt(t.o,e,n)),t}function Ymt(t,e,n,r){var i;(i=Ght(e.Xe((cVt(),DTe))?Q$(e.We(DTe),21):t.j))!=(AVt(),Bie)&&(n&&!apt(i)||zTt(OMt(t,i,r),e))}function Jmt(t,e,n,r){var i,a,o;return a=eet(t.Tg(),e),(i=e-t.Ah())<0?(o=t.Yg(a))>=0?t._g(o,n,!0):iLt(t,a,n):Q$(a,66).Nj().Pj(t,t.yh(),i,n,r)}function Zmt(t,e,n,r){var i,a;n.mh(e)&&(YE(),ctt(e)?vpt(t,Q$(n.ah(e),153)):(i=(a=e)?Q$(r,49).xh(a):null)&&Pm(n.ah(e),i))}function tbt(t){switch(t.g){case 1:return Fot(),Fie;case 3:return Fot(),Mie;case 2:return Fot(),Die;case 4:return Fot(),Oie;default:return null}}function ebt(t){switch(typeof t){case OVt:return mbt(t);case MVt:return TJ(t);case IVt:return cD(),t?1231:1237;default:return null==t?0:ED(t)}}function nbt(t,e,n){if(t.e)switch(t.b){case 1:Qq(t.c,e,n);break;case 0:Uq(t.c,e,n)}else Z3(t.c,e,n);t.a[e.p][n.p]=t.c.i,t.a[n.p][e.p]=t.c.e}function rbt(t){var e,n;if(null==t)return null;for(n=O8(_se,cWt,193,t.length,0,2),e=0;e<n.length;e++)n[e]=Q$(H7(t[e],t[e].length),193);return n}function ibt(t){var e;if(Plt(t))return mz(t),t.Lk()&&(e=QSt(t.e,t.b,t.c,t.a,t.j),t.j=e),t.g=t.a,++t.a,++t.c,t.i=0,t.j;throw Um(new bb)}function abt(t,e){var n,r,i,a;return(a=t.o)<(n=t.p)?a*=a:n*=n,r=a+n,(a=e.o)<(n=e.p)?a*=a:n*=n,r<(i=a+n)?-1:r==i?0:1}function obt(t,e){var n,r;if((r=Xyt(t,e))>=0)return r;if(t.Fk())for(n=0;n<t.i;++n)if(HS(t.Gk(Q$(t.g[n],56)))===HS(e))return n;return-1}function sbt(t,e,n){var r,i;if(e>=(i=t.gc()))throw Um(new ZP(e,i));if(t.hi()&&(r=t.Xc(n))>=0&&r!=e)throw Um(new Py(a8t));return t.mi(e,n)}function cbt(t,e){if(this.a=Q$(bX(t),245),this.b=Q$(bX(e),245),t.vd(e)>0||t==(ty(),Pte)||e==(Zv(),Rte))throw Um(new Py("Invalid range: "+Q3(t,e)))}function lbt(t){var e,n;for(this.b=new Mm,this.c=t,this.a=!1,n=new Gd(t.a);n.a<n.c.c.length;)e=Q$(J1(n),10),this.a=this.a|e.k==(oTt(),Tse)}function ubt(t,e){var n,r,i;for(n=SD(new $b,t),i=new Gd(e);i.a<i.c.c.length;)r=Q$(J1(i),121),zDt(iE(rE(aE(nE(new Ub,0),0),n),r));return n}function hbt(t,e,n){var r,i,a;for(i=new oz(YO((e?udt(t):hdt(t)).a.Kc(),new u));AIt(i);)r=Q$(K5(i),17),(a=e?r.c.i:r.d.i).k==(oTt(),xse)&&EZ(a,n)}function fbt(){fbt=L,ube=new PB(WZt,0),hbe=new PB("PORT_POSITION",1),lbe=new PB("NODE_SIZE_WHERE_SPACE_PERMITS",2),cbe=new PB("NODE_SIZE",3)}function dbt(){dbt=L,TEe=new D_("AUTOMATIC",0),SEe=new D_(iJt,1),LEe=new D_(aJt,2),IEe=new D_("TOP",3),BEe=new D_(sJt,4),_Ee=new D_(eJt,5)}function Abt(t,e,n,r){var i,a;for(ILt(),i=0,a=0;a<n;a++)i=rdt(idt(t0(e[a],zqt),t0(r,zqt)),t0(dK(i),zqt)),t[a]=dK(i),i=yz(i,32);return dK(i)}function gbt(t,n,r){var i,a;for(a=0,i=0;i<Yre;i++)a=e.Math.max(a,mut(t.a[n.g][i],r));return n==(Fet(),jre)&&t.b&&(a=e.Math.max(a,t.b.b)),a}function pbt(t,e){var n,r;if(kF(e>0),(e&-e)==e)return TJ(e*$Mt(t,31)*4.656612873077393e-10);do{r=(n=$Mt(t,31))%e}while(n-r+(e-1)<0);return TJ(r)}function mbt(t){var e,n,r;return nQ(),null!=(r=nre[n=":"+t])?TJ((vV(r),r)):(e=null==(r=ere[n])?YDt(t):TJ((vV(r),r)),Bq(),nre[n]=e,e)}function bbt(t,e,n){Sxt(n,"Compound graph preprocessor",1),t.a=new gJ,Ozt(t,e,null),jHt(t,e),tDt(t),lct(e,(lVt(),Uhe),t.a),t.a=null,LG(t.b),$Tt(n)}function vbt(t,e,n){switch(n.g){case 1:t.a=e.a/2,t.b=0;break;case 2:t.a=e.a,t.b=e.b/2;break;case 3:t.a=e.a/2,t.b=e.b;break;case 4:t.a=0,t.b=e.b/2}}function ybt(t){var e,n,r;for(r=Q$(c6(t.a,(MCt(),Ele)),15).Kc();r.Ob();)eX(t,n=Q$(r.Pb(),101),(e=$yt(n))[0],(Bit(),Ole),0),eX(t,n,e[1],Fle,1)}function wbt(t){var e,n,r;for(r=Q$(c6(t.a,(MCt(),Tle)),15).Kc();r.Ob();)eX(t,n=Q$(r.Pb(),101),(e=$yt(n))[0],(Bit(),Ole),0),eX(t,n,e[1],Fle,1)}function kbt(t){switch(t.g){case 0:return null;case 1:return new Lit;case 2:return new qv;default:throw Um(new Py(i4t+(null!=t.f?t.f:""+t.g)))}}function Cbt(t,e,n){var r,i;for(bst(t,e-t.s,n-t.t),i=new Gd(t.n);i.a<i.c.c.length;)nd(r=Q$(J1(i),211),r.e+e-t.s),rd(r,r.f+n-t.t);t.s=e,t.t=n}function xbt(t){var e,n,r,i;for(n=0,r=new Gd(t.a);r.a<r.c.c.length;)Q$(J1(r),121).d=n++;return i=null,(e=dTt(t)).c.length>1&&(i=ubt(t,e)),i}function Ebt(t){var e;return t.f&&t.f.kh()&&(e=Q$(t.f,49),t.f=Q$(tht(t,e),82),t.f!=e&&4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,9,8,e,t.f))),t.f}function Tbt(t){var e;return t.i&&t.i.kh()&&(e=Q$(t.i,49),t.i=Q$(tht(t,e),82),t.i!=e&&4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,9,7,e,t.i))),t.i}function Bbt(t){var e;return t.b&&64&t.b.Db&&(e=t.b,t.b=Q$(tht(t,e),18),t.b!=e&&4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,9,21,e,t.b))),t.b}function _bt(t,e){var n,r,i;null==t.d?(++t.e,++t.f):(r=e.Sh(),uDt(t,t.f+1),i=(r&FVt)%t.d.length,!(n=t.d[i])&&(n=t.d[i]=t.uj()),n.Fc(e),++t.f)}function Sbt(t,e,n){var r;return!e.Kj()&&(-2!=e.Zj()?null==(r=e.zj())?null==n:Oht(r,n):e.Hj()==t.e.Tg()&&null==n)}function Lbt(){var t;hrt(16,_Wt),t=Yrt(16),this.b=O8(jte,BWt,317,t,0,1),this.c=O8(jte,BWt,317,t,0,1),this.a=null,this.e=null,this.i=0,this.f=t-1,this.g=0}function Ibt(t){IP.call(this),this.k=(oTt(),Tse),this.j=(hrt(6,LWt),new q6(6)),this.b=(hrt(2,LWt),new q6(2)),this.d=new lv,this.f=new fv,this.a=t}function Mbt(t){var e,n;t.c.length<=1||(ABt(t,Q$((e=kNt(t,(yGt(),xSe))).a,19).a,Q$(e.b,19).a),ABt(t,Q$((n=kNt(t,TSe)).a,19).a,Q$(n.b,19).a))}function Obt(){Obt=L,bbe=new RB("SIMPLE",0),gbe=new RB(U1t,1),pbe=new RB("LINEAR_SEGMENTS",2),Abe=new RB("BRANDES_KOEPF",3),mbe=new RB(w3t,4)}function Dbt(t,e,n){IR(Q$(bEt(e,($Xt(),tme)),98))||(G9(t,e,FTt(e,n)),G9(t,e,FTt(e,(yGt(),xSe))),G9(t,e,FTt(e,sSe)),xq(),mM(e.j,new Pg(t)))}function Fbt(t,e,n,r){var i;for(i=Q$(c6(r?t.a:t.b,e),21).Kc();i.Ob();)if(RNt(t,n,Q$(i.Pb(),33)))return!0;return!1}function Nbt(t){var e,n;for(n=new SO(t);n.e!=n.i.gc();)if((e=Q$(ymt(n),87)).e||0!=(!e.d&&(e.d=new LO(GIe,e,1)),e.d).i)return!0;return!1}function Pbt(t){var e,n;for(n=new SO(t);n.e!=n.i.gc();)if((e=Q$(ymt(n),87)).e||0!=(!e.d&&(e.d=new LO(GIe,e,1)),e.d).i)return!0;return!1}function Rbt(t){var e,n;for(e=0,n=new Gd(t.c.a);n.a<n.c.c.length;)e+=R3(new oz(YO(hdt(Q$(J1(n),10)).a.Kc(),new u)));return e/t.c.a.c.length}function Qbt(t){var e,n;for(t.c||Kjt(t),n=new vv,J1(e=new Gd(t.a));e.a<e.c.c.length;)DH(n,Q$(J1(e),407).a);return EF(0!=n.b),Let(n,n.c.b),n}function Ubt(){Ubt=L,fPt(),$xe=Fxe,Qxe=new GI(8),new zI((cVt(),zTe),Qxe),new zI(IBe,8),Uxe=Oxe,Pxe=Cxe,Rxe=xxe,Nxe=new zI(uTe,(cD(),!1))}function $bt(t,e,n,r){switch(e){case 7:return!t.e&&(t.e=new cR(NLe,t,7,4)),t.e;case 8:return!t.d&&(t.d=new cR(NLe,t,8,5)),t.d}return Ndt(t,e,n,r)}function Hbt(t){var e;return t.a&&t.a.kh()&&(e=Q$(t.a,49),t.a=Q$(tht(t,e),138),t.a!=e&&4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,9,5,e,t.a))),t.a}function jbt(t){return t<48||t>102?-1:t<=57?t-48:t<65?-1:t<=70?t-65+10:t<97?-1:t-97+10}function Kbt(t,e){if(null==t)throw Um(new Uy("null key in entry: null="+e));if(null==e)throw Um(new Uy("null value in entry: "+t+"=null"))}function zbt(t,e){for(var n,r;t.Ob();){if(!e.Ob())return!1;if(n=t.Pb(),r=e.Pb(),!(HS(n)===HS(r)||null!=n&&Oht(n,r)))return!1}return!e.Ob()}function Gbt(t,n){var r;return r=Tst(Hw(MDe,1),Hqt,25,15,[mut(t.a[0],n),mut(t.a[1],n),mut(t.a[2],n)]),t.d&&(r[0]=e.Math.max(r[0],r[2]),r[2]=r[0]),r}function Xbt(t,n){var r;return r=Tst(Hw(MDe,1),Hqt,25,15,[but(t.a[0],n),but(t.a[1],n),but(t.a[2],n)]),t.d&&(r[0]=e.Math.max(r[0],r[2]),r[2]=r[0]),r}function Vbt(){Vbt=L,bue=new xB("GREEDY",0),mue=new xB($1t,1),yue=new xB(U1t,2),wue=new xB("MODEL_ORDER",3),vue=new xB("GREEDY_MODEL_ORDER",4)}function Wbt(t,e){var n,r,i;for(t.b[e.g]=1,r=cmt(e.d,0);r.b!=r.d.c;)i=(n=Q$(h3(r),188)).c,1==t.b[i.g]?DH(t.a,n):2==t.b[i.g]?t.b[i.g]=1:Wbt(t,i)}function qbt(t,e){var n,r,i;for(i=new q6(e.gc()),r=e.Kc();r.Ob();)(n=Q$(r.Pb(),286)).c==n.f?lBt(t,n,n.c):rBt(t,n)||(i.c[i.c.length]=n);return i}function Ybt(t,e,n){var r,i,a,o;for(o=t.r+e,t.r+=e,t.d+=n,r=n/t.n.c.length,i=0,a=new Gd(t.n);a.a<a.c.c.length;)dMt(Q$(J1(a),211),o,r,i),++i}function Jbt(t){var e,n;for(my(t.b.a),t.a=O8(hre,$Vt,57,t.c.c.a.b.c.length,0,1),e=0,n=new Gd(t.c.c.a.b);n.a<n.c.c.length;)Q$(J1(n),57).f=e++}function Zbt(t){var e,n;for(my(t.b.a),t.a=O8(Voe,$Vt,81,t.c.a.a.b.c.length,0,1),e=0,n=new Gd(t.c.a.a.b);n.a<n.c.c.length;)Q$(J1(n),81).i=e++}function tvt(t,e,n){Sxt(n,"Shrinking tree compaction",1),$y(kN(bEt(e,(Gat(),Vie))))?(nit(t,e.f),att(e.f,e.c)):att(e.f,e.c),$Tt(n)}function evt(t){var e;if(e=fut(t),!AIt(t))throw Um(new Sy("position (0) must be less than the number of elements that remained ("+e+")"));return K5(t)}function nvt(t,e,n){try{return mvt(t,e+t.j,n+t.k)}catch(t){throw rO(t=hst(t),73)?Um(new Sy(t.g+BJt+e+QVt+n+").")):Um(t)}}function rvt(t,e,n){try{return bvt(t,e+t.j,n+t.k)}catch(t){throw rO(t=hst(t),73)?Um(new Sy(t.g+BJt+e+QVt+n+").")):Um(t)}}function ivt(t,e,n){try{return vvt(t,e+t.j,n+t.k)}catch(t){throw rO(t=hst(t),73)?Um(new Sy(t.g+BJt+e+QVt+n+").")):Um(t)}}function avt(t){switch(t.g){case 1:return yGt(),TSe;case 4:return yGt(),sSe;case 3:return yGt(),oSe;case 2:return yGt(),xSe;default:return yGt(),ESe}}function ovt(t,e,n){e.k==(oTt(),Tse)&&n.k==Ese&&(t.d=kht(e,(yGt(),xSe)),t.b=kht(e,sSe)),n.k==Tse&&e.k==Ese&&(t.d=kht(n,(yGt(),sSe)),t.b=kht(n,xSe))}function svt(t,e){var n,r;for(r=adt(t,e).Kc();r.Ob();)if(null!=bEt(n=Q$(r.Pb(),11),(lVt(),wfe))||jD(new m6(n.b)))return!0;return!1}function cvt(t,n){return Tnt(n,t.e+t.d+(0==t.c.c.length?0:t.b)),Bnt(n,t.f),t.a=e.Math.max(t.a,n.f),t.d+=n.g+(0==t.c.c.length?0:t.b),G$(t.c,n),!0}function lvt(t,e,n){var r,i,a,o;for(o=0,r=n/t.a.c.length,a=new Gd(t.a);a.a<a.c.c.length;)Cbt(i=Q$(J1(a),187),i.s,i.t+o*r),Ybt(i,t.d-i.r+e,r),++o}function uvt(t){var e,n,r;for(n=new Gd(t.b);n.a<n.c.c.length;)for(e=0,r=new Gd(Q$(J1(n),29).a);r.a<r.c.c.length;)Q$(J1(r),10).p=e++}function hvt(t,e){var n,r,i,a,o,s;for(i=e.length-1,o=0,s=0,r=0;r<=i;r++)a=e[r],n=pTt(i,r)*eht(1-t,i-r)*eht(t,r),o+=a.a*n,s+=a.b*n;return new O_(o,s)}function fvt(t,e){var n,r,i,a,o;for(n=e.gc(),t.qi(t.i+n),a=e.Kc(),o=t.i,t.i+=n,r=o;r<t.i;++r)i=a.Pb(),yO(t,r,t.oi(r,i)),t.bi(r,i),t.ci();return 0!=n}function dvt(t,e,n){var r,i,a;return t.ej()?(r=t.Vi(),a=t.fj(),++t.j,t.Hi(r,t.oi(r,e)),i=t.Zi(3,null,e,r,a),n?n.Ei(i):n=i):YN(t,t.Vi(),e),n}function Avt(t,e,n){var r,i,a;return(64&(a=rO(i=(r=Q$(Xet(i4(t.a),e),87)).c,88)?Q$(i,26):(gVt(),fMe)).Db?tht(t.b,a):a)==n?hUt(r):int(r,n),a}function gvt(t,e,n,r,i,a,o,s){var c,l;r&&((c=r.a[0])&&gvt(t,e,n,c,i,a,o,s),_yt(t,n,r.d,i,a,o,s)&&e.Fc(r),(l=r.a[1])&&gvt(t,e,n,l,i,a,o,s))}function pvt(t,e){var n;return t.a||(n=O8(MDe,Hqt,25,0,15,1),AC(t.b.a,new hA(n)),n.sort(nnt(x.prototype.te,x,[])),t.a=new PR(n,t.d)),N6(t.a,e)}function mvt(t,e,n){try{return VS(tit(t,e,n),1)}catch(r){throw rO(r=hst(r),320)?Um(new Sy(xJt+t.o+"*"+t.p+EJt+e+QVt+n+TJt)):Um(r)}}function bvt(t,e,n){try{return VS(tit(t,e,n),0)}catch(r){throw rO(r=hst(r),320)?Um(new Sy(xJt+t.o+"*"+t.p+EJt+e+QVt+n+TJt)):Um(r)}}function vvt(t,e,n){try{return VS(tit(t,e,n),2)}catch(r){throw rO(r=hst(r),320)?Um(new Sy(xJt+t.o+"*"+t.p+EJt+e+QVt+n+TJt)):Um(r)}}function yvt(t,e){if(-1==t.g)throw Um(new db);t.mj();try{t.d._c(t.g,e),t.f=t.d.j}catch(t){throw rO(t=hst(t),73)?Um(new pb):Um(t)}}function wvt(t,e,n){Sxt(n,"Linear segments node placement",1),t.b=Q$(bEt(e,(lVt(),Sfe)),304),VXt(t,e),mHt(t,e),WHt(t,e),lXt(t),t.a=null,t.b=null,$Tt(n)}function kvt(t,e){var n,r,i,a;for(a=t.gc(),e.length<a&&(e=$w(new Array(a),e)),i=e,r=t.Kc(),n=0;n<a;++n)LX(i,n,r.Pb());return e.length>a&&LX(e,a,null),e}function Cvt(t,e){var n,r;if(r=t.gc(),null==e){for(n=0;n<r;n++)if(null==t.Xb(n))return n}else for(n=0;n<r;n++)if(Oht(e,t.Xb(n)))return n;return-1}function xvt(t,e){var n,r,i;return n=e.cd(),i=e.dd(),r=t.xc(n),!(!(HS(i)===HS(r)||null!=i&&Oht(i,r))||null==r&&!t._b(n))}function Evt(t,e){var n,r,i;return e<=22?(n=t.l&(1<<e)-1,r=i=0):e<=44?(n=t.l,r=t.m&(1<<e-22)-1,i=0):(n=t.l,r=t.m,i=t.h&(1<<e-44)-1),CM(n,r,i)}function Tvt(t,e){switch(e.g){case 1:return t.f.n.d+t.t;case 3:return t.f.n.a+t.t;case 2:return t.f.n.c+t.s;case 4:return t.f.n.b+t.s;default:return 0}}function Bvt(t,e){var n,r;switch(r=e.c,n=e.a,t.b.g){case 0:n.d=t.e-r.a-r.d;break;case 1:n.d+=t.e;break;case 2:n.c=t.e-r.a-r.d;break;case 3:n.c=t.e+r.d}}function _vt(t,e,n,r){var i,a;this.a=e,this.c=r,Lf(this,new O_(-(i=t.a).c,-i.d)),KP(this.b,n),a=r/2,e.a?QF(this.b,0,a):QF(this.b,a,0),G$(t.c,this)}function Svt(){Svt=L,$ke=new m_(WZt,0),Qke=new m_(H1t,1),Uke=new m_("EDGE_LENGTH_BY_POSITION",2),Rke=new m_("CROSSING_MINIMIZATION_BY_POSITION",3)}function Lvt(t,e){var n,r;if(n=Q$(cnt(t.g,e),33))return n;if(r=Q$(cnt(t.j,e),118))return r;throw Um(new tw("Referenced shape does not exist: "+e))}function Ivt(t,e){if(t.c==e)return t.d;if(t.d==e)return t.c;throw Um(new Py("Node 'one' must be either source or target of edge 'edge'."))}function Mvt(t,e){if(t.c.i==e)return t.d.i;if(t.d.i==e)return t.c.i;throw Um(new Py("Node "+e+" is neither source nor target of edge "+t))}function Ovt(t,e){var n;switch(e.g){case 2:case 4:n=t.a,t.c.d.n.b<n.d.n.b&&(n=t.c),hG(t,e,(Sst(),vle),n);break;case 1:case 3:hG(t,e,(Sst(),ple),null)}}function Dvt(t,e,n,r,i,a){var o,s,c,l,u;for(o=nkt(e,n,a),s=n==(yGt(),sSe)||n==TSe?-1:1,l=t[n.g],u=0;u<l.length;u++)(c=l[u])>0&&(c+=i),l[u]=o,o+=s*(c+r)}function Fvt(t){var e,n,r;for(r=t.f,t.n=O8(MDe,Hqt,25,r,15,1),t.d=O8(MDe,Hqt,25,r,15,1),e=0;e<r;e++)n=Q$(Oj(t.c.b,e),29),t.n[e]=dmt(t,n),t.d[e]=VOt(t,n)}function Nvt(t,e){var n,r,i;for(i=0,r=2;r<e;r<<=1)t.Db&r&&++i;if(0==i){for(n=e<<=1;n<=128;n<<=1)if(t.Db&n)return 0;return-1}return i}function Pvt(t,e){var n,r,i,a,o;for(o=aFt(t.e.Tg(),e),a=null,n=Q$(t.g,119),i=0;i<t.i;++i)r=n[i],o.rl(r.ak())&&(!a&&(a=new pc),l7(a,r));a&&aXt(t,a)}function Rvt(t){var e,n;if(!t)return null;if(t.dc())return"";for(n=new xw,e=t.Kc();e.Ob();)rL(n,xN(e.Pb())),n.a+=" ";return NL(n,n.a.length-1)}function Qvt(t,e,n){var r,i,a,o;for(ict(t),null==t.k&&(t.k=O8(Yte,cWt,78,0,0,1)),i=0,a=(r=t.k).length;i<a;++i)Qvt(r[i]);(o=t.f)&&Qvt(o)}function Uvt(t,e){var n,r=new Array(e);switch(t){case 14:case 15:n=0;break;case 16:n=!1;break;default:return r}for(var i=0;i<e;++i)r[i]=n;return r}function $vt(t){var e;for(e=new Gd(t.a.b);e.a<e.c.c.length;)Q$(J1(e),57).c.$b();Set(dI(t.d)?t.a.c:t.a.d,new CA(t)),t.c.Me(t),RFt(t)}function Hvt(t){var e,n,r;for(n=new Gd(t.e.c);n.a<n.c.c.length;){for(r=new Gd((e=Q$(J1(n),282)).b);r.a<r.c.c.length;)R$t(Q$(J1(r),447));U_t(e)}}function jvt(t){var n,r,i,a,o;for(i=0,o=0,a=0,r=new Gd(t.a);r.a<r.c.c.length;)n=Q$(J1(r),187),o=e.Math.max(o,n.r),i+=n.d+(a>0?t.c:0),++a;t.b=i,t.d=o}function Kvt(t,n){var r,i,a,o,s;for(i=0,a=0,r=0,s=new Gd(n);s.a<s.c.c.length;)o=Q$(J1(s),200),i=e.Math.max(i,o.e),a+=o.b+(r>0?t.g:0),++r;t.c=a,t.d=i}function zvt(t,n){var r;return r=Tst(Hw(MDe,1),Hqt,25,15,[gbt(t,(Fet(),Hre),n),gbt(t,jre,n),gbt(t,Kre,n)]),t.f&&(r[0]=e.Math.max(r[0],r[2]),r[2]=r[0]),r}function Gvt(t,e,n){try{QPt(t,e+t.j,n+t.k,!1,!0)}catch(t){throw rO(t=hst(t),73)?Um(new Sy(t.g+BJt+e+QVt+n+").")):Um(t)}}function Xvt(t,e,n){try{QPt(t,e+t.j,n+t.k,!0,!1)}catch(t){throw rO(t=hst(t),73)?Um(new Sy(t.g+BJt+e+QVt+n+").")):Um(t)}}function Vvt(t){var e;IF(t,($Xt(),Lpe))&&((e=Q$(bEt(t,Lpe),21)).Hc((ZIt(),B_e))?(e.Mc(B_e),e.Fc(S_e)):e.Hc(S_e)&&(e.Mc(S_e),e.Fc(B_e)))}function Wvt(t){var e;IF(t,($Xt(),Lpe))&&((e=Q$(bEt(t,Lpe),21)).Hc((ZIt(),D_e))?(e.Mc(D_e),e.Fc(M_e)):e.Hc(M_e)&&(e.Mc(M_e),e.Fc(D_e)))}function qvt(t,e,n){Sxt(n,"Self-Loop ordering",1),qx(LW(SW(SW(ftt(new Fj(null,new f1(e.b,16)),new Sr),new Lr),new Ir),new Mr),new hg(t)),$Tt(n)}function Yvt(t,e,n,r){var i,a;for(i=e;i<t.c.length;i++){if(u1(i,t.c.length),a=Q$(t.c[i],11),!n.Mb(a))return i;r.c[r.c.length]=a}return t.c.length}function Jvt(t,e,n,r){var i,a,o;return null==t.a&&ATt(t,e),o=e.b.j.c.length,a=n.d.p,(i=r.d.p-1)<0&&(i=o-1),a<=i?t.a[i]-t.a[a]:t.a[o-1]-t.a[a]+t.a[i]}function Zvt(t){var e,n;if(!t.b)for(t.b=T2(Q$(t.f,33).Ag().i),n=new SO(Q$(t.f,33).Ag());n.e!=n.i.gc();)e=Q$(ymt(n),137),G$(t.b,new Fy(e));return t.b}function tyt(t){var e,n;if(!t.e)for(t.e=T2(bW(Q$(t.f,33)).i),n=new SO(bW(Q$(t.f,33)));n.e!=n.i.gc();)e=Q$(ymt(n),118),G$(t.e,new om(e));return t.e}function eyt(t){var e,n;if(!t.a)for(t.a=T2(Wq(Q$(t.f,33)).i),n=new SO(Wq(Q$(t.f,33)));n.e!=n.i.gc();)e=Q$(ymt(n),33),G$(t.a,new qD(t,e));return t.a}function nyt(t){var e;if(!t.C&&(null!=t.D||null!=t.B))if(e=fzt(t))t.yk(e);else try{t.yk(null)}catch(t){if(!rO(t=hst(t),60))throw Um(t)}return t.C}function ryt(t){switch(t.q.g){case 5:ykt(t,(yGt(),sSe)),ykt(t,xSe);break;case 4:iKt(t,(yGt(),sSe)),iKt(t,xSe);break;default:QBt(t,(yGt(),sSe)),QBt(t,xSe)}}function iyt(t){switch(t.q.g){case 5:wkt(t,(yGt(),oSe)),wkt(t,TSe);break;case 4:aKt(t,(yGt(),oSe)),aKt(t,TSe);break;default:UBt(t,(yGt(),oSe)),UBt(t,TSe)}}function ayt(t,n){var r,i,a;for(a=new Hk,i=t.Kc();i.Ob();)JPt(r=Q$(i.Pb(),37),a.a,0),a.a+=r.f.a+n,a.b=e.Math.max(a.b,r.f.b);return a.b>0&&(a.b+=n),a}function oyt(t,n){var r,i,a;for(a=new Hk,i=t.Kc();i.Ob();)JPt(r=Q$(i.Pb(),37),0,a.b),a.b+=r.f.b+n,a.a=e.Math.max(a.a,r.f.a);return a.a>0&&(a.a+=n),a}function syt(t){var n,r,i;for(i=FVt,r=new Gd(t.a);r.a<r.c.c.length;)IF(n=Q$(J1(r),10),(lVt(),ffe))&&(i=e.Math.min(i,Q$(bEt(n,ffe),19).a));return i}function cyt(t,e){var n,r;if(0==e.length)return 0;for(n=YX(t.a,e[0],(yGt(),TSe)),n+=YX(t.a,e[e.length-1],oSe),r=0;r<e.length;r++)n+=HEt(t,r,e);return n}function lyt(){gFt(),this.c=new Mm,this.i=new Mm,this.e=new lI,this.f=new lI,this.g=new lI,this.j=new Mm,this.a=new Mm,this.b=new Om,this.k=new Om}function uyt(t,e){var n;return t.Db>>16==6?t.Cb.ih(t,5,$Le,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||t.zh(),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function hyt(t){EY();var e=t.e;if(e&&e.stack){var n=e.stack,r=e+"\n";return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split("\n")}return[]}function fyt(t){var e;return xrt(),(e=See)[t>>>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}function dyt(t){var n,r,i;t.b==t.c&&(i=t.a.length,r=yct(e.Math.max(8,i))<<1,0!=t.b?(oit(t,n=xP(t.a,r),i),t.a=n,t.b=0):Eb(t.a,r),t.c=i)}function Ayt(t,e){var n;return(n=t.b).Xe((cVt(),iBe))?n.Hf()==(yGt(),TSe)?-n.rf().a-Hy(CN(n.We(iBe))):e+Hy(CN(n.We(iBe))):n.Hf()==(yGt(),TSe)?-n.rf().a:e}function gyt(t){var e;return 0!=t.b.c.length&&Q$(Oj(t.b,0),70).a?Q$(Oj(t.b,0),70).a:null!=(e=tq(t))?e:""+(t.c?w9(t.c.a,t,0):-1)}function pyt(t){var e;return 0!=t.f.c.length&&Q$(Oj(t.f,0),70).a?Q$(Oj(t.f,0),70).a:null!=(e=tq(t))?e:""+(t.i?w9(t.i.j,t,0):-1)}function myt(t,e){var n,r;if(e<0||e>=t.gc())return null;for(n=e;n<t.gc();++n)if(r=Q$(t.Xb(n),128),n==t.gc()-1||!r.o)return new nS(nft(n),r);return null}function byt(t,e,n){var r,i,a,o;for(a=t.c,r=n?t:e,i=(n?e:t).p+1;i<r.p;++i)if((o=Q$(Oj(a.a,i),10)).k!=(oTt(),kse)&&!Mwt(o))return!1;return!0}function vyt(t){var n,r,i,a,o;for(o=0,a=Pqt,i=0,r=new Gd(t.a);r.a<r.c.c.length;)o+=(n=Q$(J1(r),187)).r+(i>0?t.c:0),a=e.Math.max(a,n.d),++i;t.e=o,t.b=a}function yyt(t){var e,n;if(!t.b)for(t.b=T2(Q$(t.f,118).Ag().i),n=new SO(Q$(t.f,118).Ag());n.e!=n.i.gc();)e=Q$(ymt(n),137),G$(t.b,new Fy(e));return t.b}function wyt(t,e){var n,r,i;if(e.dc())return dN(),dN(),AIe;for(n=new iP(t,e.gc()),i=new SO(t);i.e!=i.i.gc();)r=ymt(i),e.Hc(r)&&l7(n,r);return n}function kyt(t,e,n,r){return 0==e?r?(!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),t.o):(!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),S8(t.o)):Jmt(t,e,n,r)}function Cyt(t){var e,n;if(t.rb)for(e=0,n=t.rb.i;e<n;++e)pF(Xet(t.rb,e));if(t.vb)for(e=0,n=t.vb.i;e<n;++e)pF(Xet(t.vb,e));iz((_Bt(),qMe),t),t.Bb|=1}function xyt(t,e,n,r,i,a,o,s,c,l,u,h,f,d){return f_t(t,e,r,null,i,a,o,s,c,l,f,!0,d),Kft(t,u),rO(t.Cb,88)&&L_t(E5(Q$(t.Cb,88)),2),n&&rit(t,n),zft(t,h),t}function Eyt(t){var e;if(null==t)return null;e=0;try{e=hQt(t,RWt,FVt)&WWt}catch(n){if(!rO(n=hst(n),127))throw Um(n);e=X9(t)[0]}return ust(e)}function Tyt(t){var e;if(null==t)return null;e=0;try{e=hQt(t,RWt,FVt)&WWt}catch(n){if(!rO(n=hst(n),127))throw Um(n);e=X9(t)[0]}return ust(e)}function Byt(t,e){var n,r,i;return!((i=t.h-e.h)<0||(n=t.l-e.l,(i+=(r=t.m-e.m+(n>>22))>>22)<0||(t.l=n&Eqt,t.m=r&Eqt,t.h=i&Tqt,0)))}function _yt(t,e,n,r,i,a,o){var s,c;return!(e.Ae()&&(c=t.a.ue(n,r),c<0||!i&&0==c)||e.Be()&&(s=t.a.ue(n,a),s>0||!o&&0==s))}function Syt(t,e){if(Klt(),0!=t.j.g-e.j.g)return 0;switch(t.j.g){case 2:return wdt(e,hle)-wdt(t,hle);case 4:return wdt(t,ule)-wdt(e,ule)}return 0}function Lyt(t){switch(t.g){case 0:return Oue;case 1:return Due;case 2:return Fue;case 3:return Nue;case 4:return Pue;case 5:return Rue;default:return null}}function Iyt(t,e,n){var r,i;return _ut(i=new Iv,e),Oit(i,n),l7((!t.c&&(t.c=new tG(VIe,t,12,10)),t.c),i),Mnt(r=i,0),Ont(r,1),Zht(r,!0),qht(r,!0),r}function Myt(t,e){var n,r;if(e>=t.i)throw Um(new IL(e,t.i));return++t.j,n=t.g[e],(r=t.i-e-1)>0&&aHt(t.g,e+1,t.g,e,r),LX(t.g,--t.i,null),t.fi(e,n),t.ci(),n}function Oyt(t,e){var n;return t.Db>>16==17?t.Cb.ih(t,21,UIe,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||t.zh(),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Dyt(t){var e,n,r;for(xq(),mM(t.c,t.a),r=new Gd(t.c);r.a<r.c.c.length;)for(n=J1(r),e=new Gd(t.b);e.a<e.c.c.length;)Q$(J1(e),679).Ke(n)}function Fyt(t){var e,n,r;for(xq(),mM(t.c,t.a),r=new Gd(t.c);r.a<r.c.c.length;)for(n=J1(r),e=new Gd(t.b);e.a<e.c.c.length;)Q$(J1(e),369).Ke(n)}function Nyt(t){var e,n,r,i,a;for(i=FVt,a=null,r=new Gd(t.d);r.a<r.c.c.length;)(n=Q$(J1(r),213)).d.j^n.e.j&&(e=n.e.e-n.d.e-n.a)<i&&(i=e,a=n);return a}function Pyt(){Pyt=L,doe=new LL(OZt,(cD(),!1)),loe=new LL(DZt,100),$9(),uoe=new LL(FZt,hoe=_oe),foe=new LL(NZt,hZt),Aoe=new LL(PZt,nft(FVt))}function Ryt(t,e,n){var r,i,a,o,s,c;for(c=0,i=0,a=(r=t.a[e]).length;i<a;++i)for(s=Mht(r[i],n).Kc();s.Ob();)o=Q$(s.Pb(),11),XV(t.f,o,nft(c++))}function Qyt(t,e,n){var r,i;if(n)for(i=((r=new cz(n.a.length)).b-r.a)*r.c<0?(tT(),kDe):new zO(r);i.Ob();)YSt(t,e,ySt(dtt(n,Q$(i.Pb(),19).a)))}function Uyt(t,e,n){var r,i;if(n)for(i=((r=new cz(n.a.length)).b-r.a)*r.c<0?(tT(),kDe):new zO(r);i.Ob();)YSt(t,e,ySt(dtt(n,Q$(i.Pb(),19).a)))}function $yt(t){var e;return REt(),j7(e=Q$(kvt(Az(t.k),O8(RSe,qZt,61,2,0,1)),122),0,e.length,null),e[0]==(yGt(),sSe)&&e[1]==TSe&&(LX(e,0,TSe),LX(e,1,sSe)),e}function Hyt(t,e,n){var r,i,a;return a=cNt(t,i=GDt(t,e,n)),N7(t.b),v0(t,e,n),xq(),mM(i,new Xg(t)),r=cNt(t,i),N7(t.b),v0(t,n,e),new nS(nft(a),nft(r))}function jyt(){jyt=L,Kve=dj(new Q2,(vEt(),Qoe),(hVt(),dce)),zve=new eP("linearSegments.inputPrio",nft(0)),Gve=new eP("linearSegments.outputPrio",nft(0))}function Kyt(){Kyt=L,Fye=new l_("P1_TREEIFICATION",0),Nye=new l_("P2_NODE_ORDERING",1),Pye=new l_("P3_NODE_PLACEMENT",2),Rye=new l_("P4_EDGE_ROUTING",3)}function zyt(){zyt=L,cVt(),Oke=ABe,Nke=IBe,Tke=NTe,Bke=QTe,_ke=$Te,Eke=DTe,Ske=KTe,Mke=lBe,PIt(),Cke=fke,xke=dke,Lke=gke,Ike=mke,Dke=bke,Fke=vke,Pke=wke}function Gyt(){Gyt=L,C_e=new $_("UNKNOWN",0),y_e=new $_("ABOVE",1),w_e=new $_("BELOW",2),k_e=new $_("INLINE",3),new eP("org.eclipse.elk.labelSide",C_e)}function Xyt(t,e){var n;if(t.ni()&&null!=e){for(n=0;n<t.i;++n)if(Oht(e,t.g[n]))return n}else for(n=0;n<t.i;++n)if(HS(t.g[n])===HS(e))return n;return-1}function Vyt(t,e,n){var r,i;return e.c==(art(),$be)&&n.c==Ube?-1:e.c==Ube&&n.c==$be?1:(r=Aut(e.a,t.a),i=Aut(n.a,t.a),e.c==$be?i-r:r-i)}function Wyt(t,e,n){if(n&&(e<0||e>n.a.c.length))throw Um(new Py("index must be >= 0 and <= layer node count"));t.c&&b9(t.c.a,t),t.c=n,n&&vK(n.a,e,t)}function qyt(t,e){var n,r,i;for(r=new oz(YO(ldt(t).a.Kc(),new u));AIt(r);)return n=Q$(K5(r),17),new Uh(bX((i=Q$(e.Kb(n),10)).n.b+i.o.b/2));return ey(),ey(),Ste}function Yyt(t,e){this.c=new Om,this.a=t,this.b=e,this.d=Q$(bEt(t,(lVt(),Sfe)),304),HS(bEt(t,($Xt(),Ipe)))===HS((A9(),$ue))?this.e=new Av:this.e=new dv}function Jyt(t,n){var r,i,a;for(a=0,i=new Gd(t);i.a<i.c.c.length;)r=Q$(J1(i),33),a+=e.Math.pow(r.g*r.f-n,2);return e.Math.sqrt(a/(t.c.length-1))}function Zyt(t,e){var n,r;return r=null,t.Xe((cVt(),TBe))&&(n=Q$(t.We(TBe),94)).Xe(e)&&(r=n.We(e)),null==r&&t.yf()&&(r=t.yf().We(e)),null==r&&(r=bmt(e)),r}function twt(t,e){var n,r;n=t.Zc(e);try{return r=n.Pb(),n.Qb(),r}catch(t){throw rO(t=hst(t),109)?Um(new Sy("Can't remove element "+e)):Um(t)}}function ewt(t,e){var n,r,i;if(0==(n=F$t(t,e,i=new mct((r=new Sx).q.getFullYear()-cqt,r.q.getMonth(),r.q.getDate())))||n<e.length)throw Um(new Py(e));return i}function nwt(t,e){var n,r,i;for(vV(e),kF(e!=t),i=t.b.c.length,r=e.Kc();r.Ob();)n=r.Pb(),G$(t.b,vV(n));return i!=t.b.c.length&&(klt(t,0),!0)}function rwt(){rwt=L,cVt(),voe=TTe,new zI(dTe,(cD(),!0)),koe=NTe,Coe=QTe,xoe=$Te,woe=DTe,Eoe=KTe,Toe=lBe,Pyt(),boe=doe,poe=uoe,moe=foe,yoe=Aoe,goe=loe}function iwt(t,e){if(e==t.c)return t.d;if(e==t.d)return t.c;throw Um(new Py("'port' must be either the source port or target port of the edge."))}function awt(t,e,n){var r,i;switch(i=t.o,r=t.d,e.g){case 1:return-r.d-n;case 3:return i.b+r.a+n;case 2:return i.a+r.c+n;case 4:return-r.b-n;default:return 0}}function owt(t,e,n,r){var i,a,o;for(EZ(e,Q$(r.Xb(0),29)),o=r.bd(1,r.gc()),a=Q$(n.Kb(e),20).Kc();a.Ob();)owt(t,(i=Q$(a.Pb(),17)).c.i==e?i.d.i:i.c.i,n,o)}function swt(t){var e;return e=new Om,IF(t,(lVt(),Dfe))?Q$(bEt(t,Dfe),83):(qx(SW(new Fj(null,new f1(t.j,16)),new ei),new Ag(e)),lct(t,Dfe,e),e)}function cwt(t,e){var n;return t.Db>>16==6?t.Cb.ih(t,6,NLe,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||(BXt(),bLe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function lwt(t,e){var n;return t.Db>>16==7?t.Cb.ih(t,1,OLe,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||(BXt(),yLe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function uwt(t,e){var n;return t.Db>>16==9?t.Cb.ih(t,9,jLe,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||(BXt(),kLe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function hwt(t,e){var n;return t.Db>>16==5?t.Cb.ih(t,9,KIe,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||(gVt(),oMe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function fwt(t,e){var n;return t.Db>>16==3?t.Cb.ih(t,0,RLe,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||(gVt(),ZIe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function dwt(t,e){var n;return t.Db>>16==7?t.Cb.ih(t,6,$Le,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||(gVt(),gMe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Awt(){this.a=new dc,this.g=new Lbt,this.j=new Lbt,this.b=new Om,this.d=new Lbt,this.i=new Lbt,this.k=new Om,this.c=new Om,this.e=new Om,this.f=new Om}function gwt(t,e,n){var r,i,a;for(n<0&&(n=0),a=t.i,i=n;i<a;i++)if(r=Xet(t,i),null==e){if(null==r)return i}else if(HS(e)===HS(r)||Oht(e,r))return i;return-1}function pwt(t,e){var n,r;return(n=e.Hh(t.a))?(r=xN(igt((!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),n.b),w9t)),mR(k9t,r)?iz(t,zet(e.Hj())):r):null}function mwt(t,e){var n,r;if(e){if(e==t)return!0;for(n=0,r=Q$(e,49).eh();r&&r!=e;r=r.eh()){if(++n>jqt)return mwt(t,r);if(r==t)return!0}}return!1}function bwt(t){switch(DD(),t.q.g){case 5:mSt(t,(yGt(),sSe)),mSt(t,xSe);break;case 4:KMt(t,(yGt(),sSe)),KMt(t,xSe);break;default:mGt(t,(yGt(),sSe)),mGt(t,xSe)}}function vwt(t){switch(DD(),t.q.g){case 5:ELt(t,(yGt(),oSe)),ELt(t,TSe);break;case 4:Bmt(t,(yGt(),oSe)),Bmt(t,TSe);break;default:bGt(t,(yGt(),oSe)),bGt(t,TSe)}}function ywt(t){var e,n;(e=Q$(bEt(t,(uPt(),Jae)),19))?(n=e.a,lct(t,(xit(),coe),0==n?new cdt:new T4(n))):lct(t,(xit(),coe),new T4(1))}function wwt(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}function kwt(t,e){switch(t.g){case 0:return e==(Cdt(),Rfe)?nle:rle;case 1:return e==(Cdt(),Rfe)?nle:ele;case 2:return e==(Cdt(),Rfe)?ele:rle;default:return ele}}function Cwt(t,n){var r,i,a;for(b9(t.a,n),t.e-=n.r+(0==t.a.c.length?0:t.c),a=Z3t,i=new Gd(t.a);i.a<i.c.c.length;)r=Q$(J1(i),187),a=e.Math.max(a,r.d);t.b=a}function xwt(t,e){var n;return t.Db>>16==3?t.Cb.ih(t,12,jLe,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||(BXt(),mLe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Ewt(t,e){var n;return t.Db>>16==11?t.Cb.ih(t,10,jLe,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||(BXt(),wLe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Twt(t,e){var n;return t.Db>>16==10?t.Cb.ih(t,11,UIe,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||(gVt(),dMe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Bwt(t,e){var n;return t.Db>>16==10?t.Cb.ih(t,12,XIe,e):(n=Bbt(Q$(eet(Q$(vot(t,16),26)||(gVt(),pMe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function _wt(t){var e;return 1&t.Bb||!t.r||!t.r.kh()||(e=Q$(t.r,49),t.r=Q$(tht(t,e),138),t.r!=e&&4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,9,8,e,t.r))),t.r}function Swt(t,n,r){var i;return i=Tst(Hw(MDe,1),Hqt,25,15,[nEt(t,(Fet(),Hre),n,r),nEt(t,jre,n,r),nEt(t,Kre,n,r)]),t.f&&(i[0]=e.Math.max(i[0],i[2]),i[2]=i[0]),i}function Lwt(t,e){var n,r,i;if(0!=(i=qbt(t,e)).c.length)for(mM(i,new er),n=i.c.length,r=0;r<n;r++)lBt(t,(u1(r,i.c.length),Q$(i.c[r],286)),CNt(t,i,r))}function Iwt(t){var e,n,r;for(r=Q$(c6(t.a,(MCt(),kle)),15).Kc();r.Ob();)for(e=Az((n=Q$(r.Pb(),101)).k).Kc();e.Ob();)eX(t,n,Q$(e.Pb(),61),(Bit(),Dle),1)}function Mwt(t){var e,n;if(t.k==(oTt(),Ese))for(n=new oz(YO(ldt(t).a.Kc(),new u));AIt(n);)if(!h5(e=Q$(K5(n),17))&&t.c==Lkt(e,t).c)return!0;return!1}function Owt(t){var e,n;if(t.k==(oTt(),Ese))for(n=new oz(YO(ldt(t).a.Kc(),new u));AIt(n);)if(!h5(e=Q$(K5(n),17))&&e.c.i.c==e.d.i.c)return!0;return!1}function Dwt(t,e){var n,r;for(Sxt(e,"Dull edge routing",1),r=cmt(t.b,0);r.b!=r.d.c;)for(n=cmt(Q$(h3(r),86).d,0);n.b!=n.d.c;)bq(Q$(h3(n),188).a)}function Fwt(t,e){var n,r,i;if(e)for(i=((n=new cz(e.a.length)).b-n.a)*n.c<0?(tT(),kDe):new zO(n);i.Ob();)(r=O2(e,Q$(i.Pb(),19).a))&&SMt(t,r)}function Nwt(){var t;for(ZE(),ZXt((VX(),JIe)),RXt(JIe),Cyt(JIe),gVt(),LMe=lMe,t=new Gd(GMe);t.a<t.c.c.length;)azt(Q$(J1(t),241),lMe,null);return!0}function Pwt(t,e){var n,r,i,a,o,s;return(o=t.h>>19)!=(s=e.h>>19)?s-o:(r=t.h)!=(a=e.h)?r-a:(n=t.m)!=(i=e.m)?n-i:t.l-e.l}function Rwt(){Rwt=L,tPt(),Ere=new LL(zYt,Tre=Ore),Ftt(),Cre=new LL(GYt,xre=mre),lmt(),wre=new LL(XYt,kre=dre),yre=new LL(VYt,(cD(),!0))}function Qwt(t,e,n){var r,i;r=e*n,rO(t.g,145)?(i=l3(t)).f.d?i.f.a||(t.d.a+=r+uJt):(t.d.d-=r+uJt,t.d.a+=r+uJt):rO(t.g,10)&&(t.d.d-=r,t.d.a+=2*r)}function Uwt(t,n,r){var i,a,o,s,c;for(a=t[r.g],c=new Gd(n.d);c.a<c.c.c.length;)(o=(s=Q$(J1(c),101)).i)&&o.i==r&&(a[i=s.d[r.g]]=e.Math.max(a[i],o.j.b))}function $wt(t,n){var r,i,a,o,s;for(i=0,a=0,r=0,s=new Gd(n.d);s.a<s.c.c.length;)jvt(o=Q$(J1(s),443)),i=e.Math.max(i,o.b),a+=o.d+(r>0?t.g:0),++r;n.b=i,n.e=a}function Hwt(t){var e,n,r;if(r=t.b,$x(t.i,r.length)){for(n=2*r.length,t.b=O8(jte,BWt,317,n,0,1),t.c=O8(jte,BWt,317,n,0,1),t.f=n-1,t.i=0,e=t.a;e;e=e.c)q_t(t,e,e);++t.g}}function jwt(t,e,n,r){var i,a,o,s;for(i=0;i<e.o;i++)for(a=i-e.j+n,o=0;o<e.p;o++)s=o-e.k+r,mvt(e,i,o)?ivt(t,a,s)||Gvt(t,a,s):vvt(e,i,o)&&(nvt(t,a,s)||Xvt(t,a,s))}function Kwt(t,e,n){var r;(r=e.c.i).k==(oTt(),Ese)?(lct(t,(lVt(),cfe),Q$(bEt(r,cfe),11)),lct(t,lfe,Q$(bEt(r,lfe),11))):(lct(t,(lVt(),cfe),e.c),lct(t,lfe,n.d))}function zwt(t,n,r){var i,a,o,s,c,l;return wNt(),s=n/2,o=r/2,c=1,l=1,(i=e.Math.abs(t.a))>s&&(c=s/i),(a=e.Math.abs(t.b))>o&&(l=o/a),vO(t,e.Math.min(c,l)),t}function Gwt(){var t,e;H$t();try{if(e=Q$(Gkt((GE(),HIe),v6t),2014))return e}catch(e){if(!rO(e=hst(e),102))throw Um(e);t=e,az((aM(),t))}return new sc}function Xwt(){var t,e;d9();try{if(e=Q$(Gkt((GE(),HIe),E9t),2024))return e}catch(e){if(!rO(e=hst(e),102))throw Um(e);t=e,az((aM(),t))}return new Nl}function Vwt(){var t,e;H$t();try{if(e=Q$(Gkt((GE(),HIe),V7t),1941))return e}catch(e){if(!rO(e=hst(e),102))throw Um(e);t=e,az((aM(),t))}return new jc}function Wwt(t,e,n){var r,i;return i=t.e,t.e=e,4&t.Db&&!(1&t.Db)&&(r=new Jz(t,1,4,i,e),n?n.Ei(r):n=r),i!=e&&(n=azt(t,e?yOt(t,e):t.a,n)),n}function qwt(){Sx.call(this),this.e=-1,this.a=!1,this.p=RWt,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=RWt}function Ywt(t,e){var n,r,i;if(r=t.b.d.d,t.a||(r+=t.b.d.a),i=e.b.d.d,e.a||(i+=e.b.d.a),0==(n=Tft(r,i))){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}function Jwt(t,e){var n,r,i;if(r=t.b.b.d,t.a||(r+=t.b.b.a),i=e.b.b.d,e.a||(i+=e.b.b.a),0==(n=Tft(r,i))){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}function Zwt(t,e){var n,r,i;if(r=t.b.g.d,t.a||(r+=t.b.g.a),i=e.b.g.d,e.a||(i+=e.b.g.a),0==(n=Tft(r,i))){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}function tkt(){tkt=L,Moe=GK(dj(dj(dj(new Q2,(vEt(),Roe),(hVt(),bce)),Roe,kce),Qoe,Sce),Qoe,oce),Doe=dj(dj(new Q2,Roe,qse),Roe,sce),Ooe=GK(new Q2,Qoe,lce)}function ekt(t){var e,n,r,i,a;for(e=Q$(bEt(t,(lVt(),jhe)),83),a=t.n,r=e.Cc().Kc();r.Ob();)(i=(n=Q$(r.Pb(),306)).i).c+=a.a,i.d+=a.b,n.c?ONt(n):DNt(n);lct(t,jhe,null)}function nkt(t,e,n){var r,i;switch(r=(i=t.b).d,e.g){case 1:return-r.d-n;case 2:return i.o.a+r.c+n;case 3:return i.o.b+r.a+n;case 4:return-r.b-n;default:return-1}}function rkt(t){var e,n,r,i,a;if(r=0,i=JJt,t.b)for(e=0;e<360;e++)n=.017453292519943295*e,zRt(t,t.d,0,0,J3t,n),(a=t.b.ig(t.d))<i&&(r=n,i=a);zRt(t,t.d,0,0,J3t,r)}function ikt(t,e){var n,r,i,a;for(a=new Om,e.e=null,e.f=null,r=new Gd(e.i);r.a<r.c.c.length;)n=Q$(J1(r),65),i=Q$(FX(t.g,n.a),46),n.a=$z(n.b),XV(a,n.a,i);t.g=a}function akt(t,e,n){var r,i,a,o,s;for(i=(e-t.e)/t.d.c.length,a=0,s=new Gd(t.d);s.a<s.c.c.length;)o=Q$(J1(s),443),r=t.b-o.b+n,ygt(o,o.e+a*i,o.f),lvt(o,i,r),++a}function okt(t){var e;if(t.f.qj(),-1!=t.b){if(++t.b,e=t.f.d[t.a],t.b<e.i)return;++t.a}for(;t.a<t.f.d.length;++t.a)if((e=t.f.d[t.a])&&0!=e.i)return void(t.b=0);t.b=-1}function skt(t,e){var n,r,i;for(n=I_t(t,0==(i=e.c.length)?"":(u1(0,e.c.length),xN(e.c[0]))),r=1;r<i&&n;++r)n=Q$(n,49).oh((u1(r,e.c.length),xN(e.c[r])));return n}function ckt(t,e){var n,r;for(r=new Gd(e);r.a<r.c.c.length;)n=Q$(J1(r),10),t.c[n.c.p][n.p].a=_K(t.i),t.c[n.c.p][n.p].d=Hy(t.c[n.c.p][n.p].a),t.c[n.c.p][n.p].b=1}function lkt(t,n){var r,i,a;for(a=0,i=new Gd(t);i.a<i.c.c.length;)r=Q$(J1(i),157),a+=e.Math.pow(eK(r)*tK(r)-n,2);return e.Math.sqrt(a/(t.c.length-1))}function ukt(t,e,n,r){var i,a,o;return o=OPt(t,a=HPt(t,e,n,r)),uEt(t,e,n,r),N7(t.b),xq(),mM(a,new Vg(t)),i=OPt(t,a),uEt(t,n,e,r),N7(t.b),new nS(nft(o),nft(i))}function hkt(t,e,n){var r;for(Sxt(n,"Interactive node placement",1),t.a=Q$(bEt(e,(lVt(),Sfe)),304),r=new Gd(e.b);r.a<r.c.c.length;)ZFt(t,Q$(J1(r),29));$Tt(n)}function fkt(t,e){Sxt(e,"General Compactor",1),e.n&&t&&b0(e,o2(t),(Ult(),aLe)),AAt(Q$(JIt(t,(zyt(),xke)),380)).hg(t),e.n&&t&&b0(e,o2(t),(Ult(),aLe))}function dkt(t,e,n){var r,i;for(TI(t,t.j+e,t.k+n),i=new SO((!t.a&&(t.a=new LO(MLe,t,5)),t.a));i.e!=i.i.gc();)kI(r=Q$(ymt(i),469),r.a+e,r.b+n);EI(t,t.b+e,t.c+n)}function Akt(t,e,n,r){switch(n){case 7:return!t.e&&(t.e=new cR(NLe,t,7,4)),qAt(t.e,e,r);case 8:return!t.d&&(t.d=new cR(NLe,t,8,5)),qAt(t.d,e,r)}return Qxt(t,e,n,r)}function gkt(t,e,n,r){switch(n){case 7:return!t.e&&(t.e=new cR(NLe,t,7,4)),Rmt(t.e,e,r);case 8:return!t.d&&(t.d=new cR(NLe,t,8,5)),Rmt(t.d,e,r)}return rst(t,e,n,r)}function pkt(t,e,n){var r,i,a;if(n)for(a=((r=new cz(n.a.length)).b-r.a)*r.c<0?(tT(),kDe):new zO(r);a.Ob();)(i=O2(n,Q$(a.Pb(),19).a))&&fSt(t,i,e)}function mkt(t,e,n){var r,i,a;return t.qj(),a=null==e?0:Zct(e),t.f>0&&(i=aLt(t,(a&FVt)%t.d.length,a,e))?i.ed(n):(r=t.tj(a,e,n),t.c.Fc(r),null)}function bkt(t,e){var n,r,i,a;switch(Bht(t,e)._k()){case 3:case 2:for(i=0,a=(n=q$t(e)).i;i<a;++i)if(5==DV(Q9(t,r=Q$(Xet(n,i),34))))return r}return null}function vkt(t){var e,n,r,i,a;if($x(t.f,t.b.length))for(r=O8(Wte,BWt,330,2*t.b.length,0,1),t.b=r,i=r.length-1,n=t.a;n!=t;n=n.Rd())e=(a=Q$(n,330)).d&i,a.a=r[e],r[e]=a}function ykt(t,n){var r,i,a,o;for(o=0,a=Q$(Q$(c6(t.r,n),21),84).Kc();a.Ob();)i=Q$(a.Pb(),111),o=e.Math.max(o,i.e.a+i.b.rf().a);(r=Q$(oW(t.b,n),124)).n.b=0,r.a.a=o}function wkt(t,n){var r,i,a,o;for(r=0,o=Q$(Q$(c6(t.r,n),21),84).Kc();o.Ob();)a=Q$(o.Pb(),111),r=e.Math.max(r,a.e.b+a.b.rf().b);(i=Q$(oW(t.b,n),124)).n.d=0,i.a.b=r}function kkt(t){var e,n;return n=Q$(bEt(t,(lVt(),Yhe)),21),e=vI(pye),n.Hc((fNt(),Ahe))&&Yat(e,vye),n.Hc(phe)&&Yat(e,wye),n.Hc(she)&&Yat(e,mye),n.Hc(lhe)&&Yat(e,bye),e}function Ckt(t,e){var n;Sxt(e,"Delaunay triangulation",1),n=new Mm,Set(t.i,new bp(n)),$y(kN(bEt(t,(Gat(),Vie)))),t.e?Qit(t.e,IXt(n)):t.e=IXt(n),$Tt(e)}function xkt(t){if(t<0)throw Um(new Py("The input must be positive"));return t<CEe.length?y2(CEe[t]):e.Math.sqrt(J3t*t)*(nht(t,t)/eht(2.718281828459045,t))}function Ekt(t,e){var n;if(t.ni()&&null!=e){for(n=0;n<t.i;++n)if(Oht(e,t.g[n]))return!0}else for(n=0;n<t.i;++n)if(HS(t.g[n])===HS(e))return!0;return!1}function Tkt(t,e){if(null==e){for(;t.a.Ob();)if(null==Q$(t.a.Pb(),42).dd())return!0}else for(;t.a.Ob();)if(Oht(e,Q$(t.a.Pb(),42).dd()))return!0;return!1}function Bkt(t,e){var n;return e===t||!!rO(e,664)&&(n=Q$(e,1947),npt(t.g||(t.g=new qh(t)),n.g||(n.g=new qh(n))))}function _kt(t){var n,r,i;for(n="Sz",r="ez",i=e.Math.min(t.length,5)-1;i>=0;i--)if(mR(t[i].d,n)||mR(t[i].d,r)){t.length>=i+1&&t.splice(0,i+1);break}return t}function Skt(t,n){var r;return qL(t)&&qL(n)&&Iqt<(r=t/n)&&r<Sqt?r<0?e.Math.ceil(r):e.Math.floor(r):oot(Ljt(qL(t)?Tot(t):t,qL(n)?Tot(n):n,!1))}function Lkt(t,e){if(e==t.c.i)return t.d.i;if(e==t.d.i)return t.c.i;throw Um(new Py("'node' must either be the source node or target node of the edge."))}function Ikt(t){var e,n,r,i;if(i=Q$(bEt(t,(lVt(),Rhe)),37)){for(r=new Hk,e=pV(t.c.i);e!=i;)e=pV(n=e.e),PF(KP(KP(r,n.n),e.c),e.d.b,e.d.d);return r}return Rse}function Mkt(t){var e;qx(ftt(new Fj(null,new f1((e=Q$(bEt(t,(lVt(),_fe)),403)).d,16)),new Qr),new fg(t)),qx(SW(new Fj(null,new f1(e.d,16)),new Ur),new dg(t))}function Okt(t,e){var n,r;for(n=new oz(YO((e?hdt(t):udt(t)).a.Kc(),new u));AIt(n);)if((r=Lkt(Q$(K5(n),17),t)).k==(oTt(),Ese)&&r.c!=t.c)return r;return null}function Dkt(t){var n,r,i;for(r=new Gd(t.p);r.a<r.c.c.length;)(n=Q$(J1(r),10)).k==(oTt(),Tse)&&(i=n.o.b,t.i=e.Math.min(t.i,i),t.g=e.Math.max(t.g,i))}function Fkt(t,e,n){var r,i,a;for(a=new Gd(e);a.a<a.c.c.length;)r=Q$(J1(a),10),t.c[r.c.p][r.p].e=!1;for(i=new Gd(e);i.a<i.c.c.length;)Dzt(t,r=Q$(J1(i),10),n)}function Nkt(t,n,r){var i,a;(i=Cht(n.j,r.s,r.c)+Cht(r.e,n.s,n.c))==(a=Cht(r.j,n.s,n.c)+Cht(n.e,r.s,r.c))?i>0&&(t.b+=2,t.a+=i):(t.b+=1,t.a+=e.Math.min(i,a))}function Pkt(t,e){var n;if(n=!1,zS(e)&&(n=!0,JX(t,new HX(xN(e)))),n||rO(e,236)&&(n=!0,JX(t,new xf(zR(Q$(e,236))))),!n)throw Um(new Iy($6t))}function Rkt(t,e,n,r){var i,a,o;return i=new M9(t.e,1,10,rO(o=e.c,88)?Q$(o,26):(gVt(),fMe),rO(a=n.c,88)?Q$(a,26):(gVt(),fMe),obt(t,e),!1),r?r.Ei(i):r=i,r}function Qkt(t){var e,n;switch(Q$(bEt(pV(t),($Xt(),gpe)),420).g){case 0:return e=t.n,n=t.o,new O_(e.a+n.a/2,e.b+n.b/2);case 1:return new fI(t.n);default:return null}}function Ukt(){Ukt=L,Vue=new SB(WZt,0),Xue=new SB("LEFTUP",1),que=new SB("RIGHTUP",2),Gue=new SB("LEFTDOWN",3),Wue=new SB("RIGHTDOWN",4),zue=new SB("BALANCED",5)}function $kt(t,e,n){var r,i,a;if(0==(r=Tft(t.a[e.p],t.a[n.p]))){if(i=Q$(bEt(e,(lVt(),rfe)),15),a=Q$(bEt(n,rfe),15),i.Hc(n))return-1;if(a.Hc(e))return 1}return r}function Hkt(t){switch(t.g){case 1:return new Uo;case 2:return new $o;case 3:return new Qo;case 0:return null;default:throw Um(new Py(i4t+(null!=t.f?t.f:""+t.g)))}}function jkt(t,e,n){switch(e){case 1:return!t.n&&(t.n=new tG(HLe,t,1,7)),cjt(t.n),!t.n&&(t.n=new tG(HLe,t,1,7)),void gX(t.n,Q$(n,14));case 2:return void Irt(t,xN(n))}rlt(t,e,n)}function Kkt(t,e,n){switch(e){case 3:return void xnt(t,Hy(CN(n)));case 4:return void Ent(t,Hy(CN(n)));case 5:return void Tnt(t,Hy(CN(n)));case 6:return void Bnt(t,Hy(CN(n)))}jkt(t,e,n)}function zkt(t,e,n){var r,i;(r=$xt(i=new Iv,e,null))&&r.Fi(),Oit(i,n),l7((!t.c&&(t.c=new tG(VIe,t,12,10)),t.c),i),Mnt(i,0),Ont(i,1),Zht(i,!0),qht(i,!0)}function Gkt(t,e){var n,r;return rO(n=cT(t.g,e),235)?((r=Q$(n,235)).Qh(),r.Nh()):rO(n,498)?r=Q$(n,1938).b:null}function Xkt(t,e,n,r){var i,a;return bX(e),bX(n),F9(!!(a=Q$(KR(t.d,e),19)),"Row %s not in %s",e,t.e),F9(!!(i=Q$(KR(t.b,n),19)),"Column %s not in %s",n,t.c),Est(t,a.a,i.a,r)}function Vkt(t,e,n,r,i,a,o){var s,c,l,u,h;if(h=Uvt(s=(l=a==o-1)?r:0,u=i[a]),10!=r&&Tst(Hw(t,o-a),e[a],n[a],s,h),!l)for(++a,c=0;c<u;++c)h[c]=Vkt(t,e,n,r,i,a,o);return h}function Wkt(t){if(-1==t.g)throw Um(new db);t.mj();try{t.i.$c(t.g),t.f=t.i.j,t.g<t.e&&--t.e,t.g=-1}catch(t){throw rO(t=hst(t),73)?Um(new pb):Um(t)}}function qkt(t,n){return t.b.a=e.Math.min(t.b.a,n.c),t.b.b=e.Math.min(t.b.b,n.d),t.a.a=e.Math.max(t.a.a,n.c),t.a.b=e.Math.max(t.a.b,n.d),t.c[t.c.length]=n,!0}function Ykt(t){var e,n,r;for(r=-1,n=0,e=new Gd(t);e.a<e.c.c.length;){if(Q$(J1(e),243).c==(art(),Ube)){r=0==n?0:n-1;break}n==t.c.length-1&&(r=n),n+=1}return r}function Jkt(t){var n,r,i,a;for(a=0,n=0,i=new Gd(t.c);i.a<i.c.c.length;)Tnt(r=Q$(J1(i),33),t.e+a),Bnt(r,t.f),a+=r.g+t.b,n=e.Math.max(n,r.f+t.b);t.d=a-t.b,t.a=n-t.b}function Zkt(t){var e,n,r;for(n=new Gd(t.a.b);n.a<n.c.c.length;)r=(e=Q$(J1(n),57)).d.c,e.d.c=e.d.d,e.d.d=r,r=e.d.b,e.d.b=e.d.a,e.d.a=r,r=e.b.a,e.b.a=e.b.b,e.b.b=r;vDt(t)}function tCt(t){var e,n,r;for(n=new Gd(t.a.b);n.a<n.c.c.length;)r=(e=Q$(J1(n),81)).g.c,e.g.c=e.g.d,e.g.d=r,r=e.g.b,e.g.b=e.g.a,e.g.a=r,r=e.e.a,e.e.a=e.e.b,e.e.b=r;yDt(t)}function eCt(t){var e,n,r,i,a;for(a=Az(t.k),yGt(),r=0,i=(n=Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe])).length;r<i;++r)if((e=n[r])!=ESe&&!a.Hc(e))return e;return null}function nCt(t,e){var n,r;return(r=Q$(wD(Wct(SW(new Fj(null,new f1(e.j,16)),new da))),11))&&(n=Q$(Oj(r.e,0),17))?Q$(bEt(n,(lVt(),ffe)),19).a:Att(t.b)}function rCt(t,e){var n,r,i;for(i=new Gd(e.a);i.a<i.c.c.length;)for(r=Q$(J1(i),10),Jy(t.d),n=new oz(YO(hdt(r).a.Kc(),new u));AIt(n);)GLt(t,r,Q$(K5(n),17).d.i)}function iCt(t,e){var n,r;for(b9(t.b,e),r=new Gd(t.n);r.a<r.c.c.length;)if(-1!=w9((n=Q$(J1(r),211)).c,e,0)){b9(n.c,e),Jkt(n),0==n.c.c.length&&b9(t.n,n);break}uHt(t)}function aCt(t,n){var r,i,a,o,s;for(s=t.f,a=0,o=0,i=new Gd(t.a);i.a<i.c.c.length;)Cbt(r=Q$(J1(i),187),t.e,s),g7(r,n),o=e.Math.max(o,r.r),a=s+=r.d+t.c;t.d=o,t.b=a}function oCt(t){var e,n;return c3(n=dOt(t))?null:(bX(n),e=Q$(evt(new oz(YO(n.a.Kc(),new u))),79),Txt(Q$(Xet((!e.b&&(e.b=new cR(FLe,e,4,7)),e.b),0),82)))}function sCt(t){return t.o||(t.Lj()?t.o=new iV(t,t,null):t.rk()?t.o=new nP(t,null):1==DV(Q9((_Bt(),qMe),t))?t.o=new A4(t):t.o=new rP(t,null)),t.o}function cCt(t,e,n,r){var i,a,o,s,c;n.mh(e)&&(i=(o=e)?Q$(r,49).xh(o):null)&&(c=n.ah(e),(s=e.t)>1||-1==s?(a=Q$(c,15),i.Wb(Ggt(t,a))):i.Wb(tQt(t,Q$(c,56))))}function lCt(t,e,n,r){WC();var i=TVt;function a(){for(var t=0;t<i.length;t++)i[t]()}if(t)try{QDe(a)()}catch(n){t(e,n)}else QDe(a)()}function uCt(t){var e,n,r,i,a;for(r=new olt(new Ed(t.b).a);r.b;)e=Q$((n=tnt(r)).cd(),10),a=Q$(Q$(n.dd(),46).a,10),i=Q$(Q$(n.dd(),46).b,8),KP(vL(e.n),KP(QM(a.n),i))}function hCt(t){switch(Q$(bEt(t.b,($Xt(),tpe)),375).g){case 1:qx(LW(ftt(new Fj(null,new f1(t.d,16)),new Qi),new Ui),new $i);break;case 2:mPt(t);break;case 0:B_t(t)}}function fCt(t,e,n){Sxt(n,"Straight Line Edge Routing",1),n.n&&e&&b0(n,o2(e),(Ult(),aLe)),bHt(t,Q$(JIt(e,(fN(),Xwe)),33)),n.n&&e&&b0(n,o2(e),(Ult(),aLe))}function dCt(){dCt=L,YEe=new F_("V_TOP",0),qEe=new F_("V_CENTER",1),WEe=new F_("V_BOTTOM",2),XEe=new F_("H_LEFT",3),GEe=new F_("H_CENTER",4),VEe=new F_("H_RIGHT",5)}function ACt(t){var e;return 64&t.Db?BAt(t):((e=new lD(BAt(t))).a+=" (abstract: ",bC(e,!!(256&t.Bb)),e.a+=", interface: ",bC(e,!!(512&t.Bb)),e.a+=")",e.a)}function gCt(t,e,n,r){var i,a,o;return mI(t.e)&&(o=IY(t,1,i=e.ak(),e.dd(),a=n.dd(),i.$j()?p$t(t,i,a,rO(i,99)&&!!(Q$(i,18).Bb&Uqt)):-1,!0),r?r.Ei(o):r=o),r}function pCt(t){var e;null==t.c&&(e=HS(t.b)===HS(qte)?null:t.b,t.d=null==e?KVt:tz(e)?yD(wq(e)):zS(e)?HWt:Jk(tlt(e)),t.a=t.a+": "+(tz(e)?TP(wq(e)):e+""),t.c="("+t.d+") "+t.a)}function mCt(t,e){this.e=t,VS(t0(e,-4294967296),0)?(this.d=1,this.a=Tst(Hw(_De,1),lqt,25,15,[dK(e)])):(this.d=2,this.a=Tst(Hw(_De,1),lqt,25,15,[dK(e),dK(vz(e,32))]))}function bCt(){function t(){try{return(new Map).entries().next().done}catch(t){return!1}}return typeof Map===DVt&&Map.prototype.entries&&t()?Map:fGt()}function vCt(t,e){var n,r,i;for(i=new C2(t.e,0),n=0;i.b<i.d.gc();){if((r=Hy((EF(i.b<i.d.gc()),CN(i.d.Xb(i.c=i.b++))))-e)>F3t)return n;r>-1e-6&&++n}return n}function yCt(t,e){var n;e!=t.b?(n=null,t.b&&(n=oJ(t.b,t,-4,n)),e&&(n=Omt(e,t,-4,n)),(n=Jut(t,e,n))&&n.Fi()):4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,3,e,e))}function wCt(t,e){var n;e!=t.f?(n=null,t.f&&(n=oJ(t.f,t,-1,n)),e&&(n=Omt(e,t,-1,n)),(n=Zut(t,e,n))&&n.Fi()):4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,0,e,e))}function kCt(t){var e,n,r;if(null==t)return null;if((n=Q$(t,15)).dc())return"";for(r=new xw,e=n.Kc();e.Ob();)rL(r,(zjt(),xN(e.Pb()))),r.a+=" ";return NL(r,r.a.length-1)}function CCt(t){var e,n,r;if(null==t)return null;if((n=Q$(t,15)).dc())return"";for(r=new xw,e=n.Kc();e.Ob();)rL(r,(zjt(),xN(e.Pb()))),r.a+=" ";return NL(r,r.a.length-1)}function xCt(t,e,n){var r,i;return r=t.c[e.c.p][e.p],i=t.c[n.c.p][n.p],null!=r.a&&null!=i.a?kz(r.a,i.a):null!=r.a?-1:null!=i.a?1:0}function ECt(t,e){var n,r,i;if(e)for(i=((n=new cz(e.a.length)).b-n.a)*n.c<0?(tT(),kDe):new zO(n);i.Ob();)r=O2(e,Q$(i.Pb(),19).a),_W(new Qp(t).a,r)}function TCt(t,e){var n,r,i;if(e)for(i=((n=new cz(e.a.length)).b-n.a)*n.c<0?(tT(),kDe):new zO(n);i.Ob();)r=O2(e,Q$(i.Pb(),19).a),BW(new Lp(t).a,r)}function BCt(t){if(null!=t&&t.length>0&&33==lW(t,t.length-1))try{return null==qBt(lF(t,0,t.length-1)).e}catch(t){if(!rO(t=hst(t),32))throw Um(t)}return!1}function _Ct(t,e,n){var r,i,a;return r=e.ak(),a=e.dd(),i=r.$j()?IY(t,3,r,null,a,p$t(t,r,a,rO(r,99)&&!!(Q$(r,18).Bb&Uqt)),!0):IY(t,1,r,r.zj(),a,-1,!0),n?n.Ei(i):n=i,n}function SCt(){var t,e,n;for(e=0,t=0;t<1;t++){if(0==(n=WLt((h1(t,1),"X".charCodeAt(t)))))throw Um(new iw("Unknown Option: "+"X".substr(t)));e|=n}return e}function LCt(t,e,n){var r,i;switch(r=Xft(pV(e)),TZ(i=new BTt,e),n.g){case 1:H_t(i,Cft(lAt(r)));break;case 2:H_t(i,lAt(r))}return lct(i,($Xt(),Zpe),CN(bEt(t,Zpe))),i}function ICt(t){var e,n;return e=Q$(K5(new oz(YO(udt(t.a).a.Kc(),new u))),17),n=Q$(K5(new oz(YO(hdt(t.a).a.Kc(),new u))),17),$y(kN(bEt(e,(lVt(),Tfe))))||$y(kN(bEt(n,Tfe)))}function MCt(){MCt=L,Cle=new bB("ONE_SIDE",0),Ele=new bB("TWO_SIDES_CORNER",1),Tle=new bB("TWO_SIDES_OPPOSING",2),xle=new bB("THREE_SIDES",3),kle=new bB("FOUR_SIDES",4)}function OCt(t,e,n,r,i){var a,o;a=Q$(E4(SW(e.Oc(),new Zi),m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),Kne)]))),15),o=Q$(got(t.b,n,r),15),0==i?o.Wc(0,a):o.Gc(a)}function DCt(t,e){var n,r,i;for(r=new Gd(e.a);r.a<r.c.c.length;)for(n=new oz(YO(udt(Q$(J1(r),10)).a.Kc(),new u));AIt(n);)i=Q$(K5(n),17).c.i.p,t.n[i]=t.n[i]-1}function FCt(t,e){var n,r,i,a;for(i=new Gd(e.d);i.a<i.c.c.length;)for(r=Q$(J1(i),101),a=Q$(FX(t.c,r),112).o,n=new Vx(r.b);n.a<n.c.a.length;)A7(r,Q$(a4(n),61),a)}function NCt(t){var e;for(e=new Gd(t.e.b);e.a<e.c.c.length;)lzt(t,Q$(J1(e),29));qx(SW(ftt(ftt(new Fj(null,new f1(t.e.b,16)),new Xa),new Za),new to),new cp(t))}function PCt(t,e){return!!e&&!t.Di(e)&&(t.i?t.i.Ei(e):rO(e,143)?(t.i=Q$(e,143),!0):(t.i=new mc,t.i.Ei(e)))}function RCt(t){if(t=Q$t(t,!0),mR(a5t,t)||mR("1",t))return cD(),mee;if(mR(o5t,t)||mR("0",t))return cD(),pee;throw Um(new ew("Invalid boolean value: '"+t+"'"))}function QCt(t,e,n){var r,i,a;for(i=t.vc().Kc();i.Ob();)if(a=(r=Q$(i.Pb(),42)).cd(),HS(e)===HS(a)||null!=e&&Oht(e,a))return n&&(r=new ET(r.cd(),r.dd()),i.Qb()),r;return null}function UCt(t){var e,n,r;$N(),t.B.Hc((ZRt(),$Se))&&(r=t.f.i,e=new AY(t.a.c),(n=new hv).b=e.c-r.c,n.d=e.d-r.d,n.c=r.c+r.b-(e.c+e.b),n.a=r.d+r.a-(e.d+e.a),t.e.Ff(n))}function $Ct(t,n,r,i){var a,o,s;for(s=e.Math.min(r,XUt(Q$(t.b,65),n,r,i)),o=new Gd(t.a);o.a<o.c.c.length;)(a=Q$(J1(o),221))!=n&&(s=e.Math.min(s,$Ct(a,n,s,i)));return s}function HCt(t){var e,n,r;for(r=O8(_se,cWt,193,t.b.c.length,0,2),n=new C2(t.b,0);n.b<n.d.gc();)EF(n.b<n.d.gc()),e=Q$(n.d.Xb(n.c=n.b++),29),r[n.b-1]=J0(e.a);return r}function jCt(t,e,n,r,i){var a,o,s,c;for(o=Jw(Yw(UQ(tbt(n)),r),awt(t,n,i)),c=FTt(t,n).Kc();c.Ob();)e[(s=Q$(c.Pb(),11)).p]&&(a=e[s.p].i,G$(o.d,new OK(a,yft(o,a))));TAt(o)}function KCt(t,e){this.f=new Om,this.b=new Om,this.j=new Om,this.a=t,this.c=e,this.c>0&&Ryt(this,this.c-1,(yGt(),oSe)),this.c<this.a.length-1&&Ryt(this,this.c+1,(yGt(),TSe))}function zCt(t){t.length>0&&t[0].length>0&&(this.c=$y(kN(bEt(pV(t[0][0]),(lVt(),ife))))),this.a=O8(Eve,cWt,2018,t.length,0,2),this.b=O8(Ive,cWt,2019,t.length,0,2),this.d=new Cut}function GCt(t){return 0!=t.c.length&&((u1(0,t.c.length),Q$(t.c[0],17)).c.i.k==(oTt(),Ese)||o5(LW(new Fj(null,new f1(t,16)),new Ra),new Qa))}function XCt(t,e,n){return Sxt(n,"Tree layout",1),c2(t.b),TG(t.b,(Kyt(),Fye),Fye),TG(t.b,Nye,Nye),TG(t.b,Pye,Pye),TG(t.b,Rye,Rye),t.a=Ijt(t.b,e),hFt(t,e,bat(n,1)),$Tt(n),e}function VCt(t,n){var r,i,a,o,s,c;for(s=dNt(n),a=n.f,c=n.g,o=e.Math.sqrt(a*a+c*c),i=0,r=new Gd(s);r.a<r.c.c.length;)i+=VCt(t,Q$(J1(r),33));return e.Math.max(i,o)}function WCt(){WCt=L,W_e=new K_(lJt,0),V_e=new K_("FREE",1),X_e=new K_("FIXED_SIDE",2),K_e=new K_("FIXED_ORDER",3),G_e=new K_("FIXED_RATIO",4),z_e=new K_("FIXED_POS",5)}function qCt(t,e){var n,r,i;if(n=e.Hh(t.a))for(i=xN(igt((!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),n.b),C9t)),r=1;r<(_Bt(),YMe).length;++r)if(mR(YMe[r],i))return r;return 0}function YCt(t){var e,n,r,i;if(null==t)return KVt;for(i=new Iot(QVt,"[","]"),n=0,r=(e=t).length;n<r;++n)h6(i,""+e[n]);return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function JCt(t){var e,n,r,i;if(null==t)return KVt;for(i=new Iot(QVt,"[","]"),n=0,r=(e=t).length;n<r;++n)h6(i,""+e[n]);return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function ZCt(t){var e,n,r;for(r=new Iot(QVt,"{","}"),n=t.vc().Kc();n.Ob();)h6(r,G3(t,(e=Q$(n.Pb(),42)).cd())+"="+G3(t,e.dd()));return r.a?0==r.e.length?r.a.a:r.a.a+""+r.e:r.c}function txt(t){for(var e,n,r,i;!Gy(t.o);)n=Q$(dG(t.o),46),r=Q$(n.a,121),i=Odt(e=Q$(n.b,213),r),e.e==r?(FD(i.g,e),r.e=i.e+e.a):(FD(i.b,e),r.e=i.e-e.a),G$(t.e.a,r)}function ext(t,e){var n,r,i;for(n=null,i=Q$(e.Kb(t),20).Kc();i.Ob();)if(r=Q$(i.Pb(),17),n){if((r.c.i==t?r.d.i:r.c.i)!=n)return!1}else n=r.c.i==t?r.d.i:r.c.i;return!0}function nxt(t,e){var n,r,i;for(r=new Gd(WOt(t,!1,e));r.a<r.c.c.length;)0==(n=Q$(J1(r),129)).d?(GZ(n,null),XZ(n,null)):(i=n.a,GZ(n,n.b),XZ(n,i))}function rxt(t){var e,n;return Yat(e=new Q2,Tye),(n=Q$(bEt(t,(lVt(),Yhe)),21)).Hc((fNt(),phe))&&Yat(e,Lye),n.Hc(she)&&Yat(e,Bye),n.Hc(Ahe)&&Yat(e,Sye),n.Hc(lhe)&&Yat(e,_ye),e}function ixt(t){var e,n,r,i;for(Ejt(t),n=new oz(YO(ldt(t).a.Kc(),new u));AIt(n);)i=(r=(e=Q$(K5(n),17)).c.i==t)?e.d:e.c,r?CZ(e,null):xZ(e,null),lct(e,(lVt(),mfe),i),oIt(t,i.i)}function axt(t,e,n,r){var i,a;switch(i=n[(a=e.i).g][t.d[a.g]],a.g){case 1:i-=r+e.j.b,e.g.b=i;break;case 3:i+=r,e.g.b=i;break;case 4:i-=r+e.j.a,e.g.a=i;break;case 2:i+=r,e.g.a=i}}function oxt(t){var e,n;for(n=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));n.e!=n.i.gc();)if(!AIt(new oz(YO(dOt(e=Q$(ymt(n),33)).a.Kc(),new u))))return e;return null}function sxt(){var t;return zLe?Q$(IMt((GE(),HIe),v6t),2016):(t=Q$(rO(xJ((GE(),HIe),v6t),555)?xJ(HIe,v6t):new cIt,555),zLe=!0,RKt(t),wVt(t),Cyt(t),mZ(HIe,v6t,t),t)}function cxt(t,e,n){var r,i;if(0==t.j)return n;if(i=Q$(Rnt(t,e,n),72),!(r=n.ak()).Ij()||!t.a.rl(r))throw Um(new dy("Invalid entry feature '"+r.Hj().zb+"."+r.ne()+"'"));return i}function lxt(t,e){var n,r,i,a,o,s,c;for(s=0,c=(o=t.a).length;s<c;++s)for(i=0,a=(r=o[s]).length;i<a;++i)if(n=r[i],HS(e)===HS(n)||null!=e&&Oht(e,n))return!0;return!1}function uxt(t){var e,n,r;return Vut(t,0)>=0?(n=Skt(t,Lqt),r=hgt(t,Lqt)):(n=Skt(e=yz(t,1),5e8),r=rdt(bz(r=hgt(e,5e8),1),t0(t,1))),e0(bz(r,32),t0(n,zqt))}function hxt(t,e,n){var r;switch(EF(0!=e.b),r=Q$(Let(e,e.a.a),8),n.g){case 0:r.b=0;break;case 2:r.b=t.f;break;case 3:r.a=0;break;default:r.a=t.g}return JG(cmt(e,0),r),e}function fxt(t,e,n,r){var i,a,o,s,c;switch(c=t.b,s=Kpt(o=(a=e.d).j,c.d[o.g],n),i=KP(QM(a.n),a.a),a.j.g){case 1:case 3:s.a+=i.a;break;case 2:case 4:s.b+=i.b}n5(r,s,r.c.b,r.c)}function dxt(t,e,n){var r,i,a,o;for(o=w9(t.e,e,0),(a=new nv).b=n,r=new C2(t.e,o);r.b<r.d.gc();)EF(r.b<r.d.gc()),(i=Q$(r.d.Xb(r.c=r.b++),10)).p=n,G$(a.e,i),lV(r);return a}function Axt(t,e,n,r){var i,a,o,s,c;for(i=null,a=0,s=new Gd(e);s.a<s.c.c.length;)c=(o=Q$(J1(s),33)).i+o.g,t<o.j+o.f+r&&(i?n.i-c<n.i-a&&(i=o):i=o,a=i.i+i.g);return i?a+r:0}function gxt(t,e,n,r){var i,a,o,s,c;for(a=null,i=0,s=new Gd(e);s.a<s.c.c.length;)c=(o=Q$(J1(s),33)).j+o.f,t<o.i+o.g+r&&(a?n.j-c<n.j-i&&(a=o):a=o,i=a.j+a.f);return a?i+r:0}function pxt(t){var e,n,r;for(e=!1,r=t.b.c.length,n=0;n<r;n++)qct(Q$(Oj(t.b,n),434))?!e&&n+1<r&&qct(Q$(Oj(t.b,n+1),434))&&(e=!0,Q$(Oj(t.b,n),434).a=!0):e=!1}function mxt(t,e,n,r,i){var a,o;for(a=0,o=0;o<i;o++)a=rdt(a,ndt(t0(e[o],zqt),t0(r[o],zqt))),t[o]=dK(a),a=vz(a,32);for(;o<n;o++)a=rdt(a,t0(e[o],zqt)),t[o]=dK(a),a=vz(a,32)}function bxt(t,e){var n,r;for(ILt(),SNt(),r=Yee,n=t;e>1;e>>=1)1&e&&(r=Mtt(r,n)),n=1==n.d?Mtt(n,n):new Bpt(_Qt(n.a,n.d,O8(_De,lqt,25,n.d<<1,15,1)));return r=Mtt(r,n)}function vxt(){var t,e,n,r;for(vxt=L,_ne=O8(MDe,Hqt,25,25,15,1),Sne=O8(MDe,Hqt,25,33,15,1),r=152587890625e-16,e=32;e>=0;e--)Sne[e]=r,r*=.5;for(n=1,t=24;t>=0;t--)_ne[t]=n,n*=.5}function yxt(t){var e,n;if($y(kN(JIt(t,($Xt(),fpe)))))for(n=new oz(YO(AOt(t).a.Kc(),new u));AIt(n);)if(WSt(e=Q$(K5(n),79))&&$y(kN(JIt(e,dpe))))return!0;return!1}function wxt(t,e){var n,r,i;kG(t.f,e)&&(e.b=t,r=e.c,-1!=w9(t.j,r,0)||G$(t.j,r),i=e.d,-1!=w9(t.j,i,0)||G$(t.j,i),0!=(n=e.a.b).c.length&&(!t.i&&(t.i=new emt(t)),mot(t.i,n)))}function kxt(t){var e,n,r,i;return(n=(e=t.c.d).j)==(i=(r=t.d.d).j)?e.p<r.p?0:1:xft(n)==i?0:kft(n)==i?1:xD(t.b.b,xft(n))?0:1}function Cxt(){Cxt=L,Zme=new FB(w3t,0),Yme=new FB("LONGEST_PATH",1),Wme=new FB("COFFMAN_GRAHAM",2),qme=new FB(U1t,3),tbe=new FB("STRETCH_WIDTH",4),Jme=new FB("MIN_WIDTH",5)}function xxt(t){var e;this.d=new Om,this.c=t.c,this.e=t.d,this.b=t.b,this.f=new sK(t.e),this.a=t.a,t.f?this.g=t.f:this.g=new WR(e=Q$(Xk(rIe),9),Q$(xP(e,e.length),9),0)}function Ext(t,e){var n,r,i,a;!(i=D2(r=t,"layoutOptions"))&&(i=D2(r,x6t)),i&&(n=null,(a=i)&&(n=new kx(a,wit(a,O8(Wee,cWt,2,0,6,1)))),n&&t5(n,new fS(a,e)))}function Txt(t){if(rO(t,239))return Q$(t,33);if(rO(t,186))return GJ(Q$(t,118));throw Um(t?new Zy("Only support nodes and ports."):new Uy(e8t))}function Bxt(t,e,n,r){return e>=0&&mR(t.substr(e,3),"GMT")||e>=0&&mR(t.substr(e,3),"UTC")?(n[0]=e+3,vQt(t,n,r)):vQt(t,n,r)}function _xt(t,e){var n,r,i,a,o;for(a=t.g.a,o=t.g.b,r=new Gd(t.d);r.a<r.c.c.length;)(i=(n=Q$(J1(r),70)).n).a=a,t.i==(yGt(),sSe)?i.b=o+t.j.b-n.o.b:i.b=o,KP(i,e),a+=n.o.a+t.e}function Sxt(t,e,n){if(t.b)throw Um(new Ry("The task is already done."));return null==t.p&&(t.p=e,t.r=n,t.k&&(t.o=(Lx(),idt(uot(Date.now()),VWt))),!0)}function Lxt(t){var e;return e=new gy,null!=t.tg()&&SH(e,H6t,t.tg()),null!=t.ne()&&SH(e,t8t,t.ne()),null!=t.sg()&&SH(e,"description",t.sg()),e}function Ixt(t,e,n){var r,i,a;return a=t.q,t.q=e,4&t.Db&&!(1&t.Db)&&(i=new Jz(t,1,9,a,e),n?n.Ei(i):n=i),e?(r=e.c)!=t.r&&(n=t.nk(r,n)):t.r&&(n=t.nk(null,n)),n}function Mxt(t,e,n){var r,i;for(n=Omt(e,t.e,-1-t.c,n),i=new Cm(new olt(new Ed(OV(t.a).a).a));i.a.b;)n=azt(r=Q$(tnt(i.a).cd(),87),yOt(r,t.a),n);return n}function Oxt(t,e,n){var r,i;for(n=oJ(e,t.e,-1-t.c,n),i=new Cm(new olt(new Ed(OV(t.a).a).a));i.a.b;)n=azt(r=Q$(tnt(i.a).cd(),87),yOt(r,t.a),n);return n}function Dxt(t,e,n,r){var i,a,o;if(0==r)aHt(e,0,t,n,t.length-n);else for(o=32-r,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]<<r;for(i=0;i<n;i++)t[i]=0}function Fxt(t){var n,r,i,a,o;for(n=0,r=0,o=t.Kc();o.Ob();)i=Q$(o.Pb(),111),n=e.Math.max(n,i.d.b),r=e.Math.max(r,i.d.c);for(a=t.Kc();a.Ob();)(i=Q$(a.Pb(),111)).d.b=n,i.d.c=r}function Nxt(t){var n,r,i,a,o;for(r=0,n=0,o=t.Kc();o.Ob();)i=Q$(o.Pb(),111),r=e.Math.max(r,i.d.d),n=e.Math.max(n,i.d.a);for(a=t.Kc();a.Ob();)(i=Q$(a.Pb(),111)).d.d=r,i.d.a=n}function Pxt(t,e){var n,r,i,a;for(a=new Mm,i=0,r=e.Kc();r.Ob();){for(n=nft(Q$(r.Pb(),19).a+i);n.a<t.f&&!Zj(t,n.a);)n=nft(n.a+1),++i;if(n.a>=t.f)break;a.c[a.c.length]=n}return a}function Rxt(t){var e,n,r,i;for(e=null,i=new Gd(t.wf());i.a<i.c.c.length;)n=new KW((r=Q$(J1(i),181)).qf().a,r.qf().b,r.rf().a,r.rf().b),e?BBt(e,n):e=n;return!e&&(e=new hI),e}function Qxt(t,e,n,r){return 1==n?(!t.n&&(t.n=new tG(HLe,t,1,7)),qAt(t.n,e,r)):Q$(eet(Q$(vot(t,16),26)||t.zh(),n),66).Nj().Qj(t,upt(t),n-hX(t.zh()),e,r)}function Uxt(t,e,n){var r,i,a,o,s;for(r=n.gc(),t.qi(t.i+r),(s=t.i-e)>0&&aHt(t.g,e,t.g,e+r,s),o=n.Kc(),t.i+=r,i=0;i<r;++i)a=o.Pb(),yO(t,e,t.oi(e,a)),t.bi(e,a),t.ci(),++e;return 0!=r}function $xt(t,e,n){var r;return e!=t.q?(t.q&&(n=oJ(t.q,t,-10,n)),e&&(n=Omt(e,t,-10,n)),n=Ixt(t,e,n)):4&t.Db&&!(1&t.Db)&&(r=new Jz(t,1,9,e,e),n?n.Ei(r):n=r),n}function Hxt(t,e,n,r){return TQ(!(n&lWt),"flatMap does not support SUBSIZED characteristic"),TQ(!(4&n),"flatMap does not support SORTED characteristic"),bX(t),bX(e),new $2(t,n,r,e)}function jxt(t,e){xG(e,"Cannot suppress a null exception."),pH(e!=t,"Exception can not suppress itself."),t.i||(null==t.k?t.k=Tst(Hw(Yte,1),cWt,78,0,[e]):t.k[t.k.length]=e)}function Kxt(t,e,n,r){var i,a,o,s,c,l;for(o=n.length,a=0,i=-1,l=iet(t.substr(e),(rQ(),kne)),s=0;s<o;++s)(c=n[s].length)>a&&sG(l,iet(n[s],kne))&&(i=s,a=c);return i>=0&&(r[0]=e+a),i}function zxt(t,e){var n;if(0!=(n=WL(t.b.Hf(),e.b.Hf())))return n;switch(t.b.Hf().g){case 1:case 2:return wM(t.b.sf(),e.b.sf());case 3:case 4:return wM(e.b.sf(),t.b.sf())}return 0}function Gxt(t){var e,n,r;for(r=t.e.c.length,t.a=vj(_De,[cWt,lqt],[48,25],15,[r,r],2),n=new Gd(t.c);n.a<n.c.c.length;)e=Q$(J1(n),282),t.a[e.c.b][e.d.b]+=Q$(bEt(e,(uPt(),Yae)),19).a}function Xxt(t,e,n){Sxt(n,"Grow Tree",1),t.b=e.f,$y(kN(bEt(e,(Gat(),Vie))))?(t.c=new ne,VZ(t,null)):t.c=new ne,t.a=!1,QDt(t,e.f),lct(e,Wie,(cD(),!!t.a)),$Tt(n)}function Vxt(t,e){var n,r,i,a,o;if(null==t)return null;for(o=O8(BDe,XWt,25,2*e,15,1),r=0,i=0;r<e;++r)n=t[r]>>4&15,a=15&t[r],o[i++]=_Le[n],o[i++]=_Le[a];return Ugt(o,0,o.length)}function Wxt(t,e,n){var r,i,a;return r=e.ak(),a=e.dd(),i=r.$j()?IY(t,4,r,a,null,p$t(t,r,a,rO(r,99)&&!!(Q$(r,18).Bb&Uqt)),!0):IY(t,r.Kj()?2:1,r,a,r.zj(),-1,!0),n?n.Ei(i):n=i,n}function qxt(t){var e,n;return t>=Uqt?(e=$qt+(t-Uqt>>10&1023)&WWt,n=56320+(t-Uqt&1023)&WWt,String.fromCharCode(e)+""+String.fromCharCode(n)):String.fromCharCode(t&WWt)}function Yxt(t,e){var n,r,i,a;return $N(),(i=Q$(Q$(c6(t.r,e),21),84)).gc()>=2&&(r=Q$(i.Kc().Pb(),111),n=t.u.Hc((hSt(),Z_e)),a=t.u.Hc(rSe),!r.a&&!n&&(2==i.gc()||a))}function Jxt(t,e,n,r,i){var a,o,s;for(a=eNt(t,e,n,r,i),s=!1;!a;)kMt(t,i,!0),s=!0,a=eNt(t,e,n,r,i);s&&kMt(t,i,!1),0!=(o=Fst(i)).c.length&&(t.d&&t.d.lg(o),Jxt(t,i,n,r,o))}function Zxt(){Zxt=L,i_e=new Q_(WZt,0),n_e=new Q_("DIRECTED",1),a_e=new Q_("UNDIRECTED",2),t_e=new Q_("ASSOCIATION",3),r_e=new Q_("GENERALIZATION",4),e_e=new Q_("DEPENDENCY",5)}function tEt(t,e){var n;if(!GJ(t))throw Um(new Ry(Q5t));switch(n=GJ(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}function eEt(t,e){var n,r;for(vV(e),r=t.b.c.length,G$(t.b,e);r>0;){if(n=r,r=(r-1)/2|0,t.a.ue(Oj(t.b,r),e)<=0)return r5(t.b,n,e),!0;r5(t.b,n,Oj(t.b,r))}return r5(t.b,r,e),!0}function nEt(t,n,r,i){var a,o;if(a=0,r)a=but(t.a[r.g][n.g],i);else for(o=0;o<Jre;o++)a=e.Math.max(a,but(t.a[o][n.g],i));return n==(Fet(),jre)&&t.b&&(a=e.Math.max(a,t.b.a)),a}function rEt(t,e){var n,r,i,a,o;return r=t.i,i=e.i,!(!r||!i)&&r.i==i.i&&r.i!=(yGt(),oSe)&&r.i!=(yGt(),TSe)&&(n=(a=r.g.a)+r.j.a,a<=(o=i.g.a)+i.j.a&&n>=o)}function iEt(t,e,n,r){var i;if(i=!1,zS(r)&&(i=!0,SH(e,n,xN(r))),i||jS(r)&&(i=!0,iEt(t,e,n,r)),i||rO(r,236)&&(i=!0,$q(e,n,Q$(r,236))),!i)throw Um(new Iy($6t))}function aEt(t,e){var n,r,i;if((n=e.Hh(t.a))&&null!=(i=igt((!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),n.b),Q7t)))for(r=1;r<(_Bt(),VMe).length;++r)if(mR(VMe[r],i))return r;return 0}function oEt(t,e){var n,r,i;if((n=e.Hh(t.a))&&null!=(i=igt((!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),n.b),Q7t)))for(r=1;r<(_Bt(),WMe).length;++r)if(mR(WMe[r],i))return r;return 0}function sEt(t,e){var n,r,i,a;if(vV(e),(a=t.a.gc())<e.gc())for(n=t.a.ec().Kc();n.Ob();)r=n.Pb(),e.Hc(r)&&n.Qb();else for(i=e.Kc();i.Ob();)r=i.Pb(),t.a.Bc(r);return a!=t.a.gc()}function cEt(t){var e,n;switch(n=QM(Lct(Tst(Hw(EEe,1),cWt,8,0,[t.i.n,t.n,t.a]))),e=t.i.d,t.j.g){case 1:n.b-=e.d;break;case 2:n.a+=e.c;break;case 3:n.b+=e.a;break;case 4:n.a-=e.b}return n}function lEt(t){var e;for(_it(),e=Q$(K5(new oz(YO(udt(t).a.Kc(),new u))),17).c.i;e.k==(oTt(),Ese);)lct(e,(lVt(),ofe),(cD(),!0)),e=Q$(K5(new oz(YO(udt(e).a.Kc(),new u))),17).c.i}function uEt(t,e,n,r){var i,a,o;for(o=Mht(e,r).Kc();o.Ob();)i=Q$(o.Pb(),11),t.d[i.p]=t.d[i.p]+t.c[n.p];for(a=Mht(n,r).Kc();a.Ob();)i=Q$(a.Pb(),11),t.d[i.p]=t.d[i.p]-t.c[e.p]}function hEt(t,e,n){var r,i;for(i=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));i.e!=i.i.gc();)xI(r=Q$(ymt(i),33),r.i+e,r.j+n);t5((!t.b&&(t.b=new tG(NLe,t,12,3)),t.b),new Z_(e,n))}function fEt(t,e,n,r){var i,a;for(i=null==(a=e).d||t.a.ue(n.d,a.d)>0?1:0;a.a[i]!=n;)a=a.a[i],i=t.a.ue(n.d,a.d)>0?1:0;a.a[i]=r,r.b=n.b,r.a[0]=n.a[0],r.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}function dEt(t){return hSt(),!(Bot(_J(wK(tSe,Tst(Hw(BSe,1),IWt,273,0,[nSe])),t))>1||Bot(_J(wK(Z_e,Tst(Hw(BSe,1),IWt,273,0,[J_e,rSe])),t))>1)}function AEt(t,e){rO(xJ((GE(),HIe),t),498)?mZ(HIe,t,new _S(this,e)):mZ(HIe,t,this),nTt(this,e),e==(eC(),YIe)?(this.wb=Q$(this,1939),Q$(e,1941)):this.wb=(VX(),JIe)}function gEt(t){var e,n;if(null==t)return null;for(e=null,n=0;n<BLe.length;++n)try{return QE(BLe[n],t)}catch(t){if(!rO(t=hst(t),32))throw Um(t);e=t}throw Um(new I9(e))}function pEt(){pEt=L,gne=Tst(Hw(Wee,1),cWt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),pne=Tst(Hw(Wee,1),cWt,2,6,["Jan","Feb","Mar","Apr",tqt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function mEt(t){var e,n,r;(e=mR(typeof e,gYt)?null:new ht)&&(uE(),ZX(n=(r=900)>=VWt?"error":r>=900?"warn":r>=800?"info":"log",t.a),t.b&&DDt(e,n,t.b,"Exception: ",!0))}function bEt(t,e){var n,r;return!t.q&&(t.q=new Om),null!=(r=FX(t.q,e))?r:(rO(n=e.wg(),4)&&(null==n?(!t.q&&(t.q=new Om),p6(t.q,e)):(!t.q&&(t.q=new Om),XV(t.q,e,n))),n)}function vEt(){vEt=L,Foe=new XT("P1_CYCLE_BREAKING",0),Noe=new XT("P2_LAYERING",1),Poe=new XT("P3_NODE_ORDERING",2),Roe=new XT("P4_NODE_PLACEMENT",3),Qoe=new XT("P5_EDGE_ROUTING",4)}function yEt(t,e){var n,r,i,a;for(r=(1==e?Goe:zoe).a.ec().Kc();r.Ob();)for(n=Q$(r.Pb(),103),a=Q$(c6(t.f.c,n),21).Kc();a.Ob();)i=Q$(a.Pb(),46),b9(t.b.b,i.b),b9(t.b.a,Q$(i.b,81).d)}function wEt(t,e){var n;if(Dtt(),t.c==e.c){if(t.b==e.b||lat(t.b,e.b)){if(n=YL(t.b)?1:-1,t.a&&!e.a)return n;if(!t.a&&e.a)return-n}return wM(t.b.g,e.b.g)}return Tft(t.c,e.c)}function kEt(t,e){var n;Sxt(e,"Hierarchical port position processing",1),(n=t.b).c.length>0&&nQt((u1(0,n.c.length),Q$(n.c[0],29)),t),n.c.length>1&&nQt(Q$(Oj(n,n.c.length-1),29),t),$Tt(e)}function CEt(t,e){var n,r;if(OEt(t,e))return!0;for(r=new Gd(e);r.a<r.c.c.length;){if(RNt(t,n=Q$(J1(r),33),oCt(n)))return!0;if(Iut(t,n)-t.g<=t.a)return!0}return!1}function xEt(){xEt=L,fPt(),vxe=Fxe,pxe=Ixe,gxe=Sxe,dxe=Exe,Axe=Bxe,fxe=new GI(8),hxe=new zI((cVt(),zTe),fxe),mxe=new zI(IBe,8),bxe=Oxe,cxe=yxe,lxe=kxe,uxe=new zI(uTe,(cD(),!1))}function EEt(){EEt=L,jEe=new GI(15),HEe=new zI((cVt(),zTe),jEe),zEe=new zI(IBe,15),KEe=new zI(gBe,nft(0)),PEe=yTe,QEe=NTe,$Ee=$Te,DEe=new zI(rTe,u5t),REe=TTe,UEe=QTe,FEe=aTe,NEe=cTe}function TEt(t){if(1!=(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b).i||1!=(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c).i)throw Um(new Py(r8t));return Txt(Q$(Xet((!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),0),82))}function BEt(t){if(1!=(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b).i||1!=(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c).i)throw Um(new Py(r8t));return fst(Q$(Xet((!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),0),82))}function _Et(t){if(1!=(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b).i||1!=(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c).i)throw Um(new Py(r8t));return fst(Q$(Xet((!t.c&&(t.c=new cR(FLe,t,5,8)),t.c),0),82))}function SEt(t){if(1!=(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b).i||1!=(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c).i)throw Um(new Py(r8t));return Txt(Q$(Xet((!t.c&&(t.c=new cR(FLe,t,5,8)),t.c),0),82))}function LEt(t,e,n){var r,i,a;if(++t.j,e>=(i=t.Vi())||e<0)throw Um(new Sy(o8t+e+s8t+i));if(n>=i||n<0)throw Um(new Sy(c8t+n+s8t+i));return e!=n?(a=t.Ti(n),t.Hi(e,a),r=a):r=t.Oi(n),r}function IEt(t){var e,n,r;if(r=t,t)for(e=0,n=t.Ug();n;n=n.Ug()){if(++e>jqt)return IEt(n);if(r=n,n==t)throw Um(new Ry("There is a cycle in the containment hierarchy of "+t))}return r}function MEt(t){var e,n,r;for(r=new Iot(QVt,"[","]"),n=t.Kc();n.Ob();)h6(r,HS(e=n.Pb())===HS(t)?"(this Collection)":null==e?KVt:Udt(e));return r.a?0==r.e.length?r.a.a:r.a.a+""+r.e:r.c}function OEt(t,e){var n,r;if(r=!1,e.gc()<2)return!1;for(n=0;n<e.gc();n++)n<e.gc()-1?r|=RNt(t,Q$(e.Xb(n),33),Q$(e.Xb(n+1),33)):r|=RNt(t,Q$(e.Xb(n),33),Q$(e.Xb(0),33));return r}function DEt(t,e){var n;e!=t.a?(n=null,t.a&&(n=Q$(t.a,49).ih(t,4,$Le,n)),e&&(n=Q$(e,49).gh(t,4,$Le,n)),(n=Yut(t,e,n))&&n.Fi()):4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,1,e,e))}function FEt(t,e){var n;e!=t.e?(t.e&&P6(OV(t.e),t),e&&(!e.b&&(e.b=new km(new Ov)),WP(e.b,t)),(n=Wwt(t,e,null))&&n.Fi()):4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,4,e,e))}function NEt(t){var e,n,r;for(n=t.length,r=0;r<n&&(h1(r,t.length),t.charCodeAt(r)<=32);)++r;for(e=n;e>r&&(h1(e-1,t.length),t.charCodeAt(e-1)<=32);)--e;return r>0||e<n?t.substr(r,e-r):t}function PEt(t,n){var r;r=n.o,dI(t.f)?(t.j.a=e.Math.max(t.j.a,r.a),t.j.b+=r.b,t.d.c.length>1&&(t.j.b+=t.e)):(t.j.a+=r.a,t.j.b=e.Math.max(t.j.b,r.b),t.d.c.length>1&&(t.j.a+=t.e))}function REt(){REt=L,Lle=Tst(Hw(RSe,1),qZt,61,0,[(yGt(),sSe),oSe,xSe]),Sle=Tst(Hw(RSe,1),qZt,61,0,[oSe,xSe,TSe]),Ile=Tst(Hw(RSe,1),qZt,61,0,[xSe,TSe,sSe]),Mle=Tst(Hw(RSe,1),qZt,61,0,[TSe,sSe,oSe])}function QEt(t,e,n,r){var i,a,o,s,c;if(a=t.c.d,o=t.d.d,a.j!=o.j)for(c=t.b,i=a.j,s=null;i!=o.j;)s=0==e?xft(i):kft(i),DH(r,KP(Kpt(i,c.d[i.g],n),Kpt(s,c.d[s.g],n))),i=s}function UEt(t,e,n,r){var i,a,o,s,c;return s=Q$((o=Hyt(t.a,e,n)).a,19).a,a=Q$(o.b,19).a,r&&(c=Q$(bEt(e,(lVt(),wfe)),10),i=Q$(bEt(n,wfe),10),c&&i&&(Z3(t.b,c,i),s+=t.b.i,a+=t.b.e)),s>a}function $Et(t){var e,n,r,i,a,o,s,c;for(this.a=rbt(t),this.b=new Mm,r=0,i=(n=t).length;r<i;++r)for(e=n[r],a=new Mm,G$(this.b,a),s=0,c=(o=e).length;s<c;++s)G$(a,new ZR(o[s].j))}function HEt(t,e,n){var r,i,a;return a=0,r=n[e],e<n.length-1&&(i=n[e+1],t.b[e]?(a=fVt(t.d,r,i),a+=YX(t.a,r,(yGt(),oSe)),a+=YX(t.a,i,TSe)):a=B7(t.a,r,i)),t.c[e]&&(a+=I6(t.a,r)),a}function jEt(t,e,n,r,i){var a,o,s,c;for(c=null,s=new Gd(r);s.a<s.c.c.length;)if((o=Q$(J1(s),441))!=n&&-1!=w9(o.e,i,0)){c=o;break}xZ(a=G5(i),n.b),CZ(a,c.b),YSt(t.a,i,new IQ(a,e,n.f))}function KEt(t){for(;0!=t.g.c&&0!=t.d.c;)RN(t.g).c>RN(t.d).c?(t.i+=t.g.c,ggt(t.d)):RN(t.d).c>RN(t.g).c?(t.e+=t.d.c,ggt(t.g)):(t.i+=$j(t.g),t.e+=$j(t.d),ggt(t.g),ggt(t.d))}function zEt(t,e,n){var r,i,a,o;for(a=e.q,o=e.r,new jZ((_6(),kye),e,a,1),new jZ(kye,a,o,1),i=new Gd(n);i.a<i.c.c.length;)(r=Q$(J1(i),112))!=a&&r!=e&&r!=o&&(gHt(t.a,r,e),gHt(t.a,r,o))}function GEt(t,n,r,i){t.a.d=e.Math.min(n,r),t.a.a=e.Math.max(n,i)-t.a.d,n<r?(t.b=.5*(n+r),t.g=P3t*t.b+.9*n,t.f=P3t*t.b+.9*r):(t.b=.5*(n+i),t.g=P3t*t.b+.9*i,t.f=P3t*t.b+.9*n)}function XEt(){function t(){return(new Date).getTime()}EVt={},!Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!Date.now&&(Date.now=t)}function VEt(t,e){var n,r;r=Q$(bEt(e,($Xt(),tme)),98),lct(e,(lVt(),bfe),r),(n=e.e)&&(qx(new Fj(null,new f1(n.a,16)),new FA(t)),qx(ftt(new Fj(null,new f1(n.b,16)),new be),new NA(t)))}function WEt(t){var n,r,i,a;if(AI(Q$(bEt(t.b,($Xt(),Kge)),103)))return 0;for(n=0,i=new Gd(t.a);i.a<i.c.c.length;)(r=Q$(J1(i),10)).k==(oTt(),Tse)&&(a=r.o.a,n=e.Math.max(n,a));return n}function qEt(t){switch(Q$(bEt(t,($Xt(),vpe)),163).g){case 1:lct(t,vpe,(Cdt(),Qfe));break;case 2:lct(t,vpe,(Cdt(),Ufe));break;case 3:lct(t,vpe,(Cdt(),Pfe));break;case 4:lct(t,vpe,(Cdt(),Rfe))}}function YEt(){YEt=L,rhe=new LB(WZt,0),the=new LB(iJt,1),ihe=new LB(aJt,2),nhe=new LB("LEFT_RIGHT_CONSTRAINT_LOCKING",3),ehe=new LB("LEFT_RIGHT_CONNECTION_LOCKING",4),Zue=new LB(H1t,5)}function JEt(t,n,r){var i,a,o,s,c,l,u;c=r.a/2,o=r.b/2,l=1,u=1,(i=e.Math.abs(n.a-t.a))>c&&(l=c/i),(a=e.Math.abs(n.b-t.b))>o&&(u=o/a),s=e.Math.min(l,u),t.a+=s*(n.a-t.a),t.b+=s*(n.b-t.b)}function ZEt(t,e,n,r,i){var a,o;for(o=!1,a=Q$(Oj(n.b,0),33);l$t(t,e,a,r,i)&&(o=!0,iCt(n,a),0!=n.b.c.length);)a=Q$(Oj(n.b,0),33);return 0==n.b.c.length&&Cwt(n.j,n),o&&jvt(e.q),o}function tTt(t,e){var n,r,i,a;if(wNt(),e.b<2)return!1;for(r=n=Q$(h3(a=cmt(e,0)),8);a.b!=a.d.c;){if(iDt(t,r,i=Q$(h3(a),8)))return!0;r=i}return!!iDt(t,r,n)}function eTt(t,e,n,r){return 0==n?(!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),QR(t.o,e,r)):Q$(eet(Q$(vot(t,16),26)||t.zh(),n),66).Nj().Rj(t,upt(t),n-hX(t.zh()),e,r)}function nTt(t,e){var n;e!=t.sb?(n=null,t.sb&&(n=Q$(t.sb,49).ih(t,1,QLe,n)),e&&(n=Q$(e,49).gh(t,1,QLe,n)),(n=wht(t,e,n))&&n.Fi()):4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,4,e,e))}function rTt(t,e){var n,r;if(!e)throw Um(new tw("All edge sections need an end point."));n=Nnt(e,"x"),Cnt(new Np(t).a,(vV(n),n)),r=Nnt(e,"y"),Snt(new Pp(t).a,(vV(r),r))}function iTt(t,e){var n,r;if(!e)throw Um(new tw("All edge sections need a start point."));n=Nnt(e,"x"),_nt(new Op(t).a,(vV(n),n)),r=Nnt(e,"y"),Lnt(new Dp(t).a,(vV(r),r))}function aTt(t,e){var n,r,i,a,o;for(r=0,a=plt(t).length;r<a;++r)mEt(e);for(o=!Vne&&t.e?Vne?null:t.d:null;o;){for(n=0,i=plt(o).length;n<i;++n)mEt(e);o=!Vne&&o.e?Vne?null:o.d:null}}function oTt(){oTt=L,Tse=new qT("NORMAL",0),Ese=new qT("LONG_EDGE",1),Cse=new qT("EXTERNAL_PORT",2),Bse=new qT("NORTH_SOUTH_PORT",3),xse=new qT("LABEL",4),kse=new qT("BREAKING_POINT",5)}function sTt(t){var e,n,r,i;if(e=!1,IF(t,(lVt(),jhe)))for(n=Q$(bEt(t,jhe),83),i=new Gd(t.j);i.a<i.c.c.length;)YMt(r=Q$(J1(i),11))&&(e||(nSt(pV(t)),e=!0),umt(Q$(n.xc(r),306)))}function cTt(t,e,n){var r;Sxt(n,"Self-Loop routing",1),r=Vft(e),eL(bEt(e,(T6(),kEe))),qx(LW(SW(SW(ftt(new Fj(null,new f1(e.b,16)),new zr),new Gr),new Xr),new Vr),new tB(t,r)),$Tt(n)}function lTt(t){var e,n,r;return r=Lxt(t),null!=t.e&&SH(r,Z6t,t.e),!!t.k&&SH(r,"type",dF(t.k)),!GC(t.j)&&(n=new Tf,net(r,O6t,n),e=new rm(n),t5(t.j,e)),r}function uTt(t){var e,n,r,i;for(i=OX((hrt(t.gc(),"size"),new Bw),123),r=!0,n=uz(t).Kc();n.Ob();)e=Q$(n.Pb(),42),r||(i.a+=QVt),r=!1,aL(OX(aL(i,e.cd()),61),e.dd());return(i.a+="}",i).a}function hTt(t,e){var n,r,i;return(e&=63)<22?(n=t.l<<e,r=t.m<<e|t.l>>22-e,i=t.h<<e|t.m>>22-e):e<44?(n=0,r=t.l<<e-22,i=t.m<<e-22|t.l>>44-e):(n=0,r=0,i=t.l<<e-44),CM(n&Eqt,r&Eqt,i&Tqt)}function fTt(t){if(null==vee&&(vee=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!vee.test(t))throw Um(new Cw(Fqt+t+'"'));return parseFloat(t)}function dTt(t){var e,n,r,i;for(e=new Mm,pG(n=O8(SDe,JYt,25,t.a.c.length,16,1),n.length),i=new Gd(t.a);i.a<i.c.c.length;)n[(r=Q$(J1(i),121)).d]||(e.c[e.c.length]=r,jpt(t,r,n));return e}function ATt(t,e){var n,r,i,a;for(a=e.b.j,t.a=O8(_De,lqt,25,a.c.length,15,1),i=0,r=0;r<a.c.length;r++)u1(r,a.c.length),0==(n=Q$(a.c[r],11)).e.c.length&&0==n.g.c.length?i+=1:i+=3,t.a[r]=i}function gTt(){gTt=L,Due=new BB("ALWAYS_UP",0),Oue=new BB("ALWAYS_DOWN",1),Nue=new BB("DIRECTION_UP",2),Fue=new BB("DIRECTION_DOWN",3),Rue=new BB("SMART_UP",4),Pue=new BB("SMART_DOWN",5)}function pTt(t,e){if(t<0||e<0)throw Um(new Py("k and n must be positive"));if(e>t)throw Um(new Py("k must be smaller than n"));return 0==e||e==t?1:0==t?0:xkt(t)/(xkt(e)*xkt(t-e))}function mTt(t,e){var n,r,i,a;for(n=new _I(t);null!=n.g||n.c?null==n.g||0!=n.i&&Q$(n.g[n.i-1],47).Ob():ZJ(n);)if(rO(a=Q$(aOt(n),56),160))for(r=Q$(a,160),i=0;i<e.length;i++)e[i].og(r)}function bTt(t){var e;return 64&t.Db?qft(t):((e=new lD(qft(t))).a+=" (height: ",pC(e,t.f),e.a+=", width: ",pC(e,t.g),e.a+=", x: ",pC(e,t.i),e.a+=", y: ",pC(e,t.j),e.a+=")",e.a)}function vTt(t){var e,n,r,i,a,o;for(e=new p4,i=0,a=(r=t).length;i<a;++i)if(null!=Ypt(e,o=bX((n=r[i]).cd()),bX(n.dd())))throw Um(new Py("duplicate key: "+o));this.b=(xq(),new zd(e))}function yTt(t){var e,n,r,i,a;if(null==t)return KVt;for(a=new Iot(QVt,"[","]"),r=0,i=(n=t).length;r<i;++r)e=n[r],h6(a,String.fromCharCode(e));return a.a?0==a.e.length?a.a.a:a.a.a+""+a.e:a.c}function wTt(){wTt=L,Ntt(),Bae=new LL(sZt,_ae=Fae),nft(1),Tae=new LL(cZt,nft(300)),nft(0),Iae=new LL(lZt,nft(0)),new Lm,Mae=new LL(uZt,hZt),new Lm,Sae=new LL(fZt,5),Oae=Fae,Lae=Dae}function kTt(t,e){var n,r,i,a;for(r=(1==e?Goe:zoe).a.ec().Kc();r.Ob();)for(n=Q$(r.Pb(),103),a=Q$(c6(t.f.c,n),21).Kc();a.Ob();)i=Q$(a.Pb(),46),G$(t.b.b,Q$(i.b,81)),G$(t.b.a,Q$(i.b,81).d)}function CTt(t,e){var n;if(null!=e&&!t.c.Yj().wj(e))throw n=rO(e,56)?Q$(e,56).Tg().zb:Jk(tlt(e)),Um(new Ny(r6t+t.c.ne()+"'s type '"+t.c.Yj().ne()+"' does not permit a value of type '"+n+"'"))}function xTt(t,e,n){var r,i;for(i=new C2(t.b,0);i.b<i.d.gc();)EF(i.b<i.d.gc()),HS(bEt(r=Q$(i.d.Xb(i.c=i.b++),70),(lVt(),pfe)))===HS(e)&&(SBt(r.n,pV(t.c.i),n),lV(i),G$(e.b,r))}function ETt(t,e){if(e.a)switch(Q$(bEt(e.b,(lVt(),bfe)),98).g){case 0:case 1:hCt(e);case 2:qx(new Fj(null,new f1(e.d,16)),new Or),sIt(t.a,e)}else qx(new Fj(null,new f1(e.d,16)),new Or)}function TTt(t){var n,r;return r=e.Math.sqrt((null==t.k&&(t.k=Xit(t,new Ca)),Hy(t.k)/(t.b*(null==t.g&&(t.g=Git(t,new ka)),Hy(t.g))))),n=dK(uot(e.Math.round(r))),n=e.Math.min(n,t.f)}function BTt(){gat(),IP.call(this),this.j=(yGt(),ESe),this.a=new Hk,new lv,this.f=(hrt(2,LWt),new q6(2)),this.e=(hrt(4,LWt),new q6(4)),this.g=(hrt(4,LWt),new q6(4)),this.b=new cB(this.e,this.g)}function _Tt(t,e){var n;return!$y(kN(bEt(e,(lVt(),Tfe))))&&(n=e.c.i,(t!=(Cdt(),Pfe)||n.k!=(oTt(),xse))&&Q$(bEt(n,($Xt(),vpe)),163)!=Rfe)}function STt(t,e){var n;return!$y(kN(bEt(e,(lVt(),Tfe))))&&(n=e.d.i,(t!=(Cdt(),Qfe)||n.k!=(oTt(),xse))&&Q$(bEt(n,($Xt(),vpe)),163)!=Ufe)}function LTt(t,e){var n,r,i,a,o,s,c;for(o=t.d,c=t.o,s=new KW(-o.b,-o.d,o.b+c.a+o.c,o.d+c.b+o.a),i=0,a=(r=e).length;i<a;++i)(n=r[i])&&BBt(s,n.i);o.b=-s.c,o.d=-s.d,o.c=s.b-o.b-c.a,o.a=s.a-o.d-c.b}function ITt(){ITt=L,exe=new C_("CENTER_DISTANCE",0),nxe=new C_("CIRCLE_UNDERLAP",1),axe=new C_("RECTANGLE_UNDERLAP",2),rxe=new C_("INVERTED_OVERLAP",3),ixe=new C_("MINIMUM_ROOT_DISTANCE",4)}function MTt(t){var e,n,r,i;if(PNt(),null==t)return null;for(r=t.length,e=O8(BDe,XWt,25,2*r,15,1),n=0;n<r;n++)(i=t[n])<0&&(i+=256),e[2*n]=VOe[i>>4],e[2*n+1]=VOe[15&i];return Ugt(e,0,e.length)}function OTt(t){var e;switch(JV(),t.c.length){case 0:return Ute;case 1:return BH((e=Q$(Y_t(new Gd(t)),42)).cd(),e.dd());default:return new cy(Q$(Wpt(t,O8($te,yWt,42,t.c.length,0,1)),165))}}function DTt(t){var e,n,r,i,a;for(e=new Im,n=new Im,d3(e,t),d3(n,t);n.b!=n.c;)for(a=new Gd(Q$(dG(n),37).a);a.a<a.c.c.length;)(i=Q$(J1(a),10)).e&&(d3(e,r=i.e),d3(n,r));return e}function FTt(t,e){switch(e.g){case 1:return N$(t.j,(gat(),Ose));case 2:return N$(t.j,(gat(),Ise));case 3:return N$(t.j,(gat(),Fse));case 4:return N$(t.j,(gat(),Nse));default:return xq(),xq(),cne}}function NTt(t,e){var n,r,i;n=sH(e,t.e),r=Q$(FX(t.g.f,n),19).a,i=t.a.c.length-1,0!=t.a.c.length&&Q$(Oj(t.a,i),287).c==r?(++Q$(Oj(t.a,i),287).a,++Q$(Oj(t.a,i),287).b):G$(t.a,new HF(r))}function PTt(t,e,n){var r,i;return 0!=(r=EPt(t,e,n))?r:IF(e,(lVt(),ffe))&&IF(n,ffe)?((i=wM(Q$(bEt(e,ffe),19).a,Q$(bEt(n,ffe),19).a))<0?oRt(t,e,n):i>0&&oRt(t,n,e),i):_Lt(t,e,n)}function RTt(t,e,n){var r,i,a,o;if(0!=e.b){for(r=new Wx,o=cmt(e,0);o.b!=o.d.c;)Qit(r,Dst(a=Q$(h3(o),86))),(i=a.e).a=Q$(bEt(a,(Hjt(),Awe)),19).a,i.b=Q$(bEt(a,gwe),19).a;RTt(t,r,bat(n,r.b/t.a|0))}}function QTt(t,e){var n,r,i,a,o;if(t.e<=e)return t.g;if(j1(t,t.g,e))return t.g;for(a=t.r,r=t.g,o=t.r,i=(a-r)/2+r;r+1<a;)(n=iHt(t,i,!1)).b<=i&&n.a<=e?(o=i,a=i):r=i,i=(a-r)/2+r;return o}function UTt(t,e,n){Sxt(n,"Recursive Graph Layout",lNt(t,e,!0)),mTt(e,Tst(Hw(Jxe,1),$Vt,527,0,[new Sh])),E8(e,(cVt(),mBe))||mTt(e,Tst(Hw(Jxe,1),$Vt,527,0,[new ms])),hXt(t,e,null,n),$Tt(n)}function $Tt(t){var e;if(null==t.p)throw Um(new Ry("The task has not begun yet."));t.b||(t.k&&(Lx(),e=idt(uot(Date.now()),VWt),t.q=1e-9*y2(ndt(e,t.o))),t.c<t.r&&Hrt(t,t.r-t.c),t.b=!0)}function HTt(t){var e,n,r;for(DH(r=new vv,new O_(t.j,t.k)),n=new SO((!t.a&&(t.a=new LO(MLe,t,5)),t.a));n.e!=n.i.gc();)DH(r,new O_((e=Q$(ymt(n),469)).a,e.b));return DH(r,new O_(t.b,t.c)),r}function jTt(t,e,n,r,i){var a,o,s,c;if(i)for(c=((a=new cz(i.a.length)).b-a.a)*a.c<0?(tT(),kDe):new zO(a);c.Ob();)s=O2(i,Q$(c.Pb(),19).a),FQt((o=new cq(t,e,n,r)).a,o.b,o.c,o.d,s)}function KTt(t,e){var n;if(HS(t)===HS(e))return!0;if(rO(e,21)){n=Q$(e,21);try{return t.gc()==n.gc()&&t.Ic(n)}catch(t){if(rO(t=hst(t),173)||rO(t,205))return!1;throw Um(t)}}return!1}function zTt(t,n){var r;G$(t.d,n),r=n.rf(),t.c?(t.e.a=e.Math.max(t.e.a,r.a),t.e.b+=r.b,t.d.c.length>1&&(t.e.b+=t.a)):(t.e.a+=r.a,t.e.b=e.Math.max(t.e.b,r.b),t.d.c.length>1&&(t.e.a+=t.a))}function GTt(t){var e,n,r,i;switch(e=(i=t.i).b,r=i.j,n=i.g,i.a.g){case 0:n.a=(t.g.b.o.a-r.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-r.a;break;case 3:n.b=e.d.n.b+e.d.a.b}}function XTt(t,e,n,r,i){if(r<e||i<n)throw Um(new Py("The highx must be bigger then lowx and the highy must be bigger then lowy"));return t.a<e?t.a=e:t.a>r&&(t.a=r),t.b<n?t.b=n:t.b>i&&(t.b=i),t}function VTt(t){if(rO(t,149))return xDt(Q$(t,149));if(rO(t,229))return Jdt(Q$(t,229));if(rO(t,23))return lTt(Q$(t,23));throw Um(new Py(K6t+MEt(new qy(Tst(Hw(Lte,1),$Vt,1,5,[t])))))}function WTt(t,e,n,r,i){var a,o,s;for(a=!0,o=0;o<r;o++)a&=0==n[o];if(0==i)aHt(n,r,t,0,e),o=e;else{for(s=32-i,a&=!(n[o]<<s),o=0;o<e-1;o++)t[o]=n[o+r]>>>i|n[o+r+1]<<s;t[o]=n[o+r]>>>i,++o}return a}function qTt(t,e,n,r){var i,a;if(e.k==(oTt(),Ese))for(a=new oz(YO(udt(e).a.Kc(),new u));AIt(a);)if((i=Q$(K5(a),17)).c.i.k==Ese&&t.c.a[i.c.i.c.p]==r&&t.c.a[e.c.p]==n)return!0;return!1}function YTt(t,e){var n,r,i,a;return e&=63,n=t.h&Tqt,e<22?(a=n>>>e,i=t.m>>e|n<<22-e,r=t.l>>e|t.m<<22-e):e<44?(a=0,i=n>>>e-22,r=t.m>>e-22|t.h<<44-e):(a=0,i=0,r=n>>>e-44),CM(r&Eqt,i&Eqt,a&Tqt)}function JTt(t,e,n,r){var i;this.b=r,this.e=t==(srt(),Sve),i=e[n],this.d=vj(SDe,[cWt,JYt],[177,25],16,[i.length,i.length],2),this.a=vj(_De,[cWt,lqt],[48,25],15,[i.length,i.length],2),this.c=new KCt(e,n)}function ZTt(t){var e,n,r;for(t.k=new o1((yGt(),Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe])).length,t.j.c.length),r=new Gd(t.j);r.a<r.c.c.length;)e=(n=Q$(J1(r),113)).d.j,YSt(t.k,e,n);t.e=nDt(Az(t.k))}function tBt(t,e){var n,r,i;kG(t.d,e),n=new ko,XV(t.c,e,n),n.f=Tut(e.c),n.a=Tut(e.d),n.d=(gFt(),(i=e.c.i.k)==(oTt(),Tse)||i==kse),n.e=(r=e.d.i.k)==Tse||r==kse,n.b=e.c.j==(yGt(),TSe),n.c=e.d.j==oSe}function eBt(t){var e,n,r,i,a;for(a=FVt,i=FVt,r=new Gd(ydt(t));r.a<r.c.c.length;)e=(n=Q$(J1(r),213)).e.e-n.d.e,n.e==t&&e<i?i=e:e<a&&(a=e);return i==FVt&&(i=-1),a==FVt&&(a=-1),new nS(nft(i),nft(a))}function nBt(t,n){var r,i,a;return a=JJt,Hmt(),i=Yie,a=e.Math.abs(t.b),(r=e.Math.abs(n.f-t.b))<a&&(a=r,i=Jie),(r=e.Math.abs(t.a))<a&&(a=r,i=Zie),(r=e.Math.abs(n.g-t.a))<a&&(a=r,i=qie),i}function rBt(t,e){var n,r,i;for(n=e.a.o.a,i=new xd(new s1(pV(e.a).b,e.c,e.f+1));i.b<i.d.gc();)if(EF(i.b<i.d.gc()),(r=Q$(i.d.Xb(i.c=i.b++),29)).c.a>=n)return lBt(t,e,r.p),!0;return!1}function iBt(t){var e;return 64&t.Db?bTt(t):(e=new uD(J5t),!t.a||oL(oL((e.a+=' "',e),t.a),'"'),oL(vC(oL(vC(oL(vC(oL(vC((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function aBt(t,e,n){var r,i,a,o,s;for(s=aFt(t.e.Tg(),e),i=Q$(t.g,119),r=0,o=0;o<t.i;++o)if(a=i[o],s.rl(a.ak())){if(r==n)return uNt(t,o),YE(),Q$(e,66).Oj()?a:a.dd();++r}throw Um(new Sy(e7t+n+s8t+r))}function oBt(t){var e,n,r;if(2==(e=t.c)||7==e||1==e)return dVt(),dVt(),oDe;for(r=SXt(t),n=null;2!=(e=t.c)&&7!=e&&1!=e;)n||(dVt(),dVt(),tjt(n=new nM(1),r),r=n),tjt(n,SXt(t));return r}function sBt(t,e,n){return t<0||t>n?A_t(t,n,"start index"):e<0||e>n?A_t(e,n,"end index"):IPt("end index (%s) must not be less than start index (%s)",Tst(Hw(Lte,1),$Vt,1,5,[nft(e),nft(t)]))}function cBt(t,e){var n,r,i,a;for(r=0,i=t.length;r<i;r++){a=t[r];try{a[1]?a[0].jm()&&(e=kK(e,a)):a[0].jm()}catch(t){if(!rO(t=hst(t),78))throw Um(t);n=t,Dw(),bY(rO(n,477)?Q$(n,477).ae():n)}}return e}function lBt(t,n,r){var i,a;for(r!=n.c+n.b.gc()&&dHt(n.a,not(n,r-n.c)),a=n.a.c.p,t.a[a]=e.Math.max(t.a[a],n.a.o.a),i=Q$(bEt(n.a,(lVt(),Efe)),15).Kc();i.Ob();)lct(Q$(i.Pb(),70),Zce,(cD(),!0))}function uBt(t,n){var r,i,a;a=HDt(n),lct(n,(lVt(),ufe),a),a&&(i=FVt,SY(t.f,a)&&(i=Q$($S(SY(t.f,a)),19).a),$y(kN(bEt(r=Q$(Oj(n.g,0),17),Tfe)))||XV(t,a,nft(e.Math.min(Q$(bEt(r,ffe),19).a,i))))}function hBt(t,e,n){var r,i,a,o;for(e.p=-1,o=DAt(e,(art(),$be)).Kc();o.Ob();)for(i=new Gd(Q$(o.Pb(),11).g);i.a<i.c.c.length;)e!=(a=(r=Q$(J1(i),17)).d.i)&&(a.p<0?n.Fc(r):a.p>0&&hBt(t,a,n));e.p=0}function fBt(t){var e;this.c=new Wx,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 WR(e=Q$(Xk(yEe),9),Q$(xP(e,e.length),9),0),this.g=t.f}function dBt(t){var e,n,r,i;for(e=OX(oL(new uD("Predicates."),"and"),40),n=!0,i=new xd(t);i.b<i.d.gc();)EF(i.b<i.d.gc()),r=i.d.Xb(i.c=i.b++),n||(e.a+=","),e.a+=""+r,n=!1;return(e.a+=")",e).a}function ABt(t,e,n){var r,i,a;if(!(n<=e+2))for(i=(n-e)/2|0,r=0;r<i;++r)u1(e+r,t.c.length),a=Q$(t.c[e+r],11),r5(t,e+r,(u1(n-r-1,t.c.length),Q$(t.c[n-r-1],11))),u1(n-r-1,t.c.length),t.c[n-r-1]=a}function gBt(t,e,n){var r,i,a,o,s,c,l;s=(a=t.d.p).e,c=a.r,t.g=new VR(c),r=(o=t.d.o.c.p)>0?s[o-1]:O8(_se,a1t,10,0,0,1),i=s[o],l=o<s.length-1?s[o+1]:O8(_se,a1t,10,0,0,1),e==n-1?aZ(t.g,i,l):aZ(t.g,r,i)}function pBt(t){var e;this.j=new Mm,this.f=new Fb,this.b=new WR(e=Q$(Xk(RSe),9),Q$(xP(e,e.length),9),0),this.d=O8(_De,lqt,25,(yGt(),Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe])).length,15,1),this.g=t}function mBt(t,e){var n,r,i;if(0!=e.c.length){for(n=CEt(t,e),i=!1;!n;)kMt(t,e,!0),i=!0,n=CEt(t,e);i&&kMt(t,e,!1),r=Fst(e),t.b&&t.b.lg(r),t.a=Iut(t,(u1(0,e.c.length),Q$(e.c[0],33))),mBt(t,r)}}function bBt(t,e){var n,r,i;if(r=eet(t.Tg(),e),(n=e-t.Ah())<0){if(!r)throw Um(new Py(s6t+e+c6t));if(!r.Ij())throw Um(new Py(r6t+r.ne()+i6t));(i=t.Yg(r))>=0?t.Bh(i):iSt(t,r)}else Hht(t,n,r)}function vBt(t){var e,n;if(n=null,e=!1,rO(t,204)&&(e=!0,n=Q$(t,204).a),e||rO(t,258)&&(e=!0,n=""+Q$(t,258).a),e||rO(t,483)&&(e=!0,n=""+Q$(t,483).a),!e)throw Um(new Iy($6t));return n}function yBt(t,e){var n,r;if(t.f){for(;e.Ob();)if(rO(r=(n=Q$(e.Pb(),72)).ak(),99)&&Q$(r,18).Bb&l6t&&(!t.e||r.Gj()!=ILe||0!=r.aj())&&null!=n.dd())return e.Ub(),!0;return!1}return e.Ob()}function wBt(t,e){var n,r;if(t.f){for(;e.Sb();)if(rO(r=(n=Q$(e.Ub(),72)).ak(),99)&&Q$(r,18).Bb&l6t&&(!t.e||r.Gj()!=ILe||0!=r.aj())&&null!=n.dd())return e.Pb(),!0;return!1}return e.Sb()}function kBt(t,e,n){var r,i,a,o,s,c;for(c=aFt(t.e.Tg(),e),r=0,s=t.i,i=Q$(t.g,119),o=0;o<t.i;++o)if(a=i[o],c.rl(a.ak())){if(n==r)return o;++r,s=o+1}if(n==r)return s;throw Um(new Sy(e7t+n+s8t+r))}function CBt(t,n){var r,i,a;if(0==t.f.c.length)return null;for(a=new hI,r=new Gd(t.f);r.a<r.c.c.length;)i=Q$(J1(r),70).o,a.b=e.Math.max(a.b,i.a),a.a+=i.b;return a.a+=(t.f.c.length-1)*n,a}function xBt(t,e,n){var r,i,a;for(i=new oz(YO(ldt(n).a.Kc(),new u));AIt(i);)h5(r=Q$(K5(i),17))||!h5(r)&&r.c.i.c==r.d.i.c||(a=KOt(t,r,n,new av)).c.length>1&&(e.c[e.c.length]=a)}function EBt(t){var e,n,r;for(Qit(n=new Wx,t.o),r=new ov;0!=n.b;)XGt(t,e=Q$(0==n.b?null:(EF(0!=n.b),Let(n,n.a.a)),508),!0)&&G$(r.a,e);for(;0!=r.a.c.length;)XGt(t,e=Q$(tut(r),508),!1)}function TBt(){TBt=L,vEe=new L_(lJt,0),fEe=new L_("BOOLEAN",1),pEe=new L_("INT",2),bEe=new L_("STRING",3),dEe=new L_("DOUBLE",4),AEe=new L_("ENUM",5),gEe=new L_("ENUMSET",6),mEe=new L_("OBJECT",7)}function BBt(t,n){var r,i,a,o,s;i=e.Math.min(t.c,n.c),o=e.Math.min(t.d,n.d),(a=e.Math.max(t.c+t.b,n.c+n.b))<i&&(r=i,i=a,a=r),(s=e.Math.max(t.d+t.a,n.d+n.a))<o&&(r=o,o=s,s=r),OH(t,i,o,a-i,s-o)}function _Bt(){_Bt=L,WMe=Tst(Hw(Wee,1),cWt,2,6,[d9t,A9t,g9t,p9t,m9t,b9t,Z6t]),VMe=Tst(Hw(Wee,1),cWt,2,6,[d9t,"empty",A9t,P7t,"elementOnly"]),YMe=Tst(Hw(Wee,1),cWt,2,6,[d9t,"preserve","replace",v9t]),qMe=new xH}function SBt(t,e,n){var r,i,a;if(e!=n){r=e;do{KP(t,r.c),(i=r.e)&&(PF(t,(a=r.d).b,a.d),KP(t,i.n),r=pV(i))}while(i);r=n;do{zP(t,r.c),(i=r.e)&&(QF(t,(a=r.d).b,a.d),zP(t,i.n),r=pV(i))}while(i)}}function LBt(t,e,n,r){var i,a,o,s,c;if(r.f.c+r.g.c==0)for(s=0,c=(o=t.a[t.c]).length;s<c;++s)XV(r,a=o[s],new yat(t,a,n));return(i=Q$($S(SY(r.f,e)),663)).b=0,i.c=i.f,0==i.c||kd(Q$(Oj(i.a,i.b),287)),i}function IBt(){IBt=L,Yle=new yB("MEDIAN_LAYER",0),Zle=new yB("TAIL_LAYER",1),qle=new yB("HEAD_LAYER",2),Jle=new yB("SPACE_EFFICIENT_LAYER",3),tue=new yB("WIDEST_LAYER",4),Wle=new yB("CENTER_LAYER",5)}function MBt(t){switch(t.g){case 0:case 1:case 2:return yGt(),sSe;case 3:case 4:case 5:return yGt(),xSe;case 6:case 7:case 8:return yGt(),TSe;case 9:case 10:case 11:return yGt(),oSe;default:return yGt(),ESe}}function OBt(t,e){var n;return 0!=t.c.length&&(n=tgt((u1(0,t.c.length),Q$(t.c[0],17)).c.i),QZ(),n==(fbt(),lbe)||n==cbe||o5(LW(new Fj(null,new f1(t,16)),new Ua),new ep(e)))}function DBt(t,e,n){var r,i,a;if(!t.b[e.g]){for(t.b[e.g]=!0,!(r=n)&&(r=new E6),DH(r.b,e),a=t.a[e.g].Kc();a.Ob();)(i=Q$(a.Pb(),188)).b!=e&&DBt(t,i.b,r),i.c!=e&&DBt(t,i.c,r),DH(r.a,i);return r}return null}function FBt(){FBt=L,Vye=new u_("ROOT_PROC",0),Kye=new u_("FAN_PROC",1),Gye=new u_("NEIGHBORS_PROC",2),zye=new u_("LEVEL_HEIGHT",3),Xye=new u_("NODE_POSITION_PROC",4),jye=new u_("DETREEIFYING_PROC",5)}function NBt(t,e){if(rO(e,239))return jI(t,Q$(e,33));if(rO(e,186))return KI(t,Q$(e,118));if(rO(e,439))return HI(t,Q$(e,202));throw Um(new Py(K6t+MEt(new qy(Tst(Hw(Lte,1),$Vt,1,5,[e])))))}function PBt(t,e,n){var r,i;if(this.f=t,f6(n,i=(r=Q$(FX(t.b,e),283))?r.a:0),n>=(i/2|0))for(this.e=r?r.c:null,this.d=i;n++<i;)kZ(this);else for(this.c=r?r.b:null;n-- >0;)wZ(this);this.b=e,this.a=null}function RBt(t,e){var n,r;e.a?KDt(t,e):(!!(n=Q$(vR(t.b,e.b),57))&&n==t.a[e.b.f]&&!!n.a&&n.a!=e.b.a&&n.c.Fc(e.b),!!(r=Q$(bR(t.b,e.b),57))&&t.a[r.f]==e.b&&!!r.a&&r.a!=e.b.a&&e.b.c.Fc(r),CD(t.b,e.b))}function QBt(t,e){var n,r;if(n=Q$(oW(t.b,e),124),Q$(Q$(c6(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((bgt(),PSe))&&vPt(t,e),r=Gmt(t,e),TNt(t,e)==(imt(),Q_e)&&(r+=2*t.w),n.a.a=r}function UBt(t,e){var n,r;if(n=Q$(oW(t.b,e),124),Q$(Q$(c6(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((bgt(),PSe))&&yPt(t,e),r=Xmt(t,e),TNt(t,e)==(imt(),Q_e)&&(r+=2*t.w),n.a.b=r}function $Bt(t,e){var n,r,i,a;for(a=new Mm,r=new Gd(e);r.a<r.c.c.length;)G$(a,new FT(n=Q$(J1(r),65),!0)),G$(a,new FT(n,!1));my((i=new cY(t)).a.a),t2(a,t.b,new qy(Tst(Hw(ore,1),$Vt,679,0,[i])))}function HBt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A;return s=t.a,h=t.b,c=e.a,f=e.b,l=n.a,d=n.b,new O_(((a=s*f-h*c)*(l-(u=r.a))-(o=l*(A=r.b)-d*u)*(s-c))/(i=(s-c)*(d-A)-(h-f)*(l-u)),(a*(d-A)-o*(h-f))/i)}function jBt(t,e){var n,r,i;if(!t.d[e.p]){for(t.d[e.p]=!0,t.a[e.p]=!0,r=new oz(YO(hdt(e).a.Kc(),new u));AIt(r);)h5(n=Q$(K5(r),17))||(i=n.d.i,t.a[i.p]?G$(t.b,n):jBt(t,i));t.a[e.p]=!1}}function KBt(t,e,n){var r;switch(r=0,Q$(bEt(e,($Xt(),vpe)),163).g){case 2:r=2*-n+t.a,++t.a;break;case 1:r=-n;break;case 3:r=n;break;case 4:r=2*n+t.b,++t.b}return IF(e,(lVt(),ffe))&&(r+=Q$(bEt(e,ffe),19).a),r}function zBt(t,e,n){var r,i,a;for(n.zc(e,t),G$(t.n,e),a=t.p.eg(e),e.j==t.p.fg()?Sdt(t.e,a):Sdt(t.j,a),nX(t),i=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[new UA(e),new HA(e)])));AIt(i);)r=Q$(K5(i),11),n._b(r)||zBt(t,r,n)}function GBt(t){var e,n;return Q$(JIt(t,(cVt(),NTe)),21).Hc((bgt(),DSe))?(n=Q$(JIt(t,$Te),21),e=new fI(Q$(JIt(t,QTe),8)),n.Hc((ZRt(),HSe))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e):new Hk}function XBt(t){var e,n,r;if(!t.b){for(r=new _c,n=new iF(N$t(t));n.e!=n.i.gc();)(e=Q$(wmt(n),18)).Bb&l6t&&l7(r,e);iut(r),t.b=new ML((Q$(Xet(Vq((VX(),JIe).o),8),18),r.i),r.g),E5(t).b&=-9}return t.b}function VBt(t,e){var n,r,i,a,o,s;o=Q$(kvt(Az(e.k),O8(RSe,qZt,61,2,0,1)),122),Jvt(t,s=e.g,n=o3(e,o[0]),r=a3(e,o[1]))<=Jvt(t,s,i=o3(e,o[1]),a=a3(e,o[0]))?(e.a=n,e.c=r):(e.a=i,e.c=a)}function WBt(t,e,n){var r,i,a;for(Sxt(n,"Processor set neighbors",1),t.a=0==e.b.b?1:e.b.b,i=null,r=cmt(e.b,0);!i&&r.b!=r.d.c;)$y(kN(bEt(a=Q$(h3(r),86),(Hjt(),dwe))))&&(i=a);i&&MNt(t,new hp(i),n),$Tt(n)}function qBt(t){var e,n,r,i;return NHt(),e=-1==(r=HL(t,qxt(35)))?t:t.substr(0,r),n=-1==r?null:t.substr(r+1),(i=X3(yIe,e))?null!=n&&(i=Blt(i,(vV(n),n))):(i=XXt(e),i5(yIe,e,i),null!=n&&(i=Blt(i,n))),i}function YBt(t){var e,n,r,i,a,o,s;if(xq(),rO(t,54))for(a=0,i=t.gc()-1;a<i;++a,--i)e=t.Xb(a),t._c(a,t.Xb(i)),t._c(i,e);else for(n=t.Yc(),o=t.Zc(t.gc());n.Tb()<o.Vb();)r=n.Pb(),s=o.Ub(),n.Wb(s),o.Wb(r)}function JBt(t,e){var n,r,i;Sxt(e,"End label pre-processing",1),n=Hy(CN(bEt(t,($Xt(),yme)))),r=Hy(CN(bEt(t,xme))),i=AI(Q$(bEt(t,Kge),103)),qx(ftt(new Fj(null,new f1(t.b,16)),new un),new DQ(n,r,i)),$Tt(e)}function ZBt(t,e){var n,r,i,a,o,s;for(s=0,d3(a=new Im,e);a.b!=a.c;)for(s+=cyt((o=Q$(dG(a),214)).d,o.e),i=new Gd(o.b);i.a<i.c.c.length;)r=Q$(J1(i),37),(n=Q$(Oj(t.b,r.p),214)).s||(s+=ZBt(t,n));return s}function t_t(t,n,r){var i,a;Rot(this),n==(dJ(),Iye)?kG(this.r,t.c):kG(this.w,t.c),kG(r==Iye?this.r:this.w,t.d),tBt(this,t),GEt(this,i=Tut(t.c),a=Tut(t.d),a),this.o=(gFt(),e.Math.abs(i-a)<.2)}function e_t(t,e,n){var r,i,a,o,s;if(null!=(o=Q$(vot(t.a,8),1936)))for(i=0,a=o.length;i<a;++i)null.jm();r=n,1&t.a.Db||(s=new aV(t,n,e),r.ui(s)),rO(r,672)?Q$(r,672).wi(t.a):r.ti()==t.a&&r.vi(null)}function n_t(){var t;return qOe?Q$(IMt((GE(),HIe),E9t),1945):(cGt(),t=Q$(rO(xJ((GE(),HIe),E9t),586)?xJ(HIe,E9t):new jV,586),qOe=!0,gXt(t),pVt(t),XV((XE(),qIe),t,new Rl),Cyt(t),mZ(HIe,E9t,t),t)}function r_t(t,e,n,r){var i;return(i=Kxt(t,n,Tst(Hw(Wee,1),cWt,2,6,[fqt,dqt,Aqt,gqt,pqt,mqt,bqt]),e))<0&&(i=Kxt(t,n,Tst(Hw(Wee,1),cWt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),!(i<0||(r.d=i,0))}function i_t(t,e,n,r){var i;return(i=Kxt(t,n,Tst(Hw(Wee,1),cWt,2,6,[fqt,dqt,Aqt,gqt,pqt,mqt,bqt]),e))<0&&(i=Kxt(t,n,Tst(Hw(Wee,1),cWt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),!(i<0||(r.d=i,0))}function a_t(t){var e,n,r;for(RMt(t),r=new Mm,n=new Gd(t.a.a.b);n.a<n.c.c.length;)G$(r,new lB(e=Q$(J1(n),81),!0)),G$(r,new lB(e,!1));Zbt(t.c),e2(r,t.b,new qy(Tst(Hw(qoe,1),$Vt,369,0,[t.c]))),mIt(t)}function o_t(t){var e,n,r,i;for(n=new Om,i=new Gd(t.d);i.a<i.c.c.length;)r=Q$(J1(i),181),e=Q$(r.We((lVt(),Khe)),17),SY(n.f,e)||XV(n,e,new kq(e)),G$(Q$($S(SY(n.f,e)),456).b,r);return new ZR(new _d(n))}function s_t(t,e){var n,r,i,a,o;for(r=new d1(t.j.c.length),n=null,a=new Gd(t.j);a.a<a.c.c.length;)(i=Q$(J1(a),11)).j!=n&&(r.b==r.c||QMt(r,n,e),o4(r),n=i.j),(o=bIt(i))&&f3(r,o);r.b==r.c||QMt(r,n,e)}function c_t(t,e){var n,r;for(r=new C2(t.b,0);r.b<r.d.gc();)EF(r.b<r.d.gc()),n=Q$(r.d.Xb(r.c=r.b++),70),Q$(bEt(n,($Xt(),Wge)),272)==(Net(),KBe)&&(lV(r),G$(e.b,n),IF(n,(lVt(),Khe))||lct(n,Khe,t))}function l_t(t){var n,r,i;for(n=R3(new oz(YO(hdt(t).a.Kc(),new u))),r=new oz(YO(udt(t).a.Kc(),new u));AIt(r);)i=R3(new oz(YO(hdt(Q$(K5(r),17).c.i).a.Kc(),new u))),n=e.Math.max(n,i);return nft(n)}function u_t(t,e,n){var r,i,a,o;for(Sxt(n,"Processor arrange node",1),i=null,a=new Wx,r=cmt(e.b,0);!i&&r.b!=r.d.c;)$y(kN(bEt(o=Q$(h3(r),86),(Hjt(),dwe))))&&(i=o);n5(a,i,a.c.b,a.c),qzt(t,a,bat(n,1)),$Tt(n)}function h_t(t,e,n){var r,i,a;r=Q$(JIt(t,(cVt(),cTe)),21),i=0,a=0,e.a>n.a&&(r.Hc((dCt(),GEe))?i=(e.a-n.a)/2:r.Hc(VEe)&&(i=e.a-n.a)),e.b>n.b&&(r.Hc((dCt(),qEe))?a=(e.b-n.b)/2:r.Hc(WEe)&&(a=e.b-n.b)),hEt(t,i,a)}function f_t(t,e,n,r,i,a,o,s,c,l,u,h,f){rO(t.Cb,88)&&L_t(E5(Q$(t.Cb,88)),4),Oit(t,n),t.f=o,Ift(t,s),Oft(t,c),Lft(t,l),Mft(t,u),Zht(t,h),Hft(t,f),qht(t,!0),Mnt(t,i),t.ok(a),_ut(t,e),null!=r&&(t.i=null,ait(t,r))}function d_t(t){var e,n;if(t.f){for(;t.n>0;){if(rO(n=(e=Q$(t.k.Xb(t.n-1),72)).ak(),99)&&Q$(n,18).Bb&l6t&&(!t.e||n.Gj()!=ILe||0!=n.aj())&&null!=e.dd())return!0;--t.n}return!1}return t.n>0}function A_t(t,e,n){if(t<0)return IPt(UVt,Tst(Hw(Lte,1),$Vt,1,5,[n,nft(t)]));if(e<0)throw Um(new Py(HVt+e));return IPt("%s (%s) must not be greater than size (%s)",Tst(Hw(Lte,1),$Vt,1,5,[n,nft(t),nft(e)]))}function g_t(t,e,n,r,i,a){var o,s,c;if(r-n<7)Idt(e,n,r,a);else if(g_t(e,t,s=n+i,c=s+((o=r+i)-s>>1),-i,a),g_t(e,t,c,o,-i,a),a.ue(t[c-1],t[c])<=0)for(;n<r;)LX(e,n++,t[s++]);else jht(t,s,c,o,e,n,r,a)}function p_t(t,e){var n,r,i;for(i=new Mm,r=new Gd(t.c.a.b);r.a<r.c.c.length;)n=Q$(J1(r),57),e.Lb(n)&&(G$(i,new _T(n,!0)),G$(i,new _T(n,!1)));Jbt(t.e),t2(i,t.d,new qy(Tst(Hw(ore,1),$Vt,679,0,[t.e])))}function m_t(t,e){var n,r,i,a,o,s,c;for(c=e.d,i=e.b.j,s=new Gd(c);s.a<s.c.c.length;)for(o=Q$(J1(s),101),a=O8(SDe,JYt,25,i.c.length,16,1),XV(t.b,o,a),n=o.a.d.p-1,r=o.c.d.p;n!=r;)a[n=(n+1)%i.c.length]=!0}function b_t(t,e){for(t.r=new Qot(t.p),qf(t.r,t),Qit(t.r.j,t.j),bq(t.j),DH(t.j,e),DH(t.r.e,e),nX(t),nX(t.r);0!=t.f.c.length;)HM(Q$(Oj(t.f,0),129));for(;0!=t.k.c.length;)HM(Q$(Oj(t.k,0),129));return t.r}function v_t(t,e,n){var r,i,a;if(i=eet(t.Tg(),e),(r=e-t.Ah())<0){if(!i)throw Um(new Py(s6t+e+c6t));if(!i.Ij())throw Um(new Py(r6t+i.ne()+i6t));(a=t.Yg(i))>=0?t.sh(a,n):COt(t,i,n)}else Mdt(t,r,i,n)}function y_t(t){var e,n,r,i;if(n=Q$(t,49).qh())try{if(r=null,(e=IMt((GE(),HIe),xQt(Rdt(n))))&&(i=e.rh())&&(r=i.Wk(zy(n.e))),r&&r!=t)return y_t(r)}catch(t){if(!rO(t=hst(t),60))throw Um(t)}return t}function w_t(t,e,n){var r,i,a,o;if(o=null==e?0:t.b.se(e),0==(i=null==(r=t.a.get(o))?new Array:r).length)t.a.set(o,i);else if(a=lut(t,e,i))return a.ed(n);return LX(i,i.length,new ET(e,n)),++t.c,oY(t.b),null}function k_t(t,e){var n;return c2(t.a),TG(t.a,(Tit(),Vwe),Vwe),TG(t.a,Wwe,Wwe),dj(n=new Q2,Wwe,(Bdt(),tke)),HS(JIt(e,(zyt(),xke)))!==HS(($lt(),ske))&&dj(n,Wwe,Jwe),dj(n,Wwe,Zwe),iI(t.a,n),Ijt(t.a,e)}function C_t(t){if(!t)return uw(),lee;var n=t.valueOf?t.valueOf():t;if(n!==t){var r=uee[typeof n];return r?r(n):yut(typeof n)}return t instanceof Array||t instanceof e.Array?new kf(t):new Ef(t)}function x_t(t,n,r){var i,a,o;switch(o=t.o,(a=(i=Q$(oW(t.p,r),244)).i).b=ESt(i),a.a=xSt(i),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,r.g){case 1:a.d=-a.a;break;case 3:a.d=o.b}RUt(i),jUt(i)}function E_t(t,n,r){var i,a,o;switch(o=t.o,(a=(i=Q$(oW(t.p,r),244)).i).b=ESt(i),a.a=xSt(i),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,r.g){case 4:a.c=-a.b;break;case 2:a.c=o.a}RUt(i),jUt(i)}function T_t(t,e){var n,r,i,a,o;if(!e.dc())if(i=Q$(e.Xb(0),128),1!=e.gc())for(n=1;n<e.gc();)!i.j&&i.o||(a=myt(e,n))&&(r=Q$(a.a,19).a,yFt(t,i,o=Q$(a.b,128),n,r,e),n=r+1,i=o);else yFt(t,i,i,1,0,e)}function B_t(t){var e,n,r,i;for(mM(i=new ZR(t.d),new zi),yNt(),e=Tst(Hw(eue,1),IWt,270,0,[Qle,Hle,Rle,zle,$le,Ule,Kle,jle]),n=0,r=new Gd(i);r.a<r.c.c.length;)BLt(Q$(J1(r),101),e[n%e.length]),++n}function __t(t,e){var n,r,i,a;if(wNt(),e.b<2)return!1;for(r=n=Q$(h3(a=cmt(e,0)),8);a.b!=a.d.c;){if(i=Q$(h3(a),8),!Fat(t,r)||!Fat(t,i))return!1;r=i}return!(!Fat(t,r)||!Fat(t,n))}function S_t(t,e){var n,r,i,a,o;return n=Nnt(o=t,"x"),J9(new $p(e).a,n),r=Nnt(o,"y"),Z9(new Hp(e).a,r),i=Nnt(o,B6t),ttt(new jp(e).a,i),a=Nnt(o,T6t),ett(new Kp(e).a,a),a}function L_t(t,e){APt(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 I_t(t,e){var n,r;if(r=0,e.length>0)try{r=hQt(e,RWt,FVt)}catch(t){throw rO(t=hst(t),127)?Um(new I9(t)):Um(t)}return!t.a&&(t.a=new xm(t)),r<(n=t.a).i&&r>=0?Q$(Xet(n,r),56):null}function M_t(t,e){if(t<0)return IPt(UVt,Tst(Hw(Lte,1),$Vt,1,5,["index",nft(t)]));if(e<0)throw Um(new Py(HVt+e));return IPt("%s (%s) must be less than size (%s)",Tst(Hw(Lte,1),$Vt,1,5,["index",nft(t),nft(e)]))}function O_t(t){var e,n,r,i,a;if(null==t)return KVt;for(a=new Iot(QVt,"[","]"),r=0,i=(n=t).length;r<i;++r)e=n[r],a.a?oL(a.a,a.b):a.a=new uD(a.d),iL(a.a,""+e);return a.a?0==a.e.length?a.a.a:a.a.a+""+a.e:a.c}function D_t(t){var e,n,r,i,a;if(null==t)return KVt;for(a=new Iot(QVt,"[","]"),r=0,i=(n=t).length;r<i;++r)e=n[r],a.a?oL(a.a,a.b):a.a=new uD(a.d),iL(a.a,""+e);return a.a?0==a.e.length?a.a.a:a.a.a+""+a.e:a.c}function F_t(t){var e,n,r,i,a;if(null==t)return KVt;for(a=new Iot(QVt,"[","]"),r=0,i=(n=t).length;r<i;++r)e=n[r],a.a?oL(a.a,a.b):a.a=new uD(a.d),iL(a.a,""+e);return a.a?0==a.e.length?a.a.a:a.a.a+""+a.e:a.c}function N_t(t){var e,n,r,i,a;if(null==t)return KVt;for(a=new Iot(QVt,"[","]"),r=0,i=(n=t).length;r<i;++r)e=n[r],a.a?oL(a.a,a.b):a.a=new uD(a.d),iL(a.a,""+e);return a.a?0==a.e.length?a.a.a:a.a.a+""+a.e:a.c}function P_t(t,e){var n,r,i,a,o,s;for(n=t.b.c.length,i=Oj(t.b,e);2*e+1<n&&(s=a=2*e+1,(o=a+1)<n&&t.a.ue(Oj(t.b,o),Oj(t.b,a))<0&&(s=o),r=s,!(t.a.ue(i,Oj(t.b,r))<0));)r5(t.b,e,Oj(t.b,r)),e=r;r5(t.b,e,i)}function R_t(t,n,r,i,a,o){var s,c,l,u,h;for(HS(t)===HS(r)&&(t=t.slice(n,n+a),n=0),l=r,c=n,u=n+a;c<u;)a=(s=e.Math.min(c+1e4,u))-c,(h=t.slice(c,s)).splice(0,0,i,o?a:0),Array.prototype.splice.apply(l,h),c=s,i+=a}function Q_t(t,e,n){var r,i;return r=n.d,i=n.e,t.g[r.d]<=t.i[e.d]&&t.i[e.d]<=t.i[r.d]&&t.g[i.d]<=t.i[e.d]&&t.i[e.d]<=t.i[i.d]?!(t.i[r.d]<t.i[i.d]):t.i[r.d]<t.i[i.d]}function U_t(t){var e,n,r,i,a,o,s;if((r=t.a.c.length)>0)for(o=t.c.d,i=vO(zP(new O_((s=t.d.d).a,s.b),o),1/(r+1)),a=new O_(o.a,o.b),n=new Gd(t.a);n.a<n.c.c.length;)(e=Q$(J1(n),559)).d.a=a.a,e.d.b=a.b,KP(a,i)}function $_t(t,n,r){var i,a,o,s,c,l;for(l=Nqt,o=new Gd(jOt(t.b));o.a<o.c.c.length;)for(a=Q$(J1(o),168),c=new Gd(jOt(n.b));c.a<c.c.c.length;)s=Q$(J1(c),168),i=Bst(a.a,a.b,s.a,s.b,r),l=e.Math.min(l,i);return l}function H_t(t,e){if(!e)throw Um(new Ab);if(t.j=e,!t.d)switch(t.j.g){case 1:t.a.a=t.o.a/2,t.a.b=0;break;case 2:t.a.a=t.o.a,t.a.b=t.o.b/2;break;case 3:t.a.a=t.o.a/2,t.a.b=t.o.b;break;case 4:t.a.a=0,t.a.b=t.o.b/2}}function j_t(t,n){var r,i;return rO(n.g,10)&&Q$(n.g,10).k==(oTt(),Cse)?Nqt:l3(n)?e.Math.max(0,t.b/2-.5):(r=l2(n))?(i=Hy(CN(egt(r,($Xt(),_me)))),e.Math.max(0,i/2-.5)):Nqt}function K_t(t,n){var r,i;return rO(n.g,10)&&Q$(n.g,10).k==(oTt(),Cse)?Nqt:l3(n)?e.Math.max(0,t.b/2-.5):(r=l2(n))?(i=Hy(CN(egt(r,($Xt(),_me)))),e.Math.max(0,i/2-.5)):Nqt}function z_t(t){var e,n,r,i;for(i=Mht(t.d,t.e).Kc();i.Ob();)for(r=Q$(i.Pb(),11),n=new Gd(t.e==(yGt(),TSe)?r.e:r.g);n.a<n.c.c.length;)h5(e=Q$(J1(n),17))||e.c.i.c==e.d.i.c||(NTt(t,e),++t.f,++t.c)}function G_t(t,e){var n,r;if(e.dc())return xq(),xq(),cne;for(G$(r=new Mm,nft(RWt)),n=1;n<t.f;++n)null==t.a&&dPt(t),t.a[n]&&G$(r,nft(n));return 1==r.c.length?(xq(),xq(),cne):(G$(r,nft(FVt)),A$t(e,r))}function X_t(t,e){var n,r,i,a,o,s;n=iwt(e,s=e.c.i.k!=(oTt(),Tse)?e.d:e.c).i,i=Q$(FX(t.k,s),121),r=t.i[n.p].a,SR(s.i)<(n.c?w9(n.c.a,n,0):-1)?(a=i,o=r):(a=r,o=i),zDt(iE(rE(aE(nE(new Ub,0),4),a),o))}function V_t(t,e,n){var r,i,a;if(n)for(i=((r=new cz(n.a.length)).b-r.a)*r.c<0?(tT(),kDe):new zO(r);i.Ob();)(a=Lvt(t,ySt(dtt(n,Q$(i.Pb(),19).a))))&&(!e.b&&(e.b=new cR(FLe,e,4,7)),l7(e.b,a))}function W_t(t,e,n){var r,i,a;if(n)for(i=((r=new cz(n.a.length)).b-r.a)*r.c<0?(tT(),kDe):new zO(r);i.Ob();)(a=Lvt(t,ySt(dtt(n,Q$(i.Pb(),19).a))))&&(!e.c&&(e.c=new cR(FLe,e,5,8)),l7(e.c,a))}function q_t(t,e,n){var r,i;r=e.a&t.f,e.b=t.b[r],t.b[r]=e,i=e.f&t.f,e.d=t.c[i],t.c[i]=e,n?(e.e=n.e,e.e?e.e.c=e:t.a=e,e.c=n.c,e.c?e.c.e=e:t.e=e):(e.e=t.e,e.c=null,t.e?t.e.c=e:t.a=e,t.e=e),++t.i,++t.g}function Y_t(t){var e,n,r;if(e=t.Pb(),!t.Ob())return e;for(r=aL(oL(new Tw,"expected one element but was: <"),e),n=0;n<4&&t.Ob();n++)aL((r.a+=QVt,r),t.Pb());throw t.Ob()&&(r.a+=", ..."),r.a+=">",Um(new Py(r.a))}function J_t(t,e){var n;e.d?e.d.b=e.b:t.a=e.b,e.b?e.b.d=e.d:t.e=e.d,e.e||e.c?(--(n=Q$(FX(t.b,e.a),283)).a,e.e?e.e.c=e.c:n.b=e.c,e.c?e.c.e=e.e:n.c=e.e):((n=Q$(p6(t.b,e.a),283)).a=0,++t.c),--t.d}function Z_t(t){var e,n;return n=-t.a,e=Tst(Hw(BDe,1),XWt,25,15,[43,48,48,48,48]),n<0&&(e[0]=45,n=-n),e[1]=e[1]+((n/60|0)/10|0)&WWt,e[2]=e[2]+(n/60|0)%10&WWt,e[3]=e[3]+(n%60/10|0)&WWt,e[4]=e[4]+n%10&WWt,Ugt(e,0,e.length)}function tSt(t,e,n){var r,i;for(r=e.d,i=n.d;r.a-i.a==0&&r.b-i.b==0;)r.a+=$Mt(t,26)*rYt+$Mt(t,27)*iYt-.5,r.b+=$Mt(t,26)*rYt+$Mt(t,27)*iYt-.5,i.a+=$Mt(t,26)*rYt+$Mt(t,27)*iYt-.5,i.b+=$Mt(t,26)*rYt+$Mt(t,27)*iYt-.5}function eSt(t){var e,n,r,i;for(t.g=new $dt(Q$(bX(RSe),290)),r=0,yGt(),n=sSe,e=0;e<t.j.c.length;e++)(i=Q$(Oj(t.j,e),11)).j!=n&&(r!=e&&mK(t.g,n,new nS(nft(r),nft(e))),n=i.j,r=e);mK(t.g,n,new nS(nft(r),nft(e)))}function nSt(t){var e,n,r,i,a;for(n=0,e=new Gd(t.b);e.a<e.c.c.length;)for(i=new Gd(Q$(J1(e),29).a);i.a<i.c.c.length;)for((r=Q$(J1(i),10)).p=n++,a=new Gd(r.j);a.a<a.c.c.length;)Q$(J1(a),11).p=n++}function rSt(t,e,n,r,i){var a,o,s,c;if(e)for(o=e.Kc();o.Ob();)for(c=iPt(Q$(o.Pb(),10),(art(),$be),n).Kc();c.Ob();)s=Q$(c.Pb(),11),(a=Q$($S(SY(i.f,s)),112))||(a=new Qot(t.d),r.c[r.c.length]=a,zBt(a,s,i))}function iSt(t,e){var n,r,i;if(!(i=Qjt((_Bt(),qMe),t.Tg(),e)))throw Um(new Py(r6t+e.ne()+i6t));YE(),Q$(i,66).Oj()||(i=Y1(Q9(qMe,i))),r=Q$((n=t.Yg(i))>=0?t._g(n,!0,!0):iLt(t,i,!0),153),Q$(r,215).ol(e)}function aSt(t){var n,r;return t>-0x800000000000&&t<0x800000000000?0==t?0:((n=t<0)&&(t=-t),r=TJ(e.Math.floor(e.Math.log(t)/.6931471805599453)),(!n||t!=e.Math.pow(2,r))&&++r,r):Vot(uot(t))}function oSt(t){var e,n,r,i,a,o,s;for(a=new lI,n=new Gd(t);n.a<n.c.c.length;)o=(e=Q$(J1(n),129)).a,s=e.b,a.a._b(o)||a.a._b(s)||(i=o,r=s,o.e.b+o.j.b>2&&s.e.b+s.j.b<=2&&(i=s,r=o),a.a.zc(i,a),i.q=r);return a}function sSt(t,e){var n,r,i;return Hot(r=new Ibt(t),e),lct(r,(lVt(),Xhe),e),lct(r,($Xt(),tme),(WCt(),z_e)),lct(r,vge,(dbt(),_Ee)),Qf(r,(oTt(),Cse)),TZ(n=new BTt,r),H_t(n,(yGt(),TSe)),TZ(i=new BTt,r),H_t(i,oSe),r}function cSt(t){switch(t.g){case 0:return new My((srt(),_ve));case 1:return new fh;case 2:return new vh;default:throw Um(new Py("No implementation is available for the crossing minimizer "+(null!=t.f?t.f:""+t.g)))}}function lSt(t,e){var n,r,i,a;for(t.c[e.p]=!0,G$(t.a,e),a=new Gd(e.j);a.a<a.c.c.length;)for(n=new m6((i=Q$(J1(a),11)).b);bM(n.a)||bM(n.b);)r=Zgt(i,Q$(bM(n.a)?J1(n.a):J1(n.b),17)).i,t.c[r.p]||lSt(t,r)}function uSt(t){var n,r,i,a,o,s,c;for(s=0,r=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));r.e!=r.i.gc();)c=(n=Q$(ymt(r),33)).g,a=n.f,i=e.Math.sqrt(c*c+a*a),s=e.Math.max(i,s),o=uSt(n),s=e.Math.max(o,s);return s}function hSt(){hSt=L,nSe=new z_("OUTSIDE",0),tSe=new z_("INSIDE",1),eSe=new z_("NEXT_TO_PORT_IF_POSSIBLE",2),Z_e=new z_("ALWAYS_SAME_SIDE",3),J_e=new z_("ALWAYS_OTHER_SAME_SIDE",4),rSe=new z_("SPACE_EFFICIENT",5)}function fSt(t,e,n){var r,i,a,o;return Irt(r=N2(t,(Zk(),i=new yv,!!n&&ZOt(i,n),i),e),F2(e,H6t)),Ext(e,r),sMt(e,r),S_t(e,r),a=M2(e,"ports"),TOt((o=new gS(t,r)).a,o.b,a),Dct(t,e,r),ast(t,e,r),r}function dSt(t){var e,n;return n=-t.a,e=Tst(Hw(BDe,1),XWt,25,15,[43,48,48,58,48,48]),n<0&&(e[0]=45,n=-n),e[1]=e[1]+((n/60|0)/10|0)&WWt,e[2]=e[2]+(n/60|0)%10&WWt,e[4]=e[4]+(n%60/10|0)&WWt,e[5]=e[5]+n%10&WWt,Ugt(e,0,e.length)}function ASt(t){var e;return e=Tst(Hw(BDe,1),XWt,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)&WWt,e[5]=e[5]+(t/60|0)%10&WWt,e[7]=e[7]+(t%60/10|0)&WWt,e[8]=e[8]+t%10&WWt,Ugt(e,0,e.length)}function gSt(t){var e,n,r,i,a;if(null==t)return KVt;for(a=new Iot(QVt,"[","]"),r=0,i=(n=t).length;r<i;++r)e=n[r],a.a?oL(a.a,a.b):a.a=new uD(a.d),iL(a.a,""+pz(e));return a.a?0==a.e.length?a.a.a:a.a.a+""+a.e:a.c}function pSt(t,n){var r,i,a;for(a=FVt,i=new Gd(ydt(n));i.a<i.c.c.length;)(r=Q$(J1(i),213)).f&&!t.c[r.c]&&(t.c[r.c]=!0,a=e.Math.min(a,pSt(t,Odt(r,n))));return t.i[n.d]=t.j,t.g[n.d]=e.Math.min(a,t.j++),t.g[n.d]}function mSt(t,e){var n,r,i;for(i=Q$(Q$(c6(t.r,e),21),84).Kc();i.Ob();)(r=Q$(i.Pb(),111)).e.b=(n=r.b).Xe((cVt(),iBe))?n.Hf()==(yGt(),sSe)?-n.rf().b-Hy(CN(n.We(iBe))):Hy(CN(n.We(iBe))):n.Hf()==(yGt(),sSe)?-n.rf().b:0}function bSt(t){var e,n,r,i,a,o,s;for(n=VI(t.e),a=vO(QF(QM(XI(t.e)),t.d*t.a,t.c*t.b),-.5),e=n.a-a.a,i=n.b-a.b,s=0;s<t.c;s++){for(r=e,o=0;o<t.d;o++)Xdt(t.e,new KW(r,i,t.a,t.b))&&QPt(t,o,s,!1,!0),r+=t.a;i+=t.b}}function vSt(t){var e,n,r;if($y(kN(JIt(t,(cVt(),xTe))))){for(r=new Mm,n=new oz(YO(AOt(t).a.Kc(),new u));AIt(n);)WSt(e=Q$(K5(n),79))&&$y(kN(JIt(e,ETe)))&&(r.c[r.c.length]=e);return r}return xq(),xq(),cne}function ySt(t){var e;if(e=!1,rO(t,204))return e=!0,Q$(t,204).a;if(!e&&rO(t,258)&&Q$(t,258).a%1==0)return e=!0,nft(VL(Q$(t,258).a));throw Um(new tw("Id must be a string or an integer: '"+t+"'."))}function wSt(t,e){var n,r,i,a,o,s;for(a=null,i=new nG((!t.a&&(t.a=new xm(t)),t.a));fLt(i);)if(q$t(o=(n=Q$(aOt(i),56)).Tg()),null!=(r=(s=o.o)&&n.mh(s)?gR(ost(s),n.ah(s)):null)&&mR(r,e)){a=n;break}return a}function kSt(t,e,n){var r,i,a,o,s;if(hrt(n,"occurrences"),0==n)return(s=Q$(hht(_q(t.a),e),14))?s.gc():0;if(!(o=Q$(hht(_q(t.a),e),14)))return 0;if(n>=(a=o.gc()))o.$b();else for(i=o.Kc(),r=0;r<n;r++)i.Pb(),i.Qb();return a}function CSt(t,e,n){var r,i,a;return hrt(n,"oldCount"),hrt(0,"newCount"),((r=Q$(hht(_q(t.a),e),14))?r.gc():0)==n&&(hrt(0,"count"),(a=-((i=Q$(hht(_q(t.a),e),14))?i.gc():0))>0?fw():a<0&&kSt(t,e,-a),!0)}function xSt(t){var e,n,r,i,a,o;if(o=0,0==t.b){for(e=0,i=0,a=(r=Gbt(t,!0)).length;i<a;++i)(n=r[i])>0&&(o+=n,++e);e>1&&(o+=t.c*(e-1))}else o=Nw(eat(IW(SW(IG(t.a),new xt),new Et)));return o>0?o+t.n.d+t.n.a:0}function ESt(t){var e,n,r,i,a,o;if(o=0,0==t.b)o=Nw(eat(IW(SW(IG(t.a),new kt),new Ct)));else{for(e=0,i=0,a=(r=Xbt(t,!0)).length;i<a;++i)(n=r[i])>0&&(o+=n,++e);e>1&&(o+=t.c*(e-1))}return o>0?o+t.n.b+t.n.c:0}function TSt(t,n){var r,i,a,o;for(r=(o=Q$(oW(t.b,n),124)).a,a=Q$(Q$(c6(t.r,n),21),84).Kc();a.Ob();)(i=Q$(a.Pb(),111)).c&&(r.a=e.Math.max(r.a,XH(i.c)));if(r.a>0)switch(n.g){case 2:o.n.c=t.s;break;case 4:o.n.b=t.s}}function BSt(t,e){var n,r,i;return 0==(n=Q$(bEt(e,(uPt(),Yae)),19).a-Q$(bEt(t,Yae),19).a)?(r=zP(QM(Q$(bEt(t,(xit(),aoe)),8)),Q$(bEt(t,ooe),8)),i=zP(QM(Q$(bEt(e,aoe),8)),Q$(bEt(e,ooe),8)),Tft(r.a*r.b,i.a*i.b)):n}function _St(t,e){var n,r,i;return 0==(n=Q$(bEt(e,(BIt(),Lwe)),19).a-Q$(bEt(t,Lwe),19).a)?(r=zP(QM(Q$(bEt(t,(Hjt(),Yye)),8)),Q$(bEt(t,Jye),8)),i=zP(QM(Q$(bEt(e,Yye),8)),Q$(bEt(e,Jye),8)),Tft(r.a*r.b,i.a*i.b)):n}function SSt(t){var e,n;return(n=new Tw).a+="e_",null!=(e=Got(t))&&(n.a+=""+e),t.c&&t.d&&(oL((n.a+=" ",n),pyt(t.c)),oL(aL((n.a+="[",n),t.c.i),"]"),oL((n.a+=e1t,n),pyt(t.d)),oL(aL((n.a+="[",n),t.d.i),"]")),n.a}function LSt(t){switch(t.g){case 0:return new Ah;case 1:return new gh;case 2:return new dh;case 3:return new ph;default:throw Um(new Py("No implementation is available for the layout phase "+(null!=t.f?t.f:""+t.g)))}}function ISt(t,n,r,i,a){var o;switch(o=0,a.g){case 1:o=e.Math.max(0,n.b+t.b-(r.b+i));break;case 3:o=e.Math.max(0,-t.b-i);break;case 2:o=e.Math.max(0,-t.a-i);break;case 4:o=e.Math.max(0,n.a+t.a-(r.a+i))}return o}function MSt(t,e,n){var r,i,a;if(n)for(a=((r=new cz(n.a.length)).b-r.a)*r.c<0?(tT(),kDe):new zO(r);a.Ob();)i=O2(n,Q$(a.Pb(),19).a),M6t in i.a||O6t in i.a?cRt(t,i,e):kXt(t,i,e),EO(Q$(FX(t.b,Wgt(i)),79))}function OSt(t){var e,n;switch(t.b){case-1:return!0;case 0:return(n=t.t)>1||-1==n||(e=_wt(t))&&(YE(),e.Cj()==k7t)?(t.b=-1,!0):(t.b=1,!1);default:return!1}}function DSt(t,e){var n,r,i,a,o;for(!e.s&&(e.s=new tG(PIe,e,21,17)),a=null,i=0,o=(r=e.s).i;i<o;++i)switch(DV(Q9(t,n=Q$(Xet(r,i),170)))){case 2:case 3:!a&&(a=new Mm),a.c[a.c.length]=n}return a||(xq(),xq(),cne)}function FSt(t,e){var n,r,i,a;if(WXt(t),0!=t.c||123!=t.a)throw Um(new iw(yVt((aM(),T8t))));if(a=112==e,r=t.d,(n=uF(t.i,125,r))<0)throw Um(new iw(yVt((aM(),B8t))));return i=lF(t.i,r,n),t.d=n+1,h7(i,a,!(512&~t.e))}function NSt(t){var e;if((e=Q$(bEt(t,($Xt(),$ge)),314))==(Srt(),cue))throw Um(new rw("The hierarchy aware processor "+e+" in child node "+t+" is only allowed if the root node specifies the same hierarchical processor."))}function PSt(t,e){var n,r,i,a;for(HQ(),n=null,i=e.Kc();i.Ob();)(r=Q$(i.Pb(),128)).o||(G$((a=new T$t(RM(r.a),hH(r.a),null,Q$(r.d.a.ec().Kc().Pb(),17))).c,r.a),t.c[t.c.length]=a,n&&G$(n.d,a),n=a)}function RSt(t,e){var n,r,i;if(e)if(4&e.i)for(r="[]",n=e.c;;n=n.c){if(!(4&n.i)){$rt(t,i=Ky((wN(n),n.o+r))),Dnt(t,i);break}r+="[]"}else $rt(t,i=Ky((wN(e),e.o))),Dnt(t,i);else $rt(t,null),Dnt(t,null);t.yk(e)}function QSt(t,e,n,r,i){var a,o,s,c;return HS(c=cN(t,Q$(i,56)))!==HS(i)?(s=Q$(t.g[n],72),yO(t,n,cxt(t,n,a=Y3(e,c))),mI(t.e)&&(PCt(o=IY(t,9,a.ak(),i,c,r,!1),new M9(t.e,9,t.c,s,a,r,!1)),L9(o)),c):i}function USt(t,e,n){var r,i,a,o,s,c;for(r=Q$(c6(t.c,e),15),i=Q$(c6(t.c,n),15),a=r.Zc(r.gc()),o=i.Zc(i.gc());a.Sb()&&o.Sb();)if((s=Q$(a.Ub(),19))!=(c=Q$(o.Ub(),19)))return wM(s.a,c.a);return a.Ob()||o.Ob()?a.Ob()?1:-1:0}function $St(t,e){var n,r;try{return z1(t.a,e)}catch(i){if(rO(i=hst(i),32)){try{if(r=hQt(e,RWt,FVt),n=Xk(t.a),r>=0&&r<n.length)return n[r]}catch(t){if(!rO(t=hst(t),127))throw Um(t)}return null}throw Um(i)}}function HSt(t,e){var n,r,i;if(i=Qjt((_Bt(),qMe),t.Tg(),e))return YE(),Q$(i,66).Oj()||(i=Y1(Q9(qMe,i))),r=Q$((n=t.Yg(i))>=0?t._g(n,!0,!0):iLt(t,i,!0),153),Q$(r,215).ll(e);throw Um(new Py(r6t+e.ne()+o6t))}function jSt(){var t;return ZE(),XMe?Q$(IMt((GE(),HIe),V7t),1939):(FL($te,new _l),ZKt(),t=Q$(rO(xJ((GE(),HIe),V7t),547)?xJ(HIe,V7t):new KV,547),XMe=!0,sVt(t),CVt(t),XV((XE(),qIe),t,new Kc),mZ(HIe,V7t,t),t)}function KSt(t,e){var n,r,i,a;t.j=-1,mI(t.e)?(n=t.i,a=0!=t.i,r6(t,e),r=new M9(t.e,3,t.c,null,e,n,a),i=e.Qk(t.e,t.c,null),(i=_Ct(t,e,i))?(i.Ei(r),i.Fi()):fot(t.e,r)):(r6(t,e),(i=e.Qk(t.e,t.c,null))&&i.Fi())}function zSt(t,e){var n,r,i;if(i=0,(r=e[0])>=t.length)return-1;for(h1(r,t.length),n=t.charCodeAt(r);n>=48&&n<=57&&(i=10*i+(n-48),!(++r>=t.length));)h1(r,t.length),n=t.charCodeAt(r);return r>e[0]?e[0]=r:i=-1,i}function GSt(t){var n,r,i,a,o;return r=a=Q$(t.a,19).a,i=o=Q$(t.b,19).a,n=e.Math.max(e.Math.abs(a),e.Math.abs(o)),a<=0&&a==o?(r=0,i=o-1):a==-n&&o!=n?(r=o,i=a,o>=0&&++r):(r=-o,i=a),new nS(nft(r),nft(i))}function XSt(t,e,n,r){var i,a,o,s,c,l;for(i=0;i<e.o;i++)for(a=i-e.j+n,o=0;o<e.p;o++)if(c=a,l=s=o-e.k+r,c+=t.j,l+=t.k,c>=0&&l>=0&&c<t.o&&l<t.p&&(!bvt(e,i,o)&&nvt(t,a,s)||mvt(e,i,o)&&!rvt(t,a,s)))return!0;return!1}function VSt(t,e,n){var r,i,a,o;a=t.c,o=t.d,i=(Lct(Tst(Hw(EEe,1),cWt,8,0,[a.i.n,a.n,a.a])).b+Lct(Tst(Hw(EEe,1),cWt,8,0,[o.i.n,o.n,o.a])).b)/2,r=null,r=a.j==(yGt(),oSe)?new O_(e+a.i.c.c.a+n,i):new O_(e-n,i),NF(t.a,0,r)}function WSt(t){var e,n,r;for(e=null,n=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c)])));AIt(n);)if(r=Txt(Q$(K5(n),82)),e){if(e!=r)return!1}else e=r;return!0}function qSt(t,e,n){var r;if(++t.j,e>=t.i)throw Um(new Sy(o8t+e+s8t+t.i));if(n>=t.i)throw Um(new Sy(c8t+n+s8t+t.i));return r=t.g[n],e!=n&&(e<n?aHt(t.g,e,t.g,e+1,n-e):aHt(t.g,n+1,t.g,n,e-n),LX(t.g,e,r),t.ei(e,r,n),t.ci()),r}function YSt(t,e,n){var r;if(r=Q$(t.c.xc(e),14))return!!r.Fc(n)&&(++t.d,!0);if((r=t.ic(e)).Fc(n))return++t.d,t.c.zc(e,r),!0;throw Um(new A5("New Collection violated the Collection spec"))}function JSt(t){var e,n,r;return t<0?0:0==t?32:(n=16-(e=(r=-(t>>16))>>16&16),n+=e=(r=(t>>=e)-256)>>16&8,n+=e=(r=(t<<=e)-Rqt)>>16&4,(n+=e=(r=(t<<=e)-lWt)>>16&2)+2-(e=(r=(t<<=e)>>14)&~(r>>1)))}function ZSt(t){var e,n,r,i;for(Cq(),xae=new Mm,Cae=new Om,kae=new Mm,!t.a&&(t.a=new tG(jLe,t,10,11)),DGt(e=t.a),i=new SO(e);i.e!=i.i.gc();)r=Q$(ymt(i),33),-1==w9(xae,r,0)&&(n=new Mm,G$(kae,n),Npt(r,n));return kae}function tLt(t,e,n){var r,i,a,o;t.a=n.b.d,rO(e,352)?(t5(a=HTt(i=iNt(Q$(e,79),!1,!1)),r=new MA(t)),VUt(a,i),null!=e.We((cVt(),_Te))&&t5(Q$(e.We(_Te),74),r)):((o=Q$(e,470)).Hg(o.Dg()+t.a.a),o.Ig(o.Eg()+t.a.b))}function eLt(t,n){var r,i,a,o,s,c,l,u;for(u=Hy(CN(bEt(n,($Xt(),Mme)))),l=t[0].n.a+t[0].o.a+t[0].d.c+u,c=1;c<t.length;c++)i=t[c].n,a=t[c].o,r=t[c].d,(o=i.a-r.b-l)<0&&(i.a-=o),(s=n.f).a=e.Math.max(s.a,i.a+a.a),l=i.a+a.a+r.c+u}function nLt(t,e){var n,r,i,a,o,s;return r=Q$(Q$(FX(t.g,e.a),46).a,65),i=Q$(Q$(FX(t.g,e.b),46).a,65),(n=ZHt(a=r.b,o=i.b))>=0?n:(s=uV(zP(new O_(o.c+o.b/2,o.d+o.a/2),new O_(a.c+a.b/2,a.d+a.a/2))),-(qQt(a,o)-1)*s)}function rLt(t,e,n){var r;qx(new Fj(null,(!n.a&&(n.a=new tG(PLe,n,6,6)),new f1(n.a,16))),new tS(t,e)),qx(new Fj(null,(!n.n&&(n.n=new tG(HLe,n,1,7)),new f1(n.n,16))),new eS(t,e)),(r=Q$(JIt(n,(cVt(),_Te)),74))&&qit(r,t,e)}function iLt(t,e,n){var r,i,a;if(a=Qjt((_Bt(),qMe),t.Tg(),e))return YE(),Q$(a,66).Oj()||(a=Y1(Q9(qMe,a))),i=Q$((r=t.Yg(a))>=0?t._g(r,!0,!0):iLt(t,a,!0),153),Q$(i,215).hl(e,n);throw Um(new Py(r6t+e.ne()+o6t))}function aLt(t,e,n,r){var i,a,o,s,c;if(i=t.d[e])if(a=i.g,c=i.i,null!=r){for(s=0;s<c;++s)if((o=Q$(a[s],133)).Sh()==n&&Oht(r,o.cd()))return o}else for(s=0;s<c;++s)if(HS((o=Q$(a[s],133)).cd())===HS(r))return o;return null}function oLt(t,e){var n;if(e<0)throw Um(new _y("Negative exponent"));if(0==e)return Yee;if(1==e||cAt(t,Yee)||cAt(t,ene))return t;if(!uIt(t,0)){for(n=1;!uIt(t,n);)++n;return Mtt(mAt(n*e),oLt(j5(t,n),e))}return bxt(t,e)}function sLt(t,e){var n,r,i;if(HS(t)===HS(e))return!0;if(null==t||null==e)return!1;if(t.length!=e.length)return!1;for(n=0;n<t.length;++n)if(r=t[n],i=e[n],!(HS(r)===HS(i)||null!=r&&Oht(r,i)))return!1;return!0}function cLt(t){var e,n,r;for(vE(),this.b=Xoe,this.c=(Qht(),QBe),this.f=(bE(),joe),this.a=t,Zw(this,new Be),yDt(this),r=new Gd(t.b);r.a<r.c.c.length;)(n=Q$(J1(r),81)).d||(e=new Tpt(Tst(Hw(Voe,1),$Vt,81,0,[n])),G$(t.a,e))}function lLt(t,e,n){var r,i,a,o,s,c;if(!t||0==t.c.length)return null;for(a=new NY(e,!n),i=new Gd(t);i.a<i.c.c.length;)r=Q$(J1(i),70),zTt(a,(AE(),new QA(r)));return(o=a.i).a=(c=a.n,a.e.b+c.d+c.a),o.b=(s=a.n,a.e.a+s.b+s.c),a}function uLt(t){var e,n,r,i,a,o,s;for(cI(s=J0(t.a),new Bn),n=null,a=0,o=(i=s).length;a<o&&(r=i[a]).k==(oTt(),Cse);++a)(e=Q$(bEt(r,(lVt(),Vhe)),61))!=(yGt(),TSe)&&e!=oSe||(n&&Q$(bEt(n,rfe),15).Fc(r),n=r)}function hLt(t,e,n){var r,i,a,o,s,c;u1(e,t.c.length),s=Q$(t.c[e],329),s6(t,e),s.b/2>=n&&(r=e,a=(c=(s.c+s.a)/2)-n,s.c<=c-n&&vK(t,r++,new v$(s.c,a)),(o=c+n)<=s.a&&(i=new v$(o,s.a),IZ(r,t.c.length),CT(t.c,r,i)))}function fLt(t){var e;if(t.c||null!=t.g){if(null==t.g)return!0;if(0==t.i)return!1;e=Q$(t.g[t.i-1],47)}else t.d=t.si(t.f),l7(t,t.d),e=t.d;return e==t.b&&null.km>=null.jm()?(aOt(t),fLt(t)):e.Ob()}function dLt(t,e,n){var r,i,a,o;if(!(o=n)&&(o=IH(new zv,0)),Sxt(o,HZt,1),IKt(t.c,e),1==(a=NKt(t.a,e)).gc())VHt(Q$(a.Xb(0),37),o);else for(i=1/a.gc(),r=a.Kc();r.Ob();)VHt(Q$(r.Pb(),37),bat(o,i));ww(t.a,a,e),QNt(e),$Tt(o)}function ALt(t){if(this.a=t,t.c.i.k==(oTt(),Cse))this.c=t.c,this.d=Q$(bEt(t.c.i,(lVt(),Vhe)),61);else{if(t.d.i.k!=Cse)throw Um(new Py("Edge "+t+" is not an external edge."));this.c=t.d,this.d=Q$(bEt(t.d.i,(lVt(),Vhe)),61)}}function gLt(t,e){var n,r,i;i=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,3,i,t.b)),e?e!=t&&(Oit(t,e.zb),Int(t,e.d),Qrt(t,null==(n=null==(r=e.c)?e.zb:r)||mR(n,e.zb)?null:n)):(Oit(t,null),Int(t,0),Qrt(t,null))}function pLt(t){var e,n;if(t.f){for(;t.n<t.o;){if(rO(n=(e=Q$(t.j?t.j.pi(t.n):t.k.Xb(t.n),72)).ak(),99)&&Q$(n,18).Bb&l6t&&(!t.e||n.Gj()!=ILe||0!=n.aj())&&null!=e.dd())return!0;++t.n}return!1}return t.n<t.o}function mLt(t,e){var n;this.e=(GX(),bX(t),GX(),OAt(t)),this.c=(bX(e),OAt(e)),iD(this.e.Hd().dc()==this.c.Hd().dc()),this.d=mdt(this.e),this.b=mdt(this.c),n=vj(Lte,[cWt,$Vt],[5,1],5,[this.e.Hd().gc(),this.c.Hd().gc()],2),this.a=n,Art(this)}function bLt(t){return!Jte&&(Jte=WGt()),'"'+t.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,(function(t){return BJ(t)}))+'"'}function vLt(t){var e,n;for(Tq(),this.b=cre,this.c=ure,this.g=(gE(),sre),this.d=(Qht(),QBe),this.a=t,vDt(this),n=new Gd(t.b);n.a<n.c.c.length;)!(e=Q$(J1(n),57)).a&&BD(Gnt(new zb,Tst(Hw(hre,1),$Vt,57,0,[e])),t),e.e=new AY(e.d)}function yLt(t){var e,n,r,i,a;for(i=t.e.c.length,r=O8(Nte,ZJt,15,i,0,1),a=new Gd(t.e);a.a<a.c.c.length;)r[Q$(J1(a),144).b]=new Wx;for(n=new Gd(t.c);n.a<n.c.c.length;)r[(e=Q$(J1(n),282)).c.b].Fc(e),r[e.d.b].Fc(e);return r}function wLt(t){var e,n,r,i,a,o;for(o=sF(t.c.length),i=new Gd(t);i.a<i.c.c.length;){for(r=Q$(J1(i),10),a=new Fb,n=new oz(YO(hdt(r).a.Kc(),new u));AIt(n);)(e=Q$(K5(n),17)).c.i==e.d.i||kG(a,e.d.i);o.c[o.c.length]=a}return o}function kLt(t,e){var n,r,i,a,o;if(e>=(o=null==(n=Q$(vot(t.a,4),126))?0:n.length))throw Um(new ZP(e,o));return i=n[e],1==o?r=null:(aHt(n,0,r=O8(fIe,n7t,415,o-1,0,1),0,e),(a=o-e-1)>0&&aHt(n,e+1,r,e,a)),Qpt(t,r),e_t(t,e,i),i}function CLt(){CLt=L,cOe=Q$(Xet(Vq((rC(),dOe).qb),6),34),aOe=Q$(Xet(Vq(dOe.qb),3),34),oOe=Q$(Xet(Vq(dOe.qb),4),34),sOe=Q$(Xet(Vq(dOe.qb),5),18),sCt(cOe),sCt(aOe),sCt(oOe),sCt(sOe),lOe=new qy(Tst(Hw(PIe,1),O7t,170,0,[cOe,aOe]))}function xLt(t,e){var n;this.d=new uv,this.b=e,this.e=new fI(e.qf()),n=t.u.Hc((hSt(),eSe)),t.u.Hc(tSe)?t.D?this.a=n&&!e.If():this.a=!0:t.u.Hc(nSe)?this.a=!!n&&!(e.zf().Kc().Ob()||e.Bf().Kc().Ob()):this.a=!1}function ELt(t,e){var n,r,i,a;for(n=t.o.a,a=Q$(Q$(c6(t.r,e),21),84).Kc();a.Ob();)(i=Q$(a.Pb(),111)).e.a=(r=i.b).Xe((cVt(),iBe))?r.Hf()==(yGt(),TSe)?-r.rf().a-Hy(CN(r.We(iBe))):n+Hy(CN(r.We(iBe))):r.Hf()==(yGt(),TSe)?-r.rf().a:n}function TLt(t,e){var n,r,i;n=Q$(bEt(t,($Xt(),Kge)),103),i=Q$(JIt(e,ame),61),(r=Q$(bEt(t,tme),98))!=(WCt(),V_e)&&r!=W_e?i==(yGt(),ESe)&&(i=SUt(e,n))==ESe&&(i=lAt(n)):i=GHt(e)>0?lAt(n):Cft(lAt(n)),qmt(e,ame,i)}function BLt(t,e){var n,r,i,a,o;for(o=t.j,e.a!=e.b&&mM(o,new Gi),i=o.c.length/2|0,r=0;r<i;r++)u1(r,o.c.length),(a=Q$(o.c[r],113)).c&&H_t(a.d,e.a);for(n=i;n<o.c.length;n++)u1(n,o.c.length),(a=Q$(o.c[n],113)).c&&H_t(a.d,e.b)}function _Lt(t,e,n){var r,i,a;return r=t.c[e.c.p][e.p],i=t.c[n.c.p][n.p],null!=r.a&&null!=i.a?((a=kz(r.a,i.a))<0?oRt(t,e,n):a>0&&oRt(t,n,e),a):null!=r.a?(oRt(t,e,n),-1):null!=i.a?(oRt(t,n,e),1):0}function SLt(t,e){var n,r,i,a;t.ej()?(n=t.Vi(),a=t.fj(),++t.j,t.Hi(n,t.oi(n,e)),r=t.Zi(3,null,e,n,a),t.bj()&&(i=t.cj(e,null))?(i.Ei(r),i.Fi()):t.$i(r)):(tV(t,e),t.bj()&&(i=t.cj(e,null))&&i.Fi())}function LLt(t,e){var n,r,i,a,o;for(o=aFt(t.e.Tg(),e),i=new pc,n=Q$(t.g,119),a=t.i;--a>=0;)r=n[a],o.rl(r.ak())&&l7(i,r);!aXt(t,i)&&mI(t.e)&&Ib(t,e.$j()?IY(t,6,e,(xq(),cne),null,-1,!1):IY(t,e.Kj()?2:1,e,null,null,-1,!1))}function ILt(){var t,e;for(ILt=L,ane=O8(sne,cWt,91,32,0,1),one=O8(sne,cWt,91,32,0,1),t=1,e=0;e<=18;e++)ane[e]=Zpt(t),one[e]=Zpt(bz(t,e)),t=idt(t,5);for(;e<one.length;e++)ane[e]=Mtt(ane[e-1],ane[1]),one[e]=Mtt(one[e-1],(SNt(),Zee))}function MLt(t,e){var n,r,i,a;return t.a==(YEt(),rhe)||(i=e.a.c,n=e.a.c+e.a.b,!(e.j&&(a=(r=e.A).c.c.a-r.o.a/2,i-(r.n.a+r.o.a)>a)||e.q&&(a=(r=e.C).c.c.a-r.o.a/2,r.n.a-n>a)))}function OLt(t,e){Sxt(e,"Partition preprocessing",1),qx(Q$(E4(SW(ftt(SW(new Fj(null,new f1(t.a,16)),new br),new vr),new yr),m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),Kne)]))),15).Oc(),new wr),$Tt(e)}function DLt(t){var e,n,r,i,a,o;for($Z(),n=new p4,r=new Gd(t.e.b);r.a<r.c.c.length;)for(a=new Gd(Q$(J1(r),29).a);a.a<a.c.c.length;)i=Q$(J1(a),10),(e=Q$(utt(n,o=t.g[i.p]),15))||Ypt(n,o,e=new Mm),e.Fc(i);return n}function FLt(t,e){var n,r,i,a,o;for(i=e.b.b,t.a=O8(Nte,ZJt,15,i,0,1),t.b=O8(SDe,JYt,25,i,16,1),o=cmt(e.b,0);o.b!=o.d.c;)a=Q$(h3(o),86),t.a[a.g]=new Wx;for(r=cmt(e.a,0);r.b!=r.d.c;)n=Q$(h3(r),188),t.a[n.b.g].Fc(n),t.a[n.c.g].Fc(n)}function NLt(t){var e;return 64&t.Db?TMt(t):((e=new lD(TMt(t))).a+=" (startX: ",pC(e,t.j),e.a+=", startY: ",pC(e,t.k),e.a+=", endX: ",pC(e,t.b),e.a+=", endY: ",pC(e,t.c),e.a+=", identifier: ",rL(e,t.d),e.a+=")",e.a)}function PLt(t){var e;return 64&t.Db?yht(t):((e=new lD(yht(t))).a+=" (ordered: ",bC(e,!!(256&t.Bb)),e.a+=", unique: ",bC(e,!!(512&t.Bb)),e.a+=", lowerBound: ",mC(e,t.s),e.a+=", upperBound: ",mC(e,t.t),e.a+=")",e.a)}function RLt(t,e,n,r,i,a,o,s){var c;return rO(t.Cb,88)&&L_t(E5(Q$(t.Cb,88)),4),Oit(t,n),t.f=r,Ift(t,i),Oft(t,a),Lft(t,o),Mft(t,!1),Zht(t,!0),Hft(t,s),qht(t,!0),Mnt(t,0),t.b=0,Ont(t,1),(c=$xt(t,e,null))&&c.Fi(),jft(t,!1),t}function QLt(t,n){var r,i;return Q$(xJ(t.a,n),512)||(r=new b5(n),v5(),OR(r,QLt(t,lF(i=Vne?null:r.c,0,e.Math.max(0,mD(i,qxt(46)))))),0==(Vne?null:r.c).length&&jN(r,new X),mZ(t.a,Vne?null:r.c,r),r)}function ULt(t,e){var n;t.b=e,t.g=new Mm,n=YLt(t.b),t.e=n,t.f=n,t.c=$y(kN(bEt(t.b,(Rwt(),yre)))),t.a=CN(bEt(t.b,(cVt(),rTe))),null==t.a&&(t.a=1),Hy(t.a)>1?t.e*=Hy(t.a):t.f/=Hy(t.a),But(t),gpt(t),CPt(t),lct(t.b,(kmt(),Aae),t.g)}function $Lt(t,e,n){var r,i,a,o,s;for(r=0,s=n,e||(r=n*(t.c.length-1),s*=-1),a=new Gd(t);a.a<a.c.c.length;){for(lct(i=Q$(J1(a),10),($Xt(),vge),(dbt(),_Ee)),i.o.a=r,o=FTt(i,(yGt(),oSe)).Kc();o.Ob();)Q$(o.Pb(),11).n.a=r;r+=s}}function HLt(t,e,n){var r,i,a;t.ej()?(a=t.fj(),_ht(t,e,n),r=t.Zi(3,null,n,e,a),t.bj()?(i=t.cj(n,null),t.ij()&&(i=t.jj(n,i)),i?(i.Ei(r),i.Fi()):t.$i(r)):t.$i(r)):(_ht(t,e,n),t.bj()&&(i=t.cj(n,null))&&i.Fi())}function jLt(t,e,n){var r,i,a,o,s,c;return(s=t.Gk(n))!=n?(o=t.g[e],c=s,yO(t,e,t.oi(e,c)),a=o,t.gi(e,c,a),t.rk()&&(r=n,i=t.dj(r,null),!Q$(s,49).eh()&&(i=t.cj(c,i)),i&&i.Fi()),mI(t.e)&&Ib(t,t.Zi(9,n,s,e,!1)),s):n}function KLt(t,e){var n,r,i;for(n=new Gd(t.a.a);n.a<n.c.c.length;)Q$(J1(n),189).g=!0;for(i=new Gd(t.a.b);i.a<i.c.c.length;)(r=Q$(J1(i),81)).k=$y(kN(t.e.Kb(new nS(r,e)))),r.d.g=r.d.g&$y(kN(t.e.Kb(new nS(r,e))));return t}function zLt(t){var e,n,r,i,a;if(n=new WR(e=Q$(Xk(RSe),9),Q$(xP(e,e.length),9),0),a=Q$(bEt(t,(lVt(),wfe)),10))for(i=new Gd(a.j);i.a<i.c.c.length;)HS(bEt(r=Q$(J1(i),11),dfe))===HS(t)&&jD(new m6(r.b))&&sit(n,r.j);return n}function GLt(t,e,n){var r,i,a,o;if(!t.d[n.p]){for(r=new oz(YO(hdt(n).a.Kc(),new u));AIt(r);){for(a=new oz(YO(udt(o=Q$(K5(r),17).d.i).a.Kc(),new u));AIt(a);)(i=Q$(K5(a),17)).c.i==e&&(t.a[i.p]=!0);GLt(t,e,o)}t.d[n.p]=!0}}function XLt(t,e){var n,r,i,a,o,s,c;if(1==(r=pdt(254&t.Db)))t.Eb=null;else if(a=ent(t.Eb),2==r)i=Nvt(t,e),t.Eb=a[0==i?1:0];else{for(o=O8(Lte,$Vt,1,r-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}function VLt(t,e){var n,r,i,a,o;for(!e.s&&(e.s=new tG(PIe,e,21,17)),a=null,i=0,o=(r=e.s).i;i<o;++i)switch(DV(Q9(t,n=Q$(Xet(r,i),170)))){case 4:case 5:case 6:!a&&(a=new Mm),a.c[a.c.length]=n}return a||(xq(),xq(),cne)}function WLt(t){var e;switch(e=0,t){case 105:e=2;break;case 109:e=8;break;case 115:e=4;break;case 120:e=16;break;case 117:e=32;break;case 119:e=64;break;case 70:e=256;break;case 72:e=128;break;case 88:e=512;break;case 44:e=y6t}return e}function qLt(t,e,n,r,i){var a,o,s,c;if(HS(t)!==HS(e)||r!=i)for(s=0;s<r;s++){for(o=0,a=t[s],c=0;c<i;c++)o=rdt(rdt(idt(t0(a,zqt),t0(e[c],zqt)),t0(n[s+c],zqt)),t0(dK(o),zqt)),n[s+c]=dK(o),o=yz(o,32);n[s+i]=dK(o)}else _Qt(t,r,n)}function YLt(t){var n,r,i,a,o,s,c,l,u,h,f;for(h=0,u=0,c=(a=t.a).a.gc(),i=a.a.ec().Kc();i.Ob();)(r=Q$(i.Pb(),561)).b&&V$t(r),h+=(f=(n=r.a).a)+(s=n.b),u+=f*s;return l=e.Math.sqrt(400*c*u-4*u+h*h)+h,0==(o=2*(100*c-1))?l:l/o}function JLt(t,n){0!=n.b&&(isNaN(t.s)?t.s=Hy((EF(0!=n.b),CN(n.a.a.c))):t.s=e.Math.min(t.s,Hy((EF(0!=n.b),CN(n.a.a.c)))),isNaN(t.c)?t.c=Hy((EF(0!=n.b),CN(n.c.b.c))):t.c=e.Math.max(t.c,Hy((EF(0!=n.b),CN(n.c.b.c)))))}function ZLt(t){var e,n,r;for(e=null,n=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c)])));AIt(n);)if(r=Txt(Q$(K5(n),82)),e){if(e!=qJ(r))return!0}else e=qJ(r);return!1}function tIt(t,e){var n,r,i,a;t.ej()?(n=t.i,a=t.fj(),r6(t,e),r=t.Zi(3,null,e,n,a),t.bj()?(i=t.cj(e,null),t.ij()&&(i=t.jj(e,i)),i?(i.Ei(r),i.Fi()):t.$i(r)):t.$i(r)):(r6(t,e),t.bj()&&(i=t.cj(e,null))&&i.Fi())}function eIt(t,e,n){var r,i,a;t.ej()?(a=t.fj(),++t.j,t.Hi(e,t.oi(e,n)),r=t.Zi(3,null,n,e,a),t.bj()&&(i=t.cj(n,null))?(i.Ei(r),i.Fi()):t.$i(r)):(++t.j,t.Hi(e,t.oi(e,n)),t.bj()&&(i=t.cj(n,null))&&i.Fi())}function nIt(t){var e,n,r,i;for(i=t.length,e=null,r=0;r<i;r++)h1(r,t.length),HL(".*+?{[()|\\^$",qxt(n=t.charCodeAt(r)))>=0?(e||(e=new Ew,r>0&&rL(e,t.substr(0,r))),e.a+="\\",MX(e,n&WWt)):e&&MX(e,n&WWt);return e?e.a:t}function rIt(t){var e;if(!t.a)throw Um(new Ry("IDataType class expected for layout option "+t.f));if(null==(e=B3(t.a)))throw Um(new Ry("Couldn't create new instance of property '"+t.f+"'. "+r5t+(wN(uIe),uIe.k)+i5t));return Q$(e,414)}function iIt(t){var e,n,r,i,a;return(a=t.eh())&&a.kh()&&(i=tht(t,a))!=a?(n=t.Vg(),r=(e=t.Vg())>=0?t.Qg(null):t.eh().ih(t,-1-e,null,null),t.Rg(Q$(i,49),n),r&&r.Fi(),t.Lg()&&t.Mg()&&n>-1&&fot(t,new Jz(t,9,n,a,i)),i):a}function aIt(t){var e,n,r,i,a,o,s;for(a=0,i=t.f.e,n=0;n<i.c.length;++n)for(u1(n,i.c.length),o=Q$(i.c[n],144),r=n+1;r<i.c.length;++r)u1(r,i.c.length),s=Q$(i.c[r],144),e=G8(o.d,s.d)-t.a[o.b][s.b],a+=t.i[o.b][s.b]*e*e;return a}function oIt(t,e){var n;if(!IF(e,($Xt(),vpe))&&(n=kwt(Q$(bEt(e,tle),360),Q$(bEt(t,vpe),163)),lct(e,tle,n),!AIt(new oz(YO(ldt(e).a.Kc(),new u)))))switch(n.g){case 1:lct(e,vpe,(Cdt(),Pfe));break;case 2:lct(e,vpe,(Cdt(),Qfe))}}function sIt(t,e){var n;bPt(t),t.a=(n=new ow,qx(new Fj(null,new f1(e.d,16)),new _g(n)),n),xFt(t,Q$(bEt(e.b,($Xt(),epe)),376)),ybt(t),SIt(t),Iwt(t),wbt(t),wjt(t,e),qx(ftt(new Fj(null,W0(xX(t.b).a)),new Vi),new Wi),e.a=!1,t.a=null}function cIt(){AEt.call(this,v6t,(Zk(),dLe)),this.p=null,this.a=null,this.f=null,this.n=null,this.g=null,this.c=null,this.i=null,this.j=null,this.d=null,this.b=null,this.e=null,this.k=null,this.o=null,this.s=null,this.q=!1,this.r=!1}function lIt(){lIt=L,tIe=new CS(j1t,0),YLe=new CS("INSIDE_SELF_LOOPS",1),JLe=new CS("MULTI_EDGES",2),qLe=new CS("EDGE_LABELS",3),ZLe=new CS("PORTS",4),VLe=new CS("COMPOUND",5),XLe=new CS("CLUSTERS",6),WLe=new CS("DISCONNECTED",7)}function uIt(t,e){var n,r,i;if(0==e)return!!(1&t.a[0]);if(e<0)throw Um(new _y("Negative bit address"));if((i=e>>5)>=t.d)return t.e<0;if(n=t.a[i],e=1<<(31&e),t.e<0){if(i<(r=Bat(t)))return!1;n=r==i?-n:~n}return!!(n&e)}function hIt(t,e,n,r){var i;Q$(n.b,65),Q$(n.b,65),Q$(r.b,65),Q$(r.b,65),MH(i=zP(QM(Q$(n.b,65).c),Q$(r.b,65).c),$_t(Q$(n.b,65),Q$(r.b,65),i)),Q$(r.b,65),Q$(r.b,65),Q$(r.b,65).c.a,i.a,Q$(r.b,65).c.b,i.b,Q$(r.b,65),Set(r.a,new k$(t,e,r))}function fIt(t,e){var n,r,i,a,o,s,c;if(a=e.e)for(n=iIt(a),r=Q$(t.g,674),o=0;o<t.i;++o)if(Hbt(c=r[o])==n&&(!c.d&&(c.d=new LO(GIe,c,1)),i=c.d,(s=Q$(n.ah(gRt(a,a.Cb,a.Db>>16)),15).Xc(a))<i.i))return fIt(t,Q$(Xet(i,s),87));return e}function dIt(t,e,n){var r,i=EVt,a=i[t],o=a instanceof Array?a[0]:null;a&&!o?xVt=a:(!(r=e&&e.prototype)&&(r=EVt[e]),(xVt=$J(r)).hm=n,!e&&(xVt.im=S),i[t]=xVt);for(var s=3;s<arguments.length;++s)arguments[s].prototype=xVt;o&&(xVt.gm=o)}function AIt(t){for(var e;!Q$(bX(t.a),47).Ob();){if(t.d=slt(t),!t.d)return!1;if(t.a=Q$(t.d.Pb(),47),rO(t.a,39)){if(e=Q$(t.a,39),t.a=e.a,!t.b&&(t.b=new Im),d3(t.b,t.d),e.b)for(;!Gy(e.b);)d3(t.b,Q$(AG(e.b),47));t.d=e.d}}return!0}function gIt(t,e){var n,r,i,a,o;for(a=null==e?0:t.b.se(e),r=null==(n=t.a.get(a))?new Array:n,o=0;o<r.length;o++)if(i=r[o],t.b.re(e,i.cd()))return 1==r.length?(r.length=0,pP(t.a,a)):r.splice(o,1),--t.c,oY(t.b),i.dd();return null}function pIt(t,e){var n,r,i,a;for(i=1,e.j=!0,a=null,r=new Gd(ydt(e));r.a<r.c.c.length;)n=Q$(J1(r),213),t.c[n.c]||(t.c[n.c]=!0,a=Odt(n,e),n.f?i+=pIt(t,a):a.j||n.a!=n.e.e-n.d.e||(n.f=!0,kG(t.p,n),i+=pIt(t,a)));return i}function mIt(t){var n,r,i;for(r=new Gd(t.a.a.b);r.a<r.c.c.length;)n=Q$(J1(r),81),vV(0),(i=0)>0&&((!dI(t.a.c)||!n.n.d)&&(!AI(t.a.c)||!n.n.b)&&(n.g.d+=e.Math.max(0,i/2-.5)),(!dI(t.a.c)||!n.n.a)&&(!AI(t.a.c)||!n.n.c)&&(n.g.a-=i-1))}function bIt(t){var n,r,i,a,o;if(o=PQt(t,a=new Mm),n=Q$(bEt(t,(lVt(),wfe)),10))for(i=new Gd(n.j);i.a<i.c.c.length;)HS(bEt(r=Q$(J1(i),11),dfe))===HS(t)&&(o=e.Math.max(o,PQt(r,a)));return 0==a.c.length||lct(t,hfe,o),-1!=o?a:null}function vIt(t,e,n){var r,i,a,o,s,c;i=(r=(a=Q$(Oj(e.e,0),17).c).i).k,s=(o=(c=Q$(Oj(n.g,0),17).d).i).k,i==(oTt(),Ese)?lct(t,(lVt(),cfe),Q$(bEt(r,cfe),11)):lct(t,(lVt(),cfe),a),lct(t,(lVt(),lfe),s==Ese?Q$(bEt(o,lfe),11):c)}function yIt(t,e){var n,r,i,a;for(n=(a=dK(idt(EWt,nW(dK(idt(null==e?0:Zct(e),TWt)),15))))&t.b.length-1,i=null,r=t.b[n];r;i=r,r=r.a)if(r.d==a&&fV(r.i,e))return i?i.a=r.a:t.b[n]=r.a,vw(r.c,r.f),eb(r.b,r.e),--t.f,++t.e,!0;return!1}function wIt(t,e){var n,r,i,a,o;return e&=63,(r=!!((n=t.h)&Bqt))&&(n|=-1048576),e<22?(o=n>>e,a=t.m>>e|n<<22-e,i=t.l>>e|t.m<<22-e):e<44?(o=r?Tqt:0,a=n>>e-22,i=t.m>>e-22|n<<44-e):(o=r?Tqt:0,a=r?Eqt:0,i=n>>e-44),CM(i&Eqt,a&Eqt,o&Tqt)}function kIt(t){var n,r,i,a,o,s;for(this.c=new Mm,this.d=t,i=Nqt,a=Nqt,n=Pqt,r=Pqt,s=cmt(t,0);s.b!=s.d.c;)o=Q$(h3(s),8),i=e.Math.min(i,o.a),a=e.Math.min(a,o.b),n=e.Math.max(n,o.a),r=e.Math.max(r,o.b);this.a=new KW(i,a,n-i,r-a)}function CIt(t,e){var n,r,i,a;for(r=new Gd(t.b);r.a<r.c.c.length;)for(a=new Gd(Q$(J1(r),29).a);a.a<a.c.c.length;)for((i=Q$(J1(a),10)).k==(oTt(),xse)&&lUt(i,e),n=new oz(YO(hdt(i).a.Kc(),new u));AIt(n);)mst(Q$(K5(n),17),e)}function xIt(t){var e,n,r;this.c=t,r=Q$(bEt(t,($Xt(),Kge)),103),e=Hy(CN(bEt(t,wge))),n=Hy(CN(bEt(t,Nme))),r==(Qht(),PBe)||r==RBe||r==QBe?this.b=e*n:this.b=1/(e*n),this.j=Hy(CN(bEt(t,Sme))),this.e=Hy(CN(bEt(t,_me))),this.f=t.b.c.length}function EIt(t){var e,n;for(t.e=O8(_De,lqt,25,t.p.c.length,15,1),t.k=O8(_De,lqt,25,t.p.c.length,15,1),n=new Gd(t.p);n.a<n.c.c.length;)e=Q$(J1(n),10),t.e[e.p]=R3(new oz(YO(udt(e).a.Kc(),new u))),t.k[e.p]=R3(new oz(YO(hdt(e).a.Kc(),new u)))}function TIt(t){var e,n,r,i,a;for(r=0,t.q=new Mm,e=new Fb,a=new Gd(t.p);a.a<a.c.c.length;){for((i=Q$(J1(a),10)).p=r,n=new oz(YO(hdt(i).a.Kc(),new u));AIt(n);)kG(e,Q$(K5(n),17).d.i);e.a.Bc(i),G$(t.q,new Lj(e)),e.a.$b(),++r}}function BIt(){BIt=L,_we=new GI(20),Bwe=new zI((cVt(),zTe),_we),Owe=new zI(IBe,20),ywe=new zI(rTe,AZt),Lwe=new zI(gBe,nft(1)),Mwe=new zI(vBe,(cD(),!0)),wwe=uTe,Cwe=NTe,xwe=QTe,Ewe=$Te,kwe=DTe,Twe=KTe,Swe=lBe,Not(),Dwe=bwe,Iwe=pwe}function _It(t,e){var n,r,i,a,o,s,c,l,u;if(t.a.f>0&&rO(e,42)&&(t.a.qj(),a=null==(c=(l=Q$(e,42)).cd())?0:Zct(c),o=tP(t.a,a),n=t.a.d[o]))for(r=Q$(n.g,367),u=n.i,s=0;s<u;++s)if((i=r[s]).Sh()==a&&i.Fb(l))return _It(t,l),!0;return!1}function SIt(t){var e,n,r,i;for(i=Q$(c6(t.a,(MCt(),xle)),15).Kc();i.Ob();)eX(t,r=Q$(i.Pb(),101),(n=(e=Az(r.k)).Hc((yGt(),sSe))?e.Hc(oSe)?e.Hc(xSe)?e.Hc(TSe)?null:Lle:Mle:Ile:Sle)[0],(Bit(),Ole),0),eX(t,r,n[1],Dle,1),eX(t,r,n[2],Fle,1)}function LIt(t,e){var n,r;YFt(t,e,n=bRt(e)),nxt(t.a,Q$(bEt(pV(e.b),(lVt(),xfe)),230)),fQt(t),FCt(t,e),r=O8(_De,lqt,25,e.b.j.c.length,15,1),czt(t,e,(yGt(),sSe),r,n),czt(t,e,oSe,r,n),czt(t,e,xSe,r,n),czt(t,e,TSe,r,n),t.a=null,t.c=null,t.b=null}function IIt(){IIt=L,Edt(),oCe=new LL(k4t,sCe=Jke),iCe=new LL(C4t,(cD(),!0)),nft(-1),eCe=new LL(x4t,nft(-1)),nft(-1),nCe=new LL(E4t,nft(-1)),aCe=new LL(T4t,!1),cCe=new LL(B4t,!0),rCe=new LL(_4t,!1),lCe=new LL(S4t,-1)}function MIt(t,e,n){switch(e){case 7:return!t.e&&(t.e=new cR(NLe,t,7,4)),cjt(t.e),!t.e&&(t.e=new cR(NLe,t,7,4)),void gX(t.e,Q$(n,14));case 8:return!t.d&&(t.d=new cR(NLe,t,8,5)),cjt(t.d),!t.d&&(t.d=new cR(NLe,t,8,5)),void gX(t.d,Q$(n,14))}Kkt(t,e,n)}function OIt(t,e){var n,r,i,a,o;if(HS(e)===HS(t))return!0;if(!rO(e,15))return!1;if(o=Q$(e,15),t.gc()!=o.gc())return!1;for(a=o.Kc(),r=t.Kc();r.Ob();)if(n=r.Pb(),i=a.Pb(),!(HS(n)===HS(i)||null!=n&&Oht(n,i)))return!1;return!0}function DIt(t,e){var n,r,i,a;for((a=Q$(E4(ftt(ftt(new Fj(null,new f1(e.b,16)),new Pn),new Rn),m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),Kne)]))),15)).Jc(new Qn),n=0,i=a.Kc();i.Ob();)-1==(r=Q$(i.Pb(),11)).p&&QIt(t,r,n++)}function FIt(t){switch(t.g){case 0:return new Eh;case 1:return new lh;case 2:return new ch;case 3:return new yS;case 4:return new PK;default:throw Um(new Py("No implementation is available for the node placer "+(null!=t.f?t.f:""+t.g)))}}function NIt(t){switch(t.g){case 0:return new NK;case 1:return new hh;case 2:return new eh;case 3:return new nh;case 4:return new kS;default:throw Um(new Py("No implementation is available for the cycle breaker "+(null!=t.f?t.f:""+t.g)))}}function PIt(){PIt=L,mke=new LL(o4t,nft(0)),bke=new LL(s4t,0),$lt(),dke=new LL(c4t,Ake=ske),nft(0),fke=new LL(l4t,nft(1)),Uat(),vke=new LL(u4t,yke=zke),D7(),wke=new LL(h4t,kke=ike),Svt(),gke=new LL(f4t,pke=$ke)}function RIt(t,e,n){var r;r=null,e&&(r=e.d),qkt(t,new dB(e.n.a-r.b+n.a,e.n.b-r.d+n.b)),qkt(t,new dB(e.n.a-r.b+n.a,e.n.b+e.o.b+r.a+n.b)),qkt(t,new dB(e.n.a+e.o.a+r.c+n.a,e.n.b-r.d+n.b)),qkt(t,new dB(e.n.a+e.o.a+r.c+n.a,e.n.b+e.o.b+r.a+n.b))}function QIt(t,e,n){var r,i,a;for(e.p=n,a=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[new UA(e),new HA(e)])));AIt(a);)-1==(r=Q$(K5(a),11)).p&&QIt(t,r,n);if(e.i.k==(oTt(),Ese))for(i=new Gd(e.i.j);i.a<i.c.c.length;)(r=Q$(J1(i),11))!=e&&-1==r.p&&QIt(t,r,n)}function UIt(t){var n,r,i,a,o;if(a=Q$(E4(LZ(i1(t)),m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),Kne)]))),15),i=JJt,a.gc()>=2)for(n=CN((r=a.Kc()).Pb());r.Ob();)o=n,n=CN(r.Pb()),i=e.Math.min(i,(vV(n),n-(vV(o),o)));return i}function $It(t,e){var n,r,i,a,o;n5(r=new Wx,e,r.c.b,r.c);do{for(EF(0!=r.b),n=Q$(Let(r,r.a.a),86),t.b[n.g]=1,a=cmt(n.d,0);a.b!=a.d.c;)o=(i=Q$(h3(a),188)).c,1==t.b[o.g]?DH(t.a,i):2==t.b[o.g]?t.b[o.g]=1:n5(r,o,r.c.b,r.c)}while(0!=r.b)}function HIt(t,e){var n,r,i;if(HS(e)===HS(bX(t)))return!0;if(!rO(e,15))return!1;if(r=Q$(e,15),(i=t.gc())!=r.gc())return!1;if(rO(r,54)){for(n=0;n<i;n++)if(!fV(t.Xb(n),r.Xb(n)))return!1;return!0}return zbt(t.Kc(),r.Kc())}function jIt(t,e){var n;if(0!=t.c.length){if(2==t.c.length)lUt((u1(0,t.c.length),Q$(t.c[0],10)),(Gyt(),y_e)),lUt((u1(1,t.c.length),Q$(t.c[1],10)),w_e);else for(n=new Gd(t);n.a<n.c.c.length;)lUt(Q$(J1(n),10),e);t.c=O8(Lte,$Vt,1,0,5,1)}}function KIt(t){var e,n;if(2!=t.c.length)throw Um(new Ry("Order only allowed for two paths."));u1(0,t.c.length),e=Q$(t.c[0],17),u1(1,t.c.length),n=Q$(t.c[1],17),e.d.i!=n.c.i&&(t.c=O8(Lte,$Vt,1,0,5,1),t.c[t.c.length]=n,t.c[t.c.length]=e)}function zIt(t,e){var n,r,i,a,o;for(r=new p4,a=x4(new qy(t.g)).a.ec().Kc();a.Ob();){if(!(i=Q$(a.Pb(),10))){_H(e,"There are no classes in a balanced layout.");break}(n=Q$(utt(r,o=t.j[i.p]),15))||Ypt(r,o,n=new Mm),n.Fc(i)}return r}function GIt(t,e,n){var r,i,a,o;if(n)for(i=((r=new cz(n.a.length)).b-r.a)*r.c<0?(tT(),kDe):new zO(r);i.Ob();)(a=O2(n,Q$(i.Pb(),19).a))&&(o=Pnt(F2(a,S6t),e),XV(t.f,o,a),H6t in a.a&&Irt(o,F2(a,H6t)),Ext(a,o),S_t(a,o))}function XIt(t,e){var n,r,i;for(Sxt(e,"Port side processing",1),i=new Gd(t.a);i.a<i.c.c.length;)i$t(Q$(J1(i),10));for(n=new Gd(t.b);n.a<n.c.c.length;)for(r=new Gd(Q$(J1(n),29).a);r.a<r.c.c.length;)i$t(Q$(J1(r),10));$Tt(e)}function VIt(t,e,n){var r,i,a,o,s;if(!(i=t.f)&&(i=Q$(t.a.a.ec().Kc().Pb(),57)),Qwt(i,e,n),1!=t.a.a.gc())for(r=e*n,o=t.a.a.ec().Kc();o.Ob();)(a=Q$(o.Pb(),57))!=i&&((s=l3(a)).f.d?(a.d.d+=r+uJt,a.d.a-=r+uJt):s.f.a&&(a.d.a-=r+uJt))}function WIt(t,n,r,i,a){var o,s,c,l,u,h,f,d,A;return s=r-t,c=i-n,l=(o=e.Math.atan2(s,c))+YJt,u=o-YJt,h=a*e.Math.sin(l)+t,d=a*e.Math.cos(l)+n,f=a*e.Math.sin(u)+t,A=a*e.Math.cos(u)+n,a6(Tst(Hw(EEe,1),cWt,8,0,[new O_(h,d),new O_(f,A)]))}function qIt(t,n,r,i){var a,o,s,c,l,u,h,f;a=r,o=h=n;do{o=t.a[o.p],f=t.g[o.p],c=Hy(t.p[f.p])+Hy(t.d[o.p])-o.d.d,(l=Lrt(o,i))&&(u=t.g[l.p],s=Hy(t.p[u.p])+Hy(t.d[l.p])+l.o.b+l.d.a,a=e.Math.min(a,c-(s+NM(t.k,o,l))))}while(h!=o);return a}function YIt(t,n,r,i){var a,o,s,c,l,u,h,f;a=r,o=h=n;do{o=t.a[o.p],f=t.g[o.p],s=Hy(t.p[f.p])+Hy(t.d[o.p])+o.o.b+o.d.a,(l=Rst(o,i))&&(u=t.g[l.p],c=Hy(t.p[u.p])+Hy(t.d[l.p])-l.d.d,a=e.Math.min(a,c-(s+NM(t.k,o,l))))}while(h!=o);return a}function JIt(t,e){var n,r;return!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),null!=(r=igt(t.o,e))?r:(rO(n=e.wg(),4)&&(null==n?(!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),Xgt(t.o,e)):(!t.o&&(t.o=new b7((BXt(),CLe),eIe,t,0)),mkt(t.o,e,n))),n)}function ZIt(){ZIt=L,B_e=new H_("H_LEFT",0),T_e=new H_("H_CENTER",1),S_e=new H_("H_RIGHT",2),D_e=new H_("V_TOP",3),O_e=new H_("V_CENTER",4),M_e=new H_("V_BOTTOM",5),L_e=new H_("INSIDE",6),I_e=new H_("OUTSIDE",7),__e=new H_("H_PRIORITY",8)}function tMt(t){var e,n,r,i,a,o,s;if((e=t.Hh(V7t))&&null!=(s=xN(igt((!e.b&&(e.b=new qF((gVt(),bMe),KMe,e)),e.b),"settingDelegates")))){for(n=new Mm,a=0,o=(i=yRt(s,"\\w+")).length;a<o;++a)r=i[a],n.c[n.c.length]=r;return n}return xq(),xq(),cne}function eMt(t,e){var n,r,i,a,o,s,c;if(!e.f)throw Um(new Py("The input edge is not a tree edge."));for(a=null,i=FVt,r=new Gd(t.d);r.a<r.c.c.length;)s=(n=Q$(J1(r),213)).d,c=n.e,Q_t(t,s,e)&&!Q_t(t,c,e)&&(o=c.e-s.e-n.a)<i&&(i=o,a=n);return a}function nMt(t){var e,n,r,i,a,o;if(!(t.f.e.c.length<=1)){e=0,i=aIt(t),n=Nqt;do{for(e>0&&(i=n),o=new Gd(t.f.e);o.a<o.c.c.length;)$y(kN(bEt(a=Q$(J1(o),144),(rwt(),boe))))||(r=JQt(t,a),KP(vL(a.d),r));n=aIt(t)}while(!qX(t,e++,i,n))}}function rMt(t,e){var n,r,i;for(Sxt(e,"Layer constraint preprocessing",1),n=new Mm,i=new C2(t.a,0);i.b<i.d.gc();)EF(i.b<i.d.gc()),Xst(r=Q$(i.d.Xb(i.c=i.b++),10))&&(ixt(r),n.c[n.c.length]=r,lV(i));0==n.c.length||lct(t,(lVt(),Jhe),n),$Tt(e)}function iMt(t,e){var n,r,i,a,o;for(a=t.g.a,o=t.g.b,r=new Gd(t.d);r.a<r.c.c.length;)i=(n=Q$(J1(r),70)).n,t.a==(Sst(),mle)||t.i==(yGt(),oSe)?i.a=a:t.a==ble||t.i==(yGt(),TSe)?i.a=a+t.j.a-n.o.a:i.a=a+(t.j.a-n.o.a)/2,i.b=o,KP(i,e),o+=n.o.b+t.e}function aMt(t,e,n){var r,i,a,o;for(Sxt(n,"Processor set coordinates",1),t.a=0==e.b.b?1:e.b.b,a=null,r=cmt(e.b,0);!a&&r.b!=r.d.c;)$y(kN(bEt(o=Q$(h3(r),86),(Hjt(),dwe))))&&(a=o,(i=o.e).a=Q$(bEt(o,Awe),19).a,i.b=0);RTt(t,Dst(a),bat(n,1)),$Tt(n)}function oMt(t,e,n){var r,i,a;for(Sxt(n,"Processor determine the height for each level",1),t.a=0==e.b.b?1:e.b.b,i=null,r=cmt(e.b,0);!i&&r.b!=r.d.c;)$y(kN(bEt(a=Q$(h3(r),86),(Hjt(),dwe))))&&(i=a);i&&JFt(t,a6(Tst(Hw(Wye,1),tZt,86,0,[i])),n),$Tt(n)}function sMt(t,e){var n,r,i,a,o;(a=D2(t,"individualSpacings"))&&(!E8(e,(cVt(),TBe))&&(n=new Js,qmt(e,TBe,n)),i=Q$(JIt(e,TBe),373),r=null,(o=a)&&(r=new kx(o,wit(o,O8(Wee,cWt,2,0,6,1)))),r&&t5(r,new dS(o,i)))}function cMt(t,e){var n,r,i,a,o,s;return a=null,(Y6t in(o=t).a||J6t in o.a||F6t in o.a)&&(s=Hst(e),r=D2(o,Y6t),SAt(new Up(s).a,r),i=D2(o,J6t),_At(new qp(s).a,i),n=M2(o,F6t),TCt(new Zp(s).a,n),a=n),a}function lMt(t,e){var n,r,i;if(e===t)return!0;if(rO(e,543)){if(i=Q$(e,835),t.a.d!=i.a.d||wW(t).gc()!=wW(i).gc())return!1;for(r=wW(i).Kc();r.Ob();)if(r1(t,(n=Q$(r.Pb(),416)).a.cd())!=Q$(n.a.dd(),14).gc())return!1;return!0}return!1}function uMt(t){var e,n,r,i;return e=r=Q$(t.a,19).a,n=i=Q$(t.b,19).a,0==r&&0==i?n-=1:-1==r&&i<=0?(e=0,n-=2):r<=0&&i>0?(e-=1,n-=1):r>=0&&i<0?(e+=1,n+=1):r>0&&i>=0?(e-=1,n+=1):(e+=1,n-=1),new nS(nft(e),nft(n))}function hMt(t,e){return t.c<e.c?-1:t.c>e.c?1:t.b<e.b?-1:t.b>e.b?1:t.a!=e.a?Zct(t.a)-Zct(e.a):t.d==(V4(),Uve)&&e.d==Qve?-1:t.d==Qve&&e.d==Uve?1:0}function fMt(t,e){var n,r,i,a,o;return o=(a=e.a).c.i==e.b?a.d:a.c,r=a.c.i==e.b?a.c:a.d,(i=KAt(t.a,o,r))>0&&i<JJt?(n=qIt(t.a,r.i,i,t.c),rnt(t.a,r.i,-n),n>0):i<0&&-i<JJt&&(n=YIt(t.a,r.i,-i,t.c),rnt(t.a,r.i,n),n>0)}function dMt(t,e,n,r){var i,a,o,s,c,l;for(i=(e-t.d)/t.c.c.length,a=0,t.a+=n,t.d=e,l=new Gd(t.c);l.a<l.c.c.length;)s=(c=Q$(J1(l),33)).g,o=c.f,Tnt(c,c.i+a*i),Bnt(c,c.j+r*n),Ent(c,c.g+i),xnt(c,t.a),++a,h_t(c,new O_(c.g,c.f),new O_(s,o))}function AMt(t){var e,n,r,i,a,o,s;if(null==t)return null;for(s=t.length,o=O8(IDe,m6t,25,i=(s+1)/2|0,15,1),s%2!=0&&(o[--i]=JNt((h1(s-1,t.length),t.charCodeAt(s-1)))),n=0,r=0;n<i;++n)e=JNt(lW(t,r++)),a=JNt(lW(t,r++)),o[n]=(e<<4|a)<<24>>24;return o}function gMt(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,r=t.d;r=r.split("/"),t.o=Qgt(".",[n,Qgt("$",r)]),t.b=Qgt(".",[n,Qgt(".",r)]),t.k=r[r.length-1]}function pMt(t,e){var n,r,i,a,o;for(o=null,a=new Gd(t.e.a);a.a<a.c.c.length;)if((i=Q$(J1(a),121)).b.a.c.length==i.g.a.c.length){for(r=i.e,o=eBt(i),n=i.e-Q$(o.a,19).a+1;n<i.e+Q$(o.b,19).a;n++)e[n]<e[r]&&(r=n);e[r]<e[i.e]&&(--e[i.e],++e[r],i.e=r)}}function mMt(t){var n,r,i,a,o,s,c;for(i=Nqt,r=Pqt,n=new Gd(t.e.b);n.a<n.c.c.length;)for(o=new Gd(Q$(J1(n),29).a);o.a<o.c.c.length;)a=Q$(J1(o),10),s=(c=Hy(t.p[a.p]))+Hy(t.b[t.g[a.p].p]),i=e.Math.min(i,c),r=e.Math.max(r,s);return r-i}function bMt(t,e,n,r){var i,a,o,s,c;for(s=0,c=(i=wRt(t,e)).gc();s<c;++s)if(mR(r,vW(Q9(t,a=Q$(i.Xb(s),170)))))if(o=yW(Q9(t,a)),null==n){if(null==o)return a}else if(mR(n,o))return a;return null}function vMt(t,e,n,r){var i,a,o,s,c;for(s=0,c=(i=kRt(t,e)).gc();s<c;++s)if(mR(r,vW(Q9(t,a=Q$(i.Xb(s),170)))))if(o=yW(Q9(t,a)),null==n){if(null==o)return a}else if(mR(n,o))return a;return null}function yMt(t,e,n){var r,i,a,o,s,c;if(o=new pc,s=aFt(t.e.Tg(),e),r=Q$(t.g,119),YE(),Q$(e,66).Oj())for(a=0;a<t.i;++a)i=r[a],s.rl(i.ak())&&l7(o,i);else for(a=0;a<t.i;++a)i=r[a],s.rl(i.ak())&&(c=i.dd(),l7(o,n?QSt(t,e,a,o.i,c):c));return M3(o)}function wMt(t,e){var n,r,i,a;for(n=new $dt(aue),IBt(),i=0,a=(r=Tst(Hw(aue,1),IWt,227,0,[Yle,Zle,qle,Jle,tue,Wle])).length;i<a;++i)fP(n,r[i],new Mm);return qx(LW(SW(ftt(new Fj(null,new f1(t.b,16)),new Zn),new tr),new cg(e)),new lg(n)),n}function kMt(t,n,r){var i,a,o,s,c,l,u,h;for(o=n.Kc();o.Ob();)l=(a=Q$(o.Pb(),33)).i+a.g/2,h=a.j+a.f/2,c=l-((s=t.f).i+s.g/2),u=h-(s.j+s.f/2),i=e.Math.sqrt(c*c+u*u),c*=t.e/i,u*=t.e/i,r?(l-=c,h-=u):(l+=c,h+=u),Tnt(a,l-a.g/2),Bnt(a,h-a.f/2)}function CMt(t){var e,n,r;if(!t.c&&null!=t.b){for(e=t.b.length-4;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])&&(r=t.b[n+2],t.b[n+2]=t.b[n],t.b[n]=r,r=t.b[n+3],t.b[n+3]=t.b[n+1],t.b[n+1]=r);t.c=!0}}function xMt(t,e){var n,r,i,a,o,s;for(a=(1==e?Goe:zoe).a.ec().Kc();a.Ob();)for(i=Q$(a.Pb(),103),s=Q$(c6(t.f.c,i),21).Kc();s.Ob();)switch(o=Q$(s.Pb(),46),r=Q$(o.b,81),n=Q$(o.a,189).c,i.g){case 2:case 1:r.g.d+=n;break;case 4:case 3:r.g.c+=n}}function EMt(t,e){var n,r,i,a,o,s,c,l,u;for(l=-1,u=0,s=0,c=(o=t).length;s<c;++s){for(a=o[s],n=new vH(-1==l?t[0]:t[l],e,(xut(),abe)),r=0;r<a.length;r++)for(i=r+1;i<a.length;i++)IF(a[r],(lVt(),ffe))&&IF(a[i],ffe)&&uXt(n,a[r],a[i])>0&&++u;++l}return u}function TMt(t){var e;return(e=new uD(Jk(t.gm))).a+="@",oL(e,(Zct(t)>>>0).toString(16)),t.kh()?(e.a+=" (eProxyURI: ",aL(e,t.qh()),t.$g()&&(e.a+=" eClass: ",aL(e,t.$g())),e.a+=")"):t.$g()&&(e.a+=" (eClass: ",aL(e,t.$g()),e.a+=")"),e.a}function BMt(t){var e,n,r;if(t.e)throw Um(new Ry((wN(Are),LYt+Are.k+IYt)));for(t.d==(Qht(),QBe)&&Czt(t,PBe),n=new Gd(t.a.a);n.a<n.c.c.length;)(e=Q$(J1(n),307)).g=e.i;for(r=new Gd(t.a.b);r.a<r.c.c.length;)Q$(J1(r),57).i=Pqt;return t.b.Le(t),t}function _Mt(t,e){var n,r,i,a,o;if(e<2*t.b)throw Um(new Py("The knot vector must have at least two time the dimension elements."));for(t.f=1,i=0;i<t.b;i++)G$(t.e,0);for(n=o=e+1-2*t.b,a=1;a<o;a++)G$(t.e,a/n);if(t.d)for(r=0;r<t.b;r++)G$(t.e,1)}function SMt(t,e){var n,r,i,a,o;if(a=e,!(o=Q$(zrt(EX(t.i),a),33)))throw Um(new tw("Unable to find elk node for json object '"+F2(a,H6t)+"' Panic!"));r=M2(a,"edges"),MSt((n=new aS(t,o)).a,n.b,r),i=M2(a,L6t),Fwt(new Mp(t).a,i)}function LMt(t,e,n,r){var i,a,o,s,c;if(null!=r){if(i=t.d[e])for(a=i.g,c=i.i,s=0;s<c;++s)if((o=Q$(a[s],133)).Sh()==n&&Oht(r,o.cd()))return s}else if(i=t.d[e])for(a=i.g,c=i.i,s=0;s<c;++s)if(HS((o=Q$(a[s],133)).cd())===HS(r))return s;return-1}function IMt(t,e){var n,r;return rO(n=null==e?$S(SY(t.f,null)):cT(t.g,e),235)?((r=Q$(n,235)).Qh(),r):rO(n,498)?((r=Q$(n,1938).a)&&(null==r.yb||(null==e?w_t(t.f,null,r):odt(t.g,e,r))),r):null}function MMt(t){var e,n,r,i,a,o,s;if(PNt(),null==t)return null;if((i=t.length)%2!=0)return null;for(e=X9(t),n=O8(IDe,m6t,25,a=i/2|0,15,1),r=0;r<a;r++){if(-1==(o=XOe[e[2*r]]))return null;if(-1==(s=XOe[e[2*r+1]]))return null;n[r]=(o<<4|s)<<24>>24}return n}function OMt(t,e,n){var r,i,a;if(!(i=Q$(oW(t.i,e),306)))if(i=new det(t.d,e,n),mK(t.i,e,i),apt(e))wO(t.a,e.c,e.b,i);else switch(a=MBt(e),r=Q$(oW(t.p,a),244),a.g){case 1:case 3:i.j=!0,yy(r,e.b,i);break;case 4:case 2:i.k=!0,yy(r,e.c,i)}return i}function DMt(t,e,n,r){var i,a,o,s,c,l;if(s=new pc,c=aFt(t.e.Tg(),e),i=Q$(t.g,119),YE(),Q$(e,66).Oj())for(o=0;o<t.i;++o)a=i[o],c.rl(a.ak())&&l7(s,a);else for(o=0;o<t.i;++o)a=i[o],c.rl(a.ak())&&(l=a.dd(),l7(s,r?QSt(t,e,o,s.i,l):l));return WAt(s,n)}function FMt(t,n){var r,i,a,o,s,c;if((i=t.b[n.p])>=0)return i;for(a=1,o=new Gd(n.j);o.a<o.c.c.length;)for(r=new Gd(Q$(J1(o),11).g);r.a<r.c.c.length;)n!=(c=Q$(J1(r),17).d.i)&&(s=FMt(t,c),a=e.Math.max(a,s+1));return nAt(t,n,a),a}function NMt(t,e,n){var r,i,a;for(r=1;r<t.c.length;r++){for(u1(r,t.c.length),a=Q$(t.c[r],10),i=r;i>0&&e.ue((u1(i-1,t.c.length),Q$(t.c[i-1],10)),a)>0;)r5(t,i,(u1(i-1,t.c.length),Q$(t.c[i-1],10))),--i;u1(i,t.c.length),t.c[i]=a}n.a=new Om,n.b=new Om}function PMt(t,e,n){var r,i,a,o,s,c,l;for(l=new WR(r=Q$(e.e&&e.e(),9),Q$(xP(r,r.length),9),0),o=0,s=(a=yRt(n,"[\\[\\]\\s,]+")).length;o<s;++o)if(0!=NEt(i=a[o]).length){if(null==(c=$St(t,i)))return null;sit(l,Q$(c,22))}return l}function RMt(t){var n,r,i;for(r=new Gd(t.a.a.b);r.a<r.c.c.length;)n=Q$(J1(r),81),vV(0),(i=0)>0&&((!dI(t.a.c)||!n.n.d)&&(!AI(t.a.c)||!n.n.b)&&(n.g.d-=e.Math.max(0,i/2-.5)),(!dI(t.a.c)||!n.n.a)&&(!AI(t.a.c)||!n.n.c)&&(n.g.a+=e.Math.max(0,i-1)))}function QMt(t,e,n){var r;if(2==(t.c-t.b&t.a.length-1))e==(yGt(),sSe)||e==oSe?(wet(Q$(kct(t),15),(Gyt(),y_e)),wet(Q$(kct(t),15),w_e)):(wet(Q$(kct(t),15),(Gyt(),w_e)),wet(Q$(kct(t),15),y_e));else for(r=new hW(t);r.a!=r.b;)wet(Q$(Rut(r),15),n)}function UMt(t,e){var n,r,i,a,o,s;for(o=new C2(r=U$(new sm(t)),r.c.length),s=new C2(i=U$(new sm(e)),i.c.length),a=null;o.b>0&&s.b>0&&(EF(o.b>0),n=Q$(o.a.Xb(o.c=--o.b),33),EF(s.b>0),n==Q$(s.a.Xb(s.c=--s.b),33));)a=n;return a}function $Mt(t,n){var r,i,a,o;return a=t.a*aYt+1502*t.b,o=t.b*aYt+11,a+=r=e.Math.floor(o*oYt),o-=r*sYt,a%=sYt,t.a=a,t.b=o,n<=24?e.Math.floor(t.a*_ne[n]):((i=t.a*(1<<n-24)+e.Math.floor(t.b*Sne[n]))>=2147483648&&(i-=Gqt),i)}function HMt(t,e,n){var r,i,a,o;f0(t,e)>f0(t,n)?(r=adt(n,(yGt(),oSe)),t.d=r.dc()?0:aj(Q$(r.Xb(0),11)),o=adt(e,TSe),t.b=o.dc()?0:aj(Q$(o.Xb(0),11))):(i=adt(n,(yGt(),TSe)),t.d=i.dc()?0:aj(Q$(i.Xb(0),11)),a=adt(e,oSe),t.b=a.dc()?0:aj(Q$(a.Xb(0),11)))}function jMt(t){var e,n,r,i,a,o,s;if(t&&(e=t.Hh(V7t))&&null!=(o=xN(igt((!e.b&&(e.b=new qF((gVt(),bMe),KMe,e)),e.b),"conversionDelegates")))){for(s=new Mm,i=0,a=(r=yRt(o,"\\w+")).length;i<a;++i)n=r[i],s.c[s.c.length]=n;return s}return xq(),xq(),cne}function KMt(t,e){var n,r,i,a;for(n=t.o.a,a=Q$(Q$(c6(t.r,e),21),84).Kc();a.Ob();)(i=Q$(a.Pb(),111)).e.a=n*Hy(CN(i.b.We(Iie))),i.e.b=(r=i.b).Xe((cVt(),iBe))?r.Hf()==(yGt(),sSe)?-r.rf().b-Hy(CN(r.We(iBe))):Hy(CN(r.We(iBe))):r.Hf()==(yGt(),sSe)?-r.rf().b:0}function zMt(t){var e,n,r,i,a,o,s,c;e=!0,i=null,a=null;t:for(c=new Gd(t.a);c.a<c.c.c.length;)for(r=new oz(YO(udt(s=Q$(J1(c),10)).a.Kc(),new u));AIt(r);){if(n=Q$(K5(r),17),i&&i!=s){e=!1;break t}if(i=s,o=n.c.i,a&&a!=o){e=!1;break t}a=o}return e}function GMt(t,e,n){var r,i,a,o,s,c;for(a=-1,s=-1,o=0;o<e.c.length&&(u1(o,e.c.length),!((i=Q$(e.c[o],329)).c>t.c));o++)i.a>=t.s&&(a<0&&(a=o),s=o);return c=(t.s+t.c)/2,a>=0&&(c=$E((u1(r=qPt(t,e,a,s),e.c.length),Q$(e.c[r],329))),hLt(e,r,n)),c}function XMt(){XMt=L,uCe=new zI((cVt(),rTe),1.3),ACe=yTe,BCe=new GI(15),TCe=new zI(zTe,BCe),LCe=new zI(IBe,15),hCe=cTe,yCe=NTe,wCe=QTe,kCe=$Te,vCe=DTe,CCe=KTe,_Ce=lBe,IIt(),ECe=oCe,bCe=iCe,xCe=aCe,SCe=cCe,gCe=rCe,pCe=TTe,mCe=BTe,dCe=nCe,fCe=eCe,ICe=lCe}function VMt(t,e,n){var r,i,a,o,s;for(Urt(i=new kc,(vV(e),e)),!i.b&&(i.b=new qF((gVt(),bMe),KMe,i)),s=i.b,o=1;o<n.length;o+=2)mkt(s,n[o-1],n[o]);for(!t.Ab&&(t.Ab=new tG(FIe,t,0,3)),r=t.Ab,a=0;a<0;++a)r=mV(Q$(Xet(r,r.i-1),590));l7(r,i)}function WMt(t,e,n){var r,i,a;for(IN.call(this,new Mm),this.a=e,this.b=n,this.e=t,t.b&&V$t(t),r=t.a,this.d=qW(r.a,this.a),this.c=qW(r.b,this.b),sdt(this,this.d,this.c),bSt(this),a=this.e.e.a.ec().Kc();a.Ob();)(i=Q$(a.Pb(),266)).c.c.length>0&&Djt(this,i)}function qMt(t,e,n,r,i,a){var o,s,c;if(!i[e.b]){for(i[e.b]=!0,!(o=r)&&(o=new b6),G$(o.e,e),c=a[e.b].Kc();c.Ob();)(s=Q$(c.Pb(),282)).d!=n&&s.c!=n&&(s.c!=e&&qMt(t,s.c,e,o,i,a),s.d!=e&&qMt(t,s.d,e,o,i,a),G$(o.c,s),gst(o.d,s.b));return o}return null}function YMt(t){var e,n,r;for(e=0,n=new Gd(t.e);n.a<n.c.c.length;)o5(new Fj(null,new f1(Q$(J1(n),17).b,16)),new mn)&&++e;for(r=new Gd(t.g);r.a<r.c.c.length;)o5(new Fj(null,new f1(Q$(J1(r),17).b,16)),new bn)&&++e;return e>=2}function JMt(t,e){var n,r,i,a;for(Sxt(e,"Self-Loop pre-processing",1),r=new Gd(t.a);r.a<r.c.c.length;)Pdt(n=Q$(J1(r),10))&&(a=new Spt(n),lct(n,(lVt(),_fe),a),yQt(a),qx(LW(ftt(new Fj(null,new f1((i=a).d,16)),new Hr),new jr),new Kr),nFt(i));$Tt(e)}function ZMt(t,e,n,r,i){var a,o,s,c,l;for(a=t.c.d.j,o=Q$(Fmt(n,0),8),l=1;l<n.b;l++)c=Q$(Fmt(n,l),8),n5(r,o,r.c.b,r.c),s=vO(KP(new fI(o),c),.5),KP(s,vO(new zZ(llt(a)),i)),n5(r,s,r.c.b,r.c),o=c,a=0==e?xft(a):kft(a);DH(r,(EF(0!=n.b),Q$(n.c.b.c,8)))}function tOt(t){return ZIt(),!(Bot(_J(wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[I_e])),t))>1||Bot(_J(wK(B_e,Tst(Hw(H_e,1),IWt,93,0,[T_e,S_e])),t))>1||Bot(_J(wK(D_e,Tst(Hw(H_e,1),IWt,93,0,[O_e,M_e])),t))>1)}function eOt(t,e){var n,r,i;return(n=e.Hh(t.a))&&null!=(i=xN(igt((!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),n.b),"affiliation")))?-1==(r=mD(i,qxt(35)))?oft(t,iz(t,zet(e.Hj())),i):0==r?oft(t,null,i.substr(1)):oft(t,i.substr(0,r),i.substr(r+1)):null}function nOt(t){var e,n;try{return null==t?KVt:Udt(t)}catch(r){if(rO(r=hst(r),102))return e=r,n=Jk(tlt(t))+"@"+(Lx(),(ebt(t)>>>0).toString(16)),Ppt(wst(),(uE(),"Exception during lenientFormat for "+n),e),"<"+n+" threw "+Jk(e.gm)+">";throw Um(r)}}function rOt(t){switch(t.g){case 0:return new ah;case 1:return new th;case 2:return new LE;case 3:return new Sa;case 4:return new FP;case 5:return new oh;default:throw Um(new Py("No implementation is available for the layerer "+(null!=t.f?t.f:""+t.g)))}}function iOt(t,e,n){var r,i,a;for(a=new Gd(t.t);a.a<a.c.c.length;)(r=Q$(J1(a),268)).b.s<0&&r.c>0&&(r.b.n-=r.c,r.b.n<=0&&r.b.u>0&&DH(e,r.b));for(i=new Gd(t.i);i.a<i.c.c.length;)(r=Q$(J1(i),268)).a.s<0&&r.c>0&&(r.a.u-=r.c,r.a.u<=0&&r.a.n>0&&DH(n,r.a))}function aOt(t){var e,n,r;if(null==t.g&&(t.d=t.si(t.f),l7(t,t.d),t.c))return t.f;if(r=(e=Q$(t.g[t.i-1],47)).Pb(),t.e=e,(n=t.si(r)).Ob())t.d=n,l7(t,n);else for(t.d=null;!e.Ob()&&(LX(t.g,--t.i,null),0!=t.i);)e=Q$(t.g[t.i-1],47);return r}function oOt(t,e){var n,r,i,a,o,s;if(i=(r=e).ak(),IFt(t.e,i)){if(i.hi()&&H3(t,i,r.dd()))return!1}else for(s=aFt(t.e.Tg(),i),n=Q$(t.g,119),a=0;a<t.i;++a)if(o=n[a],s.rl(o.ak()))return!Oht(o,r)&&(Q$(sbt(t,a,e),72),!0);return l7(t,e)}function sOt(t,n,r,i){var a,o,s;for(Qf(a=new Ibt(t),(oTt(),xse)),lct(a,(lVt(),dfe),n),lct(a,Efe,i),lct(a,($Xt(),tme),(WCt(),z_e)),lct(a,cfe,n.c),lct(a,lfe,n.d),KFt(n,a),s=e.Math.floor(r/2),o=new Gd(a.j);o.a<o.c.c.length;)Q$(J1(o),11).n.b=s;return a}function cOt(t,e){var n,r,i,a,o,s,c,l,u;for(c=sF(t.c-t.b&t.a.length-1),l=null,u=null,a=new hW(t);a.a!=a.b;)i=Q$(Rut(a),10),n=(s=Q$(bEt(i,(lVt(),cfe)),11))?s.i:null,r=(o=Q$(bEt(i,lfe),11))?o.i:null,l==n&&u==r||(jIt(c,e),l=n,u=r),c.c[c.c.length]=i;jIt(c,e)}function lOt(t){var n,r,i,a,o,s;for(n=0,r=new Gd(t.a);r.a<r.c.c.length;)for(a=new oz(YO(hdt(Q$(J1(r),10)).a.Kc(),new u));AIt(a);)t==(i=Q$(K5(a),17)).d.i.c&&i.c.j==(yGt(),TSe)&&(o=A1(i.c).b,s=A1(i.d).b,n=e.Math.max(n,e.Math.abs(s-o)));return n}function uOt(t,e,n){var r,i;Sxt(n,"Remove overlaps",1),n.n&&e&&b0(n,o2(e),(Ult(),aLe)),r=Q$(JIt(e,(fN(),Xwe)),33),t.f=r,t.a=kbt(Q$(JIt(e,(zyt(),Fke)),293)),ed(t,(vV(i=CN(JIt(e,(cVt(),IBe)))),i)),Gzt(t,e,dNt(r),n),n.n&&e&&b0(n,o2(e),(Ult(),aLe))}function hOt(t,n,r){switch(r.g){case 1:return new O_(n.a,e.Math.min(t.d.b,n.b));case 2:return new O_(e.Math.max(t.c.a,n.a),n.b);case 3:return new O_(n.a,e.Math.max(t.c.b,n.b));case 4:return new O_(e.Math.min(n.a,t.d.a),n.b)}return new O_(n.a,n.b)}function fOt(t,e,n,r){var i,a,o,s,c,l,u,h,f;for(h=r?(yGt(),TSe):(yGt(),oSe),i=!1,l=0,u=(c=e[n]).length;l<u;++l)IR(Q$(bEt(s=c[l],($Xt(),tme)),98))||(o=s.e,(f=!adt(s,h).dc()&&!!o)&&(a=HCt(o),t.b=new KCt(a,r?0:a.length-1)),i|=iQt(t,s,h,f));return i}function dOt(t){var e,n,r;for(G$(e=sF(1+(!t.c&&(t.c=new tG(KLe,t,9,9)),t.c).i),(!t.d&&(t.d=new cR(NLe,t,8,5)),t.d)),r=new SO((!t.c&&(t.c=new tG(KLe,t,9,9)),t.c));r.e!=r.i.gc();)G$(e,(!(n=Q$(ymt(r),118)).d&&(n.d=new cR(NLe,n,8,5)),n.d));return bX(e),new _L(e)}function AOt(t){var e,n,r;for(G$(e=sF(1+(!t.c&&(t.c=new tG(KLe,t,9,9)),t.c).i),(!t.e&&(t.e=new cR(NLe,t,7,4)),t.e)),r=new SO((!t.c&&(t.c=new tG(KLe,t,9,9)),t.c));r.e!=r.i.gc();)G$(e,(!(n=Q$(ymt(r),118)).e&&(n.e=new cR(NLe,n,7,4)),n.e));return bX(e),new _L(e)}function gOt(t){var e,n,r,i;if(null==t)return null;if(r=Q$t(t,!0),i=D9t.length,mR(r.substr(r.length-i,i),D9t))if(4==(n=r.length)){if(h1(0,r.length),43==(e=r.charCodeAt(0)))return QOe;if(45==e)return ROe}else if(3==n)return QOe;return fTt(r)}function pOt(t){var e,n,r,i;for(e=0,n=0,i=new Gd(t.j);i.a<i.c.c.length;)if(e=dK(rdt(e,$6(SW(new Fj(null,new f1((r=Q$(J1(i),11)).e,16)),new Ya)))),n=dK(rdt(n,$6(SW(new Fj(null,new f1(r.g,16)),new Ja)))),e>1||n>1)return 2;return e+n==1?2:0}function mOt(t,e,n){var r,i,a,o;for(Sxt(n,"ELK Force",1),$y(kN(JIt(e,(uPt(),Gae))))||yJ(new kA((HE(),new Dy(e)))),ywt(o=uct(e)),Kct(t,Q$(bEt(o,Hae),424)),i=(a=$Ut(t.a,o)).Kc();i.Ob();)r=Q$(i.Pb(),231),TRt(t.b,r,bat(n,1/a.gc()));EGt(o=jGt(a)),$Tt(n)}function bOt(t,e){var n,r,i;if(Sxt(e,"Breaking Point Processor",1),Szt(t),$y(kN(bEt(t,($Xt(),Hme))))){for(r=new Gd(t.b);r.a<r.c.c.length;)for(n=0,i=new Gd(Q$(J1(r),29).a);i.a<i.c.c.length;)Q$(J1(i),10).p=n++;sHt(t),$Ft(t,!0),$Ft(t,!1)}$Tt(e)}function vOt(t,e,n){var r,i,a,o,s;for(o=t.c,a=(n.q?n.q:(xq(),xq(),lne)).vc().Kc();a.Ob();)i=Q$(a.Pb(),42),!yC(SW(new Fj(null,new f1(o,16)),new iA(new I_(e,i)))).sd((dE(),Zne))&&(rO(s=i.dd(),4)&&null!=(r=Ygt(s))&&(s=r),e.Ye(Q$(i.cd(),146),s))}function yOt(t,e){var n,r,i,a;if(e){for(a=!(i=rO(t.Cb,88)||rO(t.Cb,99))&&rO(t.Cb,322),n=new SO((!e.a&&(e.a=new iK(e,GIe,e)),e.a));n.e!=n.i.gc();)if(r=hUt(Q$(ymt(n),87)),i?rO(r,88):a?rO(r,148):r)return r;return i?(gVt(),fMe):(gVt(),lMe)}return null}function wOt(t,e){var n,r,i,a,o;for(Sxt(e,"Constraints Postprocessor",1),a=0,i=new Gd(t.b);i.a<i.c.c.length;){for(o=0,r=new Gd(Q$(J1(i),29).a);r.a<r.c.c.length;)(n=Q$(J1(r),10)).k==(oTt(),Tse)&&(lct(n,($Xt(),ype),nft(a)),lct(n,Qge,nft(o)),++o);++a}$Tt(e)}function kOt(t,e,n,r){var i,a,o,s,c,l;for(zP(s=new O_(n,r),Q$(bEt(e,(Hjt(),Jye)),8)),l=cmt(e.b,0);l.b!=l.d.c;)KP((c=Q$(h3(l),86)).e,s),DH(t.b,c);for(o=cmt(e.a,0);o.b!=o.d.c;){for(i=cmt((a=Q$(h3(o),188)).a,0);i.b!=i.d.c;)KP(Q$(h3(i),8),s);DH(t.a,a)}}function COt(t,e,n){var r,i,a;if(!(a=Qjt((_Bt(),qMe),t.Tg(),e)))throw Um(new Py(r6t+e.ne()+i6t));if(YE(),!Q$(a,66).Oj()&&!(a=Y1(Q9(qMe,a))))throw Um(new Py(r6t+e.ne()+i6t));i=Q$((r=t.Yg(a))>=0?t._g(r,!0,!0):iLt(t,a,!0),153),Q$(i,215).ml(e,n)}function xOt(t,e){var n,r,i,a,o;for(n=new Mm,i=ftt(new Fj(null,new f1(t,16)),new xo),a=ftt(new Fj(null,new f1(t,16)),new Eo),o=C9(U6(IW(EDt(Tst(Hw(tre,1),$Vt,833,0,[i,a])),new To))),r=1;r<o.length;r++)o[r]-o[r-1]>=2*e&&G$(n,new v$(o[r-1]+e,o[r]-e));return n}function EOt(t,e,n){Sxt(n,"Eades radial",1),n.n&&e&&b0(n,o2(e),(Ult(),aLe)),t.d=Q$(JIt(e,(fN(),Xwe)),33),t.c=Hy(CN(JIt(e,(zyt(),Dke)))),t.e=kbt(Q$(JIt(e,Fke),293)),t.a=hAt(Q$(JIt(e,Pke),426)),t.b=Hkt(Q$(JIt(e,Lke),340)),rkt(t),n.n&&e&&b0(n,o2(e),(Ult(),aLe))}function TOt(t,e,n){var r,i,a,o,s;if(n)for(a=((r=new cz(n.a.length)).b-r.a)*r.c<0?(tT(),kDe):new zO(r);a.Ob();)(i=O2(n,Q$(a.Pb(),19).a))&&(Irt(o=L3(t,(Zk(),s=new wv,!!e&&UOt(s,e),s),i),F2(i,H6t)),Ext(i,o),S_t(i,o),Dct(t,i,o))}function BOt(t){var e,n,r,i;if(!t.j){if(i=new Sc,null==(e=xMe).a.zc(t,e)){for(r=new SO(vY(t));r.e!=r.i.gc();)gX(i,BOt(n=Q$(ymt(r),26))),l7(i,n);e.a.Bc(t)}iut(i),t.j=new ML((Q$(Xet(Vq((VX(),JIe).o),11),18),i.i),i.g),E5(t).b&=-33}return t.j}function _Ot(t){var e,n,r,i;if(null==t)return null;if(r=Q$t(t,!0),i=D9t.length,mR(r.substr(r.length-i,i),D9t))if(4==(n=r.length)){if(h1(0,r.length),43==(e=r.charCodeAt(0)))return $Oe;if(45==e)return UOe}else if(3==n)return $Oe;return new Db(r)}function SOt(t){var e,n,r;return(n=t.l)&n-1||(r=t.m)&r-1||(e=t.h)&e-1||0==e&&0==r&&0==n?-1:0==e&&0==r&&0!=n?grt(n):0==e&&0!=r&&0==n?grt(r)+22:0!=e&&0==r&&0==n?grt(e)+44:-1}function LOt(t,e){var n,r,i,a;for(Sxt(e,"Edge joining",1),n=$y(kN(bEt(t,($Xt(),Dme)))),r=new Gd(t.b);r.a<r.c.c.length;)for(a=new C2(Q$(J1(r),29).a,0);a.b<a.d.gc();)EF(a.b<a.d.gc()),(i=Q$(a.d.Xb(a.c=a.b++),10)).k==(oTt(),Ese)&&(rKt(i,n),lV(a));$Tt(e)}function IOt(t,e,n){var r;if(c2(t.b),TG(t.b,(Tdt(),UCe),(_E(),Hxe)),TG(t.b,$Ce,e.g),TG(t.b,HCe,e.a),t.a=Ijt(t.b,e),Sxt(n,"Compaction by shrinking a tree",t.a.c.length),e.i.c.length>1)for(r=new Gd(t.a);r.a<r.c.c.length;)Q$(J1(r),51).pf(e,bat(n,1));$Tt(n)}function MOt(t,e){var n,r,i,a,o;for(i=e.a&t.f,a=null,r=t.b[i];;r=r.b){if(r==e){a?a.b=e.b:t.b[i]=e.b;break}a=r}for(o=e.f&t.f,a=null,n=t.c[o];;n=n.d){if(n==e){a?a.d=e.d:t.c[o]=e.d;break}a=n}e.e?e.e.c=e.c:t.a=e.c,e.c?e.c.e=e.e:t.e=e.e,--t.i,++t.g}function OOt(t){var n,r,i,a,o,s,c,l,u,h;for(r=t.o,n=t.p,s=FVt,a=RWt,c=FVt,o=RWt,u=0;u<r;++u)for(h=0;h<n;++h)mvt(t,u,h)&&(s=e.Math.min(s,u),a=e.Math.max(a,u),c=e.Math.min(c,h),o=e.Math.max(o,h));return l=a-s+1,i=o-c+1,new XW(nft(s),nft(c),nft(l),nft(i))}function DOt(t,e){var n,r,i,a;for(EF((a=new C2(t,0)).b<a.d.gc()),n=Q$(a.d.Xb(a.c=a.b++),140);a.b<a.d.gc();)EF(a.b<a.d.gc()),i=new mH((r=Q$(a.d.Xb(a.c=a.b++),140)).c,n.d,e),EF(a.b>0),a.a.Xb(a.c=--a.b),bP(a,i),EF(a.b<a.d.gc()),a.d.Xb(a.c=a.b++),i.a=!1,n=r}function FOt(t){var e,n,r,i,a;for(r=Q$(bEt(t,(lVt(),Nhe)),11),a=new Gd(t.j);a.a<a.c.c.length;){for(n=new Gd((i=Q$(J1(a),11)).g);n.a<n.c.c.length;)return CZ(Q$(J1(n),17),r),i;for(e=new Gd(i.e);e.a<e.c.c.length;)return xZ(Q$(J1(e),17),r),i}return null}function NOt(t,n,r){var i,a;Vut(i=uot(r.q.getTime()),0)<0?(a=VWt-dK(hgt(y9(i),VWt)))==VWt&&(a=0):a=dK(hgt(i,VWt)),1==n?OX(t,48+(a=e.Math.min((a+50)/100|0,9))&WWt):2==n?wtt(t,a=e.Math.min((a+5)/10|0,99),2):(wtt(t,a,3),n>3&&wtt(t,0,n-3))}function POt(t){var e,n,r,i;return HS(bEt(t,($Xt(),spe)))===HS((oht(),g_e))?!t.e&&HS(bEt(t,Fge))!==HS((Pot(),vhe)):(r=Q$(bEt(t,Nge),292),i=$y(kN(bEt(t,Uge)))||HS(bEt(t,$ge))===HS((Srt(),sue)),e=Q$(bEt(t,Dge),19).a,n=t.a.c.length,!i&&r!=(Pot(),vhe)&&(0==e||e>n))}function ROt(t){var e,n;for(n=0;n<t.c.length&&!(sj((u1(n,t.c.length),Q$(t.c[n],113)))>0);n++);if(n>0&&n<t.c.length-1)return n;for(e=0;e<t.c.length&&!(sj((u1(e,t.c.length),Q$(t.c[e],113)))>0);e++);return e>0&&n<t.c.length-1?e:t.c.length/2|0}function QOt(t,e){var n,r;if(e!=t.Cb||t.Db>>16!=6&&e){if(mwt(t,e))throw Um(new Py(d6t+NLt(t)));r=null,t.Cb&&(r=(n=t.Db>>16)>=0?cwt(t,r):t.Cb.ih(t,-1-n,null,r)),e&&(r=Omt(e,t,6,r)),(r=VN(t,e,r))&&r.Fi()}else 4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,6,e,e))}function UOt(t,e){var n,r;if(e!=t.Cb||t.Db>>16!=9&&e){if(mwt(t,e))throw Um(new Py(d6t+zPt(t)));r=null,t.Cb&&(r=(n=t.Db>>16)>=0?uwt(t,r):t.Cb.ih(t,-1-n,null,r)),e&&(r=Omt(e,t,9,r)),(r=WN(t,e,r))&&r.Fi()}else 4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,9,e,e))}function $Ot(t,e){var n,r;if(e!=t.Cb||t.Db>>16!=3&&e){if(mwt(t,e))throw Um(new Py(d6t+hHt(t)));r=null,t.Cb&&(r=(n=t.Db>>16)>=0?xwt(t,r):t.Cb.ih(t,-1-n,null,r)),e&&(r=Omt(e,t,12,r)),(r=XN(t,e,r))&&r.Fi()}else 4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,3,e,e))}function HOt(t){var e,n,r,i,a;if(r=_wt(t),null==(a=t.j)&&r)return t.$j()?null:r.zj();if(rO(r,148)){if((n=r.Aj())&&(i=n.Nh())!=t.i){if((e=Q$(r,148)).Ej())try{t.g=i.Kh(e,a)}catch(e){if(!rO(e=hst(e),78))throw Um(e);t.g=null}t.i=i}return t.g}return null}function jOt(t){var e;return G$(e=new Mm,new OT(new O_(t.c,t.d),new O_(t.c+t.b,t.d))),G$(e,new OT(new O_(t.c,t.d),new O_(t.c,t.d+t.a))),G$(e,new OT(new O_(t.c+t.b,t.d+t.a),new O_(t.c+t.b,t.d))),G$(e,new OT(new O_(t.c+t.b,t.d+t.a),new O_(t.c,t.d+t.a))),e}function KOt(t,e,n,r){var i,a,o;if(o=Lkt(e,n),r.c[r.c.length]=e,-1==t.j[o.p]||2==t.j[o.p]||t.a[e.p])return r;for(t.j[o.p]=-1,a=new oz(YO(ldt(o).a.Kc(),new u));AIt(a);)if(!h5(i=Q$(K5(a),17))&&(h5(i)||i.c.i.c!=i.d.i.c)&&i!=e)return KOt(t,i,o,r);return r}function zOt(t,e,n){var r,i;for(i=e.a.ec().Kc();i.Ob();)r=Q$(i.Pb(),79),!Q$(FX(t.b,r),266)&&(qJ(TEt(r))==qJ(SEt(r))?tNt(t,r,n):TEt(r)==qJ(SEt(r))?null==FX(t.c,r)&&null!=FX(t.b,SEt(r))&&rzt(t,r,n,!1):null==FX(t.d,r)&&null!=FX(t.b,TEt(r))&&rzt(t,r,n,!0))}function GOt(t,e){var n,r,i,a,o,s,c;for(i=t.Kc();i.Ob();)for(r=Q$(i.Pb(),10),TZ(s=new BTt,r),H_t(s,(yGt(),oSe)),lct(s,(lVt(),yfe),(cD(),!0)),o=e.Kc();o.Ob();)a=Q$(o.Pb(),10),TZ(c=new BTt,a),H_t(c,TSe),lct(c,yfe,!0),lct(n=new fY,yfe,!0),xZ(n,s),CZ(n,c)}function XOt(t,e,n,r){var i,a,o,s;i=Lgt(t,e,n),a=Lgt(t,n,e),o=Q$(FX(t.c,e),112),s=Q$(FX(t.c,n),112),i<a?new jZ((_6(),Cye),o,s,a-i):a<i?new jZ((_6(),Cye),s,o,i-a):(0!=i||e.i&&n.i&&r[e.i.c][n.i.c])&&(new jZ((_6(),Cye),o,s,0),new jZ(Cye,s,o,0))}function VOt(t,e){var n,r,i,a,o,s;for(i=0,o=new Gd(e.a);o.a<o.c.c.length;)for(i+=(a=Q$(J1(o),10)).o.b+a.d.a+a.d.d+t.e,r=new oz(YO(udt(a).a.Kc(),new u));AIt(r);)(n=Q$(K5(r),17)).c.i.k==(oTt(),Bse)&&(i+=(s=Q$(bEt(n.c.i,(lVt(),dfe)),10)).o.b+s.d.a+s.d.d);return i}function WOt(t,e,n){var r,i,a,o,s,c,l;for(a=new Mm,S$t(t,l=new Wx,o=new Wx,e),kzt(t,l,o,e,n),c=new Gd(t);c.a<c.c.c.length;)for(i=new Gd((s=Q$(J1(c),112)).k);i.a<i.c.c.length;)r=Q$(J1(i),129),(!e||r.c==(_6(),kye))&&s.g>r.b.g&&(a.c[a.c.length]=r);return a}function qOt(){qOt=L,DCe=new y_("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),OCe=new y_("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),NCe=new y_("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),FCe=new y_("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),PCe=new y_("WHOLE_DRAWING",4)}function YOt(t,e){if(rO(e,239))return lft(t,Q$(e,33));if(rO(e,186))return Fft(t,Q$(e,118));if(rO(e,354))return ZW(t,Q$(e,137));if(rO(e,352))return YUt(t,Q$(e,79));if(e)return null;throw Um(new Py(K6t+MEt(new qy(Tst(Hw(Lte,1),$Vt,1,5,[e])))))}function JOt(t){var e,n,r,i,a,o,s;for(a=new Wx,i=new Gd(t.d.a);i.a<i.c.c.length;)0==(r=Q$(J1(i),121)).b.a.c.length&&n5(a,r,a.c.b,a.c);if(a.b>1)for(e=SD((n=new $b,++t.b,n),t.d),s=cmt(a,0);s.b!=s.d.c;)o=Q$(h3(s),121),zDt(iE(rE(aE(nE(new Ub,1),0),e),o))}function ZOt(t,e){var n,r;if(e!=t.Cb||t.Db>>16!=11&&e){if(mwt(t,e))throw Um(new Py(d6t+KPt(t)));r=null,t.Cb&&(r=(n=t.Db>>16)>=0?Ewt(t,r):t.Cb.ih(t,-1-n,null,r)),e&&(r=Omt(e,t,10,r)),(r=jP(t,e,r))&&r.Fi()}else 4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,11,e,e))}function tDt(t){var e,n,r,i;for(r=new olt(new Ed(t.b).a);r.b;)i=Q$((n=tnt(r)).cd(),11),lct(e=Q$(n.dd(),10),(lVt(),dfe),i),lct(i,wfe,e),lct(i,tfe,(cD(),!0)),H_t(i,Q$(bEt(e,Vhe),61)),bEt(e,Vhe),lct(i.i,($Xt(),tme),(WCt(),X_e)),Q$(bEt(pV(i.i),Yhe),21).Fc((fNt(),dhe))}function eDt(t,e,n){var r,i,a;if(r=0,i=0,t.c)for(a=new Gd(t.d.i.j);a.a<a.c.c.length;)r+=Q$(J1(a),11).e.c.length;else r=1;if(t.d)for(a=new Gd(t.c.i.j);a.a<a.c.c.length;)i+=Q$(J1(a),11).g.c.length;else i=1;return(n+e)/2+.4*TJ(UH(i-r))*(n-e)}function nDt(t){var e,n;if(MCt(),t.Hc((yGt(),ESe)))throw Um(new Py("Port sides must not contain UNDEFINED"));switch(t.gc()){case 1:return Cle;case 2:return e=t.Hc(oSe)&&t.Hc(TSe),n=t.Hc(sSe)&&t.Hc(xSe),e||n?Tle:Ele;case 3:return xle;case 4:return kle;default:return null}}function rDt(t,e,n){var r,i,a,o;for(Sxt(n,"Breaking Point Removing",1),t.a=Q$(bEt(e,($Xt(),Yge)),218),i=new Gd(e.b);i.a<i.c.c.length;)for(o=new Gd(i0(Q$(J1(i),29).a));o.a<o.c.c.length;)qtt(a=Q$(J1(o),10))&&!(r=Q$(bEt(a,(lVt(),Fhe)),305)).d&&KGt(t,r);$Tt(n)}function iDt(t,e,n){return wNt(),(!Fat(t,e)||!Fat(t,n))&&(bzt(new O_(t.c,t.d),new O_(t.c+t.b,t.d),e,n)||bzt(new O_(t.c+t.b,t.d),new O_(t.c+t.b,t.d+t.a),e,n)||bzt(new O_(t.c+t.b,t.d+t.a),new O_(t.c,t.d+t.a),e,n)||bzt(new O_(t.c,t.d+t.a),new O_(t.c,t.d),e,n))}function aDt(t,e){var n,r,i,a;if(!t.dc())for(n=0,r=t.gc();n<r;++n)if(null==(a=xN(t.Xb(n)))?null==e:mR(a.substr(0,3),"!##")?null!=e&&(i=e.length,!mR(a.substr(a.length-i,i),e)||a.length!=e.length+3)&&!mR(E9t,e):mR(a,T9t)&&!mR(E9t,e)||mR(a,e))return!0;return!1}function oDt(t,e,n,r){var i,a,o,s,c,l;for(o=t.j.c.length,c=O8(iie,rJt,306,o,0,1),s=0;s<o;s++)(a=Q$(Oj(t.j,s),11)).p=s,c[s]=lLt(bIt(a),n,r);for(VDt(t,c,n,e,r),l=new Om,i=0;i<c.length;i++)c[i]&&XV(l,Q$(Oj(t.j,i),11),c[i]);l.f.c+l.g.c!=0&&(lct(t,(lVt(),jhe),l),LTt(t,c))}function sDt(t,e,n){var r,i;for(r=new Gd(t.a.b);r.a<r.c.c.length;)if((i=l2(Q$(J1(r),57)))&&i.k==(oTt(),Cse))switch(Q$(bEt(i,(lVt(),Vhe)),61).g){case 4:i.n.a=e.a;break;case 2:i.n.a=n.a-(i.o.a+i.d.c);break;case 1:i.n.b=e.b;break;case 3:i.n.b=n.b-(i.o.b+i.d.a)}}function cDt(){cDt=L,Bbe=new UB(WZt,0),kbe=new UB("NIKOLOV",1),Ebe=new UB("NIKOLOV_PIXEL",2),Cbe=new UB("NIKOLOV_IMPROVED",3),xbe=new UB("NIKOLOV_IMPROVED_PIXEL",4),wbe=new UB("DUMMYNODE_PERCENTAGE",5),Tbe=new UB("NODECOUNT_PERCENTAGE",6),_be=new UB("NO_BOUNDARY",7)}function lDt(t,e,n){var r,i,a;if(!(i=Q$(JIt(e,(EEt(),KEe)),19))&&(i=nft(0)),!(a=Q$(JIt(n,KEe),19))&&(a=nft(0)),i.a>a.a)return-1;if(i.a<a.a)return 1;if(t.a){if(0!=(r=Tft(e.j,n.j)))return r;if(0!=(r=Tft(e.i,n.i)))return r}return Tft(e.g*e.f,n.g*n.f)}function uDt(t,e){var n,r,i,a,o,s,c,l,u,h;if(++t.e,e>(c=null==t.d?0:t.d.length)){for(u=t.d,t.d=O8(sIe,i7t,63,2*c+4,0,1),a=0;a<c;++a)if(l=u[a])for(r=l.g,h=l.i,s=0;s<h;++s)o=tP(t,(i=Q$(r[s],133)).Sh()),!(n=t.d[o])&&(n=t.d[o]=t.uj()),n.Fc(i);return!0}return!1}function hDt(t,e,n){var r,i,a,o,s,c;if(a=(i=n).ak(),IFt(t.e,a)){if(a.hi())for(r=Q$(t.g,119),o=0;o<t.i;++o)if(Oht(s=r[o],i)&&o!=e)throw Um(new Py(a8t))}else for(c=aFt(t.e.Tg(),a),r=Q$(t.g,119),o=0;o<t.i;++o)if(s=r[o],c.rl(s.ak()))throw Um(new Py(_9t));cft(t,e,n)}function fDt(t,e){var n,r,i,a,o,s;for(n=Q$(bEt(e,(lVt(),zhe)),21),o=Q$(c6((NXt(),lse),n),21),s=Q$(c6(gse,n),21),a=o.Kc();a.Ob();)if(r=Q$(a.Pb(),21),!Q$(c6(t.b,r),15).dc())return!1;for(i=s.Kc();i.Ob();)if(r=Q$(i.Pb(),21),!Q$(c6(t.b,r),15).dc())return!1;return!0}function dDt(t,e){var n,r,i;for(Sxt(e,"Partition postprocessing",1),n=new Gd(t.b);n.a<n.c.c.length;)for(r=new Gd(Q$(J1(n),29).a);r.a<r.c.c.length;)for(i=new Gd(Q$(J1(r),10).j);i.a<i.c.c.length;)$y(kN(bEt(Q$(J1(i),11),(lVt(),yfe))))&&SG(i);$Tt(e)}function ADt(t,e){var n,r,i,a,o,s,c;if(1==t.a.c.length)return QTt(Q$(Oj(t.a,0),187),e);for(i=iht(t),o=0,s=t.d,r=i,c=t.d,a=(s-r)/2+r;r+1<s;){for(o=0,n=new Gd(t.a);n.a<n.c.c.length;)o+=iHt(Q$(J1(n),187),a,!1).a;o<e?(c=a,s=a):r=a,a=(s-r)/2+r}return c}function gDt(t){var e,n,r,i;return isNaN(t)?(z9(),gee):t<-0x8000000000000000?(z9(),dee):t>=0x8000000000000000?(z9(),fee):(r=!1,t<0&&(r=!0,t=-t),n=0,t>=Sqt&&(t-=(n=TJ(t/Sqt))*Sqt),e=0,t>=_qt&&(t-=(e=TJ(t/_qt))*_qt),i=CM(TJ(t),e,n),r&&Sct(i),i)}function pDt(t,e){var n,r,i,a;for(n=!e||!t.u.Hc((hSt(),tSe)),a=0,i=new Gd(t.e.Cf());i.a<i.c.c.length;){if((r=Q$(J1(i),838)).Hf()==(yGt(),ESe))throw Um(new Py("Label and node size calculator can only be used with ports that have port sides assigned."));r.vf(a++),Xut(t,r,n)}}function mDt(t,e){var n,r,i,a;return(r=e.Hh(t.a))&&(!r.b&&(r.b=new qF((gVt(),bMe),KMe,r)),null!=(n=xN(igt(r.b,Y7t)))&&rO(a=-1==(i=n.lastIndexOf("#"))?aN(t,e.Aj(),n):0==i?C7(t,null,n.substr(1)):C7(t,n.substr(0,i),n.substr(i+1)),148))?Q$(a,148):null}function bDt(t,e){var n,r,i,a;return(n=e.Hh(t.a))&&(!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),null!=(i=xN(igt(n.b,y9t)))&&rO(a=-1==(r=i.lastIndexOf("#"))?aN(t,e.Aj(),i):0==r?C7(t,null,i.substr(1)):C7(t,i.substr(0,r),i.substr(r+1)),148))?Q$(a,148):null}function vDt(t){var e,n,r,i,a;for(n=new Gd(t.a.a);n.a<n.c.c.length;){for((e=Q$(J1(n),307)).j=null,a=e.a.a.ec().Kc();a.Ob();)vL((r=Q$(a.Pb(),57)).b),(!e.j||r.d.c<e.j.d.c)&&(e.j=r);for(i=e.a.a.ec().Kc();i.Ob();)(r=Q$(i.Pb(),57)).b.a=r.d.c-e.j.d.c,r.b.b=r.d.d-e.j.d.d}return t}function yDt(t){var e,n,r,i,a;for(n=new Gd(t.a.a);n.a<n.c.c.length;){for((e=Q$(J1(n),189)).f=null,a=e.a.a.ec().Kc();a.Ob();)vL((r=Q$(a.Pb(),81)).e),(!e.f||r.g.c<e.f.g.c)&&(e.f=r);for(i=e.a.a.ec().Kc();i.Ob();)(r=Q$(i.Pb(),81)).e.a=r.g.c-e.f.g.c,r.e.b=r.g.d-e.f.g.d}return t}function wDt(t){var n,r,i;return r=Q$(t.a,19).a,i=Q$(t.b,19).a,r<(n=e.Math.max(e.Math.abs(r),e.Math.abs(i)))&&i==-n?new nS(nft(r+1),nft(i)):r==n&&i<n?new nS(nft(r),nft(i+1)):r>=-n&&i==n?new nS(nft(r-1),nft(i)):new nS(nft(r),nft(i-1))}function kDt(){return hVt(),Tst(Hw(ale,1),IWt,77,0,[nce,Zse,rce,vce,Rce,Cce,Kce,_ce,Nce,Ace,Mce,Bce,Pce,uce,Gce,Xse,Ice,Uce,yce,Qce,Vce,Dce,Vse,Fce,Wce,Hce,Xce,wce,sce,kce,bce,zce,Yse,ace,Ece,qse,Tce,pce,hce,Sce,dce,tce,Jse,mce,fce,Lce,jce,Wse,Oce,gce,xce,cce,oce,$ce,ice,lce,ece])}function CDt(t,e,n){t.d=0,t.b=0,e.k==(oTt(),Bse)&&n.k==Bse&&Q$(bEt(e,(lVt(),dfe)),10)==Q$(bEt(n,dfe),10)&&(x9(e).j==(yGt(),sSe)?HMt(t,e,n):HMt(t,n,e)),e.k==Bse&&n.k==Ese?x9(e).j==(yGt(),sSe)?t.d=1:t.b=1:n.k==Bse&&e.k==Ese&&(x9(n).j==(yGt(),sSe)?t.b=1:t.d=1),ovt(t,e,n)}function xDt(t){var e,n,r,i,a;return a=Lxt(t),null!=t.a&&SH(a,"category",t.a),!GC(new Td(t.d))&&(net(a,"knownOptions",r=new Tf),e=new tm(r),t5(new Td(t.d),e)),!GC(t.g)&&(net(a,"supportedFeatures",i=new Tf),n=new em(i),t5(t.g,n)),a}function EDt(t){var e,n,r,i,a,o,s,c;for(e=336,n=0,i=new sP(t.length),s=0,c=(o=t).length;s<c;++s)Wft(a=o[s]),wV(a),r=a.a,G$(i.a,bX(r)),e&=r.qd(),n=qlt(n,r.rd());return Q$(Q$(zG(new Fj(null,Hxt(new f1((GX(),OAt(i.a)),16),new w,e,n)),new wf(t)),670),833)}function TDt(t,e){var n;t.d&&(e.c!=t.e.c||uat(t.e.b,e.b))&&(G$(t.f,t.d),t.a=t.d.c+t.d.b,t.d=null,t.e=null),JL(e.b)?t.c=e:t.b=e,(e.b==(Lst(),Yoe)&&!e.a||e.b==Joe&&e.a||e.b==Zoe&&e.a||e.b==tse&&!e.a)&&t.c&&t.b&&(n=new KW(t.a,t.c.d,e.c-t.a,t.b.d-t.c.d),t.d=n,t.e=e)}function BDt(t){var e;if(Wv.call(this),this.i=new ds,this.g=t,this.f=Q$(t.e&&t.e(),9).length,0==this.f)throw Um(new Py("There must be at least one phase in the phase enumeration."));this.c=new WR(e=Q$(Xk(this.g),9),Q$(xP(e,e.length),9),0),this.a=new Q2,this.b=new Om}function _Dt(t,e){var n,r;if(e!=t.Cb||t.Db>>16!=7&&e){if(mwt(t,e))throw Um(new Py(d6t+iBt(t)));r=null,t.Cb&&(r=(n=t.Db>>16)>=0?lwt(t,r):t.Cb.ih(t,-1-n,null,r)),e&&(r=Q$(e,49).gh(t,1,OLe,r)),(r=XK(t,e,r))&&r.Fi()}else 4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,7,e,e))}function SDt(t,e){var n,r;if(e!=t.Cb||t.Db>>16!=3&&e){if(mwt(t,e))throw Um(new Py(d6t+Vht(t)));r=null,t.Cb&&(r=(n=t.Db>>16)>=0?fwt(t,r):t.Cb.ih(t,-1-n,null,r)),e&&(r=Q$(e,49).gh(t,0,RLe,r)),(r=VK(t,e,r))&&r.Fi()}else 4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,3,e,e))}function LDt(t,e){var n,r,i,a,o,s,c,l,u;return ILt(),e.d>t.d&&(s=t,t=e,e=s),e.d<63?GFt(t,e):(l=j5(t,o=(-2&t.d)<<4),u=j5(e,o),r=o$t(t,H5(l,o)),i=o$t(e,H5(u,o)),c=LDt(l,u),n=LDt(r,i),a=H5(a=IHt(IHt(a=LDt(o$t(l,r),o$t(i,u)),c),n),o),IHt(IHt(c=H5(c,o<<1),a),n))}function IDt(t,e,n){var r,i,a,o,s;for(o=Mht(t,n),s=O8(_se,a1t,10,e.length,0,1),r=0,a=o.Kc();a.Ob();)$y(kN(bEt(i=Q$(a.Pb(),11),(lVt(),tfe))))&&(s[r++]=Q$(bEt(i,wfe),10));if(r<e.length)throw Um(new Ry("Expected "+e.length+" hierarchical ports, but found only "+r+"."));return s}function MDt(t,e){var n,r,i,a,o,s;if(!t.tb){for(!t.rb&&(t.rb=new qz(t,QIe,t)),s=new zx((a=t.rb).i),i=new SO(a);i.e!=i.i.gc();)r=Q$(ymt(i),138),(n=Q$(null==(o=r.ne())?w_t(s.f,null,r):odt(s.g,o,r),138))&&(null==o?w_t(s.f,null,n):odt(s.g,o,n));t.tb=s}return Q$(xJ(t.tb,e),138)}function ODt(t,e){var n,r,i,a,o;if((null==t.i&&HUt(t),t.i).length,!t.p){for(o=new zx(1+(3*t.g.i/2|0)),i=new iF(t.g);i.e!=i.i.gc();)r=Q$(wmt(i),170),(n=Q$(null==(a=r.ne())?w_t(o.f,null,r):odt(o.g,a,r),170))&&(null==a?w_t(o.f,null,n):odt(o.g,a,n));t.p=o}return Q$(xJ(t.p,e),170)}function DDt(t,e,n,r,i){var a,o,s,c;for(dpt(r+TY(n,n.$d()),i),ZX(e,MAt(n)),(a=n.f)&&DDt(t,e,a,"Caused by: ",!1),null==n.k&&(n.k=O8(Yte,cWt,78,0,0,1)),s=0,c=(o=n.k).length;s<c;++s)DDt(t,e,o[s],"Suppressed: ",!1);null!=console.groupEnd&&console.groupEnd.call(console)}function FDt(t,e,n,r){var i,a,o,s;for(o=(s=e.e).length,a=e.q._f(s,n?0:o-1,n),a|=gPt(t,s[n?0:o-1],n,r),i=n?1:o-2;n?i<o:i>=0;i+=n?1:-1)a|=e.c.Sf(s,i,n,r&&!$y(kN(bEt(e.j,(lVt(),qhe))))&&!$y(kN(bEt(e.j,(lVt(),Bfe))))),a|=e.q._f(s,i,n),a|=gPt(t,s[i],n,r);return kG(t.c,e),a}function NDt(t,e,n){var r,i,a,o,s,c,l,u;for(l=0,u=(c=B2(t.j)).length;l<u;++l){if(s=c[l],n==(art(),Ube)||n==Hbe)for(a=0,o=(i=Y0(s.g)).length;a<o;++a)STt(e,r=i[a])&&t$t(r,!0);if(n==$be||n==Hbe)for(a=0,o=(i=Y0(s.e)).length;a<o;++a)_Tt(e,r=i[a])&&t$t(r,!0)}}function PDt(t){var e,n;switch(e=null,n=null,eCt(t).g){case 1:yGt(),e=oSe,n=TSe;break;case 2:yGt(),e=xSe,n=sSe;break;case 3:yGt(),e=TSe,n=oSe;break;case 4:yGt(),e=sSe,n=xSe}Hf(t,Q$(LD(_z(Q$(c6(t.k,e),15).Oc(),Vle)),113)),$f(t,Q$(LD(Bz(Q$(c6(t.k,n),15).Oc(),Vle)),113))}function RDt(t){var e,n,r,i,a,o;if((i=Q$(Oj(t.j,0),11)).e.c.length+i.g.c.length==0)t.n.a=0;else{for(o=0,r=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[new UA(i),new HA(i)])));AIt(r);)o+=(n=Q$(K5(r),11)).i.n.a+n.n.a+n.a.a;a=(e=Q$(bEt(t,($Xt(),Jpe)),8))?e.a:0,t.n.a=o/(i.e.c.length+i.g.c.length)-a}}function QDt(t,e){var n,r,i;for(r=new Gd(e.a);r.a<r.c.c.length;)n=Q$(J1(r),221),IK(Q$(n.b,65),zP(QM(Q$(e.b,65).c),Q$(e.b,65).a)),(i=qQt(Q$(e.b,65).b,Q$(n.b,65).b))>1&&(t.a=!0),MK(Q$(n.b,65),KP(QM(Q$(e.b,65).c),vO(zP(QM(Q$(n.b,65).a),Q$(e.b,65).a),i))),VZ(t,e),QDt(t,n)}function UDt(t){var e,n,r,i,a,o;for(i=new Gd(t.a.a);i.a<i.c.c.length;)(n=Q$(J1(i),189)).e=0,n.d.a.$b();for(r=new Gd(t.a.a);r.a<r.c.c.length;)for(e=(n=Q$(J1(r),189)).a.a.ec().Kc();e.Ob();)for(o=Q$(e.Pb(),81).f.Kc();o.Ob();)(a=Q$(o.Pb(),81)).d!=n&&(kG(n.d,a),++a.d.e)}function $Dt(t){var e,n,r,i,a,o,s,c;for(n=0,e=c=t.j.c.length,i=2*c,s=new Gd(t.j);s.a<s.c.c.length;)switch((o=Q$(J1(s),11)).j.g){case 2:case 4:o.p=-1;break;case 1:case 3:r=o.e.c.length,a=o.g.c.length,o.p=r>0&&a>0?e++:r>0?n++:a>0?i++:n++}xq(),mM(t.j,new dr)}function HDt(t){var e,n;n=null,e=Q$(Oj(t.g,0),17);do{if(IF(n=e.d.i,(lVt(),lfe)))return Q$(bEt(n,lfe),11).i;if(n.k!=(oTt(),Tse)&&AIt(new oz(YO(hdt(n).a.Kc(),new u))))e=Q$(K5(new oz(YO(hdt(n).a.Kc(),new u))),17);else if(n.k!=Tse)return null}while(n&&n.k!=(oTt(),Tse));return n}function jDt(t,e){var n,r,i,a,o,s,c,l,u;for(s=e.j,o=e.g,c=Q$(Oj(s,s.c.length-1),113),u1(0,s.c.length),l=Jvt(t,o,c,u=Q$(s.c[0],113)),a=1;a<s.c.length;a++)u1(a-1,s.c.length),n=Q$(s.c[a-1],113),u1(a,s.c.length),(r=Jvt(t,o,n,i=Q$(s.c[a],113)))>l&&(c=n,u=i,l=r);e.a=u,e.c=c}function KDt(t,e){var n;if(!YG(t.b,e.b))throw Um(new Ry("Invalid hitboxes for scanline constraint calculation."));(yst(e.b,Q$(CP(t.b,e.b),57))||yst(e.b,Q$(kP(t.b,e.b),57)))&&(Lx(),e.b),t.a[e.b.f]=Q$(vR(t.b,e.b),57),(n=Q$(bR(t.b,e.b),57))&&(t.a[n.f]=e.b)}function zDt(t){if(!t.a.d||!t.a.e)throw Um(new Ry((wN(Ure),Ure.k+" must have a source and target "+(wN($re),$re.k+" specified."))));if(t.a.d==t.a.e)throw Um(new Ry("Network simplex does not support self-loops: "+t.a+" "+t.a.d+" "+t.a.e));return FD(t.a.d.g,t.a),FD(t.a.e.b,t.a),t.a}function GDt(t,e,n){var r,i,a,o,s,c,l;for(l=new dC(new qg(t)),s=0,c=(o=Tst(Hw(Hse,1),o1t,11,0,[e,n])).length;s<c;++s)for(a=o[s],xct(l.a,a,(cD(),pee)),i=new m6(a.b);bM(i.a)||bM(i.b);)(r=Q$(bM(i.a)?J1(i.a):J1(i.b),17)).c==r.d||YG(l,a==r.c?r.d:r.c);return bX(l),new ZR(l)}function XDt(t,e,n){var r,i,a,o,s,c;if(r=0,0!=e.b&&0!=n.b){a=cmt(e,0),o=cmt(n,0),s=Hy(CN(h3(a))),c=Hy(CN(h3(o))),i=!0;do{if(s>c-t.b&&s<c+t.b)return-1;s>c-t.a&&s<c+t.a&&++r,s<=c&&a.b!=a.d.c?s=Hy(CN(h3(a))):c<=s&&o.b!=o.d.c?c=Hy(CN(h3(o))):i=!1}while(i)}return r}function VDt(t,e,n,r,i){var a,o,s,c;for(c=new WR(a=Q$(Xk(RSe),9),Q$(xP(a,a.length),9),0),s=new Gd(t.j);s.a<s.c.c.length;)e[(o=Q$(J1(s),11)).p]&&(UGt(o,e[o.p],r),sit(c,o.j));i?(jCt(t,e,(yGt(),oSe),2*n,r),jCt(t,e,TSe,2*n,r)):(jCt(t,e,(yGt(),sSe),2*n,r),jCt(t,e,xSe,2*n,r))}function WDt(t){var e,n,r,i,a;if(a=new Mm,Set(t.b,new vA(a)),t.b.c=O8(Lte,$Vt,1,0,5,1),0!=a.c.length){for(u1(0,a.c.length),e=Q$(a.c[0],78),n=1,r=a.c.length;n<r;++n)u1(n,a.c.length),(i=Q$(a.c[n],78))!=e&&jxt(e,i);if(rO(e,60))throw Um(Q$(e,60));if(rO(e,289))throw Um(Q$(e,289))}}function qDt(t,e){var n,r,i,a;for(t=null==t?KVt:(vV(t),t),n=new Bw,a=0,r=0;r<e.length&&-1!=(i=t.indexOf("%s",a));)oL(n,t.substr(a,i-a)),aL(n,e[r++]),a=i+2;if(oL(n,t.substr(a)),r<e.length){for(n.a+=" [",aL(n,e[r++]);r<e.length;)n.a+=QVt,aL(n,e[r++]);n.a+="]"}return n.a}function YDt(t){var e,n,r,i;for(e=0,i=(r=t.length)-4,n=0;n<i;)h1(n+3,t.length),e=t.charCodeAt(n+3)+(h1(n+2,t.length),31*(t.charCodeAt(n+2)+(h1(n+1,t.length),31*(t.charCodeAt(n+1)+(h1(n,t.length),31*(t.charCodeAt(n)+31*e)))))),e|=0,n+=4;for(;n<r;)e=31*e+lW(t,n++);return e|=0}function JDt(t){var e;for(e=new oz(YO(hdt(t).a.Kc(),new u));AIt(e);)if(Q$(K5(e),17).d.i.k!=(oTt(),xse))throw Um(new nw(T1t+gyt(t)+"' has its layer constraint set to LAST, but has at least one outgoing edge that does not go to a LAST_SEPARATE node. That must not happen."))}function ZDt(t,n,r,i){var a,o,s,c,l,h,f;for(c=0,l=new Gd(t.a);l.a<l.c.c.length;){for(s=0,o=new oz(YO(udt(Q$(J1(l),10)).a.Kc(),new u));AIt(o);)h=A1((a=Q$(K5(o),17)).c).b,f=A1(a.d).b,s=e.Math.max(s,e.Math.abs(f-h));c=e.Math.max(c,s)}return i*e.Math.min(1,n/r)*c}function tFt(t){var e;return e=new Ew,256&t&&(e.a+="F"),128&t&&(e.a+="H"),512&t&&(e.a+="X"),2&t&&(e.a+="i"),8&t&&(e.a+="m"),4&t&&(e.a+="s"),32&t&&(e.a+="u"),64&t&&(e.a+="w"),16&t&&(e.a+="x"),t&y6t&&(e.a+=","),Ky(e.a)}function eFt(t,e){var n,r,i;for(Sxt(e,"Resize child graph to fit parent.",1),r=new Gd(t.b);r.a<r.c.c.length;)n=Q$(J1(r),29),gst(t.a,n.a),n.a.c=O8(Lte,$Vt,1,0,5,1);for(i=new Gd(t.a);i.a<i.c.c.length;)EZ(Q$(J1(i),10),null);t.b.c=O8(Lte,$Vt,1,0,5,1),UFt(t),t.e&&EQt(t.e,t),$Tt(e)}function nFt(t){var e,n,r,i,a,o,s;if(i=(r=t.b).e,a=IR(Q$(bEt(r,($Xt(),tme)),98)),n=!!i&&Q$(bEt(i,(lVt(),Yhe)),21).Hc((fNt(),uhe)),!a&&!n)for(s=new Nd(new _d(t.e).a.vc().Kc());s.a.Ob();)e=Q$(s.a.Pb(),42),(o=Q$(e.dd(),113)).a&&(TZ(o.d,null),o.c=!0,t.a=!0)}function rFt(t){var e,n,r,i,a,o,s,c,l,u,h,f;for(h=-1,f=0,l=0,u=(c=t).length;l<u;++l){for(o=0,s=(a=c[l]).length;o<s;++o)for(i=a[o],e=new gB(-1==h?t[0]:t[h],swt(i)),n=0;n<i.j.c.length;n++)for(r=n+1;r<i.j.c.length;r++)Mz(e,Q$(Oj(i.j,n),11),Q$(Oj(i.j,r),11))>0&&++f;++h}return f}function iFt(t,e){var n,r,i,a,o;for(o=Q$(bEt(e,(BIt(),Iwe)),425),a=cmt(e.b,0);a.b!=a.d.c;)if(i=Q$(h3(a),86),0==t.b[i.g]){switch(o.g){case 0:Wbt(t,i);break;case 1:$It(t,i)}t.b[i.g]=2}for(r=cmt(t.a,0);r.b!=r.d.c;)vAt((n=Q$(h3(r),188)).b.d,n,!0),vAt(n.c.b,n,!0);lct(e,(Hjt(),uwe),t.a)}function aFt(t,e){var n,r,i,a;return YE(),e?e==(zjt(),FOe)||(e==mOe||e==gOe||e==pOe)&&t!=AOe?new iGt(t,e):((n=(r=Q$(e,677)).pk())||(vW(Q9((_Bt(),qMe),e)),n=r.pk()),!n.i&&(n.i=new Om),!(i=Q$($S(SY((a=n.i).f,t)),1942))&&XV(a,t,i=new iGt(t,e)),i):rOe}function oFt(t,e){var n,r,i,a,o,s,c,l;for(s=Q$(bEt(t,(lVt(),dfe)),11),c=Lct(Tst(Hw(EEe,1),cWt,8,0,[s.i.n,s.n,s.a])).a,l=t.i.n.b,i=0,a=(r=Y0(t.e)).length;i<a;++i)CZ(n=r[i],s),lL(n.a,new O_(c,l)),e&&((o=Q$(bEt(n,($Xt(),ppe)),74))||(o=new vv,lct(n,ppe,o)),DH(o,new O_(c,l)))}function sFt(t,e){var n,r,i,a,o,s,c,l;for(r=Q$(bEt(t,(lVt(),dfe)),11),c=Lct(Tst(Hw(EEe,1),cWt,8,0,[r.i.n,r.n,r.a])).a,l=t.i.n.b,o=0,s=(a=Y0(t.g)).length;o<s;++o)xZ(i=a[o],r),cL(i.a,new O_(c,l)),e&&((n=Q$(bEt(i,($Xt(),ppe)),74))||(n=new vv,lct(i,ppe,n)),DH(n,new O_(c,l)))}function cFt(t,e){var n,r,i,a,o;for(t.b=new Mm,t.d=Q$(bEt(e,(lVt(),xfe)),230),t.e=r0(t.d),a=new Wx,i=a6(Tst(Hw(yse,1),YZt,37,0,[e])),o=0;o<i.c.length;)u1(o,i.c.length),(r=Q$(i.c[o],37)).p=o++,gst(i,(n=new BKt(r,t.a,t.b)).b),G$(t.b,n),n.s&&JG(cmt(a,0),n);return t.c=new Fb,a}function lFt(t,e){var n,r,i,a,o,s;for(o=Q$(Q$(c6(t.r,e),21),84).Kc();o.Ob();)(n=(a=Q$(o.Pb(),111)).c?XH(a.c):0)>0?a.a?n>(s=a.b.rf().a)&&(i=(n-s)/2,a.d.b=i,a.d.c=i):a.d.c=t.s+n:Uz(t.u)&&((r=Rxt(a.b)).c<0&&(a.d.b=-r.c),r.c+r.b>a.b.rf().a&&(a.d.c=r.c+r.b-a.b.rf().a))}function uFt(t,e){var n,r;for(Sxt(e,"Semi-Interactive Crossing Minimization Processor",1),n=!1,r=new Gd(t.b);r.a<r.c.c.length;)n|=null!=Iht(vet(SW(SW(new Fj(null,new f1(Q$(J1(r),29).a,16)),new qr),new Yr),new Jr),new Zr).a;n&&lct(t,(lVt(),ife),(cD(),!0)),$Tt(e)}function hFt(t,e,n){var r,i,a;if(!(i=n)&&(i=new zv),Sxt(i,"Layout",t.a.c.length),$y(kN(bEt(e,(BIt(),wwe)))))for(Lx(),r=0;r<t.a.c.length;r++)r++,Jk(tlt(Q$(Oj(t.a,r),51)));for(a=new Gd(t.a);a.a<a.c.c.length;)Q$(J1(a),51).pf(e,bat(i,1));$Tt(i)}function fFt(t){var n,r;if(n=Q$(t.a,19).a,r=Q$(t.b,19).a,n>=0){if(n==r)return new nS(nft(-n-1),nft(-n-1));if(n==-r)return new nS(nft(-n),nft(r+1))}return e.Math.abs(n)>e.Math.abs(r)?new nS(nft(-n),nft(n<0?r:r+1)):new nS(nft(n+1),nft(r))}function dFt(t){var e,n;n=Q$(bEt(t,($Xt(),vpe)),163),e=Q$(bEt(t,(lVt(),efe)),303),n==(Cdt(),Rfe)?(lct(t,vpe,$fe),lct(t,efe,(j9(),The))):n==Ufe?(lct(t,vpe,$fe),lct(t,efe,(j9(),xhe))):e==(j9(),The)?(lct(t,vpe,Rfe),lct(t,efe,Ehe)):e==xhe&&(lct(t,vpe,Ufe),lct(t,efe,Ehe))}function AFt(){AFt=L,yye=new co,pye=dj(new Q2,(vEt(),Poe),(hVt(),yce)),vye=GK(dj(new Q2,Poe,Dce),Qoe,Oce),wye=spt(spt(RE(GK(dj(new Q2,Foe,Kce),Qoe,jce),Roe),Hce),zce),mye=GK(dj(dj(dj(new Q2,Noe,Cce),Roe,Ece),Roe,Tce),Qoe,xce),bye=GK(dj(dj(new Q2,Roe,Tce),Roe,ace),Qoe,ice)}function gFt(){gFt=L,Tye=dj(GK(new Q2,(vEt(),Qoe),(hVt(),cce)),Poe,yce),Lye=spt(spt(RE(GK(dj(new Q2,Foe,Kce),Qoe,jce),Roe),Hce),zce),Bye=GK(dj(dj(dj(new Q2,Noe,Cce),Roe,Ece),Roe,Tce),Qoe,xce),Sye=dj(dj(new Q2,Poe,Dce),Qoe,Oce),_ye=GK(dj(dj(new Q2,Roe,Tce),Roe,ace),Qoe,ice)}function pFt(t,e,n,r,i){var a,o;(h5(e)||e.c.i.c!=e.d.i.c)&&Zrt(Lct(Tst(Hw(EEe,1),cWt,8,0,[i.i.n,i.n,i.a])),n)||h5(e)||(e.c==i?NF(e.a,0,new fI(n)):DH(e.a,new fI(n)),r&&!Rx(t.a,n)&&((o=Q$(bEt(e,($Xt(),ppe)),74))||(o=new vv,lct(e,ppe,o)),n5(o,a=new fI(n),o.c.b,o.c),kG(t.a,a)))}function mFt(t){var e;for(e=new oz(YO(udt(t).a.Kc(),new u));AIt(e);)if(Q$(K5(e),17).c.i.k!=(oTt(),xse))throw Um(new nw(T1t+gyt(t)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function bFt(t,e,n){var r,i,a,o,s,c;if(0==(i=pdt(254&t.Db)))t.Eb=n;else{if(1==i)o=O8(Lte,$Vt,1,2,5,1),0==Nvt(t,e)?(o[0]=n,o[1]=t.Eb):(o[0]=t.Eb,o[1]=n);else for(o=O8(Lte,$Vt,1,i+1,5,1),a=ent(t.Eb),r=2,s=0,c=0;r<=128;r<<=1)r==e?o[c++]=n:t.Db&r&&(o[c++]=a[s++]);t.Eb=o}t.Db|=e}function vFt(t,n,r){var i,a,o,s;for(this.b=new Mm,a=0,i=0,s=new Gd(t);s.a<s.c.c.length;)o=Q$(J1(s),167),r&&P$t(o),G$(this.b,o),a+=o.o,i+=o.p;this.b.c.length>0&&(a+=(o=Q$(Oj(this.b,0),167)).o,i+=o.p),a*=2,i*=2,n>1?a=TJ(e.Math.ceil(a*n)):i=TJ(e.Math.ceil(i/n)),this.a=new HAt(a,i)}function yFt(t,n,r,i,a,o){var s,c,l,u,h,f,d,A,g,p;for(u=i,n.j&&n.o?(g=(d=Q$(FX(t.f,n.A),57)).d.c+d.d.b,--u):g=n.a.c+n.a.b,h=a,r.q&&r.o?(l=(d=Q$(FX(t.f,r.C),57)).d.c,++h):l=r.a.c,A=g+(c=(l-g)/e.Math.max(2,h-u)),f=u;f<h;++f)p=(s=Q$(o.Xb(f),128)).a.b,s.a.c=A-p/2,A+=c}function wFt(t,e,n,r,i,a){var o,s,c,l,u,h;for(l=n.c.length,a&&(t.c=O8(_De,lqt,25,e.length,15,1)),o=i?0:e.length-1;i?o<e.length:o>=0;o+=i?1:-1){for(s=e[o],c=r==(yGt(),oSe)?i?adt(s,r):eot(adt(s,r)):i?eot(adt(s,r)):adt(s,r),a&&(t.c[s.p]=c.gc()),h=c.Kc();h.Ob();)u=Q$(h.Pb(),11),t.d[u.p]=l++;gst(n,c)}}function kFt(t,e,n){var r,i,a,o,s,c,l,u;for(a=Hy(CN(t.b.Kc().Pb())),l=Hy(CN(Xot(e.b))),r=vO(QM(t.a),l-n),i=vO(QM(e.a),n-a),vO(u=KP(r,i),1/(l-a)),this.a=u,this.b=new Mm,s=!0,(o=t.b.Kc()).Pb();o.Ob();)c=Hy(CN(o.Pb())),s&&c-n>F3t&&(this.b.Fc(n),s=!1),this.b.Fc(c);s&&this.b.Fc(n)}function CFt(t){var e,n,r,i;if(lRt(t,t.n),t.d.c.length>0){for(Jy(t.c);pIt(t,Q$(J1(new Gd(t.e.a)),121))<t.e.a.c.length;){for(i=(e=Nyt(t)).e.e-e.d.e-e.a,e.e.j&&(i=-i),r=new Gd(t.e.a);r.a<r.c.c.length;)(n=Q$(J1(r),121)).j&&(n.e+=i);Jy(t.c)}Jy(t.c),pSt(t,Q$(J1(new Gd(t.e.a)),121)),gKt(t)}}function xFt(t,e){var n,r,i,a,o;for(i=Q$(c6(t.a,(MCt(),Cle)),15).Kc();i.Ob();)switch(r=Q$(i.Pb(),101),n=Q$(Oj(r.j,0),113).d.j,mM(a=new ZR(r.j),new Ji),e.g){case 1:OCt(t,a,n,(Bit(),Dle),1);break;case 0:OCt(t,new s1(a,0,o=ROt(a)),n,(Bit(),Dle),0),OCt(t,new s1(a,o,a.c.length),n,Dle,1)}}function EFt(t,e){var n,r;if(Ost(),n=k5(irt(),e.tg())){if(r=n.j,rO(t,239))return nZ(Q$(t,33))?xD(r,(rmt(),sEe))||xD(r,cEe):xD(r,(rmt(),sEe));if(rO(t,352))return xD(r,(rmt(),aEe));if(rO(t,186))return xD(r,(rmt(),lEe));if(rO(t,354))return xD(r,(rmt(),oEe))}return!0}function TFt(t,e,n){var r,i,a,o,s,c;if(a=(i=n).ak(),IFt(t.e,a)){if(a.hi())for(r=Q$(t.g,119),o=0;o<t.i;++o)if(Oht(s=r[o],i)&&o!=e)throw Um(new Py(a8t))}else for(c=aFt(t.e.Tg(),a),r=Q$(t.g,119),o=0;o<t.i;++o)if(s=r[o],c.rl(s.ak())&&o!=e)throw Um(new Py(_9t));return Q$(sbt(t,e,n),72)}function BFt(t,e){if(e instanceof Object)try{if(e.__java$exception=t,-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&$doc.documentMode<9)return;var n=t;Object.defineProperties(e,{cause:{get:function(){var t=n.Zd();return t&&t.Xd()}},suppressed:{get:function(){return n.Yd()}}})}catch(t){}}function _Ft(t,e){var n,r,i,a,o;if(r=e>>5,e&=31,r>=t.d)return t.e<0?(SNt(),qee):(SNt(),ene);if(a=t.d-r,WTt(i=O8(_De,lqt,25,a+1,15,1),a,t.a,r,e),t.e<0){for(n=0;n<r&&0==t.a[n];n++);if(n<r||e>0&&t.a[n]<<32-e){for(n=0;n<a&&-1==i[n];n++)i[n]=0;n==a&&++a,++i[n]}}return z0(o=new uG(t.e,a,i)),o}function SFt(t){var e,n,r,i;return n=new LA(i=GJ(t)),r=new IA(i),gst(e=new Mm,(!t.d&&(t.d=new cR(NLe,t,8,5)),t.d)),gst(e,(!t.e&&(t.e=new cR(NLe,t,7,4)),t.e)),Q$(E4(LW(SW(new Fj(null,new f1(e,16)),n),r),O9(new q,new Y,new it,new at,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),zne),Kne]))),21)}function LFt(t,e,n,r){var i,a,o,s,c;if(YE(),s=Q$(e,66).Oj(),IFt(t.e,e)){if(e.hi()&&zUt(t,e,r,rO(e,99)&&!!(Q$(e,18).Bb&Uqt)))throw Um(new Py(a8t))}else for(c=aFt(t.e.Tg(),e),i=Q$(t.g,119),o=0;o<t.i;++o)if(a=i[o],c.rl(a.ak()))throw Um(new Py(_9t));cft(t,kBt(t,e,n),s?Q$(r,72):Y3(e,r))}function IFt(t,e){var n,r,i;return YE(),!!e.$j()||-2==e.Zj()&&(e==(CLt(),cOe)||e==aOe||e==oOe||e==sOe||!(LAt(i=t.Tg(),e)>=0)&&(!(n=Qjt((_Bt(),qMe),i,e))||((r=n.Zj())>1||-1==r)&&3!=DV(Q9(qMe,n))))}function MFt(t,e,n,r){var i,a,o,s,c;return s=Txt(Q$(Xet((!e.b&&(e.b=new cR(FLe,e,4,7)),e.b),0),82)),c=Txt(Q$(Xet((!e.c&&(e.c=new cR(FLe,e,5,8)),e.c),0),82)),qJ(s)==qJ(c)||Bet(c,s)?null:(o=zJ(e))==n?r:(a=Q$(FX(t.a,o),10))&&(i=a.e)?i:null}function OFt(t,e){var n;switch(Sxt(e,"Label side selection ("+(n=Q$(bEt(t,($Xt(),qge)),276))+")",1),n.g){case 0:CIt(t,(Gyt(),y_e));break;case 1:CIt(t,(Gyt(),w_e));break;case 2:c$t(t,(Gyt(),y_e));break;case 3:c$t(t,(Gyt(),w_e));break;case 4:oNt(t,(Gyt(),y_e));break;case 5:oNt(t,(Gyt(),w_e))}$Tt(e)}function DFt(t,e,n){var r,i,a,o,s;if((a=t[uk(n,t.length)])[0].k==(oTt(),Cse))for(i=lk(n,a.length),s=e.j,r=0;r<s.c.length;r++)u1(r,s.c.length),o=Q$(s.c[r],11),(n?o.j==(yGt(),oSe):o.j==(yGt(),TSe))&&$y(kN(bEt(o,(lVt(),tfe))))&&(r5(s,r,Q$(bEt(a[i],(lVt(),dfe)),11)),i+=n?1:-1)}function FFt(t,e){var n,r,i,a,o;o=new Mm,n=e;do{(a=Q$(FX(t.b,n),128)).B=n.c,a.D=n.d,o.c[o.c.length]=a,n=Q$(FX(t.k,n),17)}while(n);return u1(0,o.c.length),(r=Q$(o.c[0],128)).j=!0,r.A=Q$(r.d.a.ec().Kc().Pb(),17).c.i,(i=Q$(Oj(o,o.c.length-1),128)).q=!0,i.C=Q$(i.d.a.ec().Kc().Pb(),17).d.i,o}function NFt(t){if(null==t.g)switch(t.p){case 0:t.g=lZ(t)?(cD(),mee):(cD(),pee);break;case 1:t.g=Ett(D3(t));break;case 2:t.g=ust(V1(t));break;case 3:t.g=_V(t);break;case 4:t.g=new Md(BV(t));break;case 6:t.g=wpt(SV(t));break;case 5:t.g=nft(cJ(t));break;case 7:t.g=rft(P3(t))}return t.g}function PFt(t){if(null==t.n)switch(t.p){case 0:t.n=uZ(t)?(cD(),mee):(cD(),pee);break;case 1:t.n=Ett(F3(t));break;case 2:t.n=ust(W1(t));break;case 3:t.n=IV(t);break;case 4:t.n=new Md(MV(t));break;case 6:t.n=wpt(LV(t));break;case 5:t.n=nft(lJ(t));break;case 7:t.n=rft(N3(t))}return t.n}function RFt(t){var e,n,r,i,a,o;for(i=new Gd(t.a.a);i.a<i.c.c.length;)(n=Q$(J1(i),307)).g=0,n.i=0,n.e.a.$b();for(r=new Gd(t.a.a);r.a<r.c.c.length;)for(e=(n=Q$(J1(r),307)).a.a.ec().Kc();e.Ob();)for(o=Q$(e.Pb(),57).c.Kc();o.Ob();)(a=Q$(o.Pb(),57)).a!=n&&(kG(n.e,a),++a.a.g,++a.a.i)}function QFt(t,e){var n,r,i;if(!YG(t.a,e.b))throw Um(new Ry("Invalid hitboxes for scanline overlap calculation."));for(i=!1,r=new Rd(new QP(new OD(new Pd(t.a.a).a).b));iT(r.a.a);)if(n=Q$(mF(r.a).cd(),65),ect(e.b,n))Ok(t.b.a,e.b,n),i=!0;else if(i)break}function UFt(t){var n,r,i,a,o;a=Q$(bEt(t,($Xt(),Rpe)),21),o=Q$(bEt(t,$pe),21),n=new fI(r=new O_(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a)),a.Hc((bgt(),DSe))&&(i=Q$(bEt(t,Upe),8),o.Hc((ZRt(),HSe))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),n.a=e.Math.max(r.a,i.a),n.b=e.Math.max(r.b,i.b)),G$t(t,r,n)}function $Ft(t,e){var n,r,i,a,o,s,c,l;i=e?new ma:new ba,a=!1;do{for(a=!1,o=(e?eot(t.b):t.b).Kc();o.Ob();)for(l=i0(Q$(o.Pb(),29).a),e||new ly(l),c=new Gd(l);c.a<c.c.c.length;)s=Q$(J1(c),10),i.Mb(s)&&(r=s,n=Q$(bEt(s,(lVt(),Fhe)),305),a=ePt(r,e?n.b:n.k,e,!1))}while(a)}function HFt(t,e,n){var r,i,a,o;for(Sxt(n,"Longest path layering",1),t.a=e,o=t.a.a,t.b=O8(_De,lqt,25,o.c.length,15,1),r=0,a=new Gd(o);a.a<a.c.c.length;)Q$(J1(a),10).p=r,t.b[r]=-1,++r;for(i=new Gd(o);i.a<i.c.c.length;)FMt(t,Q$(J1(i),10));o.c=O8(Lte,$Vt,1,0,5,1),t.a=null,t.b=null,$Tt(n)}function jFt(t,e){var n,r,i;e.a?(YG(t.b,e.b),t.a[e.b.i]=Q$(vR(t.b,e.b),81),(n=Q$(bR(t.b,e.b),81))&&(t.a[n.i]=e.b)):(!!(r=Q$(vR(t.b,e.b),81))&&r==t.a[e.b.i]&&!!r.d&&r.d!=e.b.d&&r.f.Fc(e.b),!!(i=Q$(bR(t.b,e.b),81))&&t.a[i.i]==e.b&&!!i.d&&i.d!=e.b.d&&e.b.f.Fc(i),CD(t.b,e.b))}function KFt(t,n){var r,i,a,o,s,c;return o=t.d,(c=Hy(CN(bEt(t,($Xt(),ipe)))))<0&&lct(t,ipe,c=0),n.o.b=c,s=e.Math.floor(c/2),H_t(i=new BTt,(yGt(),TSe)),TZ(i,n),i.n.b=s,H_t(a=new BTt,oSe),TZ(a,n),a.n.b=s,CZ(t,i),Hot(r=new fY,t),lct(r,ppe,null),xZ(r,a),CZ(r,o),wUt(n,t,r),c_t(t,r),r}function zFt(t){var e,n;return n=Q$(bEt(t,(lVt(),Yhe)),21),e=new Q2,n.Hc((fNt(),hhe))&&(Yat(e,hye),Yat(e,dye)),(n.Hc(dhe)||$y(kN(bEt(t,($Xt(),ape)))))&&(Yat(e,dye),n.Hc(Ahe)&&Yat(e,Aye)),n.Hc(uhe)&&Yat(e,uye),n.Hc(phe)&&Yat(e,gye),n.Hc(fhe)&&Yat(e,fye),n.Hc(she)&&Yat(e,cye),n.Hc(lhe)&&Yat(e,lye),e}function GFt(t,e){var n,r,i,a,o,s,c,l,u;return a=(n=t.d)+(r=e.d),o=t.e!=e.e?-1:1,2==a?(u=dK(c=idt(t0(t.a[0],zqt),t0(e.a[0],zqt))),0==(l=dK(yz(c,32)))?new z6(o,u):new uG(o,2,Tst(Hw(_De,1),lqt,25,15,[u,l]))):(Fht(t.a,n,e.a,r,i=O8(_De,lqt,25,a,15,1)),z0(s=new uG(o,a,i)),s)}function XFt(t,e,n,r){var i,a;return e?0==(i=t.a.ue(n.d,e.d))?(r.d=gP(e,n.e),r.b=!0,e):(a=i<0?0:1,e.a[a]=XFt(t,e.a[a],n,r),Xy(e.a[a])&&(Xy(e.a[1-a])?(e.b=!0,e.a[0].b=!1,e.a[1].b=!1):Xy(e.a[a].a[a])?e=dit(e,1-a):Xy(e.a[a].a[1-a])&&(e=n2(e,1-a))),e):n}function VFt(t,n,r){var i,a,o,s;a=t.i,i=t.n,W5(t,(Fet(),Hre),a.c+i.b,r),W5(t,Kre,a.c+a.b-i.c-r[2],r),s=a.b-i.b-i.c,r[0]>0&&(r[0]+=t.d,s-=r[0]),r[2]>0&&(r[2]+=t.d,s-=r[2]),o=e.Math.max(0,s),r[1]=e.Math.max(r[1],s),W5(t,jre,a.c+i.b+r[0]-(r[1]-s)/2,r),n==jre&&(t.c.b=o,t.c.c=a.c+i.b+(o-s)/2)}function WFt(){this.c=O8(MDe,Hqt,25,(yGt(),Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe])).length,15,1),this.b=O8(MDe,Hqt,25,Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe]).length,15,1),this.a=O8(MDe,Hqt,25,Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe]).length,15,1),mT(this.c,Nqt),mT(this.b,Pqt),mT(this.a,Pqt)}function qFt(t,e,n){var r,i,a,o;if(e<=n?(i=e,a=n):(i=n,a=e),r=0,null==t.b)t.b=O8(_De,lqt,25,2,15,1),t.b[0]=i,t.b[1]=a,t.c=!0;else{if(r=t.b.length,t.b[r-1]+1==i)return void(t.b[r-1]=a);o=O8(_De,lqt,25,r+2,15,1),aHt(t.b,0,o,0,r),t.b=o,t.b[r-1]>=i&&(t.c=!1,t.a=!1),t.b[r++]=i,t.b[r]=a,t.c||CMt(t)}}function YFt(t,e,n){var r,i,a,o,s,c,l;for(l=e.d,t.a=new q6(l.c.length),t.c=new Om,s=new Gd(l);s.a<s.c.c.length;)o=Q$(J1(s),101),a=new Qot(null),G$(t.a,a),XV(t.c,o,a);for(t.b=new Om,m_t(t,e),r=0;r<l.c.length-1;r++)for(c=Q$(Oj(e.d,r),101),i=r+1;i<l.c.length;i++)XOt(t,c,Q$(Oj(e.d,i),101),n)}function JFt(t,e,n){var r,i,a,o,s,c;if(!c3(e)){for(Sxt(c=bat(n,(rO(e,14)?Q$(e,14).gc():R3(e.Kc()))/t.a|0),K3t,1),s=new Lo,o=0,a=e.Kc();a.Ob();)r=Q$(a.Pb(),86),s=Xnt(Tst(Hw(Dte,1),$Vt,20,0,[s,new hp(r)])),o<r.f.b&&(o=r.f.b);for(i=e.Kc();i.Ob();)lct(r=Q$(i.Pb(),86),(Hjt(),awe),o);$Tt(c),JFt(t,s,n)}}function ZFt(t,n){var r,i,a,o,s,c,l;for(r=Pqt,oTt(),c=Tse,a=new Gd(n.a);a.a<a.c.c.length;)(o=(i=Q$(J1(a),10)).k)!=Tse&&(null==(s=CN(bEt(i,(lVt(),gfe))))?(r=e.Math.max(r,0),i.n.b=r+zD(t.a,o,c)):i.n.b=(vV(s),s)),l=zD(t.a,o,c),i.n.b<r+l+i.d.d&&(i.n.b=r+l+i.d.d),r=i.n.b+i.o.b+i.d.a,c=o}function tNt(t,e,n){var r,i,a;for(Hot(a=new kIt(GXt(HTt(iNt(e,!1,!1)),Hy(CN(JIt(e,(kmt(),gae))))+t.a)),e),XV(t.b,e,a),n.c[n.c.length]=a,!e.n&&(e.n=new tG(HLe,e,1,7)),i=new SO(e.n);i.e!=i.i.gc();)r=YPt(t,Q$(ymt(i),137),!0,0,0),n.c[n.c.length]=r;return a}function eNt(t,e,n,r,i){var a,o,s;if(t.d&&t.d.lg(i),Fbt(t,n,Q$(i.Xb(0),33),!1))return!0;if(Fbt(t,r,Q$(i.Xb(i.gc()-1),33),!0))return!0;if(OEt(t,i))return!0;for(s=i.Kc();s.Ob();)for(o=Q$(s.Pb(),33),a=e.Kc();a.Ob();)if(RNt(t,o,Q$(a.Pb(),33)))return!0;return!1}function nNt(t,e,n){var r,i,a,o,s,c,l,u,h;h=e.c.length;t:for(a=Q$((l=t.Yg(n))>=0?t._g(l,!1,!0):iLt(t,n,!1),58).Kc();a.Ob();){for(i=Q$(a.Pb(),56),u=0;u<h;++u)if(u1(u,e.c.length),c=(o=Q$(e.c[u],72)).dd(),s=o.ak(),r=i.bh(s,!1),null==c?null!=r:!Oht(c,r))continue t;return i}return null}function rNt(t,e,n,r){var i,a,o,s;for(i=Q$(FTt(e,(yGt(),TSe)).Kc().Pb(),11),a=Q$(FTt(e,oSe).Kc().Pb(),11),s=new Gd(t.j);s.a<s.c.c.length;){for(o=Q$(J1(s),11);0!=o.e.c.length;)CZ(Q$(Oj(o.e,0),17),i);for(;0!=o.g.c.length;)xZ(Q$(Oj(o.g,0),17),a)}n||lct(e,(lVt(),cfe),null),r||lct(e,(lVt(),lfe),null)}function iNt(t,e,n){var r,i;if(0==(!t.a&&(t.a=new tG(PLe,t,6,6)),t.a).i)return Hst(t);if(r=Q$(Xet((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a),0),202),e&&(cjt((!r.a&&(r.a=new LO(MLe,r,5)),r.a)),_nt(r,0),Lnt(r,0),Cnt(r,0),Snt(r,0)),n)for(!t.a&&(t.a=new tG(PLe,t,6,6)),i=t.a;i.i>1;)uNt(i,i.i-1);return r}function aNt(t,e){var n,r,i,a,o,s,c;for(Sxt(e,"Comment post-processing",1),a=new Gd(t.b);a.a<a.c.c.length;){for(i=Q$(J1(a),29),r=new Mm,s=new Gd(i.a);s.a<s.c.c.length;)o=Q$(J1(s),10),c=Q$(bEt(o,(lVt(),Nfe)),15),n=Q$(bEt(o,Dhe),15),(c||n)&&(Xzt(o,c,n),c&&gst(r,c),n&&gst(r,n));gst(i.a,r)}$Tt(e)}function oNt(t,e){var n,r,i,a,o,s;for(n=new Im,i=new Gd(t.b);i.a<i.c.c.length;){for(s=!0,r=0,o=new Gd(Q$(J1(i),29).a);o.a<o.c.c.length;)switch((a=Q$(J1(o),10)).k.g){case 4:++r;case 1:f3(n,a);break;case 0:s_t(a,e);default:n.b==n.c||pQt(n,r,s,!1,e),s=!1,r=0}n.b==n.c||pQt(n,r,s,!0,e)}}function sNt(t,e){var n,r,i,a,o,s;for(i=new Mm,n=0;n<=t.i;n++)(r=new UX(e)).p=t.i-n,i.c[i.c.length]=r;for(s=new Gd(t.o);s.a<s.c.c.length;)EZ(o=Q$(J1(s),10),Q$(Oj(i,t.i-t.f[o.p]),29));for(a=new Gd(i);a.a<a.c.c.length;)0==Q$(J1(a),29).a.c.length&&SG(a);e.b.c=O8(Lte,$Vt,1,0,5,1),gst(e.b,i)}function cNt(t,e){var n,r,i,a,o,s;for(n=0,s=new Gd(e);s.a<s.c.c.length;){for(o=Q$(J1(s),11),Zlt(t.b,t.d[o.p]),i=new m6(o.b);bM(i.a)||bM(i.b);)(a=CC(t,o==(r=Q$(bM(i.a)?J1(i.a):J1(i.b),17)).c?r.d:r.c))>t.d[o.p]&&(n+=J4(t.b,a),d3(t.a,nft(a)));for(;!Gy(t.a);)Ctt(t.b,Q$(dG(t.a),19).a)}return n}function lNt(t,e,n){var r,i,a,o;for(a=(!e.a&&(e.a=new tG(jLe,e,10,11)),e.a).i,i=new SO((!e.a&&(e.a=new tG(jLe,e,10,11)),e.a));i.e!=i.i.gc();)0==(!(r=Q$(ymt(i),33)).a&&(r.a=new tG(jLe,r,10,11)),r.a).i||(a+=lNt(t,r,!1));if(n)for(o=qJ(e);o;)a+=(!o.a&&(o.a=new tG(jLe,o,10,11)),o.a).i,o=qJ(o);return a}function uNt(t,e){var n,r,i,a;return t.ej()?(r=null,i=t.fj(),t.ij()&&(r=t.kj(t.pi(e),null)),n=t.Zi(4,a=Myt(t,e),null,e,i),t.bj()&&null!=a?(r=t.dj(a,r))?(r.Ei(n),r.Fi()):t.$i(n):r?(r.Ei(n),r.Fi()):t.$i(n),a):(a=Myt(t,e),t.bj()&&null!=a&&(r=t.dj(a,null))&&r.Fi(),a)}function hNt(t){var n,r,i,a,o,s,c,l,u,h;for(u=t.a,n=new Fb,l=0,i=new Gd(t.d);i.a<i.c.c.length;){for(h=0,Rit((r=Q$(J1(i),222)).b,new It),s=cmt(r.b,0);s.b!=s.d.c;)o=Q$(h3(s),222),n.a._b(o)&&(a=r.c,h<(c=o.c).d+c.a+u&&h+a.a+u>c.d&&(h=c.d+c.a+u));r.c.d=h,n.a.zc(r,n),l=e.Math.max(l,r.c.d+r.c.a)}return l}function fNt(){fNt=L,che=new IB("COMMENTS",0),uhe=new IB("EXTERNAL_PORTS",1),hhe=new IB("HYPEREDGES",2),fhe=new IB("HYPERNODES",3),dhe=new IB("NON_FREE_PORTS",4),Ahe=new IB("NORTH_SOUTH_PORTS",5),phe=new IB(j1t,6),she=new IB("CENTER_LABELS",7),lhe=new IB("END_LABELS",8),ghe=new IB("PARTITIONS",9)}function dNt(t){var e,n,r,i,a;for(i=new Mm,e=new Lj((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a)),r=new oz(YO(AOt(t).a.Kc(),new u));AIt(r);)rO(Xet((!(n=Q$(K5(r),79)).b&&(n.b=new cR(FLe,n,4,7)),n.b),0),186)||(a=Txt(Q$(Xet((!n.c&&(n.c=new cR(FLe,n,5,8)),n.c),0),82)),e.a._b(a)||(i.c[i.c.length]=a));return i}function ANt(t){var e,n,r,i,a;for(i=new Fb,e=new Lj((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a)),r=new oz(YO(AOt(t).a.Kc(),new u));AIt(r);)rO(Xet((!(n=Q$(K5(r),79)).b&&(n.b=new cR(FLe,n,4,7)),n.b),0),186)||(a=Txt(Q$(Xet((!n.c&&(n.c=new cR(FLe,n,5,8)),n.c),0),82)),e.a._b(a)||i.a.zc(a,i));return i}function gNt(t,e,n,r,i){return r<0?((r=Kxt(t,i,Tst(Hw(Wee,1),cWt,2,6,[qWt,YWt,JWt,ZWt,tqt,eqt,nqt,rqt,iqt,aqt,oqt,sqt]),e))<0&&(r=Kxt(t,i,Tst(Hw(Wee,1),cWt,2,6,["Jan","Feb","Mar","Apr",tqt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),!(r<0||(n.k=r,0))):r>0&&(n.k=r-1,!0)}function pNt(t,e,n,r,i){return r<0?((r=Kxt(t,i,Tst(Hw(Wee,1),cWt,2,6,[qWt,YWt,JWt,ZWt,tqt,eqt,nqt,rqt,iqt,aqt,oqt,sqt]),e))<0&&(r=Kxt(t,i,Tst(Hw(Wee,1),cWt,2,6,["Jan","Feb","Mar","Apr",tqt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),!(r<0||(n.k=r,0))):r>0&&(n.k=r-1,!0)}function mNt(t,e,n,r,i,a){var o,s,c;if(s=32,r<0){if(e[0]>=t.length)return!1;if(43!=(s=lW(t,e[0]))&&45!=s)return!1;if(++e[0],(r=zSt(t,e))<0)return!1;45==s&&(r=-r)}return 32==s&&e[0]-n==2&&2==i.b&&(o=(c=(new Sx).q.getFullYear()-cqt+cqt-80)%100,a.a=r==o,r+=100*(c/100|0)+(r<o?100:0)),a.p=r,!0}function bNt(t,n){var r,i,a;qJ(t)&&(a=Q$(bEt(n,($Xt(),Rpe)),174),HS(JIt(t,tme))===HS((WCt(),W_e))&&qmt(t,tme,V_e),HE(),i=Hzt(new Dy(qJ(t)),new qD(qJ(t)?new Dy(qJ(t)):null,t),!1,!0),sit(a,(bgt(),DSe)),(r=Q$(bEt(n,Upe),8)).a=e.Math.max(i.a,r.a),r.b=e.Math.max(i.b,r.b))}function vNt(t,e,n){var r,i,a,o,s,c;for(o=Q$(bEt(t,(lVt(),Jhe)),15).Kc();o.Ob();){switch(a=Q$(o.Pb(),10),Q$(bEt(a,($Xt(),vpe)),163).g){case 2:EZ(a,e);break;case 4:EZ(a,n)}for(i=new oz(YO(ldt(a).a.Kc(),new u));AIt(i);)(r=Q$(K5(i),17)).c&&r.d||(s=!r.d,c=Q$(bEt(r,mfe),11),s?CZ(r,c):xZ(r,c))}}function yNt(){yNt=L,Qle=new GW(bJt,0,(yGt(),sSe),sSe),Hle=new GW(yJt,1,xSe,xSe),Rle=new GW(vJt,2,oSe,oSe),zle=new GW(wJt,3,TSe,TSe),$le=new GW("NORTH_WEST_CORNER",4,TSe,sSe),Ule=new GW("NORTH_EAST_CORNER",5,sSe,oSe),Kle=new GW("SOUTH_WEST_CORNER",6,xSe,TSe),jle=new GW("SOUTH_EAST_CORNER",7,oSe,xSe)}function wNt(){wNt=L,CEe=Tst(Hw(LDe,1),Qqt,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 kNt(t,e){var n,r,i,a,o;if(0==t.c.length)return new nS(nft(0),nft(0));for(n=(u1(0,t.c.length),Q$(t.c[0],11)).j,o=0,a=e.g,r=e.g+1;o<t.c.length-1&&n.g<a;)n=(u1(++o,t.c.length),Q$(t.c[o],11)).j;for(i=o;i<t.c.length-1&&n.g<r;)++i,n=(u1(o,t.c.length),Q$(t.c[o],11)).j;return new nS(nft(o),nft(i))}function CNt(t,n,r){var i,a,o,s,c,l,u,h,f,d;for(o=n.c.length,u1(r,n.c.length),c=(s=Q$(n.c[r],286)).a.o.a,f=s.c,d=0,u=s.c;u<=s.f;u++){if(c<=t.a[u])return u;for(h=t.a[u],l=null,a=r+1;a<o;a++)u1(a,n.c.length),(i=Q$(n.c[a],286)).c<=u&&i.f>=u&&(l=i);l&&(h=e.Math.max(h,l.a.o.a)),h>d&&(f=u,d=h)}return f}function xNt(t,e,n){var r,i,a;if(t.e=n,t.d=0,t.b=0,t.f=1,t.i=e,!(16&~t.e)&&(t.i=pRt(t.i)),t.j=t.i.length,WXt(t),a=Vgt(t),t.d!=t.j)throw Um(new iw(yVt((aM(),d8t))));if(t.g){for(r=0;r<t.g.a.c.length;r++)if(i=Q$(hV(t.g,r),584),t.f<=i.a)throw Um(new iw(yVt((aM(),A8t))));t.g.a.c=O8(Lte,$Vt,1,0,5,1)}return a}function ENt(t,e){var n,r,i;if(null==e){for(!t.a&&(t.a=new tG(zIe,t,9,5)),r=new SO(t.a);r.e!=r.i.gc();)if(null==(null==(i=(n=Q$(ymt(r),678)).c)?n.zb:i))return n}else for(!t.a&&(t.a=new tG(zIe,t,9,5)),r=new SO(t.a);r.e!=r.i.gc();)if(mR(e,null==(i=(n=Q$(ymt(r),678)).c)?n.zb:i))return n;return null}function TNt(t,e){var n;switch(n=null,e.g){case 1:t.e.Xe((cVt(),tBe))&&(n=Q$(t.e.We(tBe),249));break;case 3:t.e.Xe((cVt(),eBe))&&(n=Q$(t.e.We(eBe),249));break;case 2:t.e.Xe((cVt(),ZTe))&&(n=Q$(t.e.We(ZTe),249));break;case 4:t.e.Xe((cVt(),nBe))&&(n=Q$(t.e.We(nBe),249))}return!n&&(n=Q$(t.e.We((cVt(),YTe)),249)),n}function BNt(t,e,n){var r,i,a,o,s,c;for(e.p=1,i=e.c,c=DAt(e,(art(),$be)).Kc();c.Ob();)for(r=new Gd(Q$(c.Pb(),11).g);r.a<r.c.c.length;)e!=(s=Q$(J1(r),17).d.i)&&s.c.p<=i.p&&((a=i.p+1)==n.b.c.length?((o=new UX(n)).p=a,G$(n.b,o),EZ(s,o)):EZ(s,o=Q$(Oj(n.b,a),29)),BNt(t,s,n))}function _Nt(t,n,r){var i,a,o,s,c,l;for(a=r,o=0,c=new Gd(n);c.a<c.c.c.length;)qmt(s=Q$(J1(c),33),(zyt(),Ike),nft(a++)),l=dNt(s),i=e.Math.atan2(s.j+s.f/2,s.i+s.g/2),(i+=i<0?J3t:0)<.7853981633974483||i>p4t?mM(l,t.b):i<=p4t&&i>m4t?mM(l,t.d):i<=m4t&&i>b4t?mM(l,t.c):i<=b4t&&mM(l,t.a),o=_Nt(t,l,o);return a}function SNt(){var t;for(SNt=L,Yee=new z6(1,1),Zee=new z6(1,10),ene=new z6(0,0),qee=new z6(-1,1),Jee=Tst(Hw(sne,1),cWt,91,0,[ene,Yee,new z6(1,2),new z6(1,3),new z6(1,4),new z6(1,5),new z6(1,6),new z6(1,7),new z6(1,8),new z6(1,9),Zee]),tne=O8(sne,cWt,91,32,0,1),t=0;t<tne.length;t++)tne[t]=Zpt(bz(1,t))}function LNt(t,e,n,r,i,a){var o,s,c,l;for(s=!yC(SW(t.Oc(),new iA(new Jn))).sd((dE(),Zne)),o=t,a==(Qht(),UBe)&&(o=rO(o,152)?o6(Q$(o,152)):rO(o,131)?Q$(o,131).a:rO(o,54)?new ly(o):new Tx(o)),l=o.Kc();l.Ob();)(c=Q$(l.Pb(),70)).n.a=e.a,c.n.b=s?e.b+(r.b-c.o.b)/2:i?e.b:e.b+r.b-c.o.b,e.a+=c.o.a+n}function INt(t,e,n,r){var i,a,o,s,c;for(i=(r.c+r.a)/2,bq(e.j),DH(e.j,i),bq(n.e),DH(n.e,i),c=new jk,o=new Gd(t.f);o.a<o.c.c.length;)Nkt(c,e,s=Q$(J1(o),129).a),Nkt(c,n,s);for(a=new Gd(t.k);a.a<a.c.c.length;)Nkt(c,e,s=Q$(J1(a),129).b),Nkt(c,n,s);return c.b+=2,c.a+=Iq(e,t.q),c.a+=Iq(t.q,n),c}function MNt(t,e,n){var r,i,a,o,s;if(!c3(e)){for(Sxt(s=bat(n,(rO(e,14)?Q$(e,14).gc():R3(e.Kc()))/t.a|0),K3t,1),o=new Mo,a=null,i=e.Kc();i.Ob();)r=Q$(i.Pb(),86),o=Xnt(Tst(Hw(Dte,1),$Vt,20,0,[o,new hp(r)])),a&&(lct(a,(Hjt(),hwe),r),lct(r,rwe,a),H8(r)==H8(a)&&(lct(a,fwe,r),lct(r,iwe,a))),a=r;$Tt(s),MNt(t,o,n)}}function ONt(t){var e,n,r,i,a,o,s;for(n=t.i,e=t.n,s=n.d,t.f==(H9(),nie)?s+=(n.a-t.e.b)/2:t.f==eie&&(s+=n.a-t.e.b),i=new Gd(t.d);i.a<i.c.c.length;){switch(o=(r=Q$(J1(i),181)).rf(),(a=new Hk).b=s,s+=o.b+t.a,t.b.g){case 0:a.a=n.c+e.b;break;case 1:a.a=n.c+e.b+(n.b-o.a)/2;break;case 2:a.a=n.c+n.b-e.c-o.a}r.tf(a)}}function DNt(t){var e,n,r,i,a,o,s;for(n=t.i,e=t.n,s=n.c,t.b==(q7(),Vre)?s+=(n.b-t.e.a)/2:t.b==qre&&(s+=n.b-t.e.a),i=new Gd(t.d);i.a<i.c.c.length;){switch(o=(r=Q$(J1(i),181)).rf(),(a=new Hk).a=s,s+=o.a+t.a,t.f.g){case 0:a.b=n.d+e.d;break;case 1:a.b=n.d+e.d+(n.a-o.b)/2;break;case 2:a.b=n.d+n.a-e.a-o.b}r.tf(a)}}function FNt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d;l=n.a.c,o=n.a.c+n.a.b,f=(a=Q$(FX(n.c,e),459)).f,d=a.a,s=new O_(l,f),u=new O_(o,d),i=l,n.p||(i+=t.c),c=new O_(i+=n.F+n.v*t.b,f),h=new O_(i,d),Znt(e.a,Tst(Hw(EEe,1),cWt,8,0,[s,c])),n.d.a.gc()>1&&(r=new O_(i,n.b),DH(e.a,r)),Znt(e.a,Tst(Hw(EEe,1),cWt,8,0,[h,u]))}function NNt(t){ME(t,new xxt(pk(fk(gk(Ak(new ps,R5t),"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 Ys))),a2(t,R5t,WJt,ISe),a2(t,R5t,mZt,15),a2(t,R5t,vZt,nft(0)),a2(t,R5t,VJt,AZt)}function PNt(){var t,e,n,r,i,a;for(PNt=L,XOe=O8(IDe,m6t,25,255,15,1),VOe=O8(BDe,XWt,25,16,15,1),e=0;e<255;e++)XOe[e]=-1;for(n=57;n>=48;n--)XOe[n]=n-48<<24>>24;for(r=70;r>=65;r--)XOe[r]=r-65+10<<24>>24;for(i=102;i>=97;i--)XOe[i]=i-97+10<<24>>24;for(a=0;a<10;a++)VOe[a]=48+a&WWt;for(t=10;t<=15;t++)VOe[t]=65+t-10&WWt}function RNt(t,e,n){var r,i,a,o,s,c,l,u;return s=e.i-t.g/2,c=n.i-t.g/2,l=e.j-t.g/2,u=n.j-t.g/2,a=e.g+t.g/2,o=n.g+t.g/2,r=e.f+t.g/2,i=n.f+t.g/2,s<c+o&&c<s&&l<u+i&&u<l||c<s+a&&s<c&&u<l+r&&l<u||s<c+o&&c<s&&l<u&&u<l+r||c<s+a&&s<c&&l<u+i&&u<l}function QNt(t){var n,r,i,a,o;a=Q$(bEt(t,($Xt(),Rpe)),21),o=Q$(bEt(t,$pe),21),n=new fI(r=new O_(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a)),a.Hc((bgt(),DSe))&&(i=Q$(bEt(t,Upe),8),o.Hc((ZRt(),HSe))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),n.a=e.Math.max(r.a,i.a),n.b=e.Math.max(r.b,i.b)),$y(kN(bEt(t,Qpe)))||z$t(t,r,n)}function UNt(t,e){var n,r,i,a;for(a=adt(e,(yGt(),xSe)).Kc();a.Ob();)r=Q$(a.Pb(),11),(n=Q$(bEt(r,(lVt(),wfe)),10))&&zDt(iE(rE(aE(nE(new Ub,0),.1),t.i[e.p].d),t.i[n.p].a));for(i=adt(e,sSe).Kc();i.Ob();)r=Q$(i.Pb(),11),(n=Q$(bEt(r,(lVt(),wfe)),10))&&zDt(iE(rE(aE(nE(new Ub,0),.1),t.i[n.p].d),t.i[e.p].a))}function $Nt(t){var e,n,r,i,a;if(!t.c){if(a=new Cc,null==(e=xMe).a.zc(t,e)){for(r=new SO(i4(t));r.e!=r.i.gc();)rO(i=hUt(n=Q$(ymt(r),87)),88)&&gX(a,$Nt(Q$(i,26))),l7(a,n);e.a.Bc(t),e.a.gc()}IAt(a),iut(a),t.c=new ML((Q$(Xet(Vq((VX(),JIe).o),15),18),a.i),a.g),E5(t).b&=-33}return t.c}function HNt(t){var e;if(10!=t.c)throw Um(new iw(yVt((aM(),g8t))));switch(e=t.a){case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw Um(new iw(yVt((aM(),z8t))))}return e}function jNt(t){var e,n,r,i;if(0==t.l&&0==t.m&&0==t.h)return"0";if(t.h==Bqt&&0==t.m&&0==t.l)return"-9223372036854775808";if(t.h>>19)return"-"+jNt(act(t));for(n=t,r="";0!=n.l||0!=n.m||0!=n.h;){if(n=Ljt(n,R5(Lqt),!0),e=""+kC(hee),0!=n.l||0!=n.m||0!=n.h)for(i=9-e.length;i>0;i--)e="0"+e;r=e+r}return r}function KNt(){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)}function zNt(t){var e,n,r,i,a,o,s;for(e=!1,n=0,i=new Gd(t.d.b);i.a<i.c.c.length;)for((r=Q$(J1(i),29)).p=n++,o=new Gd(r.a);o.a<o.c.c.length;)a=Q$(J1(o),10),!e&&!c3(ldt(a))&&(e=!0);s=wK((Qht(),QBe),Tst(Hw(GBe,1),IWt,103,0,[PBe,RBe])),e||(sit(s,UBe),sit(s,NBe)),t.a=new het(s),LG(t.f),LG(t.b),LG(t.e),LG(t.g)}function GNt(t,e,n){var r,i,a,o,s,c,l,u,h;for(r=n.c,i=n.d,s=A1(e.c),c=A1(e.d),r==e.c?(s=hOt(t,s,i),c=cEt(e.d)):(s=cEt(e.c),c=hOt(t,c,i)),n5(l=new Nk(e.a),s,l.a,l.a.a),n5(l,c,l.c.b,l.c),o=e.c==r,h=new qb,a=0;a<l.b-1;++a)u=new nS(Q$(Fmt(l,a),8),Q$(Fmt(l,a+1),8)),o&&0==a||!o&&a==l.b-2?h.b=u:G$(h.a,u);return h}function XNt(t,e){var n,r,i,a;if(0!=(a=t.j.g-e.j.g))return a;if(n=Q$(bEt(t,($Xt(),eme)),19),r=Q$(bEt(e,eme),19),n&&r&&0!=(i=n.a-r.a))return i;switch(t.j.g){case 1:return Tft(t.n.a,e.n.a);case 2:return Tft(t.n.b,e.n.b);case 3:return Tft(e.n.a,t.n.a);case 4:return Tft(e.n.b,t.n.b);default:throw Um(new Ry(r1t))}}function VNt(t,n,r,i){var a,o,s,c;if(R3(($Q(),new oz(YO(ldt(n).a.Kc(),new u))))>=t.a)return-1;if(!ext(n,r))return-1;if(c3(Q$(i.Kb(n),20)))return 1;for(a=0,s=Q$(i.Kb(n),20).Kc();s.Ob();){if(-1==(c=VNt(t,(o=Q$(s.Pb(),17)).c.i==n?o.d.i:o.c.i,r,i)))return-1;if((a=e.Math.max(a,c))>t.c-1)return-1}return a+1}function WNt(t,e){var n,r,i,a,o,s;if(HS(e)===HS(t))return!0;if(!rO(e,15))return!1;if(r=Q$(e,15),s=t.gc(),r.gc()!=s)return!1;if(o=r.Kc(),t.ni()){for(n=0;n<s;++n)if(i=t.ki(n),a=o.Pb(),null==i?null!=a:!Oht(i,a))return!1}else for(n=0;n<s;++n)if(i=t.ki(n),a=o.Pb(),HS(i)!==HS(a))return!1;return!0}function qNt(t,e){var n,r,i,a,o,s;if(t.f>0)if(t.qj(),null!=e){for(a=0;a<t.d.length;++a)if(n=t.d[a])for(r=Q$(n.g,367),s=n.i,o=0;o<s;++o)if(Oht(e,(i=r[o]).dd()))return!0}else for(a=0;a<t.d.length;++a)if(n=t.d[a])for(r=Q$(n.g,367),s=n.i,o=0;o<s;++o)if(i=r[o],HS(e)===HS(i.dd()))return!0;return!1}function YNt(t,e,n){var r,i,a,o;Sxt(n,"Orthogonally routing hierarchical port edges",1),t.a=0,OKt(e,r=zHt(e)),Wjt(t,e,r),uGt(e),i=Q$(bEt(e,($Xt(),tme)),98),Bzt((u1(0,(a=e.b).c.length),Q$(a.c[0],29)),i,e),Bzt(Q$(Oj(a,a.c.length-1),29),i,e),C$t((u1(0,(o=e.b).c.length),Q$(o.c[0],29))),C$t(Q$(Oj(o,o.c.length-1),29)),$Tt(n)}function JNt(t){switch(t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t-48<<24>>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 Um(new Cw("Invalid hexadecimal"))}}function ZNt(t,e,n){var r,i,a,o;for(Sxt(n,"Processor order nodes",2),t.a=Hy(CN(bEt(e,(BIt(),Owe)))),i=new Wx,o=cmt(e.b,0);o.b!=o.d.c;)$y(kN(bEt(a=Q$(h3(o),86),(Hjt(),dwe))))&&n5(i,a,i.c.b,i.c);EF(0!=i.b),PHt(t,r=Q$(i.a.a.c,86)),!n.b&&Hrt(n,1),UPt(t,r,0-Hy(CN(bEt(r,(Hjt(),awe))))/2,0),!n.b&&Hrt(n,1),$Tt(n)}function tPt(){tPt=L,Fre=new UT("SPIRAL",0),Lre=new UT("LINE_BY_LINE",1),Ire=new UT("MANHATTAN",2),Sre=new UT("JITTER",3),Ore=new UT("QUADRANTS_LINE_BY_LINE",4),Dre=new UT("QUADRANTS_MANHATTAN",5),Mre=new UT("QUADRANTS_JITTER",6),_re=new UT("COMBINE_LINE_BY_LINE_MANHATTAN",7),Bre=new UT("COMBINE_JITTER_MANHATTAN",8)}function ePt(t,e,n,r){var i,a,o,s,c,l;for(c=Okt(t,n),l=Okt(e,n),i=!1;c&&l&&(r||byt(c,l,n));)o=Okt(c,n),s=Okt(l,n),S9(e),S9(t),a=c.c,rKt(c,!1),rKt(l,!1),n?(Wyt(e,l.p,a),e.p=l.p,Wyt(t,c.p+1,a),t.p=c.p):(Wyt(t,c.p,a),t.p=c.p,Wyt(e,l.p+1,a),e.p=l.p),EZ(c,null),EZ(l,null),c=o,l=s,i=!0;return i}function nPt(t,e,n,r){var i,a,o,s,c;for(i=!1,a=!1,s=new Gd(r.j);s.a<s.c.c.length;)HS(bEt(o=Q$(J1(s),11),(lVt(),dfe)))===HS(n)&&(0==o.g.c.length?0==o.e.c.length||(i=!0):a=!0);return c=0,i&&i^a?c=n.j==(yGt(),sSe)?-t.e[r.c.p][r.p]:e-t.e[r.c.p][r.p]:a&&i^a?c=t.e[r.c.p][r.p]+1:i&&a&&(c=n.j==(yGt(),sSe)?0:e/2),c}function rPt(t,e,n,r,i,a,o,s){var c,l,u;for(c=0,null!=e&&(c^=mbt(e.toLowerCase())),null!=n&&(c^=mbt(n)),null!=r&&(c^=mbt(r)),null!=o&&(c^=mbt(o)),null!=s&&(c^=mbt(s)),l=0,u=a.length;l<u;l++)c^=mbt(a[l]);t?c|=256:c&=-257,i?c|=16:c&=-17,this.f=c,this.i=null==e?null:(vV(e),e),this.a=n,this.d=r,this.j=a,this.g=o,this.e=s}function iPt(t,e,n){var r,i;switch(i=null,e.g){case 1:gat(),i=Mse;break;case 2:gat(),i=Dse}switch(r=null,n.g){case 1:gat(),r=Ose;break;case 2:gat(),r=Ise;break;case 3:gat(),r=Fse;break;case 4:gat(),r=Nse}return i&&r?N$(t.j,new Qh(new qy(Tst(Hw(Mte,1),$Vt,169,0,[Q$(bX(i),169),Q$(bX(r),169)])))):(xq(),xq(),cne)}function aPt(t){var e,n,r;switch(e=Q$(bEt(t,($Xt(),Upe)),8),lct(t,Upe,new O_(e.b,e.a)),Q$(bEt(t,vge),248).g){case 1:lct(t,vge,(dbt(),IEe));break;case 2:lct(t,vge,(dbt(),BEe));break;case 3:lct(t,vge,(dbt(),SEe));break;case 4:lct(t,vge,(dbt(),LEe))}(t.q?t.q:(xq(),xq(),lne))._b(sme)&&(r=(n=Q$(bEt(t,sme),8)).a,n.a=n.b,n.b=r)}function oPt(t,e,n,r,i,a){if(this.b=n,this.d=i,t>=e.length)throw Um(new Sy("Greedy SwitchDecider: Free layer not in graph."));this.c=e[t],this.e=new VR(r),vit(this.e,this.c,(yGt(),TSe)),this.i=new VR(r),vit(this.i,this.c,oSe),this.f=new uK(this.c),this.a=!a&&i.i&&!i.s&&this.c[0].k==(oTt(),Cse),this.a&&gBt(this,t,e.length)}function sPt(t,e){var n,r,i,a,o,s;a=!t.B.Hc((ZRt(),USe)),o=t.B.Hc(jSe),t.a=new $At(o,a,t.c),t.n&&vq(t.a.n,t.n),yy(t.g,(Fet(),jre),t.a),e||((r=new _pt(1,a,t.c)).n.a=t.k,mK(t.p,(yGt(),sSe),r),(i=new _pt(1,a,t.c)).n.d=t.k,mK(t.p,xSe,i),(s=new _pt(0,a,t.c)).n.c=t.k,mK(t.p,TSe,s),(n=new _pt(0,a,t.c)).n.b=t.k,mK(t.p,oSe,n))}function cPt(t){var e,n,r;switch((e=Q$(bEt(t.d,($Xt(),Yge)),218)).g){case 2:n=xXt(t);break;case 3:r=new Mm,qx(SW(LW(ftt(ftt(new Fj(null,new f1(t.d.b,16)),new Li),new Ii),new Mi),new mi),new Tg(r)),n=r;break;default:throw Um(new Ry("Compaction not supported for "+e+" edges."))}gjt(t,n),t5(new Td(t.g),new xg(t))}function lPt(t,e){var n;return n=new Jt,e&&Hot(n,Q$(FX(t.a,OLe),94)),rO(e,470)&&Hot(n,Q$(FX(t.a,DLe),94)),rO(e,354)?(Hot(n,Q$(FX(t.a,HLe),94)),n):(rO(e,82)&&Hot(n,Q$(FX(t.a,FLe),94)),rO(e,239)?(Hot(n,Q$(FX(t.a,jLe),94)),n):rO(e,186)?(Hot(n,Q$(FX(t.a,KLe),94)),n):(rO(e,352)&&Hot(n,Q$(FX(t.a,NLe),94)),n))}function uPt(){uPt=L,Yae=new zI((cVt(),gBe),nft(1)),roe=new zI(IBe,80),noe=new zI(xBe,5),Rae=new zI(rTe,AZt),Jae=new zI(pBe,nft(1)),eoe=new zI(vBe,(cD(),!0)),Vae=new GI(50),Xae=new zI(zTe,Vae),Uae=TTe,Wae=aBe,Qae=new zI(dTe,!1),Gae=KTe,zae=$Te,Kae=NTe,jae=DTe,qae=lBe,wTt(),Hae=Bae,ioe=Mae,$ae=Tae,Zae=Sae,toe=Iae}function hPt(t){var e,n,r,i,a,o,s;for(s=new p5,o=new Gd(t.a);o.a<o.c.c.length;)if((a=Q$(J1(o),10)).k!=(oTt(),Cse))for(RIt(s,a,new Hk),i=new oz(YO(hdt(a).a.Kc(),new u));AIt(i);)if((r=Q$(K5(i),17)).c.i.k!=Cse&&r.d.i.k!=Cse)for(n=cmt(r.a,0);n.b!=n.d.c;)qkt(s,new dB((e=Q$(h3(n),8)).a,e.b));return s}function fPt(){fPt=L,Fxe=new am(P4t),_E(),Oxe=new LL(H4t,Dxe=Hxe),Mst(),Ixe=new LL(R4t,Mxe=Gxe),ITt(),Sxe=new LL(Q4t,Lxe=nxe),Exe=new LL(U4t,null),L6(),Bxe=new LL($4t,_xe=YCe),TE(),yxe=new LL(j4t,wxe=zCe),kxe=new LL(K4t,(cD(),!1)),Cxe=new LL(z4t,nft(64)),xxe=new LL(G4t,!0),Txe=JCe}function dPt(t){var e,n,r,i,a;if(null==t.a)if(t.a=O8(SDe,JYt,25,t.c.b.c.length,16,1),t.a[0]=!1,IF(t.c,($Xt(),Kme)))for(n=Q$(bEt(t.c,Kme),15).Kc();n.Ob();)(e=Q$(n.Pb(),19).a)>0&&e<t.a.length&&(t.a[e]=!1);else for((a=new Gd(t.c.b)).a<a.c.c.length&&J1(a),r=1;a.a<a.c.c.length;)i=Q$(J1(a),29),t.a[r++]=zMt(i)}function APt(t,e){var n,r;switch(r=t.b,e){case 1:t.b|=1,t.b|=4,t.b|=8;break;case 2:t.b|=2,t.b|=4,t.b|=8;break;case 4:t.b|=1,t.b|=2,t.b|=4,t.b|=8;break;case 3:t.b|=16,t.b|=8;break;case 0:t.b|=32,t.b|=16,t.b|=8,t.b|=1,t.b|=2,t.b|=4}if(t.b!=r&&t.c)for(n=new SO(t.c);n.e!=n.i.gc();)L_t(E5(Q$(ymt(n),473)),e)}function gPt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d;for(i=!1,s=0,c=(o=e).length;s<c;++s)a=o[s],$y((cD(),!!a.e))&&!Q$(Oj(t.b,a.e.p),214).s&&(i|=(l=a.e,(h=(u=Q$(Oj(t.b,l.p),214)).e)[f=lk(n,h.length)][0].k==(oTt(),Cse)?h[f]=IDt(a,h[f],n?(yGt(),TSe):(yGt(),oSe)):u.c.Tf(h,n),d=FDt(t,u,n,r),DFt(u.e,u.o,n),d));return i}function pPt(t,e){var n,r,i,a,o;for(a=(!e.a&&(e.a=new tG(jLe,e,10,11)),e.a).i,i=new SO((!e.a&&(e.a=new tG(jLe,e,10,11)),e.a));i.e!=i.i.gc();)HS(JIt(r=Q$(ymt(i),33),(cVt(),wTe)))!==HS((oht(),m_e))&&((o=Q$(JIt(e,mBe),149))==(n=Q$(JIt(r,mBe),149))||o&&y5(o,n))&&0!=(!r.a&&(r.a=new tG(jLe,r,10,11)),r.a).i&&(a+=pPt(t,r));return a}function mPt(t){var e,n,r,i,a,o,s;for(r=0,s=0,o=new Gd(t.d);o.a<o.c.c.length;)a=Q$(J1(o),101),i=Q$(E4(SW(new Fj(null,new f1(a.j,16)),new Xi),m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),Kne)]))),15),n=null,r<=s?(yGt(),n=sSe,r+=i.gc()):s<r&&(yGt(),n=xSe,s+=i.gc()),e=n,qx(LW(i.Oc(),new Hi),new Sg(e))}function bPt(t){var e,n,r,i,a,o,s,c;for(t.b=new mLt(new qy((yGt(),Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe]))),new qy((Bit(),Tst(Hw(Gle,1),IWt,361,0,[Fle,Dle,Ole])))),s=0,c=(o=Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe])).length;s<c;++s)for(a=o[s],r=0,i=(n=Tst(Hw(Gle,1),IWt,361,0,[Fle,Dle,Ole])).length;r<i;++r)e=n[r],Xkt(t.b,a,e,new Mm)}function vPt(t,e){var n,r,i,a,o,s,c,l,u,h;if(o=Q$(Q$(c6(t.r,e),21),84),s=t.u.Hc((hSt(),nSe)),n=t.u.Hc(Z_e),r=t.u.Hc(J_e),l=t.u.Hc(rSe),h=t.B.Hc((ZRt(),VSe)),u=!n&&!r&&(l||2==o.gc()),lFt(t,e),i=null,c=null,s){for(c=i=Q$((a=o.Kc()).Pb(),111);a.Ob();)c=Q$(a.Pb(),111);i.d.b=0,c.d.c=0,u&&!i.a&&(i.d.c=0)}h&&(Fxt(o),s&&(i.d.b=0,c.d.c=0))}function yPt(t,e){var n,r,i,a,o,s,c,l,u,h;if(o=Q$(Q$(c6(t.r,e),21),84),s=t.u.Hc((hSt(),nSe)),n=t.u.Hc(Z_e),r=t.u.Hc(J_e),c=t.u.Hc(rSe),h=t.B.Hc((ZRt(),VSe)),l=!n&&!r&&(c||2==o.gc()),VQt(t,e),u=null,i=null,s){for(i=u=Q$((a=o.Kc()).Pb(),111);a.Ob();)i=Q$(a.Pb(),111);u.d.d=0,i.d.a=0,l&&!u.a&&(u.d.a=0)}h&&(Nxt(o),s&&(u.d.d=0,i.d.a=0))}function wPt(t,e,n){var r,i,a,o,s;if(r=e.k,e.p>=0)return!1;if(e.p=n.b,G$(n.e,e),r==(oTt(),Ese)||r==Bse)for(i=new Gd(e.j);i.a<i.c.c.length;)for(s=new jA(new Gd(new HA(Q$(J1(i),11)).a.g));bM(s.a);)if(o=(a=Q$(J1(s.a),17).d.i).k,e.c!=a.c&&(o==Ese||o==Bse)&&wPt(t,a,n))return!0;return!0}function kPt(t){var e;return 64&t.Db?PLt(t):((e=new lD(PLt(t))).a+=" (changeable: ",bC(e,!!(t.Bb&y6t)),e.a+=", volatile: ",bC(e,!!(t.Bb&x7t)),e.a+=", transient: ",bC(e,!!(t.Bb&Rqt)),e.a+=", defaultValueLiteral: ",rL(e,t.j),e.a+=", unsettable: ",bC(e,!!(t.Bb&C7t)),e.a+=", derived: ",bC(e,!!(t.Bb&lWt)),e.a+=")",e.a)}function CPt(t){var e,n,r,i,a,o,s,c,l,u;for(n=OOt(t.d),a=(i=Q$(bEt(t.b,(kmt(),pae)),116)).b+i.c,o=i.d+i.a,c=n.d.a*t.e+a,s=n.b.a*t.f+o,If(t.b,new O_(c,s)),u=new Gd(t.g);u.a<u.c.c.length;)e=KP(RF(new O_((l=Q$(J1(u),562)).g-n.a.a,l.i-n.c.a),l.a,l.b),vO(QF(QM(XI(l.e)),l.d*l.a,l.c*l.b),-.5)),r=VI(l.e),ek(l.e,zP(e,r))}function xPt(t,e,n,r){var i,a,o,s,c;for(c=O8(MDe,cWt,104,(yGt(),Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe])).length,0,2),o=0,s=(a=Tst(Hw(RSe,1),qZt,61,0,[ESe,sSe,oSe,xSe,TSe])).length;o<s;++o)c[(i=a[o]).g]=O8(MDe,Hqt,25,t.c[i.g],15,1);return Uwt(c,t,sSe),Uwt(c,t,xSe),Dvt(c,t,sSe,e,n,r),Dvt(c,t,oSe,e,n,r),Dvt(c,t,xSe,e,n,r),Dvt(c,t,TSe,e,n,r),c}function EPt(t,e,n){if(cG(t.a,e)){if(Rx(Q$(FX(t.a,e),53),n))return 1}else XV(t.a,e,new Fb);if(cG(t.a,n)){if(Rx(Q$(FX(t.a,n),53),e))return-1}else XV(t.a,n,new Fb);if(cG(t.b,e)){if(Rx(Q$(FX(t.b,e),53),n))return-1}else XV(t.b,e,new Fb);if(cG(t.b,n)){if(Rx(Q$(FX(t.b,n),53),e))return 1}else XV(t.b,n,new Fb);return 0}function TPt(t,e,n,r){var i,a,o,s,c,l;if(null==n)for(i=Q$(t.g,119),s=0;s<t.i;++s)if((o=i[s]).ak()==e)return Rmt(t,o,r);return YE(),a=Q$(e,66).Oj()?Q$(n,72):Y3(e,n),mI(t.e)?(l=!agt(t,e),r=qAt(t,a,r),c=e.$j()?IY(t,3,e,null,n,p$t(t,e,n,rO(e,99)&&!!(Q$(e,18).Bb&Uqt)),l):IY(t,1,e,e.zj(),n,-1,l),r?r.Ei(c):r=c):r=qAt(t,a,r),r}function BPt(t){var n,r,i,a,o,s;t.q!=(WCt(),G_e)&&t.q!=z_e&&(a=t.f.n.d+zH(Q$(oW(t.b,(yGt(),sSe)),124))+t.c,n=t.f.n.a+zH(Q$(oW(t.b,xSe),124))+t.c,i=Q$(oW(t.b,oSe),124),s=Q$(oW(t.b,TSe),124),o=e.Math.max(0,i.n.d-a),o=e.Math.max(o,s.n.d-a),r=e.Math.max(0,i.n.a-n),r=e.Math.max(r,s.n.a-n),i.n.d=o,s.n.d=o,i.n.a=r,s.n.a=r)}function _Pt(t,e){var n,r,i,a,o,s,c;for(Sxt(e,"Restoring reversed edges",1),o=new Gd(t.b);o.a<o.c.c.length;)for(s=new Gd(Q$(J1(o),29).a);s.a<s.c.c.length;)for(c=new Gd(Q$(J1(s),10).j);c.a<c.c.c.length;)for(i=0,a=(r=Y0(Q$(J1(c),11).g)).length;i<a;++i)$y(kN(bEt(n=r[i],(lVt(),Tfe))))&&t$t(n,!1);$Tt(e)}function SPt(){this.b=new p4,this.d=new p4,this.e=new p4,this.c=new p4,this.a=new Om,this.f=new Om,OJ(EEe,new ys,new ws),OJ(MEe,new Ms,new Os),OJ(wse,new Ds,new Fs),OJ(Pse,new Ps,new Rs),OJ(cLe,new Qs,new Us),OJ(mne,new ks,new Cs),OJ(Bne,new xs,new Es),OJ(yne,new Ts,new Bs),OJ(wne,new _s,new Ss),OJ(Qne,new Ls,new Is)}function LPt(t){var e,n,r,i,a,o;return a=0,(e=_wt(t)).Bj()&&(a|=4),t.Bb&C7t&&(a|=2),rO(t,99)?(i=Bbt(n=Q$(t,18)),n.Bb&l6t&&(a|=32),i&&(hX(dZ(i)),a|=8,((o=i.t)>1||-1==o)&&(a|=16),i.Bb&l6t&&(a|=64)),n.Bb&Uqt&&(a|=x7t),a|=y6t):rO(e,457)?a|=512:(r=e.Bj())&&1&r.i&&(a|=256),512&t.Bb&&(a|=128),a}function IPt(t,e){var n,r,i,a,o;for(t=null==t?KVt:(vV(t),t),i=0;i<e.length;i++)e[i]=nOt(e[i]);for(n=new Bw,o=0,r=0;r<e.length&&-1!=(a=t.indexOf("%s",o));)n.a+=""+lF(null==t?KVt:(vV(t),t),o,a),aL(n,e[r++]),o=a+2;if(H0(n,t,o,t.length),r<e.length){for(n.a+=" [",aL(n,e[r++]);r<e.length;)n.a+=QVt,aL(n,e[r++]);n.a+="]"}return n.a}function MPt(t){var e,n,r,i,a;for(a=new q6(t.a.c.length),i=new Gd(t.a);i.a<i.c.c.length;){switch(r=Q$(J1(i),10),e=null,(n=Q$(bEt(r,($Xt(),vpe)),163)).g){case 1:case 2:Yst(),e=Lue;break;case 3:case 4:Yst(),e=_ue}e?(lct(r,(lVt(),Hhe),(Yst(),Lue)),e==_ue?NDt(r,n,(art(),Ube)):e==Lue&&NDt(r,n,(art(),$be))):a.c[a.c.length]=r}return a}function OPt(t,e){var n,r,i,a,o,s,c;for(n=0,c=new Gd(e);c.a<c.c.c.length;){for(s=Q$(J1(c),11),Zlt(t.b,t.d[s.p]),o=0,i=new m6(s.b);bM(i.a)||bM(i.b);)TV(r=Q$(bM(i.a)?J1(i.a):J1(i.b),17))?(a=CC(t,s==r.c?r.d:r.c))>t.d[s.p]&&(n+=J4(t.b,a),d3(t.a,nft(a))):++o;for(n+=t.b.d*o;!Gy(t.a);)Ctt(t.b,Q$(dG(t.a),19).a)}return n}function DPt(t,e){var n;return t.f==iOe?(n=DV(Q9((_Bt(),qMe),e)),t.e?4==n&&e!=(CLt(),cOe)&&e!=(CLt(),aOe)&&e!=(CLt(),oOe)&&e!=(CLt(),sOe):2==n):!(!t.d||!(t.d.Hc(e)||t.d.Hc(Y1(Q9((_Bt(),qMe),e)))||t.d.Hc(Qjt((_Bt(),qMe),t.b,e))))||!(!t.f||!aDt((_Bt(),t.f),yW(Q9(qMe,e))))&&(n=DV(Q9(qMe,e)),t.e?4==n:2==n)}function FPt(t,n,r,i){var a,o,s,c,l,u,h,f;return l=(s=Q$(JIt(r,(cVt(),ABe)),8)).a,h=s.b+t,(a=e.Math.atan2(h,l))<0&&(a+=J3t),(a+=n)>J3t&&(a-=J3t),u=(c=Q$(JIt(i,ABe),8)).a,f=c.b+t,(o=e.Math.atan2(f,u))<0&&(o+=J3t),(o+=n)>J3t&&(o-=J3t),cM(),rrt(1e-10),e.Math.abs(a-o)<=1e-10||a==o||isNaN(a)&&isNaN(o)?0:a<o?-1:a>o?1:jL(isNaN(a),isNaN(o))}function NPt(t){var e,n,r,i,a,o,s;for(s=new Om,r=new Gd(t.a.b);r.a<r.c.c.length;)XV(s,e=Q$(J1(r),57),new Mm);for(i=new Gd(t.a.b);i.a<i.c.c.length;)for((e=Q$(J1(i),57)).i=Pqt,o=e.c.Kc();o.Ob();)a=Q$(o.Pb(),57),Q$($S(SY(s.f,a)),15).Fc(e);for(n=new Gd(t.a.b);n.a<n.c.c.length;)(e=Q$(J1(n),57)).c.$b(),e.c=Q$($S(SY(s.f,e)),15);RFt(t)}function PPt(t){var e,n,r,i,a,o,s;for(s=new Om,r=new Gd(t.a.b);r.a<r.c.c.length;)XV(s,e=Q$(J1(r),81),new Mm);for(i=new Gd(t.a.b);i.a<i.c.c.length;)for((e=Q$(J1(i),81)).o=Pqt,o=e.f.Kc();o.Ob();)a=Q$(o.Pb(),81),Q$($S(SY(s.f,a)),15).Fc(e);for(n=new Gd(t.a.b);n.a<n.c.c.length;)(e=Q$(J1(n),81)).f.$b(),e.f=Q$($S(SY(s.f,e)),15);UDt(t)}function RPt(t,e,n,r){var i,a;for(jwt(t,e,n,r),Of(e,t.j-e.j+n),Df(e,t.k-e.k+r),a=new Gd(e.f);a.a<a.c.c.length;)switch((i=Q$(J1(a),324)).a.g){case 0:dct(t,e.g+i.b.a,0,e.g+i.c.a,e.i-1);break;case 1:dct(t,e.g+e.o,e.i+i.b.a,t.o-1,e.i+i.c.a);break;case 2:dct(t,e.g+i.b.a,e.i+e.p,e.g+i.c.a,t.p-1);break;default:dct(t,0,e.i+i.b.a,e.g-1,e.i+i.c.a)}}function QPt(t,e,n,r,i){var a,o;try{if(e>=t.o)throw Um(new xb);o=e>>5,a=bz(1,dK(bz(31&e,1))),t.n[n][o]=i?e0(t.n[n][o],a):t0(t.n[n][o],aH(a)),a=bz(a,1),t.n[n][o]=r?e0(t.n[n][o],a):t0(t.n[n][o],aH(a))}catch(r){throw rO(r=hst(r),320)?Um(new Sy(xJt+t.o+"*"+t.p+EJt+e+QVt+n+TJt)):Um(r)}}function UPt(t,n,r,i){var a,o;n&&(a=Hy(CN(bEt(n,(Hjt(),lwe))))+i,o=r+Hy(CN(bEt(n,awe)))/2,lct(n,Awe,nft(dK(uot(e.Math.round(a))))),lct(n,gwe,nft(dK(uot(e.Math.round(o))))),0==n.d.b||UPt(t,Q$(eO(new fp(cmt(new hp(n).a.d,0))),86),r+Hy(CN(bEt(n,awe)))+t.a,i+Hy(CN(bEt(n,owe)))),null!=bEt(n,fwe)&&UPt(t,Q$(bEt(n,fwe),86),r,i))}function $Pt(t,n){var r,i,a,o,s,c,l,u,h,f,d;for(a=2*Hy(CN(bEt(l=pV(n.a),($Xt(),kme)))),h=Hy(CN(bEt(l,Sme))),u=e.Math.max(a,h),o=O8(MDe,Hqt,25,n.f-n.c+1,15,1),i=-u,r=0,c=n.b.Kc();c.Ob();)s=Q$(c.Pb(),10),i+=t.a[s.c.p]+u,o[r++]=i;for(i+=t.a[n.a.c.p]+u,o[r++]=i,d=new Gd(n.e);d.a<d.c.c.length;)f=Q$(J1(d),10),i+=t.a[f.c.p]+u,o[r++]=i;return o}function HPt(t,e,n,r){var i,a,o,s,c,l,u,h;for(h=new dC(new Wg(t)),s=0,c=(o=Tst(Hw(_se,1),a1t,10,0,[e,n])).length;s<c;++s)for(u=Mht(o[s],r).Kc();u.Ob();)for(a=new m6((l=Q$(u.Pb(),11)).b);bM(a.a)||bM(a.b);)h5(i=Q$(bM(a.a)?J1(a.a):J1(a.b),17))||(xct(h.a,l,(cD(),pee)),TV(i)&&YG(h,l==i.c?i.d:i.c));return bX(h),new ZR(h)}function jPt(t,e){var n,r,i,a;if(0!=(a=Q$(JIt(t,(cVt(),fBe)),61).g-Q$(JIt(e,fBe),61).g))return a;if(n=Q$(JIt(t,sBe),19),r=Q$(JIt(e,sBe),19),n&&r&&0!=(i=n.a-r.a))return i;switch(Q$(JIt(t,fBe),61).g){case 1:return Tft(t.i,e.i);case 2:return Tft(t.j,e.j);case 3:return Tft(e.i,t.i);case 4:return Tft(e.j,t.j);default:throw Um(new Ry(r1t))}}function KPt(t){var e,n,r;return 64&t.Db?bTt(t):(e=new uD(Z5t),(n=t.k)?oL(oL((e.a+=' "',e),n),'"'):(!t.n&&(t.n=new tG(HLe,t,1,7)),t.n.i>0&&(!(r=(!t.n&&(t.n=new tG(HLe,t,1,7)),Q$(Xet(t.n,0),137)).a)||oL(oL((e.a+=' "',e),r),'"'))),oL(vC(oL(vC(oL(vC(oL(vC((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function zPt(t){var e,n,r;return 64&t.Db?bTt(t):(e=new uD(t6t),(n=t.k)?oL(oL((e.a+=' "',e),n),'"'):(!t.n&&(t.n=new tG(HLe,t,1,7)),t.n.i>0&&(!(r=(!t.n&&(t.n=new tG(HLe,t,1,7)),Q$(Xet(t.n,0),137)).a)||oL(oL((e.a+=' "',e),r),'"'))),oL(vC(oL(vC(oL(vC(oL(vC((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function GPt(t,e){var n,r,i,a,o,s;if(null==e||0==e.length)return null;if(!(i=Q$(xJ(t.a,e),149))){for(r=new Nd(new _d(t.b).a.vc().Kc());r.a.Ob();)if(a=Q$(r.a.Pb(),42),o=(n=Q$(a.dd(),149)).c,s=e.length,mR(o.substr(o.length-s,s),e)&&(e.length==o.length||46==lW(o,o.length-e.length-1))){if(i)return null;i=n}i&&mZ(t.a,e,i)}return i}function XPt(t,e){var n,r,i;return n=new Dt,(r=Q$(E4(LW(new Fj(null,new f1(t.f,16)),n),O9(new q,new Y,new it,new at,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),zne),Kne]))),21).gc())<(i=Q$(E4(LW(new Fj(null,new f1(e.f,16)),n),O9(new q,new Y,new it,new at,Tst(Hw(Jne,1),IWt,132,0,[zne,Kne]))),21).gc())?-1:r==i?0:1}function VPt(t){var e,n,r;IF(t,($Xt(),Lpe))&&((r=Q$(bEt(t,Lpe),21)).dc()||(n=new WR(e=Q$(Xk(H_e),9),Q$(xP(e,e.length),9),0),r.Hc((ZIt(),L_e))?sit(n,L_e):sit(n,I_e),r.Hc(__e)||sit(n,__e),r.Hc(B_e)?sit(n,D_e):r.Hc(T_e)?sit(n,O_e):r.Hc(S_e)&&sit(n,M_e),r.Hc(D_e)?sit(n,B_e):r.Hc(O_e)?sit(n,T_e):r.Hc(M_e)&&sit(n,S_e),lct(t,Lpe,n)))}function WPt(t){var e,n,r,i,a,o,s;for(i=Q$(bEt(t,(lVt(),nfe)),10),u1(0,(r=t.j).c.length),n=Q$(r.c[0],11),o=new Gd(i.j);o.a<o.c.c.length;)if(HS(a=Q$(J1(o),11))===HS(bEt(n,dfe))){a.j==(yGt(),sSe)&&t.p>i.p?(H_t(a,xSe),a.d&&(s=a.o.b,e=a.a.b,a.a.b=s-e)):a.j==xSe&&i.p>t.p&&(H_t(a,sSe),a.d&&(s=a.o.b,e=a.a.b,a.a.b=-(s-e)));break}return i}function qPt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A;if(a=n,n<r)for(d=new Qot(t.p),A=new Qot(t.p),Qit(d.e,t.e),d.q=t.q,d.r=A,nX(d),Qit(A.j,t.j),A.r=d,nX(A),h=Q$((f=new nS(d,A)).a,112),u=Q$(f.b,112),u1(a,e.c.length),o=INt(t,h,u,i=Q$(e.c[a],329)),l=n+1;l<=r;l++)u1(l,e.c.length),Vmt(s=Q$(e.c[l],329),c=INt(t,h,u,s),i,o)&&(i=s,o=c);return a}function YPt(t,e,n,r,i){var a,o,s,c,l,u,h;if(!(rO(e,239)||rO(e,354)||rO(e,186)))throw Um(new Py("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return o=t.a/2,c=e.i+r-o,u=e.j+i-o,l=c+e.g+t.a,h=u+e.f+t.a,DH(a=new vv,new O_(c,u)),DH(a,new O_(c,h)),DH(a,new O_(l,h)),DH(a,new O_(l,u)),Hot(s=new kIt(a),e),n&&XV(t.b,e,s),s}function JPt(t,e,n){var r,i,a,o,s,c,l,u;for(a=new O_(e,n),l=new Gd(t.a);l.a<l.c.c.length;)for(KP((c=Q$(J1(l),10)).n,a),u=new Gd(c.j);u.a<u.c.c.length;)for(i=new Gd(Q$(J1(u),11).g);i.a<i.c.c.length;)for(Jet((r=Q$(J1(i),17)).a,a),(o=Q$(bEt(r,($Xt(),ppe)),74))&&Jet(o,a),s=new Gd(r.b);s.a<s.c.c.length;)KP(Q$(J1(s),70).n,a)}function ZPt(t,e,n){var r,i,a,o,s,c,l,u;for(a=new O_(e,n),l=new Gd(t.a);l.a<l.c.c.length;)for(KP((c=Q$(J1(l),10)).n,a),u=new Gd(c.j);u.a<u.c.c.length;)for(i=new Gd(Q$(J1(u),11).g);i.a<i.c.c.length;)for(Jet((r=Q$(J1(i),17)).a,a),(o=Q$(bEt(r,($Xt(),ppe)),74))&&Jet(o,a),s=new Gd(r.b);s.a<s.c.c.length;)KP(Q$(J1(s),70).n,a)}function tRt(t){if(0==(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b).i)throw Um(new rw("Edges must have a source."));if(0==(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c).i)throw Um(new rw("Edges must have a target."));if(!t.b&&(t.b=new cR(FLe,t,4,7)),!(t.b.i<=1&&(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c.i<=1)))throw Um(new rw("Hyperedges are not supported."))}function eRt(t,e){var n,r,i,a,o,s,c,l,u,h;for(h=0,d3(a=new Im,e);a.b!=a.c;)for(c=Q$(dG(a),214),l=0,u=Q$(bEt(e.j,($Xt(),Ige)),339),o=Hy(CN(bEt(e.j,Bge))),s=Hy(CN(bEt(e.j,_ge))),u!=(bct(),Mbe)&&(l+=o*EMt(c.e,u),l+=s*rFt(c.e)),h+=cyt(c.d,c.e)+l,i=new Gd(c.b);i.a<i.c.c.length;)r=Q$(J1(i),37),(n=Q$(Oj(t.b,r.p),214)).s||(h+=ZBt(t,n));return h}function nRt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p;for(c=d=e.length,h1(0,e.length),45==e.charCodeAt(0)?(h=-1,f=1,--d):(h=1,f=0),i=d/(a=(oHt(),ine)[10])|0,0!=(p=d%a)&&++i,s=O8(_De,lqt,25,i,15,1),n=rne[8],o=0,A=f+(0==p?a:p),g=f;g<c;A=(g=A)+a)r=hQt(e.substr(g,A-g),RWt,FVt),ILt(),l=Abt(s,s,o,n),l+=zAt(s,o,r),s[o++]=l;u=o,t.e=h,t.d=u,t.a=s,z0(t)}function rRt(t,e,n,r,i,a,o){if(t.c=r.qf().a,t.d=r.qf().b,i&&(t.c+=i.qf().a,t.d+=i.qf().b),t.b=e.rf().a,t.a=e.rf().b,i)switch(i.Hf().g){case 0:case 2:t.c+=i.rf().a+o+a.a+o;break;case 4:t.c-=o+a.a+o+e.rf().a;break;case 1:t.c+=i.rf().a+o,t.d-=o+a.b+o+e.rf().b;break;case 3:t.c+=i.rf().a+o,t.d+=i.rf().b+o+a.b+o}else n?t.c-=o+e.rf().a:t.c+=r.rf().a+o}function iRt(t,e){var n,r;for(this.b=new Mm,this.e=new Mm,this.a=t,this.d=e,jmt(this),pgt(this),this.b.dc()?this.c=t.c.p:this.c=Q$(this.b.Xb(0),10).c.p,0==this.e.c.length?this.f=t.c.p:this.f=Q$(Oj(this.e,this.e.c.length-1),10).c.p,r=Q$(bEt(t,(lVt(),Efe)),15).Kc();r.Ob();)if(IF(n=Q$(r.Pb(),70),($Xt(),Xge))){this.d=Q$(bEt(n,Xge),227);break}}function aRt(t,e,n){var r,i,a,o,s,c,l,u;for(r=Q$(FX(t.a,e),53),a=Q$(FX(t.a,n),53),i=Q$(FX(t.e,e),53),o=Q$(FX(t.e,n),53),r.a.zc(n,r),o.a.zc(e,o),u=a.a.ec().Kc();u.Ob();)l=Q$(u.Pb(),10),r.a.zc(l,r),kG(Q$(FX(t.e,l),53),e),Qit(Q$(FX(t.e,l),53),i);for(c=i.a.ec().Kc();c.Ob();)s=Q$(c.Pb(),10),o.a.zc(s,o),kG(Q$(FX(t.a,s),53),n),Qit(Q$(FX(t.a,s),53),a)}function oRt(t,e,n){var r,i,a,o,s,c,l,u;for(r=Q$(FX(t.a,e),53),a=Q$(FX(t.a,n),53),i=Q$(FX(t.b,e),53),o=Q$(FX(t.b,n),53),r.a.zc(n,r),o.a.zc(e,o),u=a.a.ec().Kc();u.Ob();)l=Q$(u.Pb(),10),r.a.zc(l,r),kG(Q$(FX(t.b,l),53),e),Qit(Q$(FX(t.b,l),53),i);for(c=i.a.ec().Kc();c.Ob();)s=Q$(c.Pb(),10),o.a.zc(s,o),kG(Q$(FX(t.a,s),53),n),Qit(Q$(FX(t.a,s),53),a)}function sRt(t,e){var n,r,i;switch(Sxt(e,"Breaking Point Insertion",1),r=new xIt(t),Q$(bEt(t,($Xt(),Qme)),337).g){case 2:i=new xa;case 0:i=new Aa;break;default:i=new Ea}if(n=i.Vf(t,r),$y(kN(bEt(t,$me)))&&(n=Fjt(t,n)),!i.Wf()&&IF(t,zme))switch(Q$(bEt(t,zme),338).g){case 2:n=G_t(r,n);break;case 1:n=Pxt(r,n)}n.dc()||tXt(t,n),$Tt(e)}function cRt(t,e,n){var r,i,a,o,s,c,l;if(l=e,Irt(c=V3(t,I3(n),l),F2(l,H6t)),o=M2(l,M6t),V_t((r=new oS(t,c)).a,r.b,o),s=M2(l,O6t),W_t((i=new sS(t,c)).a,i.b,s),0==(!c.b&&(c.b=new cR(FLe,c,4,7)),c.b).i||0==(!c.c&&(c.c=new cR(FLe,c,5,8)),c.c).i)throw a=F2(l,H6t),Um(new tw(G6t+a+X6t));return Ext(l,c),cXt(t,l,c),Dct(t,l,c)}function lRt(t,n){var r,i,a,o,s,c,l;for(a=O8(_De,lqt,25,t.e.a.c.length,15,1),s=new Gd(t.e.a);s.a<s.c.c.length;)a[(o=Q$(J1(s),121)).d]+=o.b.a.c.length;for(c=j$(n);0!=c.b;)for(i=I7(new Gd((o=Q$(0==c.b?null:(EF(0!=c.b),Let(c,c.a.a)),121)).g.a));i.Ob();)(l=(r=Q$(i.Pb(),213)).e).e=e.Math.max(l.e,o.e+r.a),--a[l.d],0==a[l.d]&&n5(c,l,c.c.b,c.c)}function uRt(t){var n,r,i,a,o,s,c,l,u,h,f;for(r=RWt,a=FVt,c=new Gd(t.e.a);c.a<c.c.c.length;)o=Q$(J1(c),121),a=e.Math.min(a,o.e),r=e.Math.max(r,o.e);for(n=O8(_De,lqt,25,r-a+1,15,1),s=new Gd(t.e.a);s.a<s.c.c.length;)(o=Q$(J1(s),121)).e-=a,++n[o.e];if(i=0,null!=t.k)for(h=0,f=(u=t.k).length;h<f&&(l=u[h],n[i++]+=l,n.length!=i);++h);return n}function hRt(t){switch(t.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return Q$(PFt(t),19).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 VS(t.k,t.f);case 3:case 4:return t.j==t.e;default:return null==t.n?null==t.g:Oht(t.n,t.g)}default:return!1}}function fRt(t){ME(t,new xxt(pk(fk(gk(Ak(new ps,P5t),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new qs))),a2(t,P5t,WJt,d_e),a2(t,P5t,g3t,bmt(A_e)),a2(t,P5t,g5t,bmt(c_e)),a2(t,P5t,TZt,bmt(l_e)),a2(t,P5t,UZt,bmt(h_e)),a2(t,P5t,q2t,bmt(u_e))}function dRt(t,e,n){var r,i,a,o;if(r=dK(idt(EWt,nW(dK(idt(null==e?0:Zct(e),TWt)),15))),o=dK(idt(EWt,nW(dK(idt(null==n?0:Zct(n),TWt)),15))),(a=Yit(t,e,r))&&o==a.f&&fV(n,a.i))return n;if(Jit(t,n,o))throw Um(new Py("value already present: "+n));return i=new $V(e,r,n,o),a?(MOt(t,a),q_t(t,i,a),a.e=null,a.c=null,a.i):(q_t(t,i,null),Hwt(t),null)}function ARt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d;l=n.a.c,o=n.a.c+n.a.b,f=(a=Q$(FX(n.c,e),459)).f,d=a.a,s=a.b?new O_(o,f):new O_(l,f),u=a.c?new O_(l,d):new O_(o,d),i=l,n.p||(i+=t.c),c=new O_(i+=n.F+n.v*t.b,f),h=new O_(i,d),Znt(e.a,Tst(Hw(EEe,1),cWt,8,0,[s,c])),n.d.a.gc()>1&&(r=new O_(i,n.b),DH(e.a,r)),Znt(e.a,Tst(Hw(EEe,1),cWt,8,0,[h,u]))}function gRt(t,e,n){var r,i,a,o,s,c;if(e){if(n<=-1){if(rO(r=eet(e.Tg(),-1-n),99))return Q$(r,18);for(s=0,c=(o=Q$(e.ah(r),153)).gc();s<c;++s)if(HS(o.jl(s))===HS(t)&&rO(i=o.il(s),99)&&(a=Q$(i,18)).Bb&l6t)return a;throw Um(new Ry("The containment feature could not be located"))}return Bbt(Q$(eet(t.Tg(),n),18))}return null}function pRt(t){var e,n,r,i,a;for(r=t.length,e=new Ew,a=0;a<r;)if(9!=(n=lW(t,a++))&&10!=n&&12!=n&&13!=n&&32!=n)if(35!=n)92==n&&a<r?35==(h1(a,t.length),i=t.charCodeAt(a))||9==i||10==i||12==i||13==i||32==i?(MX(e,i&WWt),++a):(e.a+="\\",MX(e,i&WWt),++a):MX(e,n&WWt);else for(;a<r&&13!=(n=lW(t,a++))&&10!=n;);return e.a}function mRt(t,e){var n,r,i;for(r=new Gd(e);r.a<r.c.c.length;)if(n=Q$(J1(r),33),YSt(t.a,n,n),YSt(t.b,n,n),0!=(i=dNt(n)).c.length)for(t.d&&t.d.lg(i),YSt(t.a,n,(u1(0,i.c.length),Q$(i.c[0],33))),YSt(t.b,n,Q$(Oj(i,i.c.length-1),33));0!=Fst(i).c.length;)i=Fst(i),t.d&&t.d.lg(i),YSt(t.a,n,(u1(0,i.c.length),Q$(i.c[0],33))),YSt(t.b,n,Q$(Oj(i,i.c.length-1),33))}function bRt(t){var e,n,r,i,a,o,s,c,l,u;for(n=0,s=new Gd(t.d);s.a<s.c.c.length;)(o=Q$(J1(s),101)).i&&(o.i.c=n++);for(e=vj(SDe,[cWt,JYt],[177,25],16,[n,n],2),u=t.d,i=0;i<u.c.length;i++)if(u1(i,u.c.length),(c=Q$(u.c[i],101)).i)for(a=i+1;a<u.c.length;a++)u1(a,u.c.length),(l=Q$(u.c[a],101)).i&&(r=rEt(c,l),e[c.i.c][l.i.c]=r,e[l.i.c][c.i.c]=r);return e}function vRt(t,e,n,r){var i,a,o;return o=new bx(e,n),t.a?r?(++(i=Q$(FX(t.b,e),283)).a,o.d=r.d,o.e=r.e,o.b=r,o.c=r,r.e?r.e.c=o:Q$(FX(t.b,e),283).b=o,r.d?r.d.b=o:t.a=o,r.d=o,r.e=o):(t.e.b=o,o.d=t.e,t.e=o,(i=Q$(FX(t.b,e),283))?(++i.a,(a=i.c).c=o,o.e=a,i.c=o):(XV(t.b,e,i=new sY(o)),++t.c)):(t.a=t.e=o,XV(t.b,e,new sY(o)),++t.c),++t.d,o}function yRt(t,e){var n,r,i,a,o,s,c,l;for(n=new RegExp(e,"g"),c=O8(Wee,cWt,2,0,6,1),r=0,l=t,a=null;;){if(null==(s=n.exec(l))||""==l){c[r]=l;break}o=s.index,c[r]=l.substr(0,o),l=lF(l,o+s[0].length,l.length),n.lastIndex=0,a==l&&(c[r]=l.substr(0,1),l=l.substr(1)),a=l,++r}if(t.length>0){for(i=c.length;i>0&&""==c[i-1];)--i;i<c.length&&(c.length=i)}return c}function wRt(t,e){var n,r,i,a,o,s,c,l;for(s=null,i=!1,a=0,c=i4((l=vY(e)).a).i;a<c;++a)(n=wRt(t,Q$(eKt(l,a,rO(o=Q$(Xet(i4(l.a),a),87).c,88)?Q$(o,26):(gVt(),fMe)),26))).dc()||(s?(i||(i=!0,s=new nK(s)),s.Gc(n)):s=n);return(r=DSt(t,e)).dc()?s||(xq(),xq(),cne):s?(i||(s=new nK(s)),s.Gc(r),s):r}function kRt(t,e){var n,r,i,a,o,s,c,l;for(s=null,r=!1,a=0,c=i4((l=vY(e)).a).i;a<c;++a)(n=kRt(t,Q$(eKt(l,a,rO(o=Q$(Xet(i4(l.a),a),87).c,88)?Q$(o,26):(gVt(),fMe)),26))).dc()||(s?(r||(r=!0,s=new nK(s)),s.Gc(n)):s=n);return(i=VLt(t,e)).dc()?s||(xq(),xq(),cne):s?(r||(s=new nK(s)),s.Gc(i),s):i}function CRt(t,e,n){var r,i,a,o,s,c;if(rO(e,72))return Rmt(t,e,n);for(s=null,a=null,r=Q$(t.g,119),o=0;o<t.i;++o)if(Oht(e,(i=r[o]).dd())&&rO(a=i.ak(),99)&&Q$(a,18).Bb&l6t){s=i;break}return s&&(mI(t.e)&&(c=a.$j()?IY(t,4,a,e,null,p$t(t,a,e,rO(a,99)&&!!(Q$(a,18).Bb&Uqt)),!0):IY(t,a.Kj()?2:1,a,e,a.zj(),-1,!0),n?n.Ei(c):n=c),n=CRt(t,s,n)),n}function xRt(t){var n,r,i,a;i=t.o,$N(),t.A.dc()||Oht(t.A,Lie)?a=i.a:(a=ESt(t.f),t.A.Hc((bgt(),FSe))&&!t.B.Hc((ZRt(),zSe))&&(a=e.Math.max(a,ESt(Q$(oW(t.p,(yGt(),sSe)),244))),a=e.Math.max(a,ESt(Q$(oW(t.p,xSe),244)))),(n=sot(t))&&(a=e.Math.max(a,n.a))),$y(kN(t.e.yf().We((cVt(),RTe))))?i.a=e.Math.max(i.a,a):i.a=a,(r=t.f.i).c=0,r.b=a,RUt(t.f)}function ERt(t,e){var n,r,i,a,o,s,c,l,u;if((n=e.Hh(t.a))&&null!=(c=xN(igt((!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),n.b),"memberTypes")))){for(l=new Mm,o=0,s=(a=yRt(c,"\\w")).length;o<s;++o)rO(u=-1==(r=(i=a[o]).lastIndexOf("#"))?aN(t,e.Aj(),i):0==r?C7(t,null,i.substr(1)):C7(t,i.substr(0,r),i.substr(r+1)),148)&&G$(l,Q$(u,148));return l}return xq(),xq(),cne}function TRt(t,e,n){var r,i,a,o,s,c,l,u;for(Sxt(n,aZt,1),t.bf(e),a=0;t.df(a);){for(u=new Gd(e.e);u.a<u.c.c.length;)for(c=Q$(J1(u),144),s=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[e.e,e.d,e.b])));AIt(s);)(o=Q$(K5(s),357))!=c&&(i=t.af(o,c))&&KP(c.a,i);for(l=new Gd(e.e);l.a<l.c.c.length;)XTt(r=(c=Q$(J1(l),144)).a,-t.d,-t.d,t.d,t.d),KP(c.d,r),vL(r);t.cf(),++a}$Tt(n)}function BRt(t,e,n){var r,i,a,o;if(o=aFt(t.e.Tg(),e),r=Q$(t.g,119),YE(),Q$(e,66).Oj()){for(a=0;a<t.i;++a)if(i=r[a],o.rl(i.ak())&&Oht(i,n))return uNt(t,a),!0}else if(null!=n){for(a=0;a<t.i;++a)if(i=r[a],o.rl(i.ak())&&Oht(n,i.dd()))return uNt(t,a),!0}else for(a=0;a<t.i;++a)if(i=r[a],o.rl(i.ak())&&null==i.dd())return uNt(t,a),!0;return!1}function _Rt(t,e){var n,r,i,a,o;for(null==t.c||t.c.length<e.c.length?t.c=O8(SDe,JYt,25,e.c.length,16,1):Jy(t.c),t.a=new Mm,r=0,o=new Gd(e);o.a<o.c.c.length;)(i=Q$(J1(o),10)).p=r++;for(n=new Wx,a=new Gd(e);a.a<a.c.c.length;)i=Q$(J1(a),10),t.c[i.p]||(lSt(t,i),0==n.b||(EF(0!=n.b),Q$(n.a.a.c,15)).gc()<t.a.c.length?cL(n,t.a):lL(n,t.a),t.a=new Mm);return n}function SRt(t,e,n,r){var i,a,o,s,c,l,u;for(Tnt(o=Q$(Xet(e,0),33),0),Bnt(o,0),(c=new Mm).c[c.c.length]=o,s=o,a=new tj(t.a,o.g,o.f,(qOt(),PCe)),l=1;l<e.i;l++)Tnt(u=Q$(Xet(e,l),33),(i=ajt(t,Z$t(t,DCe,u,s,a,c,n),Z$t(t,OCe,u,s,a,c,n),Z$t(t,NCe,u,s,a,c,n),Z$t(t,FCe,u,s,a,c,n),u,s,r)).d),Bnt(u,i.e),id(i,PCe),a=i,s=u,c.c[c.c.length]=u;return a}function LRt(t){ME(t,new xxt(pk(fk(gk(Ak(new ps,W4t),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new rs))),a2(t,W4t,P4t,bmt($xe)),a2(t,W4t,WJt,Qxe),a2(t,W4t,mZt,8),a2(t,W4t,H4t,bmt(Uxe)),a2(t,W4t,z4t,bmt(Pxe)),a2(t,W4t,G4t,bmt(Rxe)),a2(t,W4t,G2t,(cD(),!1))}function IRt(t,e,n,r){var i,a,o,s,c,l,u,h;for(o=PF(e.c,n,r),u=new Gd(e.a);u.a<u.c.c.length;){for(KP((l=Q$(J1(u),10)).n,o),h=new Gd(l.j);h.a<h.c.c.length;)for(a=new Gd(Q$(J1(h),11).g);a.a<a.c.c.length;)for(Jet((i=Q$(J1(a),17)).a,o),(s=Q$(bEt(i,($Xt(),ppe)),74))&&Jet(s,o),c=new Gd(i.b);c.a<c.c.c.length;)KP(Q$(J1(c),70).n,o);G$(t.a,l),l.a=t}}function MRt(t,e){var n,r,i,a;if(Sxt(e,"Node and Port Label Placement and Node Sizing",1),FI((AE(),new UW(t,!0,!0,new Wn))),Q$(bEt(t,(lVt(),Yhe)),21).Hc((fNt(),uhe)))for(r=(i=Q$(bEt(t,($Xt(),rme)),21)).Hc((hSt(),eSe)),a=$y(kN(bEt(t,ime))),n=new Gd(t.b);n.a<n.c.c.length;)qx(SW(new Fj(null,new f1(Q$(J1(n),29).a,16)),new qn),new NQ(i,r,a));$Tt(e)}function ORt(t,e){var n,r,i,a,o,s;if((n=e.Hh(t.a))&&null!=(s=xN(igt((!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),n.b),Z6t))))switch(i=mD(s,qxt(35)),r=e.Hj(),-1==i?(o=iz(t,zet(r)),a=s):0==i?(o=null,a=s.substr(1)):(o=s.substr(0,i),a=s.substr(i+1)),DV(Q9(t,e))){case 2:case 3:return Fct(t,r,o,a);case 0:case 4:case 5:case 6:return Nct(t,r,o,a)}return null}function DRt(t,e,n){var r,i,a,o,s;if(YE(),o=Q$(e,66).Oj(),IFt(t.e,e)){if(e.hi()&&zUt(t,e,n,rO(e,99)&&!!(Q$(e,18).Bb&Uqt)))return!1}else for(s=aFt(t.e.Tg(),e),r=Q$(t.g,119),a=0;a<t.i;++a)if(i=r[a],s.rl(i.ak()))return!(o?Oht(i,n):null==n?null==i.dd():Oht(n,i.dd()))&&(Q$(sbt(t,a,o?Q$(n,72):Y3(e,n)),72),!0);return l7(t,o?Q$(n,72):Y3(e,n))}function FRt(t){var e,n,r,i,a;if(t.d)throw Um(new Ry((wN(Woe),LYt+Woe.k+IYt)));for(t.c==(Qht(),QBe)&&xzt(t,PBe),e=new Gd(t.a.a);e.a<e.c.c.length;)Q$(J1(e),189).e=0;for(i=new Gd(t.a.b);i.a<i.c.c.length;)for((r=Q$(J1(i),81)).o=Pqt,n=r.f.Kc();n.Ob();)++Q$(n.Pb(),81).d.e;for(jzt(t),a=new Gd(t.a.b);a.a<a.c.c.length;)Q$(J1(a),81).k=!0;return t}function NRt(t,e){var n,r,i,a,o,s,c,l;for(s=new pBt(t),n5(n=new Wx,e,n.c.b,n.c);0!=n.b;){for((r=Q$(0==n.b?null:(EF(0!=n.b),Let(n,n.a.a)),113)).d.p=1,o=new Gd(r.e);o.a<o.c.c.length;)wxt(s,i=Q$(J1(o),409)),0==(l=i.d).d.p&&n5(n,l,n.c.b,n.c);for(a=new Gd(r.b);a.a<a.c.c.length;)wxt(s,i=Q$(J1(a),409)),0==(c=i.c).d.p&&n5(n,c,n.c.b,n.c)}return s}function PRt(t){var e,n,r,i,a;if(1!=(r=Hy(CN(JIt(t,(cVt(),bBe))))))for(CI(t,r*t.g,r*t.f),n=zL(P$((!t.c&&(t.c=new tG(KLe,t,9,9)),t.c),new Hs)),a=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[(!t.n&&(t.n=new tG(HLe,t,1,7)),t.n),(!t.c&&(t.c=new tG(KLe,t,9,9)),t.c),n])));AIt(a);)(i=Q$(K5(a),470)).Gg(r*i.Dg(),r*i.Eg()),i.Fg(r*i.Cg(),r*i.Bg()),(e=Q$(i.We(rBe),8))&&(e.a*=r,e.b*=r)}function RRt(t,e,n,r,i){var a,o,s,c,l,u;for(a=new Gd(t.b);a.a<a.c.c.length;)for(l=0,u=(c=J0(Q$(J1(a),29).a)).length;l<u;++l)switch(Q$(bEt(s=c[l],($Xt(),vpe)),163).g){case 1:mFt(s),EZ(s,e),hbt(s,!0,r);break;case 3:JDt(s),EZ(s,n),hbt(s,!1,i)}for(o=new C2(t.b,0);o.b<o.d.gc();)0==(EF(o.b<o.d.gc()),Q$(o.d.Xb(o.c=o.b++),29)).a.c.length&&lV(o)}function QRt(t,e){var n,r,i,a,o,s,c;if((n=e.Hh(t.a))&&null!=(c=xN(igt((!n.b&&(n.b=new qF((gVt(),bMe),KMe,n)),n.b),x9t)))){for(r=new Mm,o=0,s=(a=yRt(c,"\\w")).length;o<s;++o)mR(i=a[o],"##other")?G$(r,"!##"+iz(t,zet(e.Hj()))):mR(i,"##local")?r.c[r.c.length]=null:mR(i,k9t)?G$(r,iz(t,zet(e.Hj()))):r.c[r.c.length]=i;return r}return xq(),xq(),cne}function URt(t,e){var n,r,i;return n=new Gt,(r=1==(r=Q$(E4(LW(new Fj(null,new f1(t.f,16)),n),O9(new q,new Y,new it,new at,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),zne),Kne]))),21).gc())?1:0)<(i=1==(i=Q$(E4(LW(new Fj(null,new f1(e.f,16)),n),O9(new q,new Y,new it,new at,Tst(Hw(Jne,1),IWt,132,0,[zne,Kne]))),21).gc())?1:0)?-1:r==i?0:1}function $Rt(t){var e,n,r,i,a,o,s,c,l,u,h,f;for(i=$y(kN(bEt(s=t.i,($Xt(),fpe)))),u=0,r=0,l=new Gd(t.g);l.a<l.c.c.length;)a=(o=h5(c=Q$(J1(l),17)))&&i&&$y(kN(bEt(c,dpe))),f=c.d.i,o&&a?++r:o&&!a?++u:pV(f).e==s?++r:++u;for(n=new Gd(t.e);n.a<n.c.c.length;)a=(o=h5(e=Q$(J1(n),17)))&&i&&$y(kN(bEt(e,dpe))),h=e.c.i,o&&a?++u:o&&!a?++r:pV(h).e==s?++u:++r;return u-r}function HRt(t,e,n,r){this.e=t,this.k=Q$(bEt(t,(lVt(),Sfe)),304),this.g=O8(_se,a1t,10,e,0,1),this.b=O8(Tee,cWt,333,e,7,1),this.a=O8(_se,a1t,10,e,0,1),this.d=O8(Tee,cWt,333,e,7,1),this.j=O8(_se,a1t,10,e,0,1),this.i=O8(Tee,cWt,333,e,7,1),this.p=O8(Tee,cWt,333,e,7,1),this.n=O8(yee,cWt,476,e,8,1),bT(this.n,(cD(),!1)),this.f=O8(yee,cWt,476,e,8,1),bT(this.f,!0),this.o=n,this.c=r}function jRt(t,e){var n,r,i;if(!e.dc())if(Q$(e.Xb(0),286).d==(IBt(),Jle))Lwt(t,e);else for(r=e.Kc();r.Ob();){switch((n=Q$(r.Pb(),286)).d.g){case 5:lBt(t,n,Vdt(t,n));break;case 0:lBt(t,n,(i=(n.f-n.c+1-1)/2|0,n.c+i));break;case 4:lBt(t,n,Ltt(t,n));break;case 2:PAt(n),lBt(t,n,ICt(n)?n.c:n.f);break;case 1:PAt(n),lBt(t,n,ICt(n)?n.f:n.c)}lEt(n.a)}}function KRt(t,e){var n,r,i,a,o;if(!e.e){for(e.e=!0,r=e.d.a.ec().Kc();r.Ob();)n=Q$(r.Pb(),17),e.o&&e.d.a.gc()<=1?(o=new O_((a=e.a.c)+(e.a.c+e.a.b-a)/2,e.b),DH(Q$(e.d.a.ec().Kc().Pb(),17).a,o)):(i=Q$(FX(e.c,n),459)).b||i.c?ARt(t,n,e):t.d==(zlt(),nve)&&(i.d||i.e)&&MLt(t,e)&&e.d.a.gc()<=1?Azt(n,e):FNt(t,n,e);e.k&&t5(e.d,new xn)}}function zRt(t,n,r,i,a,o){var s,c,l,u,h,f,d,A,g,p,m,b,v;for(c=(i+a)/2+o,p=r*e.Math.cos(c),m=r*e.Math.sin(c),b=p-n.g/2,v=m-n.f/2,Tnt(n,b),Bnt(n,v),f=t.a.jg(n),(g=2*e.Math.acos(r/r+t.c))<a-i?(d=g/f,s=(i+a-g)/2):(d=(a-i)/f,s=i),A=dNt(n),t.e&&(t.e.kg(t.d),t.e.lg(A)),u=new Gd(A);u.a<u.c.c.length;)l=Q$(J1(u),33),h=t.a.jg(l),zRt(t,l,r+t.c,s,s+d*h,o),s+=d*h}function GRt(t,e,n){var r;switch(r=n.q.getMonth(),e){case 5:oL(t,Tst(Hw(Wee,1),cWt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[r]);break;case 4:oL(t,Tst(Hw(Wee,1),cWt,2,6,[qWt,YWt,JWt,ZWt,tqt,eqt,nqt,rqt,iqt,aqt,oqt,sqt])[r]);break;case 3:oL(t,Tst(Hw(Wee,1),cWt,2,6,["Jan","Feb","Mar","Apr",tqt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[r]);break;default:wtt(t,r+1,e)}}function XRt(t,e){var n,r,i,a;if(Sxt(e,"Network simplex",1),t.e.a.c.length<1)$Tt(e);else{for(i=new Gd(t.e.a);i.a<i.c.c.length;)Q$(J1(i),121).e=0;for((a=t.e.a.c.length>=40)&&kUt(t),UHt(t),CFt(t),n=vft(t),r=0;n&&r<t.f;)eQt(t,n,eMt(t,n)),n=vft(t),++r;a&&txt(t),t.a?pMt(t,uRt(t)):uRt(t),t.b=null,t.d=null,t.p=null,t.c=null,t.g=null,t.i=null,t.n=null,t.o=null,$Tt(e)}}function VRt(t,e,n,r){var i,a,o,s,c,l,u,h;for(zP(s=new O_(n,r),Q$(bEt(e,(xit(),ooe)),8)),h=new Gd(e.e);h.a<h.c.c.length;)KP((u=Q$(J1(h),144)).d,s),G$(t.e,u);for(o=new Gd(e.c);o.a<o.c.c.length;){for(i=new Gd((a=Q$(J1(o),282)).a);i.a<i.c.c.length;)KP(Q$(J1(i),559).d,s);G$(t.c,a)}for(l=new Gd(e.d);l.a<l.c.c.length;)KP((c=Q$(J1(l),447)).d,s),G$(t.d,c)}function WRt(t,e){var n,r,i,a,o,s,c,l;for(c=new Gd(e.j);c.a<c.c.c.length;)for(i=new m6((s=Q$(J1(c),11)).b);bM(i.a)||bM(i.b);)e!=(a=(n=(r=Q$(bM(i.a)?J1(i.a):J1(i.b),17)).c==s?r.d:r.c).i)&&((l=Q$(bEt(r,($Xt(),lme)),19).a)<0&&(l=0),o=a.p,0==t.b[o]&&(r.d==n?(t.a[o]-=l+1,t.a[o]<=0&&t.c[o]>0&&DH(t.f,a)):(t.c[o]-=l+1,t.c[o]<=0&&t.a[o]>0&&DH(t.e,a))))}function qRt(t){var e,n,r,i,a,o,s;for(a=new dC(Q$(bX(new Nt),62)),s=Pqt,n=new Gd(t.d);n.a<n.c.c.length;){for(s=(e=Q$(J1(n),222)).c.c;0!=a.a.c&&(o=Q$(CG($7(a.a)),222)).c.c+o.c.b<s;)LJ(a.a,o);for(i=new Rd(new QP(new OD(new Pd(a.a).a).b));iT(i.a.a);)DH((r=Q$(mF(i.a).cd(),222)).b,e),DH(e.b,r);xct(a.a,e,(cD(),pee))}}function YRt(t,e,n){var r,i,a,o,s,c,l,u,h;for(a=new q6(e.c.length),l=new Gd(e);l.a<l.c.c.length;)o=Q$(J1(l),10),G$(a,t.b[o.c.p][o.p]);for(bjt(t,a,n),h=null;h=ezt(a);)r$t(t,Q$(h.a,233),Q$(h.b,233),a);for(e.c=O8(Lte,$Vt,1,0,5,1),i=new Gd(a);i.a<i.c.c.length;)for(c=0,u=(s=(r=Q$(J1(i),233)).d).length;c<u;++c)o=s[c],e.c[e.c.length]=o,t.a[o.c.p][o.p].a=uO(r.g,r.d[0]).a}function JRt(t,e){var n,r,i,a;if(0<(rO(t,14)?Q$(t,14).gc():R3(t.Kc()))){if(1<(i=e)){for(--i,a=new bo,r=t.Kc();r.Ob();)n=Q$(r.Pb(),86),a=Xnt(Tst(Hw(Dte,1),$Vt,20,0,[a,new hp(n)]));return JRt(a,i)}if(i<0){for(a=new vo,r=t.Kc();r.Ob();)n=Q$(r.Pb(),86),a=Xnt(Tst(Hw(Dte,1),$Vt,20,0,[a,new hp(n)]));if(0<(rO(a,14)?Q$(a,14).gc():R3(a.Kc())))return JRt(a,i)}}return Q$(eO(t.Kc()),86)}function ZRt(){ZRt=L,HSe=new V_("DEFAULT_MINIMUM_SIZE",0),KSe=new V_("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),$Se=new V_("COMPUTE_PADDING",2),zSe=new V_("OUTSIDE_NODE_LABELS_OVERHANG",3),GSe=new V_("PORTS_OVERHANG",4),VSe=new V_("UNIFORM_PORT_SPACING",5),XSe=new V_("SPACE_EFFICIENT_PORT_LABELS",6),jSe=new V_("FORCE_TABULAR_NODE_LABELS",7),USe=new V_("ASYMMETRICAL",8)}function tQt(t,e){var n,r,i,a,o,s,c,l;if(e){if(n=(a=e.Tg())?zet(a).Nh().Jh(a):null){for(Ypt(t,e,n),c=0,l=(null==(i=e.Tg()).i&&HUt(i),i.i).length;c<l;++c)null==i.i&&HUt(i),r=i.i,(s=c>=0&&c<r.length?r[c]:null).Ij()&&!s.Jj()&&(rO(s,322)?Zmt(t,Q$(s,34),e,n):(o=Q$(s,18)).Bb&l6t&&cCt(t,o,e,n));e.kh()&&Q$(n,49).vh(Q$(e,49).qh())}return n}return null}function eQt(t,e,n){var r,i,a;if(!e.f)throw Um(new Py("Given leave edge is no tree edge."));if(n.f)throw Um(new Py("Given enter edge is a tree edge already."));for(e.f=!1,tO(t.p,e),n.f=!0,kG(t.p,n),r=n.e.e-n.d.e-n.a,Q_t(t,n.e,e)||(r=-r),a=new Gd(t.e.a);a.a<a.c.c.length;)Q_t(t,i=Q$(J1(a),121),e)||(i.e+=r);t.j=1,Jy(t.c),pSt(t,Q$(J1(new Gd(t.e.a)),121)),gKt(t)}function nQt(t,e){var n,r,i,a,o,s;if((s=Q$(bEt(e,($Xt(),tme)),98))==(WCt(),G_e)||s==z_e)for(i=new O_(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a).b,o=new Gd(t.a);o.a<o.c.c.length;)(a=Q$(J1(o),10)).k==(oTt(),Cse)&&((n=Q$(bEt(a,(lVt(),Vhe)),61))!=(yGt(),oSe)&&n!=TSe||(r=Hy(CN(bEt(a,kfe))),s==G_e&&(r*=i),a.n.b=r-Q$(bEt(a,Jpe),8).b,Yot(a,!1,!0)))}function rQt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d;if(qet(t,e,n),a=e[n],d=r?(yGt(),TSe):(yGt(),oSe),mO(e.length,n,r)){for(H6(t,i=e[r?n-1:n+1],r?(art(),$be):(art(),Ube)),u=0,f=(c=a).length;u<f;++u)Dbt(t,o=c[u],d);for(H6(t,a,r?(art(),Ube):(art(),$be)),l=0,h=(s=i).length;l<h;++l)(o=s[l]).e||Dbt(t,o,Cft(d))}else for(l=0,h=(s=a).length;l<h;++l)Dbt(t,o=s[l],d);return!1}function iQt(t,e,n,r){var i,a,o,s,c;s=adt(e,n),(n==(yGt(),xSe)||n==TSe)&&(s=rO(s,152)?o6(Q$(s,152)):rO(s,131)?Q$(s,131).a:rO(s,54)?new ly(s):new Tx(s)),o=!1;do{for(i=!1,a=0;a<s.gc()-1;a++)UEt(t,Q$(s.Xb(a),11),Q$(s.Xb(a+1),11),r)&&(o=!0,v0(t.a,Q$(s.Xb(a),11),Q$(s.Xb(a+1),11)),c=Q$(s.Xb(a+1),11),s._c(a+1,Q$(s.Xb(a),11)),s._c(a,c),i=!0)}while(i);return o}function aQt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A;if(!mI(t.e))return Q$(qSt(t,e,n),72);if(e!=n&&(o=(d=(i=Q$(t.g,119))[n]).ak(),IFt(t.e,o))){for(A=aFt(t.e.Tg(),o),c=-1,s=-1,r=0,l=0,h=e>n?e:n;l<=h;++l)l==n?s=r++:(a=i[l],u=A.rl(a.ak()),l==e&&(c=l!=h||u?r:r-1),u&&++r);return f=Q$(_ft(t,e,n),72),s!=c&&Ib(t,new y7(t.e,7,o,nft(s),d.dd(),c)),f}return Q$(_ft(t,e,n),72)}function oQt(t,e){var n,r,i,a,o,s;for(Sxt(e,"Port order processing",1),s=Q$(bEt(t,($Xt(),ome)),421),n=new Gd(t.b);n.a<n.c.c.length;)for(i=new Gd(Q$(J1(n),29).a);i.a<i.c.c.length;)r=Q$(J1(i),10),a=Q$(bEt(r,tme),98),o=r.j,a==(WCt(),K_e)||a==G_e||a==z_e?(xq(),mM(o,sle)):a!=V_e&&a!=W_e&&(xq(),mM(o,lle),Mbt(o),s==(K9(),Pbe)&&mM(o,cle)),r.i=!0,eSt(r);$Tt(e)}function sQt(t){var n,r,i,a,o,s,c,l;for(l=new Om,n=new Rb,s=t.Kc();s.Ob();)a=Q$(s.Pb(),10),c=SD(oE(new $b,a),n),w_t(l.f,a,c);for(o=t.Kc();o.Ob();)for(i=new oz(YO(hdt(a=Q$(o.Pb(),10)).a.Kc(),new u));AIt(i);)h5(r=Q$(K5(i),17))||zDt(iE(rE(nE(aE(new Ub,e.Math.max(1,Q$(bEt(r,($Xt(),ume)),19).a)),1),Q$(FX(l,r.c.i),121)),Q$(FX(l,r.d.i),121)));return n}function cQt(){cQt=L,hye=dj(new Q2,(vEt(),Roe),(hVt(),pce)),dye=dj(new Q2,Poe,yce),Aye=GK(dj(new Q2,Poe,Dce),Qoe,Oce),uye=GK(dj(dj(new Q2,Poe,uce),Roe,hce),Qoe,fce),gye=spt(spt(RE(GK(dj(new Q2,Foe,Kce),Qoe,jce),Roe),Hce),zce),fye=GK(new Q2,Qoe,mce),cye=GK(dj(dj(dj(new Q2,Noe,Cce),Roe,Ece),Roe,Tce),Qoe,xce),lye=GK(dj(dj(new Q2,Roe,Tce),Roe,ace),Qoe,ice)}function lQt(t,e,n,r,i,a){var o,s,c,l,u,h;for(o=hTt(e,c=wct(e)-wct(t)),s=CM(0,0,0);c>=0&&(!Byt(t,o)||(c<22?s.l|=1<<c:c<44?s.m|=1<<c-22:s.h|=1<<c-44,0!=t.l||0!=t.m||0!=t.h));)l=o.m,u=o.h,h=o.l,o.h=u>>>1,o.m=l>>>1|(1&u)<<21,o.l=h>>>1|(1&l)<<21,--c;return n&&Sct(s),a&&(r?(hee=act(t),i&&(hee=lst(hee,(z9(),Aee)))):hee=CM(t.l,t.m,t.h)),s}function uQt(t,e){var n,r,i,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 Gd(t.a);s.a<s.c.c.length;){for(o=Q$(J1(s),11),h=0,a=0,i=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[new UA(o),new HA(o)])));AIt(i);)(r=Q$(K5(i),11)).i.c==e.c&&(h+=hO(t,r.i)+1,++a);n=h/a,(u=o.j)==(yGt(),oSe)?t.f[o.p]=n<l?t.c-n:t.b+(c-n):u==TSe&&(t.f[o.p]=n<l?t.b+n:t.c-(c-n))}}function hQt(t,e,n){var r,i,a,o;if(null==t)throw Um(new Cw(KVt));for(r=(a=t.length)>0&&(h1(0,t.length),45==t.charCodeAt(0)||(h1(0,t.length),43==t.charCodeAt(0)))?1:0;r<a;r++)if(-1==ept((h1(r,t.length),t.charCodeAt(r))))throw Um(new Cw(Fqt+t+'"'));if(i=(o=parseInt(t,10))<e,isNaN(o))throw Um(new Cw(Fqt+t+'"'));if(i||o>n)throw Um(new Cw(Fqt+t+'"'));return o}function fQt(t){var n,r,i,a,o,s;for(o=new Wx,a=new Gd(t.a);a.a<a.c.c.length;)Xf(i=Q$(J1(a),112),i.f.c.length),Vf(i,i.k.c.length),0==i.i&&(i.o=0,n5(o,i,o.c.b,o.c));for(;0!=o.b;)for(r=(i=Q$(0==o.b?null:(EF(0!=o.b),Let(o,o.a.a)),112)).o+1,n=new Gd(i.f);n.a<n.c.c.length;)Wf(s=Q$(J1(n),129).a,e.Math.max(s.o,r)),Vf(s,s.i-1),0==s.i&&n5(o,s,o.c.b,o.c)}function dQt(t){var e,n,r,i,a,o,s,c;for(o=new Gd(t);o.a<o.c.c.length;){for(a=Q$(J1(o),79),s=(r=Txt(Q$(Xet((!a.b&&(a.b=new cR(FLe,a,4,7)),a.b),0),82))).i,c=r.j,TI(i=Q$(Xet((!a.a&&(a.a=new tG(PLe,a,6,6)),a.a),0),202),i.j+s,i.k+c),EI(i,i.b+s,i.c+c),n=new SO((!i.a&&(i.a=new LO(MLe,i,5)),i.a));n.e!=n.i.gc();)kI(e=Q$(ymt(n),469),e.a+s,e.b+c);qit(Q$(JIt(a,(cVt(),_Te)),74),s,c)}}function AQt(t){switch(t){case 100:return bVt(cte,!0);case 68:return bVt(cte,!1);case 119:return bVt(lte,!0);case 87:return bVt(lte,!1);case 115:return bVt(ute,!0);case 83:return bVt(ute,!1);case 99:return bVt(hte,!0);case 67:return bVt(hte,!1);case 105:return bVt(fte,!0);case 73:return bVt(fte,!1);default:throw Um(new dy(ste+t.toString(16)))}}function gQt(t){var n,r,i,a,o;switch(a=Q$(Oj(t.a,0),10),n=new Ibt(t),G$(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,Q$(bEt(a,(lVt(),Vhe)),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}return TZ(i=new BTt,n),xZ(r=new fY,o=Q$(Oj(a.j,0),11)),CZ(r,i),KP(vL(i.n),o.n),KP(vL(i.a),o.a),n}function pQt(t,e,n,r,i){n&&(!r||(t.c-t.b&t.a.length-1)>1)&&1==e&&Q$(t.a[t.b],10).k==(oTt(),xse)?lUt(Q$(t.a[t.b],10),(Gyt(),y_e)):r&&(!n||(t.c-t.b&t.a.length-1)>1)&&1==e&&Q$(t.a[t.c-1&t.a.length-1],10).k==(oTt(),xse)?lUt(Q$(t.a[t.c-1&t.a.length-1],10),(Gyt(),w_e)):2==(t.c-t.b&t.a.length-1)?(lUt(Q$(kct(t),10),(Gyt(),y_e)),lUt(Q$(kct(t),10),w_e)):cOt(t,i),o4(t)}function mQt(t,n,r){var i,a,o,s,c;for(o=0,a=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));a.e!=a.i.gc();)s="",0==(!(i=Q$(ymt(a),33)).n&&(i.n=new tG(HLe,i,1,7)),i.n).i||(s=Q$(Xet((!i.n&&(i.n=new tG(HLe,i,1,7)),i.n),0),137).a),Hot(c=new ilt(o++,n,s),i),lct(c,(Hjt(),swe),i),c.e.b=i.j+i.f/2,c.f.a=e.Math.max(i.g,1),c.e.a=i.i+i.g/2,c.f.b=e.Math.max(i.f,1),DH(n.b,c),w_t(r.f,i,c)}function bQt(t){var e,n,r,i,a;r=Q$(bEt(t,(lVt(),dfe)),33),a=Q$(JIt(r,($Xt(),Rpe)),174).Hc((bgt(),PSe)),t.e||(i=Q$(bEt(t,Yhe),21),e=new O_(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),i.Hc((fNt(),uhe))?(qmt(r,tme,(WCt(),z_e)),PGt(r,e.a,e.b,!1,!0)):$y(kN(JIt(r,Qpe)))||PGt(r,e.a,e.b,!0,!0)),qmt(r,Rpe,a?Zft(PSe):new WR(n=Q$(Xk(WSe),9),Q$(xP(n,n.length),9),0))}function vQt(t,e,n){var r,i,a,o;if(e[0]>=t.length)return n.o=0,!0;switch(lW(t,e[0])){case 43:i=1;break;case 45:i=-1;break;default:return n.o=0,!0}if(++e[0],a=e[0],0==(o=zSt(t,e))&&e[0]==a)return!1;if(e[0]<t.length&&58==lW(t,e[0])){if(r=60*o,++e[0],a=e[0],0==(o=zSt(t,e))&&e[0]==a)return!1;r+=o}else(r=o)<24&&e[0]-a<=2?r*=60:r=r%100+60*(r/100|0);return r*=i,n.o=-r,!0}function yQt(t){var e,n,r,i,a,o,s;for(i=new Mm,r=new oz(YO(hdt(t.b).a.Kc(),new u));AIt(r);)h5(n=Q$(K5(r),17))&&G$(i,new y6(n,p7(t,n.c),p7(t,n.d)));for(s=new Nd(new _d(t.e).a.vc().Kc());s.a.Ob();)e=Q$(s.a.Pb(),42),(a=Q$(e.dd(),113)).d.p=0;for(o=new Nd(new _d(t.e).a.vc().Kc());o.a.Ob();)e=Q$(o.a.Pb(),42),0==(a=Q$(e.dd(),113)).d.p&&G$(t.d,NRt(t,a))}function wQt(t){var e,n,r,i,a;for(a=GJ(t),i=new SO((!t.e&&(t.e=new cR(NLe,t,7,4)),t.e));i.e!=i.i.gc();)if(r=Q$(ymt(i),79),!Bet(Txt(Q$(Xet((!r.c&&(r.c=new cR(FLe,r,5,8)),r.c),0),82)),a))return!0;for(n=new SO((!t.d&&(t.d=new cR(NLe,t,8,5)),t.d));n.e!=n.i.gc();)if(e=Q$(ymt(n),79),!Bet(Txt(Q$(Xet((!e.b&&(e.b=new cR(FLe,e,4,7)),e.b),0),82)),a))return!0;return!1}function kQt(t){var n,r,i,a,o,s,c,l;for(l=new vv,c=null,r=Q$(h3(n=cmt(t,0)),8),a=Q$(h3(n),8);n.b!=n.d.c;)c=r,r=a,a=Q$(h3(n),8),o=ret(zP(new O_(c.a,c.b),r)),s=ret(zP(new O_(a.a,a.b),r)),i=10,i=e.Math.min(i,e.Math.abs(o.a+o.b)/2),i=e.Math.min(i,e.Math.abs(s.a+s.b)/2),o.a=UH(o.a)*i,o.b=UH(o.b)*i,s.a=UH(s.a)*i,s.b=UH(s.b)*i,DH(l,KP(o,r)),DH(l,KP(s,r));return l}function CQt(t,e,n,r){var i,a,o,s,c;return o=t.eh(),i=null,(c=t.Zg())?!e||gRt(t,e,n).Bb&Uqt?c=null:(r=Rmt(c.Vk(),t,r),t.uh(null),i=e.fh()):(o&&(c=o.fh()),e&&(i=e.fh())),c!=i&&c&&c.Zk(t),s=t.Vg(),t.Rg(e,n),c!=i&&i&&i.Yk(t),t.Lg()&&t.Mg()&&(o&&s>=0&&s!=n&&(a=new Jz(t,1,s,o,null),r?r.Ei(a):r=a),n>=0&&(a=new Jz(t,1,n,s==n?o:null,e),r?r.Ei(a):r=a)),r}function xQt(t){var e,n,r;if(null==t.b){if(r=new xw,null!=t.i&&(rL(r,t.i),r.a+=":"),256&t.f){for(256&t.f&&null!=t.a&&(nq(t.i)||(r.a+="//"),rL(r,t.a)),null!=t.d&&(r.a+="/",rL(r,t.d)),16&t.f&&(r.a+="/"),e=0,n=t.j.length;e<n;e++)0!=e&&(r.a+="/"),rL(r,t.j[e]);null!=t.g&&(r.a+="?",rL(r,t.g))}else rL(r,t.a);null!=t.e&&(r.a+="#",rL(r,t.e)),t.b=r.a}return t.b}function EQt(t,e){var n,r,i,a,o,s;for(i=new Gd(e.a);i.a<i.c.c.length;)rO(a=bEt(r=Q$(J1(i),10),(lVt(),dfe)),11)&&(s=vUt(e,r,(o=Q$(a,11)).o.a,o.o.b),o.n.a=s.a,o.n.b=s.b,H_t(o,Q$(bEt(r,Vhe),61)));n=new O_(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),Q$(bEt(e,(lVt(),Yhe)),21).Hc((fNt(),uhe))?(lct(t,($Xt(),tme),(WCt(),z_e)),Q$(bEt(pV(t),Yhe),21).Fc(dhe),fKt(t,n,!1)):fKt(t,n,!0)}function TQt(t,e,n){var r,i,a,o,s;Sxt(n,"Minimize Crossings "+t.a,1),r=0==e.b.c.length||!yC(SW(new Fj(null,new f1(e.b,16)),new iA(new Ia))).sd((dE(),Zne)),s=1==e.b.c.length&&1==Q$(Oj(e.b,0),29).a.c.length,a=HS(bEt(e,($Xt(),spe)))===HS((oht(),g_e)),r||s&&!a||(Elt(i=cFt(t,e),(o=Q$(Fmt(i,0),214)).c.Rf()?o.c.Lf()?new Kg(t):new zg(t):new jg(t)),aht(t)),$Tt(n)}function BQt(t,e,n,r){var i,a,o,s;if(s=dK(idt(EWt,nW(dK(idt(null==e?0:Zct(e),TWt)),15))),i=dK(idt(EWt,nW(dK(idt(null==n?0:Zct(n),TWt)),15))),o=Jit(t,e,s),a=Yit(t,n,i),o&&i==o.a&&fV(n,o.g))return n;if(a&&!r)throw Um(new Py("key already present: "+n));return o&&MOt(t,o),a&&MOt(t,a),q_t(t,new $V(n,i,e,s),a),a&&(a.e=null,a.c=null),o&&(o.e=null,o.c=null),Hwt(t),o?o.g:null}function _Qt(t,e,n){var r,i,a,o,s;for(a=0;a<e;a++){for(r=0,s=a+1;s<e;s++)r=rdt(rdt(idt(t0(t[a],zqt),t0(t[s],zqt)),t0(n[a+s],zqt)),t0(dK(r),zqt)),n[a+s]=dK(r),r=yz(r,32);n[a+e]=dK(r)}for(Zit(n,n,e<<1),r=0,i=0,o=0;i<e;++i,o++)r=rdt(rdt(idt(t0(t[i],zqt),t0(t[i],zqt)),t0(n[o],zqt)),t0(dK(r),zqt)),n[o]=dK(r),r=rdt(r=yz(r,32),t0(n[++o],zqt)),n[o]=dK(r),r=yz(r,32);return n}function SQt(t,n,r){var i,a,o,s,c,l,u,h;if(!c3(n)){for(l=Hy(CN(egt(r.c,($Xt(),Mme)))),!(u=Q$(egt(r.c,Ime),142))&&(u=new uv),i=r.a,a=null,c=n.Kc();c.Ob();)s=Q$(c.Pb(),11),h=0,a?(h=l,h+=a.o.b):h=u.d,o=SD(oE(new $b,s),t.f),XV(t.k,s,o),zDt(iE(rE(nE(aE(new Ub,0),TJ(e.Math.ceil(h))),i),o)),a=s,i=o;zDt(iE(rE(nE(aE(new Ub,0),TJ(e.Math.ceil(u.a+a.o.b))),i),r.d))}}function LQt(t,e,n,r,i,a,o,s){var c,l,u;return u=!1,l=a-n.s,c=n.t-e.f+iHt(n,l,!1).a,!(r.g+s>l)&&(c+s+iHt(r,l,!1).a<=e.b&&(g7(n,a-n.s),n.c=!0,g7(r,a-n.s),Cbt(r,n.s,n.t+n.d+s),r.k=!0,Dat(n.q,r),u=!0,i&&(trt(e,r),r.j=e,t.c.length>o&&(Cwt((u1(o,t.c.length),Q$(t.c[o],200)),r),0==(u1(o,t.c.length),Q$(t.c[o],200)).a.c.length&&s6(t,o)))),u)}function IQt(t,e){var n,r,i,a,o;if(Sxt(e,"Partition midprocessing",1),i=new gJ,qx(SW(new Fj(null,new f1(t.a,16)),new gr),new ug(i)),0!=i.d){for(o=Q$(E4(i1(new Fj(null,(i.i||(i.i=new UO(i,i.c))).Nc())),m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),Kne)]))),15),n=Q$((r=o.Kc()).Pb(),19);r.Ob();)a=Q$(r.Pb(),19),GOt(Q$(c6(i,n),21),Q$(c6(i,a),21)),n=a;$Tt(e)}}function MQt(t,e,n){var r,i,a,o,s;if(0==e.p){for(e.p=1,(i=n)||(i=new nS(new Mm,new WR(r=Q$(Xk(RSe),9),Q$(xP(r,r.length),9),0))),Q$(i.a,15).Fc(e),e.k==(oTt(),Cse)&&Q$(i.b,21).Fc(Q$(bEt(e,(lVt(),Vhe)),61)),o=new Gd(e.j);o.a<o.c.c.length;)for(a=Q$(J1(o),11),s=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[new UA(a),new HA(a)])));AIt(s);)MQt(t,Q$(K5(s),11).i,i);return i}return null}function OQt(t,e){var n,r,i,a,o;if(t.Ab)if(t.Ab){if((o=t.Ab.i)>0)if(i=Q$(t.Ab.g,1934),null==e){for(a=0;a<o;++a)if(null==(n=i[a]).d)return n}else for(a=0;a<o;++a)if(mR(e,(n=i[a]).d))return n}else if(null==e){for(r=new SO(t.Ab);r.e!=r.i.gc();)if(null==(n=Q$(ymt(r),590)).d)return n}else for(r=new SO(t.Ab);r.e!=r.i.gc();)if(mR(e,(n=Q$(ymt(r),590)).d))return n;return null}function DQt(t,e){var n,r,i,a,o,s,c;if(null==(c=kN(bEt(e,(BIt(),Mwe))))||(vV(c),c)){for(FLt(t,e),i=new Mm,s=cmt(e.b,0);s.b!=s.d.c;)(n=DBt(t,Q$(h3(s),86),null))&&(Hot(n,e),i.c[i.c.length]=n);if(t.a=null,t.b=null,i.c.length>1)for(r=new Gd(i);r.a<r.c.c.length;)for(a=0,o=cmt((n=Q$(J1(r),135)).b,0);o.b!=o.d.c;)Q$(h3(o),86).g=a++;return i}return a6(Tst(Hw(Hye,1),tZt,135,0,[e]))}function FQt(t,e,n,r,i){var a,o,s,c,l,u,h,f,d,A,g,p,m;iit(d=S3(t,Hst(e),i),F2(i,H6t)),g=D2(A=i,z6t),iTt(new Ip(d).a,g),p=D2(A,"endPoint"),rTt(new Fp(d).a,p),m=M2(A,F6t),ECt(new Rp(d).a,m),h=F2(i,P6t),$P((a=new cS(t,d)).a,a.b,h),f=F2(i,N6t),HP((o=new lS(t,d)).a,o.b,f),l=M2(i,Q6t),Qyt((s=new uS(n,d)).b,s.a,l),u=M2(i,R6t),Uyt((c=new hS(r,d)).b,c.a,u)}function NQt(t,e,n){var r,i,a,o,s;switch(s=null,e.g){case 1:for(i=new Gd(t.j);i.a<i.c.c.length;)if($y(kN(bEt(r=Q$(J1(i),11),(lVt(),Zhe)))))return r;lct(s=new BTt,(lVt(),Zhe),(cD(),!0));break;case 2:for(o=new Gd(t.j);o.a<o.c.c.length;)if($y(kN(bEt(a=Q$(J1(o),11),(lVt(),vfe)))))return a;lct(s=new BTt,(lVt(),vfe),(cD(),!0))}return s&&(TZ(s,t),H_t(s,n),vbt(s.n,t.o,n)),s}function PQt(t,n){var r,i,a,o,s,c;for(c=-1,s=new Wx,i=new m6(t.b);bM(i.a)||bM(i.b);){for(r=Q$(bM(i.a)?J1(i.a):J1(i.b),17),c=e.Math.max(c,Hy(CN(bEt(r,($Xt(),ipe))))),r.c==t?qx(SW(new Fj(null,new f1(r.b,16)),new hn),new JA(s)):qx(SW(new Fj(null,new f1(r.b,16)),new fn),new ZA(s)),o=cmt(s,0);o.b!=o.d.c;)IF(a=Q$(h3(o),70),(lVt(),Khe))||lct(a,Khe,r);gst(n,s),bq(s)}return c}function RQt(t,e,n,r,i){var a,o,s,c;Qf(a=new Ibt(t),(oTt(),Bse)),lct(a,($Xt(),tme),(WCt(),z_e)),lct(a,(lVt(),dfe),e.c.i),lct(o=new BTt,dfe,e.c),H_t(o,i),TZ(o,a),lct(e.c,wfe,a),Qf(s=new Ibt(t),Bse),lct(s,tme,z_e),lct(s,dfe,e.d.i),lct(c=new BTt,dfe,e.d),H_t(c,i),TZ(c,s),lct(e.d,wfe,s),xZ(e,o),CZ(e,c),IZ(0,n.c.length),CT(n.c,0,a),r.c[r.c.length]=s,lct(a,Qhe,nft(1)),lct(s,Qhe,nft(1))}function QQt(t,n,r,i,a){var o,s,c,l,u;c=a?i.b:i.a,Rx(t.a,i)||(u=c>r.s&&c<r.c,l=!1,0!=r.e.b&&0!=r.j.b&&(l|=e.Math.abs(c-Hy(CN(AF(r.e))))<hZt&&e.Math.abs(c-Hy(CN(AF(r.j))))<hZt,l|=e.Math.abs(c-Hy(CN(gF(r.e))))<hZt&&e.Math.abs(c-Hy(CN(gF(r.j))))<hZt),(u||l)&&((s=Q$(bEt(n,($Xt(),ppe)),74))||(s=new vv,lct(n,ppe,s)),n5(s,o=new fI(i),s.c.b,s.c),kG(t.a,o)))}function UQt(t,e,n,r){var i,a,o,s,c,l,u;if(XSt(t,e,n,r))return!0;for(o=new Gd(e.f);o.a<o.c.c.length;){switch(a=Q$(J1(o),324),s=!1,l=(c=t.j-e.j+n)+e.o,i=(u=t.k-e.k+r)+e.p,a.a.g){case 0:s=Slt(t,c+a.b.a,0,c+a.c.a,u-1);break;case 1:s=Slt(t,l,u+a.b.a,t.o-1,u+a.c.a);break;case 2:s=Slt(t,c+a.b.a,i,c+a.c.a,t.p-1);break;default:s=Slt(t,0,u+a.b.a,c-1,u+a.c.a)}if(s)return!0}return!1}function $Qt(t,e){var n,r,i,a,o,s,c,l;for(a=new Gd(e.b);a.a<a.c.c.length;)for(c=new Gd(Q$(J1(a),29).a);c.a<c.c.c.length;){for(s=Q$(J1(c),10),l=new Mm,o=0,r=new oz(YO(udt(s).a.Kc(),new u));AIt(r);)h5(n=Q$(K5(r),17))||!h5(n)&&n.c.i.c==n.d.i.c||((i=Q$(bEt(n,($Xt(),hme)),19).a)>o&&(o=i,l.c=O8(Lte,$Vt,1,0,5,1)),i==o&&G$(l,new nS(n.c.i,n)));xq(),mM(l,t.c),vK(t.b,s.p,l)}}function HQt(t,e){var n,r,i,a,o,s,c,l;for(a=new Gd(e.b);a.a<a.c.c.length;)for(c=new Gd(Q$(J1(a),29).a);c.a<c.c.c.length;){for(s=Q$(J1(c),10),l=new Mm,o=0,r=new oz(YO(hdt(s).a.Kc(),new u));AIt(r);)h5(n=Q$(K5(r),17))||!h5(n)&&n.c.i.c==n.d.i.c||((i=Q$(bEt(n,($Xt(),hme)),19).a)>o&&(o=i,l.c=O8(Lte,$Vt,1,0,5,1)),i==o&&G$(l,new nS(n.d.i,n)));xq(),mM(l,t.c),vK(t.f,s.p,l)}}function jQt(t){ME(t,new xxt(pk(fk(gk(Ak(new ps,h5t),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new Ns))),a2(t,h5t,WJt,jEe),a2(t,h5t,mZt,15),a2(t,h5t,pZt,nft(0)),a2(t,h5t,L4t,bmt(PEe)),a2(t,h5t,TZt,bmt(QEe)),a2(t,h5t,EZt,bmt($Ee)),a2(t,h5t,VJt,u5t),a2(t,h5t,wZt,bmt(REe)),a2(t,h5t,UZt,bmt(UEe)),a2(t,h5t,f5t,bmt(FEe)),a2(t,h5t,o3t,bmt(NEe))}function KQt(t,e){var n,r,i,a,o,s,c,l,u;if(o=(i=t.i).o.a,a=i.o.b,o<=0&&a<=0)return yGt(),ESe;switch(l=t.n.a,u=t.n.b,s=t.o.a,n=t.o.b,e.g){case 2:case 1:if(l<0)return yGt(),TSe;if(l+s>o)return yGt(),oSe;break;case 4:case 3:if(u<0)return yGt(),sSe;if(u+n>a)return yGt(),xSe}return(c=(l+s/2)/o)+(r=(u+n/2)/a)<=1&&c-r<=0?(yGt(),TSe):c+r>=1&&c-r>=0?(yGt(),oSe):r<.5?(yGt(),sSe):(yGt(),xSe)}function zQt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d;for(n=!1,c=Hy(CN(bEt(e,($Xt(),_me)))),f=PWt*c,i=new Gd(e.b);i.a<i.c.c.length;)for(r=Q$(J1(i),29),a=Q$(J1(s=new Gd(r.a)),10),l=fG(t.a[a.p]);s.a<s.c.c.length;)o=Q$(J1(s),10),l!=(u=fG(t.a[o.p]))&&(h=NM(t.b,a,o),a.n.b+a.o.b+a.d.a+l.a+h>o.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 GQt(t,e,n,r,i,a,o){var s,c,l,u,h;for(h=new hI,c=e.Kc();c.Ob();)for(u=new Gd(Q$(c.Pb(),839).wf());u.a<u.c.c.length;)HS((l=Q$(J1(u),181)).We((cVt(),ATe)))===HS((Net(),zBe))&&(rRt(h,l,!1,r,i,a,o),BBt(t,h));for(s=n.Kc();s.Ob();)for(u=new Gd(Q$(s.Pb(),839).wf());u.a<u.c.c.length;)HS((l=Q$(J1(u),181)).We((cVt(),ATe)))===HS((Net(),KBe))&&(rRt(h,l,!0,r,i,a,o),BBt(t,h))}function XQt(t,e,n){var r,i,a,o,s,c,l;for(o=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));o.e!=o.i.gc();)for(i=new oz(YO(AOt(a=Q$(ymt(o),33)).a.Kc(),new u));AIt(i);)ZLt(r=Q$(K5(i),79))||ZLt(r)||WSt(r)||(c=Q$($S(SY(n.f,a)),86),l=Q$(FX(n,Txt(Q$(Xet((!r.c&&(r.c=new cR(FLe,r,5,8)),r.c),0),82))),86),c&&l&&(lct(s=new Kq(c,l),(Hjt(),swe),r),Hot(s,r),DH(c.d,s),DH(l.b,s),DH(e.a,s)))}function VQt(t,n){var r,i,a,o,s,c,l;for(c=Q$(Q$(c6(t.r,n),21),84).Kc();c.Ob();)(i=(s=Q$(c.Pb(),111)).c?GH(s.c):0)>0?s.a?i>(l=s.b.rf().b)&&(t.v||1==s.c.d.c.length?(o=(i-l)/2,s.d.d=o,s.d.a=o):(r=(Q$(Oj(s.c.d,0),181).rf().b-l)/2,s.d.d=e.Math.max(0,r),s.d.a=i-r-l)):s.d.a=t.t+i:Uz(t.u)&&((a=Rxt(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))}function WQt(t,e){var n;switch(ptt(t)){case 6:return zS(e);case 7:return KS(e);case 8:return jS(e);case 3:return Array.isArray(e)&&!((n=ptt(e))>=14&&n<=16);case 11:return null!=e&&typeof e===DVt;case 12:return null!=e&&(typeof e===LVt||typeof e==DVt);case 0:return Wmt(e,t.__elementTypeId$);case 2:return DG(e)&&!(e.im===S);case 1:return DG(e)&&!(e.im===S)||Wmt(e,t.__elementTypeId$);default:return!0}}function qQt(t,n){var r,i,a,o;return i=e.Math.min(e.Math.abs(t.c-(n.c+n.b)),e.Math.abs(t.c+t.b-n.c)),o=e.Math.min(e.Math.abs(t.d-(n.d+n.a)),e.Math.abs(t.d+t.a-n.d)),(r=e.Math.abs(t.c+t.b/2-(n.c+n.b/2)))>t.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==r&&0==a?0:0==r?o/a+1:0==a?i/r+1:e.Math.min(i/r,o/a)+1}function YQt(t,n){var r,i,a,o,s,c;return(a=nrt(t))==(c=nrt(n))?t.e==n.e&&t.a<54&&n.a<54?t.f<n.f?-1:t.f>n.f?1:0:(i=t.e-n.e,(r=(t.d>0?t.d:e.Math.floor((t.a-1)*Kqt)+1)-(n.d>0?n.d:e.Math.floor((n.a-1)*Kqt)+1))>i+1?a:r<i-1?-a:(!t.c&&(t.c=vut(t.f)),o=t.c,!n.c&&(n.c=vut(n.f)),s=n.c,i<0?o=Mtt(o,y$t(-i)):i>0&&(s=Mtt(s,y$t(i))),tpt(o,s))):a<c?-1:1}function JQt(t,e){var n,r,i,a,o,s,c;for(a=0,s=0,c=0,i=new Gd(t.f.e);i.a<i.c.c.length;)e!=(r=Q$(J1(i),144))&&(a+=o=t.i[e.b][r.b],(n=G8(e.d,r.d))>0&&t.d!=($9(),Soe)&&(s+=o*(r.d.a+t.a[e.b][r.b]*(e.d.a-r.d.a)/n)),n>0&&t.d!=($9(),Boe)&&(c+=o*(r.d.b+t.a[e.b][r.b]*(e.d.b-r.d.b)/n)));switch(t.d.g){case 1:return new O_(s/a,e.d.b);case 2:return new O_(e.d.a,c/a);default:return new O_(s/a,c/a)}}function ZQt(t,e){var n,r,i,a;if(Klt(),a=Q$(bEt(t.i,($Xt(),tme)),98),0!=t.j.g-e.j.g||a!=(WCt(),K_e)&&a!=G_e&&a!=z_e)return 0;if(a==(WCt(),K_e)&&(n=Q$(bEt(t,eme),19),r=Q$(bEt(e,eme),19),n&&r&&0!=(i=n.a-r.a)))return i;switch(t.j.g){case 1:return Tft(t.n.a,e.n.a);case 2:return Tft(t.n.b,e.n.b);case 3:return Tft(e.n.a,t.n.a);case 4:return Tft(e.n.b,t.n.b);default:throw Um(new Ry(r1t))}}function tUt(t){var e,n,r,i,a;for(G$(a=new q6((!t.a&&(t.a=new LO(MLe,t,5)),t.a).i+2),new O_(t.j,t.k)),qx(new Fj(null,(!t.a&&(t.a=new LO(MLe,t,5)),new f1(t.a,16))),new Bp(a)),G$(a,new O_(t.b,t.c)),e=1;e<a.c.length-1;)u1(e-1,a.c.length),n=Q$(a.c[e-1],8),u1(e,a.c.length),r=Q$(a.c[e],8),u1(e+1,a.c.length),i=Q$(a.c[e+1],8),n.a==r.a&&r.a==i.a||n.b==r.b&&r.b==i.b?s6(a,e):++e;return a}function eUt(t,e){var n,r,i,a,o,s,c;for(n=_D(eE(Zx(tE(new Gb,e),new AY(e.e)),Ale),t.a),0==e.j.c.length||X7(Q$(Oj(e.j,0),57).a,n),c=new Dm,XV(t.e,n,c),o=new Fb,s=new Fb,a=new Gd(e.k);a.a<a.c.c.length;)kG(o,(i=Q$(J1(a),17)).c),kG(s,i.d);(r=o.a.gc()-s.a.gc())<0?(zst(c,!0,(Qht(),PBe)),zst(c,!1,RBe)):r>0&&(zst(c,!1,(Qht(),PBe)),zst(c,!0,RBe)),Set(e.g,new sB(t,n)),XV(t.g,e,n)}function nUt(){var t;for(nUt=L,Mee=Tst(Hw(_De,1),lqt,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]),Oee=O8(_De,lqt,25,37,15,1),Dee=Tst(Hw(_De,1),lqt,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]),Fee=O8(LDe,Qqt,25,37,14,1),t=2;t<=36;t++)Oee[t]=TJ(e.Math.pow(t,Mee[t])),Fee[t]=Skt(fWt,Oee[t])}function rUt(t){var e;if(1!=(!t.a&&(t.a=new tG(PLe,t,6,6)),t.a).i)throw Um(new Py(U5t+(!t.a&&(t.a=new tG(PLe,t,6,6)),t.a).i));return e=new vv,fst(Q$(Xet((!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),0),82))&&Qit(e,KXt(t,fst(Q$(Xet((!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),0),82)),!1)),fst(Q$(Xet((!t.c&&(t.c=new cR(FLe,t,5,8)),t.c),0),82))&&Qit(e,KXt(t,fst(Q$(Xet((!t.c&&(t.c=new cR(FLe,t,5,8)),t.c),0),82)),!0)),e}function iUt(t,e){var n,r,i;for(i=!1,r=new oz(YO((e.d?t.a.c==(AJ(),Zve)?udt(e.b):hdt(e.b):t.a.c==(AJ(),Jve)?udt(e.b):hdt(e.b)).a.Kc(),new u));AIt(r);)if(n=Q$(K5(r),17),($y(t.a.f[t.a.g[e.b.p].p])||h5(n)||n.c.i.c!=n.d.i.c)&&!$y(t.a.n[t.a.g[e.b.p].p])&&!$y(t.a.n[t.a.g[e.b.p].p])&&(i=!0,Rx(t.b,t.a.g[Mvt(n,e.b).p])))return e.c=!0,e.a=n,e;return e.c=i,e.a=null,e}function aUt(t,e,n,r,i){var a,o,s,c,l,u,h;for(xq(),mM(t,new Vs),s=new C2(t,0),h=new Mm,a=0;s.b<s.d.gc();)EF(s.b<s.d.gc()),o=Q$(s.d.Xb(s.c=s.b++),157),0!=h.c.length&&eK(o)*tK(o)>2*a?(u=new jet(h),l=eK(o)/tK(o),c=vXt(u,e,new hv,n,r,i,l),KP(vL(u.e),c),h.c=O8(Lte,$Vt,1,0,5,1),a=0,h.c[h.c.length]=u,h.c[h.c.length]=o,a=eK(u)*tK(u)+eK(o)*tK(o)):(h.c[h.c.length]=o,a+=eK(o)*tK(o));return h}function oUt(t,e,n){var r,i,a,o,s,c,l;if(0==(r=n.gc()))return!1;if(t.ej())if(c=t.fj(),yAt(t,e,n),o=1==r?t.Zi(3,null,n.Kc().Pb(),e,c):t.Zi(5,null,n,e,c),t.bj()){for(s=r<100?null:new Rk(r),a=e+r,i=e;i<a;++i)l=t.Oi(i),s=t.cj(l,s);s?(s.Ei(o),s.Fi()):t.$i(o)}else t.$i(o);else if(yAt(t,e,n),t.bj()){for(s=r<100?null:new Rk(r),a=e+r,i=e;i<a;++i)s=t.cj(t.Oi(i),s);s&&s.Fi()}return!0}function sUt(t,e,n){var r,i,a,o;return t.ej()?(i=null,a=t.fj(),r=t.Zi(1,o=t.Ui(e,t.oi(e,n)),n,e,a),t.bj()&&!(t.ni()&&o?Oht(o,n):HS(o)===HS(n))?(o&&(i=t.dj(o,i)),(i=t.cj(n,i))?(i.Ei(r),i.Fi()):t.$i(r)):i?(i.Ei(r),i.Fi()):t.$i(r),o):(o=t.Ui(e,t.oi(e,n)),t.bj()&&!(t.ni()&&o?Oht(o,n):HS(o)===HS(n))&&(i=null,o&&(i=t.dj(o,null)),(i=t.cj(n,i))&&i.Fi()),o)}function cUt(t,n){var r,i,a,o,s,c,l,u;if(t.e=n,t.f=Q$(bEt(n,(xit(),coe)),230),Gxt(n),t.d=e.Math.max(16*n.e.c.length+n.c.c.length,256),!$y(kN(bEt(n,(uPt(),Uae)))))for(u=t.e.e.c.length,c=new Gd(n.e);c.a<c.c.c.length;)(l=Q$(J1(c),144).d).a=_K(t.f)*u,l.b=_K(t.f)*u;for(r=n.b,o=new Gd(n.c);o.a<o.c.c.length;)if(a=Q$(J1(o),282),(i=Q$(bEt(a,toe),19).a)>0){for(s=0;s<i;s++)G$(r,new cX(a));U_t(a)}}function lUt(t,n){var r,i,a,o,s;if(t.k==(oTt(),xse)&&(r=yC(SW(Q$(bEt(t,(lVt(),Efe)),15).Oc(),new iA(new ir))).sd((dE(),Zne))?n:(Gyt(),k_e),lct(t,afe,r),r!=(Gyt(),w_e)))for(i=Q$(bEt(t,dfe),17),s=Hy(CN(bEt(i,($Xt(),ipe)))),o=0,r==y_e?o=t.o.b-e.Math.ceil(s/2):r==k_e&&(t.o.b-=Hy(CN(bEt(pV(t),yme))),o=(t.o.b-e.Math.ceil(s))/2),a=new Gd(t.j);a.a<a.c.c.length;)Q$(J1(a),11).n.b=o}function uUt(){uUt=L,qE(),wDe=new Pu,Tst(Hw(_Me,2),cWt,368,0,[Tst(Hw(_Me,1),wte,592,0,[new KC(K9t)])]),Tst(Hw(_Me,2),cWt,368,0,[Tst(Hw(_Me,1),wte,592,0,[new KC(z9t)])]),Tst(Hw(_Me,2),cWt,368,0,[Tst(Hw(_Me,1),wte,592,0,[new KC(G9t)]),Tst(Hw(_Me,1),wte,592,0,[new KC(z9t)])]),new LI("-1"),Tst(Hw(_Me,2),cWt,368,0,[Tst(Hw(_Me,1),wte,592,0,[new KC("\\c+")])]),new LI("0"),new LI("0"),new LI("1"),new LI("0"),new LI(nte)}function hUt(t){var e,n;return t.c&&t.c.kh()&&(n=Q$(t.c,49),t.c=Q$(tht(t,n),138),t.c!=n&&(4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,9,2,n,t.c)),rO(t.Cb,399)?t.Db>>16==-15&&t.Cb.nh()&&L9(new v7(t.Cb,9,13,n,t.c,obt(U9(Q$(t.Cb,59)),t))):rO(t.Cb,88)&&t.Db>>16==-23&&t.Cb.nh()&&(rO(e=t.c,88)||(gVt(),e=fMe),rO(n,88)||(gVt(),n=fMe),L9(new v7(t.Cb,9,10,n,e,obt(i4(Q$(t.Cb,26)),t)))))),t.c}function fUt(t,e){var n,r,i,a,o,s,c,l;for(Sxt(e,"Hypernodes processing",1),r=new Gd(t.b);r.a<r.c.c.length;)for(o=new Gd(Q$(J1(r),29).a);o.a<o.c.c.length;)if($y(kN(bEt(a=Q$(J1(o),10),($Xt(),hpe))))&&a.j.c.length<=2){for(l=0,c=0,n=0,i=0,s=new Gd(a.j);s.a<s.c.c.length;)switch(Q$(J1(s),11).j.g){case 1:++l;break;case 2:++c;break;case 3:++n;break;case 4:++i}0==l&&0==n&&wXt(t,a,i<=c)}$Tt(e)}function dUt(t,e){var n,r,i,a,o,s,c,l,u;for(Sxt(e,"Layer constraint edge reversal",1),o=new Gd(t.b);o.a<o.c.c.length;){for(a=Q$(J1(o),29),u=-1,n=new Mm,l=J0(a.a),i=0;i<l.length;i++)r=Q$(bEt(l[i],(lVt(),efe)),303),-1==u?r!=(j9(),The)&&(u=i):r==(j9(),The)&&(EZ(l[i],null),Wyt(l[i],u++,a)),r==(j9(),xhe)&&G$(n,l[i]);for(c=new Gd(n);c.a<c.c.c.length;)EZ(s=Q$(J1(c),10),null),EZ(s,a)}$Tt(e)}function AUt(t,e,n){var r,i,a,o,s,c,l,u;for(Sxt(n,"Hyperedge merging",1),DIt(t,e),s=new C2(e.b,0);s.b<s.d.gc();)if(EF(s.b<s.d.gc()),0!=(l=Q$(s.d.Xb(s.c=s.b++),29).a).c.length)for(r=null,i=null,a=null,o=null,c=0;c<l.c.length;c++)u1(c,l.c.length),(i=(r=Q$(l.c[c],10)).k)==(oTt(),Ese)&&o==Ese&&(u=lHt(r,a)).a&&(rNt(r,a,u.b,u.c),u1(c,l.c.length),EC(l.c,c,1),--c,r=a,i=o),a=r,o=i;$Tt(n)}function gUt(t,e){var n,r,i;r=0!=$Mt(t.d,1),!$y(kN(bEt(e.j,(lVt(),qhe))))&&!$y(kN(bEt(e.j,Bfe)))||HS(bEt(e.j,($Xt(),Ige)))===HS((bct(),Mbe))?e.c.Tf(e.e,r):r=$y(kN(bEt(e.j,qhe))),FDt(t,e,r,!0),$y(kN(bEt(e.j,Bfe)))&&lct(e.j,Bfe,(cD(),!1)),$y(kN(bEt(e.j,qhe)))&&(lct(e.j,qhe,(cD(),!1)),lct(e.j,Bfe,!0)),n=eRt(t,e);do{if(Iit(t),0==n)return 0;i=n,FDt(t,e,r=!r,!1),n=eRt(t,e)}while(i>n);return i}function pUt(t,e){var n,r,i;r=0!=$Mt(t.d,1),!$y(kN(bEt(e.j,(lVt(),qhe))))&&!$y(kN(bEt(e.j,Bfe)))||HS(bEt(e.j,($Xt(),Ige)))===HS((bct(),Mbe))?e.c.Tf(e.e,r):r=$y(kN(bEt(e.j,qhe))),FDt(t,e,r,!0),$y(kN(bEt(e.j,Bfe)))&&lct(e.j,Bfe,(cD(),!1)),$y(kN(bEt(e.j,qhe)))&&(lct(e.j,qhe,(cD(),!1)),lct(e.j,Bfe,!0)),n=ZBt(t,e);do{if(Iit(t),0==n)return 0;i=n,FDt(t,e,r=!r,!1),n=ZBt(t,e)}while(i>n);return i}function mUt(t,e,n){var r,i,a,o,s,c,l;if(e==n)return!0;if(e=fIt(t,e),n=fIt(t,n),r=Hbt(e)){if((c=Hbt(n))!=r)return!!c&&(o=r.Dj())==c.Dj()&&null!=o;if(!e.d&&(e.d=new LO(GIe,e,1)),i=(a=e.d).i,!n.d&&(n.d=new LO(GIe,n,1)),i==(l=n.d).i)for(s=0;s<i;++s)if(!mUt(t,Q$(Xet(a,s),87),Q$(Xet(l,s),87)))return!1;return!0}return e.e==n.e}function bUt(t,e,n,r){var i,a,o,s,c,l,u,h;if(IFt(t.e,e)){for(h=aFt(t.e.Tg(),e),a=Q$(t.g,119),u=null,c=-1,s=-1,i=0,l=0;l<t.i;++l)o=a[l],h.rl(o.ak())&&(i==n&&(c=l),i==r&&(s=l,u=o.dd()),++i);if(-1==c)throw Um(new Sy(o8t+n+s8t+i));if(-1==s)throw Um(new Sy(c8t+r+s8t+i));return _ft(t,c,s),mI(t.e)&&Ib(t,IY(t,7,e,nft(r),u,n,!0)),u}throw Um(new Py("The feature must be many-valued to support move"))}function vUt(t,e,n,r){var i,a,o,s,c;switch((c=new fI(e.n)).a+=e.o.a/2,c.b+=e.o.b/2,s=Hy(CN(bEt(e,($Xt(),Zpe)))),a=t.f,o=t.d,i=t.c,Q$(bEt(e,(lVt(),Vhe)),61).g){case 1:c.a+=o.b+i.a-n/2,c.b=-r-s,e.n.b=-(o.d+s+i.b);break;case 2:c.a=a.a+o.b+o.c+s,c.b+=o.d+i.b-r/2,e.n.a=a.a+o.c+s-i.a;break;case 3:c.a+=o.b+i.a-n/2,c.b=a.b+o.d+o.a+s,e.n.b=a.b+o.a+s-i.b;break;case 4:c.a=-n-s,c.b+=o.d+i.b-r/2,e.n.a=-(o.b+s+i.a)}return c}function yUt(t){var e,n,r,i,a,o;return Hot(r=new brt,t),HS(bEt(r,($Xt(),Kge)))===HS((Qht(),QBe))&&lct(r,Kge,Xft(r)),null==bEt(r,(T6(),kEe))&&(o=Q$(IEt(t),160),lct(r,kEe,eL(o.We(kEe)))),lct(r,(lVt(),dfe),t),lct(r,Yhe,new WR(e=Q$(Xk(khe),9),Q$(xP(e,e.length),9),0)),i=Tzt((qJ(t)&&(HE(),new Dy(qJ(t))),HE(),new qD(qJ(t)?new Dy(qJ(t)):null,t)),RBe),a=Q$(bEt(r,jpe),116),tZ(n=r.d,a),tZ(n,i),r}function wUt(t,e,n){var r,i;r=e.c.i,i=n.d.i,r.k==(oTt(),Ese)?(lct(t,(lVt(),cfe),Q$(bEt(r,cfe),11)),lct(t,lfe,Q$(bEt(r,lfe),11)),lct(t,sfe,kN(bEt(r,sfe)))):r.k==xse?(lct(t,(lVt(),cfe),Q$(bEt(r,cfe),11)),lct(t,lfe,Q$(bEt(r,lfe),11)),lct(t,sfe,(cD(),!0))):i.k==xse?(lct(t,(lVt(),cfe),Q$(bEt(i,cfe),11)),lct(t,lfe,Q$(bEt(i,lfe),11)),lct(t,sfe,(cD(),!0))):(lct(t,(lVt(),cfe),e.c),lct(t,lfe,n.d))}function kUt(t){var e,n,r,i,a,o,s;for(t.o=new Im,r=new Wx,o=new Gd(t.e.a);o.a<o.c.c.length;)1==ydt(a=Q$(J1(o),121)).c.length&&n5(r,a,r.c.b,r.c);for(;0!=r.b;)0!=ydt(a=Q$(0==r.b?null:(EF(0!=r.b),Let(r,r.a.a)),121)).c.length&&(e=Q$(Oj(ydt(a),0),213),n=a.g.a.c.length>0,s=Odt(e,a),ND(n?s.b:s.g,e),1==ydt(s).c.length&&n5(r,s,r.c.b,r.c),i=new nS(a,e),d3(t.o,i),b9(t.e.a,a))}function CUt(t,n){var r,i,a,o;return i=e.Math.abs($z(t.b).a-$z(n.b).a),o=e.Math.abs($z(t.b).b-$z(n.b).b),r=1,a=1,i>t.b.b/2+n.b.b/2&&(r=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))/i),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(r,a))*e.Math.sqrt(i*i+o*o)}function xUt(t){var e,n,r;for(Zzt(t,t.e,t.f,(dJ(),Iye),!0,t.c,t.i),Zzt(t,t.e,t.f,Iye,!1,t.c,t.i),Zzt(t,t.e,t.f,Mye,!0,t.c,t.i),Zzt(t,t.e,t.f,Mye,!1,t.c,t.i),_Ut(t,t.c,t.e,t.f,t.i),n=new C2(t.i,0);n.b<n.d.gc();)for(EF(n.b<n.d.gc()),e=Q$(n.d.Xb(n.c=n.b++),128),r=new C2(t.i,n.b);r.b<r.d.gc();)EF(r.b<r.d.gc()),Ojt(e,Q$(r.d.Xb(r.c=r.b++),128));_Xt(t.i,Q$(bEt(t.d,(lVt(),xfe)),230)),jKt(t.i)}function EUt(t,e){var n,r;if(null!=e)if(r=nyt(t)){if(!(1&r.i))return JE(),!(n=Q$(FX(pIe,r),55))||n.wj(e);if(r==SDe)return jS(e);if(r==_De)return rO(e,19);if(r==ODe)return rO(e,155);if(r==IDe)return rO(e,217);if(r==BDe)return rO(e,172);if(r==MDe)return KS(e);if(r==DDe)return rO(e,184);if(r==LDe)return rO(e,162)}else if(rO(e,56))return t.uk(Q$(e,56));return!1}function TUt(){var t,e,n,r,i,a,o,s,c;for(TUt=L,zOe=O8(IDe,m6t,25,255,15,1),GOe=O8(BDe,XWt,25,64,15,1),e=0;e<255;e++)zOe[e]=-1;for(n=90;n>=65;n--)zOe[n]=n-65<<24>>24;for(r=122;r>=97;r--)zOe[r]=r-97+26<<24>>24;for(i=57;i>=48;i--)zOe[i]=i-48+52<<24>>24;for(zOe[43]=62,zOe[47]=63,a=0;a<=25;a++)GOe[a]=65+a&WWt;for(o=26,c=0;o<=51;++o,c++)GOe[o]=97+c&WWt;for(t=52,s=0;t<=61;++t,s++)GOe[t]=48+s&WWt;GOe[62]=43,GOe[63]=47}function BUt(t,n){var r,i,a,o,s,c,l,u,h,f,d;if(t.dc())return new Hk;for(l=0,h=0,i=t.Kc();i.Ob();)a=Q$(i.Pb(),37).f,l=e.Math.max(l,a.a),h+=a.a*a.b;for(l=e.Math.max(l,e.Math.sqrt(h)*Hy(CN(bEt(Q$(t.Kc().Pb(),37),($Xt(),wge))))),f=0,d=0,c=0,r=n,s=t.Kc();s.Ob();)f+(u=(o=Q$(s.Pb(),37)).f).a>l&&(f=0,d+=c+n,c=0),JPt(o,f,d),r=e.Math.max(r,f+u.a),c=e.Math.max(c,u.b),f+=u.a+n;return new O_(r+n,d+c+n)}function _Ut(t,e,n,r,i){var a,o,s,c,l,u,h;for(o=new Gd(e);o.a<o.c.c.length;){if(c=(a=Q$(J1(o),17)).c,n.a._b(c))dJ(),l=Iye;else{if(!r.a._b(c))throw Um(new Py("Source port must be in one of the port sets."));dJ(),l=Mye}if(u=a.d,n.a._b(u))dJ(),h=Iye;else{if(!r.a._b(u))throw Um(new Py("Target port must be in one of the port sets."));dJ(),h=Mye}s=new t_t(a,l,h),XV(t.b,a,s),i.c[i.c.length]=s}}function SUt(t,e){var n,r,i,a,o,s,c;if(!GJ(t))throw Um(new Ry(Q5t));if(a=(r=GJ(t)).g,i=r.f,a<=0&&i<=0)return yGt(),ESe;switch(s=t.i,c=t.j,e.g){case 2:case 1:if(s<0)return yGt(),TSe;if(s+t.g>a)return yGt(),oSe;break;case 4:case 3:if(c<0)return yGt(),sSe;if(c+t.f>i)return yGt(),xSe}return(o=(s+t.g/2)/a)+(n=(c+t.f/2)/i)<=1&&o-n<=0?(yGt(),TSe):o+n>=1&&o-n>=0?(yGt(),oSe):n<.5?(yGt(),sSe):(yGt(),xSe)}function LUt(t,e,n,r,i){var a,o;if(a=rdt(t0(e[0],zqt),t0(r[0],zqt)),t[0]=dK(a),a=vz(a,32),n>=i){for(o=1;o<i;o++)a=rdt(a,rdt(t0(e[o],zqt),t0(r[o],zqt))),t[o]=dK(a),a=vz(a,32);for(;o<n;o++)a=rdt(a,t0(e[o],zqt)),t[o]=dK(a),a=vz(a,32)}else{for(o=1;o<n;o++)a=rdt(a,rdt(t0(e[o],zqt),t0(r[o],zqt))),t[o]=dK(a),a=vz(a,32);for(;o<i;o++)a=rdt(a,t0(r[o],zqt)),t[o]=dK(a),a=vz(a,32)}0!=Vut(a,0)&&(t[o]=dK(a))}function IUt(t){var e,n,r,i,a,o;if(dVt(),4!=t.e&&5!=t.e)throw Um(new Py("Token#complementRanges(): must be RANGE: "+t.e));for(CMt(a=t),HHt(a),r=a.b.length+2,0==a.b[0]&&(r-=2),(n=a.b[a.b.length-1])==ote&&(r-=2),(i=new C0(4)).b=O8(_De,lqt,25,r,15,1),o=0,a.b[0]>0&&(i.b[o++]=0,i.b[o++]=a.b[0]-1),e=1;e<a.b.length-2;e+=2)i.b[o++]=a.b[e]+1,i.b[o++]=a.b[e+1]-1;return n!=ote&&(i.b[o++]=n+1,i.b[o]=ote),i.a=!0,i}function MUt(t,e,n){var r,i,a,o,s,c,l,u;if(0==(r=n.gc()))return!1;if(t.ej())if(l=t.fj(),Uxt(t,e,n),o=1==r?t.Zi(3,null,n.Kc().Pb(),e,l):t.Zi(5,null,n,e,l),t.bj()){for(s=r<100?null:new Rk(r),a=e+r,i=e;i<a;++i)u=t.g[i],s=t.cj(u,s),s=t.jj(u,s);s?(s.Ei(o),s.Fi()):t.$i(o)}else t.$i(o);else if(Uxt(t,e,n),t.bj()){for(s=r<100?null:new Rk(r),a=e+r,i=e;i<a;++i)c=t.g[i],s=t.cj(c,s);s&&s.Fi()}return!0}function OUt(t,e,n,r){var i,a,o,s,c;for(o=new Gd(t.k);o.a<o.c.c.length;)i=Q$(J1(o),129),r&&i.c!=(_6(),kye)||(c=i.b).g<0&&i.d>0&&(Xf(c,c.d-i.d),i.c==(_6(),kye)&&zf(c,c.a-i.d),c.d<=0&&c.i>0&&n5(e,c,e.c.b,e.c));for(a=new Gd(t.f);a.a<a.c.c.length;)i=Q$(J1(a),129),r&&i.c!=(_6(),kye)||(s=i.a).g<0&&i.d>0&&(Vf(s,s.i-i.d),i.c==(_6(),kye)&&Gf(s,s.b-i.d),s.i<=0&&s.d>0&&n5(n,s,n.c.b,n.c))}function DUt(t,e,n){var r,i,a,o,s,c,l,u;for(Sxt(n,"Processor compute fanout",1),LG(t.b),LG(t.a),s=null,a=cmt(e.b,0);!s&&a.b!=a.d.c;)$y(kN(bEt(l=Q$(h3(a),86),(Hjt(),dwe))))&&(s=l);for(n5(c=new Wx,s,c.c.b,c.c),wGt(t,c),u=cmt(e.b,0);u.b!=u.d.c;)o=xN(bEt(l=Q$(h3(u),86),(Hjt(),nwe))),i=null!=xJ(t.b,o)?Q$(xJ(t.b,o),19).a:0,lct(l,ewe,nft(i)),r=1+(null!=xJ(t.a,o)?Q$(xJ(t.a,o),19).a:0),lct(l,Zye,nft(r));$Tt(n)}function FUt(t,e,n,r,i){var a,o,s,c,l,u,h,f,d;for(h=vCt(t,n),s=0;s<e;s++){for(bP(i,n),f=new Mm,EF(r.b<r.d.gc()),d=Q$(r.d.Xb(r.c=r.b++),407),l=h+s;l<t.b;l++)o=d,EF(r.b<r.d.gc()),G$(f,new kFt(o,d=Q$(r.d.Xb(r.c=r.b++),407),n));for(u=h+s;u<t.b;u++)EF(r.b>0),r.a.Xb(r.c=--r.b),u>h+s&&lV(r);for(a=new Gd(f);a.a<a.c.c.length;)bP(r,Q$(J1(a),407));if(s<e-1)for(c=h+s;c<t.b;c++)EF(r.b>0),r.a.Xb(r.c=--r.b)}}function NUt(){var t,e,n,r,i,a;if(dVt(),EDe)return EDe;for(cHt(t=new C0(4),JGt(pte,!0)),XKt(t,JGt("M",!0)),XKt(t,JGt("C",!0)),a=new C0(4),r=0;r<11;r++)qFt(a,r,r);return cHt(e=new C0(4),JGt("M",!0)),qFt(e,4448,4607),qFt(e,65438,65439),tjt(i=new nM(2),t),tjt(i,oDe),(n=new nM(2)).$l(AK(a,JGt("L",!0))),n.$l(e),n=new KG(i,n=new c4(3,n)),EDe=n}function PUt(t){var e,n;if(!qat(e=xN(JIt(t,(cVt(),tTe))),t)&&!E8(t,mBe)&&(0!=(!t.a&&(t.a=new tG(jLe,t,10,11)),t.a).i||$y(kN(JIt(t,xTe))))){if(null!=e&&0!=NEt(e).length)throw gzt(t,n=oL(oL(new uD("Layout algorithm '"),e),"' not found for ")),Um(new nw(n.a));if(!qat(d1t,t))throw gzt(t,n=oL(oL(new uD("Unable to load default layout algorithm "),d1t)," for unconfigured node ")),Um(new nw(n.a))}}function RUt(t){var n,r,i,a,o,s,c,l,u,h,f,d,A;if(r=t.i,n=t.n,0==t.b)for(A=r.c+n.b,d=r.b-n.b-n.c,l=0,h=(s=t.a).length;l<h;++l)KK(a=s[l],A,d);else i=Xbt(t,!1),KK(t.a[0],r.c+n.b,i[0]),KK(t.a[2],r.c+r.b-n.c-i[2],i[2]),f=r.b-n.b-n.c,i[0]>0&&(f-=i[0]+t.c,i[0]+=t.c),i[2]>0&&(f-=i[2]+t.c),i[1]=e.Math.max(i[1],f),KK(t.a[1],r.c+n.b+i[0]-(i[1]-f)/2,i[1]);for(c=0,u=(o=t.a).length;c<u;++c)rO(a=o[c],326)&&Q$(a,326).Te()}function QUt(t){var e,n,r,i,a,o,s,c,l,u,h;for((h=new oo).d=0,o=new Gd(t.b);o.a<o.c.c.length;)a=Q$(J1(o),29),h.d+=a.a.c.length;for(r=0,i=0,h.a=O8(_De,lqt,25,t.b.c.length,15,1),l=0,u=0,h.e=O8(_De,lqt,25,h.d,15,1),n=new Gd(t.b);n.a<n.c.c.length;)for((e=Q$(J1(n),29)).p=r++,h.a[e.p]=i++,u=0,c=new Gd(e.a);c.a<c.c.c.length;)(s=Q$(J1(c),10)).p=l++,h.e[s.p]=u++;return h.c=new lp(h),h.b=sF(h.d),$Qt(h,t),h.f=sF(h.d),HQt(h,t),h}function UUt(t,n){var r,i,a;for(a=Q$(Oj(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),i=t.n.c.length>0?(t.n.c.length-1)*t.i:0,r=new Gd(t.n);r.a<r.c.c.length;)i+=Q$(J1(r),211).a;t.d=i,t.a=t.e/t.b.c.length-t.i*((t.b.c.length-1)/t.b.c.length),vyt(t.j)}function $Ut(t,e){var n,r,i,a,o,s,c,l,u;if(null==(l=kN(bEt(e,(uPt(),eoe))))||(vV(l),l)){for(u=O8(SDe,JYt,25,e.e.c.length,16,1),o=yLt(e),i=new Wx,c=new Gd(e.e);c.a<c.c.c.length;)(n=qMt(t,Q$(J1(c),144),null,null,u,o))&&(Hot(n,e),n5(i,n,i.c.b,i.c));if(i.b>1)for(r=cmt(i,0);r.b!=r.d.c;)for(a=0,s=new Gd((n=Q$(h3(r),231)).e);s.a<s.c.c.length;)Q$(J1(s),144).b=a++;return i}return a6(Tst(Hw(Nae,1),tZt,231,0,[e]))}function HUt(t){var e,n,r,i,a;if(!t.g){if(a=new xc,null==(e=xMe).a.zc(t,e)){for(n=new SO(vY(t));n.e!=n.i.gc();)gX(a,HUt(Q$(ymt(n),26)));e.a.Bc(t),e.a.gc()}for(r=a.i,!t.s&&(t.s=new tG(PIe,t,21,17)),i=new SO(t.s);i.e!=i.i.gc();++r)ad(Q$(ymt(i),449),r);gX(a,(!t.s&&(t.s=new tG(PIe,t,21,17)),t.s)),iut(a),t.g=new Act(t,a),t.i=Q$(a.g,247),null==t.i&&(t.i=TMe),t.p=null,E5(t).b&=-5}return t.g}function jUt(t){var n,r,i,a,o,s,c,l,u,h,f,d,A;if(i=t.i,r=t.n,0==t.b)n=Gbt(t,!1),zK(t.a[0],i.d+r.d,n[0]),zK(t.a[2],i.d+i.a-r.a-n[2],n[2]),f=i.a-r.d-r.a,n[0]>0&&(n[0]+=t.c,f-=n[0]),n[2]>0&&(f-=n[2]+t.c),n[1]=e.Math.max(n[1],f),zK(t.a[1],i.d+r.d+n[0]-(n[1]-f)/2,n[1]);else for(A=i.d+r.d,d=i.a-r.d-r.a,l=0,h=(s=t.a).length;l<h;++l)zK(a=s[l],A,d);for(c=0,u=(o=t.a).length;c<u;++c)rO(a=o[c],326)&&Q$(a,326).Ue()}function KUt(t){var e,n,r,i,a,o,s,c,l;for(l=O8(_De,lqt,25,t.b.c.length+1,15,1),c=new Fb,r=0,a=new Gd(t.b);a.a<a.c.c.length;){for(i=Q$(J1(a),29),l[r++]=c.a.gc(),s=new Gd(i.a);s.a<s.c.c.length;)for(n=new oz(YO(hdt(Q$(J1(s),10)).a.Kc(),new u));AIt(n);)e=Q$(K5(n),17),c.a.zc(e,c);for(o=new Gd(i.a);o.a<o.c.c.length;)for(n=new oz(YO(udt(Q$(J1(o),10)).a.Kc(),new u));AIt(n);)e=Q$(K5(n),17),c.a.Bc(e)}return l}function zUt(t,e,n,r){var i,a,o,s,c;if(c=aFt(t.e.Tg(),e),i=Q$(t.g,119),YE(),Q$(e,66).Oj()){for(o=0;o<t.i;++o)if(a=i[o],c.rl(a.ak())&&Oht(a,n))return!0}else if(null!=n){for(s=0;s<t.i;++s)if(a=i[s],c.rl(a.ak())&&Oht(n,a.dd()))return!0;if(r)for(o=0;o<t.i;++o)if(a=i[o],c.rl(a.ak())&&HS(n)===HS(cN(t,Q$(a.dd(),56))))return!0}else for(o=0;o<t.i;++o)if(a=i[o],c.rl(a.ak())&&null==a.dd())return!1;return!1}function GUt(t,e,n,r){var i,a,o,s,c,l;if(l=aFt(t.e.Tg(),e),o=Q$(t.g,119),IFt(t.e,e)){if(e.hi()&&(a=p$t(t,e,r,rO(e,99)&&!!(Q$(e,18).Bb&Uqt)))>=0&&a!=n)throw Um(new Py(a8t));for(i=0,c=0;c<t.i;++c)if(s=o[c],l.rl(s.ak())){if(i==n)return Q$(sbt(t,c,(YE(),Q$(e,66).Oj()?Q$(r,72):Y3(e,r))),72);++i}throw Um(new Sy(e7t+n+s8t+i))}for(c=0;c<t.i;++c)if(s=o[c],l.rl(s.ak()))return YE(),Q$(e,66).Oj()?s:s.dd();return null}function XUt(t,n,r,i){var a,o,s,c;for(c=r,s=new Gd(n.a);s.a<s.c.c.length;){if(o=Q$(J1(s),221),a=Q$(o.b,65),_dt(t.b.c,a.b.c+a.b.b)<=0&&_dt(a.b.c,t.b.c+t.b.b)<=0&&_dt(t.b.d,a.b.d+a.b.a)<=0&&_dt(a.b.d,t.b.d+t.b.a)<=0){if(0==_dt(a.b.c,t.b.c+t.b.b)&&i.a<0||0==_dt(a.b.c+a.b.b,t.b.c)&&i.a>0||0==_dt(a.b.d,t.b.d+t.b.a)&&i.b<0||0==_dt(a.b.d+a.b.a,t.b.d)&&i.b>0){c=0;break}}else c=e.Math.min(c,$_t(t,a,i));c=e.Math.min(c,XUt(t,o,c,i))}return c}function VUt(t,e){var n,r,i,a,o,s;if(t.b<2)throw Um(new Py("The vector chain must contain at least a source and a target point."));for(EF(0!=t.b),TI(e,(r=Q$(t.a.a.c,8)).a,r.b),s=new rF((!e.a&&(e.a=new LO(MLe,e,5)),e.a)),a=cmt(t,1);a.a<t.b-1;)o=Q$(h3(a),8),s.e!=s.i.gc()?n=Q$(ymt(s),469):(Zk(),sgt(s,n=new ac)),kI(n,o.a,o.b);for(;s.e!=s.i.gc();)ymt(s),Wkt(s);EF(0!=t.b),EI(e,(i=Q$(t.c.b.c,8)).a,i.b)}function WUt(t,e){var n,r,i,a,o,s,c,l;for(n=0,r=new Gd((u1(0,t.c.length),Q$(t.c[0],101)).g.b.j);r.a<r.c.c.length;)Q$(J1(r),11).p=n++;for(e==(yGt(),sSe)?mM(t,new ta):mM(t,new ea),o=0,l=t.c.length-1;o<l;)u1(o,t.c.length),a=Q$(t.c[o],101),u1(l,t.c.length),c=Q$(t.c[l],101),i=e==sSe?a.c:a.a,s=e==sSe?c.a:c.c,hG(a,e,(Sst(),ble),i),hG(c,e,mle,s),++o,--l;o==l&&hG((u1(o,t.c.length),Q$(t.c[o],101)),e,(Sst(),ple),null)}function qUt(t,e,n){var r,i,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 O_(e.i+e.g/2,e.j+e.f/2),(c=Q$(JIt(e,(cVt(),ABe)),8)).a=c.a+u,c.b=c.b+h,i=(o.b-c.b)/(o.a-c.a),r=o.b-i*o.a,s=new O_(n.i+n.g/2,n.j+n.f/2),(l=Q$(JIt(n,ABe),8)).a=l.a+u,l.b=l.b+h,a=(s.b-l.b)/(s.a-l.a),f=(r-(s.b-a*s.a))/(a-i),!(c.a<f&&o.a<f||f<c.a&&f<o.a||l.a<f&&s.a<f||f<l.a&&f<s.a)}function YUt(t,e){var n,r,i,a,o,s;if(!(o=Q$(FX(t.c,e),183)))throw Um(new tw("Edge did not exist in input."));return r=Wgt(o),!GC((!e.a&&(e.a=new tG(PLe,e,6,6)),e.a))&&(n=new C$(t,r,s=new Tf),fL((!e.a&&(e.a=new tG(PLe,e,6,6)),e.a),n),net(o,D6t,s)),E8(e,(cVt(),_Te))&&!(!(i=Q$(JIt(e,_Te),74))||gV(i))&&(t5(i,new Vp(a=new Tf)),net(o,"junctionPoints",a)),SH(o,"container",zJ(e).k),null}function JUt(t,e,n){var r,i,a,o,s,c;this.a=t,this.b=e,this.c=n,this.e=a6(Tst(Hw(are,1),$Vt,168,0,[new OT(t,e),new OT(e,n),new OT(n,t)])),this.f=a6(Tst(Hw(EEe,1),cWt,8,0,[t,e,n])),this.d=(r=zP(QM(this.b),this.a),i=zP(QM(this.c),this.a),a=zP(QM(this.c),this.b),o=r.a*(this.a.a+this.b.a)+r.b*(this.a.b+this.b.b),s=i.a*(this.a.a+this.c.a)+i.b*(this.a.b+this.c.b),c=2*(r.a*a.b-r.b*a.a),new O_((i.b*o-r.b*s)/c,(r.a*s-i.a*o)/c))}function ZUt(t,e,n,r){var i,a,o,s,c,l,u,h,f;if(h=new HX(t.p),net(e,t8t,h),n&&!(t.f?nY(t.f):null).a.dc())for(net(e,"logs",l=new Tf),s=0,f=new $d((t.f?nY(t.f):null).b.Kc());f.b.Ob();)u=new HX(xN(f.b.Pb())),dtt(l,s),n4(l,s,u),++s;if(r&&net(e,"executionTime",new xf(t.q)),!nY(t.a).a.dc())for(o=new Tf,net(e,L6t,o),s=0,a=new $d(nY(t.a).b.Kc());a.b.Ob();)i=Q$(a.b.Pb(),1949),c=new gy,dtt(o,s),n4(o,s,c),ZUt(i,c,n,r),++s}function t$t(t,e){var n,r,i,a,o,s;for(a=t.c,o=t.d,xZ(t,null),CZ(t,null),e&&$y(kN(bEt(o,(lVt(),Zhe))))?xZ(t,NQt(o.i,(art(),$be),(yGt(),oSe))):xZ(t,o),e&&$y(kN(bEt(a,(lVt(),vfe))))?CZ(t,NQt(a.i,(art(),Ube),(yGt(),TSe))):CZ(t,a),r=new Gd(t.b);r.a<r.c.c.length;)n=Q$(J1(r),70),(i=Q$(bEt(n,($Xt(),Wge)),272))==(Net(),zBe)?lct(n,Wge,KBe):i==KBe&&lct(n,Wge,zBe);s=$y(kN(bEt(t,(lVt(),Tfe)))),lct(t,Tfe,(cD(),!s)),t.a=Yct(t.a)}function e$t(t,n,r){var i,a,o,s,c;for(i=0,o=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));o.e!=o.i.gc();)s="",0==(!(a=Q$(ymt(o),33)).n&&(a.n=new tG(HLe,a,1,7)),a.n).i||(s=Q$(Xet((!a.n&&(a.n=new tG(HLe,a,1,7)),a.n),0),137).a),Hot(c=new $X(s),a),lct(c,(xit(),soe),a),c.b=i++,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),G$(n.e,c),w_t(r.f,a,c),Q$(JIt(a,(uPt(),Wae)),98),WCt()}function n$t(t,n){var r,i,a,o,s,c,l,u,h,f,d;r=SD(new $b,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,u=h.a.b,c.b||(o+=s.n.b),f.b||(u+=h.n.b),l=TJ(e.Math.max(0,o-u)),a=TJ(e.Math.max(0,u-o)),d=e.Math.max(1,Q$(bEt(n,($Xt(),hme)),19).a)*z3(n.c.i.k,n.d.i.k),i=new JB(zDt(iE(rE(nE(aE(new Ub,d),a),r),Q$(FX(t.k,n.c),121))),zDt(iE(rE(nE(aE(new Ub,d),l),r),Q$(FX(t.k,n.d),121)))),t.c[n.p]=i}function r$t(t,e,n,r){var i,a,o,s,c,l;for(o=new oKt(t,e,n),c=new C2(r,0),i=!1;c.b<c.d.gc();)EF(c.b<c.d.gc()),(s=Q$(c.d.Xb(c.c=c.b++),233))==e||s==n?lV(c):!i&&Hy(uO(s.g,s.d[0]).a)>Hy(uO(o.g,o.d[0]).a)?(EF(c.b>0),c.a.Xb(c.c=--c.b),bP(c,o),i=!0):s.e&&s.e.gc()>0&&(a=(!s.e&&(s.e=new Mm),s.e).Mc(e),l=(!s.e&&(s.e=new Mm),s.e).Mc(n),(a||l)&&((!s.e&&(s.e=new Mm),s.e).Fc(o),++o.c));i||(r.c[r.c.length]=o)}function i$t(t){var e,n,r;if(pI(Q$(bEt(t,($Xt(),tme)),98)))for(n=new Gd(t.j);n.a<n.c.c.length;)(e=Q$(J1(n),11)).j==(yGt(),ESe)&&((r=Q$(bEt(e,(lVt(),wfe)),10))?H_t(e,Q$(bEt(r,Vhe),61)):e.e.c.length-e.g.c.length<0?H_t(e,oSe):H_t(e,TSe));else{for(n=new Gd(t.j);n.a<n.c.c.length;)e=Q$(J1(n),11),(r=Q$(bEt(e,(lVt(),wfe)),10))?H_t(e,Q$(bEt(r,Vhe),61)):e.e.c.length-e.g.c.length<0?H_t(e,(yGt(),oSe)):H_t(e,(yGt(),TSe));lct(t,tme,(WCt(),X_e))}}function a$t(t){var e,n;switch(t){case 91:case 93:case 45:case 94:case 44:case 92:n="\\"+String.fromCharCode(t&WWt);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=t<32?"\\x"+lF(e="0"+(t>>>0).toString(16),e.length-2,e.length):t>=Uqt?"\\v"+lF(e="0"+(t>>>0).toString(16),e.length-6,e.length):""+String.fromCharCode(t&WWt)}return n}function o$t(t,e){var n,r,i,a,o,s,c,l,u,h;if(o=t.e,0==(c=e.e))return t;if(0==o)return 0==e.e?e:new uG(-e.e,e.d,e.a);if((a=t.d)+(s=e.d)==2)return n=t0(t.a[0],zqt),r=t0(e.a[0],zqt),o<0&&(n=y9(n)),c<0&&(r=y9(r)),Zpt(ndt(n,r));if(-1==(i=a!=s?a>s?1:-1:xlt(t.a,e.a,a)))h=-c,u=o==c?d6(e.a,s,t.a,a):M8(e.a,s,t.a,a);else if(h=o,o==c){if(0==i)return SNt(),ene;u=d6(t.a,a,e.a,s)}else u=M8(t.a,a,e.a,s);return z0(l=new uG(h,u.length,u)),l}function s$t(t){var e,n,r,i,a,o;for(this.e=new Mm,this.a=new Mm,n=t.b-1;n<3;n++)NF(t,0,Q$(Fmt(t,0),8));if(t.b<4)throw Um(new Py("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,_Mt(this,t.b+this.b-1),o=new Mm,a=new Gd(this.e),e=0;e<this.b-1;e++)G$(o,CN(J1(a)));for(i=cmt(t,0);i.b!=i.d.c;)r=Q$(h3(i),8),G$(o,CN(J1(a))),G$(this.a,new fJ(r,o)),u1(0,o.c.length),o.c.splice(0,1)}function c$t(t,e){var n,r,i,a,o,s,c;for(i=new Gd(t.b);i.a<i.c.c.length;)for(o=new Gd(Q$(J1(i),29).a);o.a<o.c.c.length;)for((a=Q$(J1(o),10)).k==(oTt(),xse)&&(s=Q$(K5(new oz(YO(udt(a).a.Kc(),new u))),17),c=Q$(K5(new oz(YO(hdt(a).a.Kc(),new u))),17),lUt(a,$y(kN(bEt(s,(lVt(),Tfe))))&&$y(kN(bEt(c,Tfe)))?Gst(e):e)),r=new oz(YO(hdt(a).a.Kc(),new u));AIt(r);)mst(n=Q$(K5(r),17),$y(kN(bEt(n,(lVt(),Tfe))))?Gst(e):e)}function l$t(t,e,n,r,i){var a,o;if(n.f>=e.o&&n.f<=e.f||.5*e.a<=n.f&&1.5*e.a>=n.f){if((a=Q$(Oj(e.n,e.n.c.length-1),211)).e+a.d+n.g+i<=r&&(Q$(Oj(e.n,e.n.c.length-1),211).f-t.f+n.f<=t.b||1==t.a.c.length))return vdt(e,n),!0;if(e.s+n.g<=r&&(e.t+e.d+n.f+i<=t.b||1==t.a.c.length))return G$(e.b,n),o=Q$(Oj(e.n,e.n.c.length-1),211),G$(e.n,new FJ(e.s,o.f+o.a+e.i,e.i)),cvt(Q$(Oj(e.n,e.n.c.length-1),211),n),UUt(e,n),!0}return!1}function u$t(t,e,n){var r,i,a,o;return t.ej()?(i=null,a=t.fj(),r=t.Zi(1,o=ott(t,e,n),n,e,a),t.bj()&&!(t.ni()&&null!=o?Oht(o,n):HS(o)===HS(n))?(null!=o&&(i=t.dj(o,i)),i=t.cj(n,i),t.ij()&&(i=t.lj(o,n,i)),i?(i.Ei(r),i.Fi()):t.$i(r)):(t.ij()&&(i=t.lj(o,n,i)),i?(i.Ei(r),i.Fi()):t.$i(r)),o):(o=ott(t,e,n),t.bj()&&!(t.ni()&&null!=o?Oht(o,n):HS(o)===HS(n))&&(i=null,null!=o&&(i=t.dj(o,null)),(i=t.cj(n,i))&&i.Fi()),o)}function h$t(t,n){var r,i,a,o,s,c,l;n%=24,t.q.getHours()!=n&&((r=new e.Date(t.q.getTime())).setDate(r.getDate()+1),(s=t.q.getTimezoneOffset()-r.getTimezoneOffset())>0&&(c=s/60|0,l=s%60,i=t.q.getDate(),t.q.getHours()+c>=24&&++i,a=new e.Date(t.q.getFullYear(),t.q.getMonth(),i,n+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()!=n&&t.q.setTime(o)}function f$t(t,e){var n,r,i,a;if(Sxt(e,"Path-Like Graph Wrapping",1),0!=t.b.c.length)if(null==(i=new xIt(t)).i&&(i.i=Xit(i,new wa)),n=Hy(i.i)*i.f/(null==i.i&&(i.i=Xit(i,new wa)),Hy(i.i)),i.b>n)$Tt(e);else{switch(Q$(bEt(t,($Xt(),Qme)),337).g){case 2:a=new xa;break;case 0:a=new Aa;break;default:a=new Ea}if(r=a.Vf(t,i),!a.Wf())switch(Q$(bEt(t,zme),338).g){case 2:r=G_t(i,r);break;case 1:r=Pxt(i,r)}njt(t,i,r),$Tt(e)}else $Tt(e)}function d$t(t,e){var n,r,i,a;if(l1(t.d,t.e),t.c.a.$b(),0!=Hy(CN(bEt(e.j,($Xt(),Bge))))||0!=Hy(CN(bEt(e.j,Bge))))for(n=JJt,HS(bEt(e.j,Ige))!==HS((bct(),Mbe))&&lct(e.j,(lVt(),qhe),(cD(),!0)),a=Q$(bEt(e.j,Ome),19).a,i=0;i<a&&!((r=gUt(t,e))<n&&(n=r,Mit(t),0==n));i++);else for(n=FVt,HS(bEt(e.j,Ige))!==HS((bct(),Mbe))&&lct(e.j,(lVt(),qhe),(cD(),!0)),a=Q$(bEt(e.j,Ome),19).a,i=0;i<a&&!((r=pUt(t,e))<n&&(n=r,Mit(t),0==n));i++);}function A$t(t,e){var n,r,i,a,o,s;for(i=new Mm,a=0,n=0,o=0;a<e.c.length-1&&n<t.gc();){for(r=Q$(t.Xb(n),19).a+o;(u1(a+1,e.c.length),Q$(e.c[a+1],19)).a<r;)++a;for(s=0,r-(u1(a,e.c.length),Q$(e.c[a],19)).a>(u1(a+1,e.c.length),Q$(e.c[a+1],19)).a-r&&++s,G$(i,(u1(a+s,e.c.length),Q$(e.c[a+s],19))),o+=(u1(a+s,e.c.length),Q$(e.c[a+s],19)).a-r,++n;n<t.gc()&&Q$(t.Xb(n),19).a+o<=(u1(a+s,e.c.length),Q$(e.c[a+s],19)).a;)++n;a+=1+s}return i}function g$t(t){var e,n,r,i,a;if(!t.d){if(a=new Bc,null==(e=xMe).a.zc(t,e)){for(n=new SO(vY(t));n.e!=n.i.gc();)gX(a,g$t(Q$(ymt(n),26)));e.a.Bc(t),e.a.gc()}for(i=a.i,!t.q&&(t.q=new tG(XIe,t,11,10)),r=new SO(t.q);r.e!=r.i.gc();++i)Q$(ymt(r),399);gX(a,(!t.q&&(t.q=new tG(XIe,t,11,10)),t.q)),iut(a),t.d=new ML((Q$(Xet(Vq((VX(),JIe).o),9),18),a.i),a.g),t.e=Q$(a.g,673),null==t.e&&(t.e=EMe),E5(t).b&=-17}return t.d}function p$t(t,e,n,r){var i,a,o,s,c,l;if(l=aFt(t.e.Tg(),e),c=0,i=Q$(t.g,119),YE(),Q$(e,66).Oj()){for(o=0;o<t.i;++o)if(a=i[o],l.rl(a.ak())){if(Oht(a,n))return c;++c}}else if(null!=n){for(s=0;s<t.i;++s)if(a=i[s],l.rl(a.ak())){if(Oht(n,a.dd()))return c;++c}if(r)for(c=0,o=0;o<t.i;++o)if(a=i[o],l.rl(a.ak())){if(HS(n)===HS(cN(t,Q$(a.dd(),56))))return c;++c}}else for(o=0;o<t.i;++o)if(a=i[o],l.rl(a.ak())){if(null==a.dd())return c;++c}return-1}function m$t(t,e,n,r,i){var a,o,s,c,l,u,h,f,d;for(xq(),mM(t,new Gs),o=j$(t),d=new Mm,f=new Mm,s=null,c=0;0!=o.b;)a=Q$(0==o.b?null:(EF(0!=o.b),Let(o,o.a.a)),157),!s||eK(s)*tK(s)/2<eK(a)*tK(a)?(s=a,d.c[d.c.length]=a):(c+=eK(a)*tK(a),f.c[f.c.length]=a,f.c.length>1&&(c>eK(s)*tK(s)/2||0==o.b)&&(h=new jet(f),u=eK(s)/tK(s),l=vXt(h,e,new hv,n,r,i,u),KP(vL(h.e),l),s=h,d.c[d.c.length]=h,c=0,f.c=O8(Lte,$Vt,1,0,5,1)));return gst(d,f),d}function b$t(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A,g;if(n.mh(e)&&(u=(d=e)?Q$(r,49).xh(d):null))if(g=n.bh(e,t.a),(A=e.t)>1||-1==A)if(h=Q$(g,69),f=Q$(u,69),h.dc())f.$b();else for(o=!!Bbt(e),a=0,s=t.a?h.Kc():h.Zh();s.Ob();)l=Q$(s.Pb(),56),(i=Q$(utt(t,l),56))?(o?-1==(c=f.Xc(i))?f.Xh(a,i):a!=c&&f.ji(a,i):f.Xh(a,i),++a):t.b&&!o&&(f.Xh(a,l),++a);else null==g?u.Wb(null):null==(i=utt(t,g))?t.b&&!Bbt(e)&&u.Wb(g):u.Wb(i)}function v$t(t,n){var r,i,a,o,s,c,l,h;for(r=new On,a=new oz(YO(udt(n).a.Kc(),new u));AIt(a);)if(!h5(i=Q$(K5(a),17))&&ext(c=i.c.i,zse)){if(-1==(h=VNt(t,c,zse,Kse)))continue;r.b=e.Math.max(r.b,h),!r.a&&(r.a=new Mm),G$(r.a,c)}for(s=new oz(YO(hdt(n).a.Kc(),new u));AIt(s);)if(!h5(o=Q$(K5(s),17))&&ext(l=o.d.i,Kse)){if(-1==(h=VNt(t,l,Kse,zse)))continue;r.d=e.Math.max(r.d,h),!r.c&&(r.c=new Mm),G$(r.c,l)}return r}function y$t(t){var e,n,r,i;if(ILt(),e=TJ(t),t<one.length)return one[e];if(t<=50)return oLt((SNt(),Zee),e);if(t<=VWt)return H5(oLt(ane[1],e),e);if(t>1e6)throw Um(new _y("power of ten too big"));if(t<=FVt)return H5(oLt(ane[1],e),e);for(i=r=oLt(ane[1],FVt),n=uot(t-FVt),e=TJ(t%FVt);Vut(n,FVt)>0;)i=Mtt(i,r),n=ndt(n,FVt);for(i=H5(i=Mtt(i,oLt(ane[1],e)),FVt),n=uot(t-FVt);Vut(n,FVt)>0;)i=H5(i,FVt),n=ndt(n,FVt);return i=H5(i,e)}function w$t(t,e){var n,r,i,a,o,s,c,l;for(Sxt(e,"Hierarchical port dummy size processing",1),s=new Mm,l=new Mm,n=2*Hy(CN(bEt(t,($Xt(),vme)))),i=new Gd(t.b);i.a<i.c.c.length;){for(r=Q$(J1(i),29),s.c=O8(Lte,$Vt,1,0,5,1),l.c=O8(Lte,$Vt,1,0,5,1),o=new Gd(r.a);o.a<o.c.c.length;)(a=Q$(J1(o),10)).k==(oTt(),Cse)&&((c=Q$(bEt(a,(lVt(),Vhe)),61))==(yGt(),sSe)?s.c[s.c.length]=a:c==xSe&&(l.c[l.c.length]=a));$Lt(s,!0,n),$Lt(l,!1,n)}$Tt(e)}function k$t(t,e){var n,r,i,a,o;Sxt(e,"Layer constraint postprocessing",1),0!=(o=t.b).c.length&&(u1(0,o.c.length),RRt(t,Q$(o.c[0],29),Q$(Oj(o,o.c.length-1),29),n=new UX(t),i=new UX(t)),0==n.a.c.length||(IZ(0,o.c.length),CT(o.c,0,n)),0==i.a.c.length||(o.c[o.c.length]=i)),IF(t,(lVt(),Jhe))&&(vNt(t,r=new UX(t),a=new UX(t)),0==r.a.c.length||(IZ(0,o.c.length),CT(o.c,0,r)),0==a.a.c.length||(o.c[o.c.length]=a)),$Tt(e)}function C$t(t){var e,n,r,i,a,o,s,c;for(o=new Gd(t.a);o.a<o.c.c.length;)if((a=Q$(J1(o),10)).k==(oTt(),Cse)&&((i=Q$(bEt(a,(lVt(),Vhe)),61))==(yGt(),oSe)||i==TSe))for(r=new oz(YO(ldt(a).a.Kc(),new u));AIt(r);)0!=(e=(n=Q$(K5(r),17)).a).b&&((s=n.c).i==a&&(EF(0!=e.b),Q$(e.a.a.c,8).b=Lct(Tst(Hw(EEe,1),cWt,8,0,[s.i.n,s.n,s.a])).b),(c=n.d).i==a&&(EF(0!=e.b),Q$(e.c.b.c,8).b=Lct(Tst(Hw(EEe,1),cWt,8,0,[c.i.n,c.n,c.a])).b))}function x$t(t,e){var n,r,i,a,o,s,c;for(Sxt(e,"Sort By Input Model "+bEt(t,($Xt(),Ige)),1),i=0,r=new Gd(t.b);r.a<r.c.c.length;){for(n=Q$(J1(r),29),c=0==i?0:i-1,s=Q$(Oj(t.b,c),29),o=new Gd(n.a);o.a<o.c.c.length;)HS(bEt(a=Q$(J1(o),10),tme))!==HS((WCt(),K_e))&&HS(bEt(a,tme))!==HS(z_e)&&(xq(),mM(a.j,new _9(s,swt(a))),_H(e,"Node "+a+" ports: "+a.j));xq(),mM(n.a,new jit(s,Q$(bEt(t,Ige),339),Q$(bEt(t,Sge),378))),_H(e,"Layer "+i+": "+n),++i}$Tt(e)}function E$t(t,e){var n,r,i;if(i=yUt(e),qx(new Fj(null,(!e.c&&(e.c=new tG(KLe,e,9,9)),new f1(e.c,16))),new KA(i)),ozt(e,r=Q$(bEt(i,(lVt(),Yhe)),21)),r.Hc((fNt(),uhe)))for(n=new SO((!e.c&&(e.c=new tG(KLe,e,9,9)),e.c));n.e!=n.i.gc();)Wzt(t,e,i,Q$(ymt(n),118));return 0!=Q$(JIt(e,($Xt(),Rpe)),174).gc()&&bNt(e,i),$y(kN(bEt(i,zpe)))&&r.Fc(ghe),IF(i,Ame)&&Cy(new oAt(Hy(CN(bEt(i,Ame)))),i),HS(JIt(e,spe))===HS((oht(),g_e))?iVt(t,e,i):eXt(t,e,i),i}function T$t(t,n,r,i){var a,o,s;if(this.j=new Mm,this.k=new Mm,this.b=new Mm,this.c=new Mm,this.e=new hI,this.i=new vv,this.f=new Dm,this.d=new Mm,this.g=new Mm,G$(this.b,t),G$(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=Q$(bEt(i,($Xt(),ppe)),74))for(s=cmt(a,0);s.b!=s.d.c;)ant((o=Q$(h3(s),8)).a,t.a)&&DH(this.i,o);r&&G$(this.j,r),G$(this.k,i)}function B$t(t,e,n){var r,i,a,o,s,c,l,u,h,f;for(u=new zz(new OA(n)),pG(s=O8(SDe,JYt,25,t.f.e.c.length,16,1),s.length),n[e.b]=0,l=new Gd(t.f.e);l.a<l.c.c.length;)(c=Q$(J1(l),144)).b!=e.b&&(n[c.b]=FVt),R8(eEt(u,c));for(;0!=u.b.c.length;)for(s[(h=Q$(mtt(u),144)).b]=!0,a=pD(new mx(t.b,h),0);a.c;)s[(f=Ivt(i=Q$(wZ(a),282),h)).b]||(o=IF(i,(rwt(),goe))?Hy(CN(bEt(i,goe))):t.c,(r=n[h.b]+o)<n[f.b]&&(n[f.b]=r,cit(u,f),R8(eEt(u,f))))}function _$t(t,e,n){var r,i,a,o,s,c,l,u,h;for(i=!0,o=new Gd(t.b);o.a<o.c.c.length;){for(a=Q$(J1(o),29),l=Pqt,u=null,c=new Gd(a.a);c.a<c.c.c.length;){if(s=Q$(J1(c),10),h=Hy(e.p[s.p])+Hy(e.d[s.p])-s.d.d,r=Hy(e.p[s.p])+Hy(e.d[s.p])+s.o.b+s.d.a,!(h>l&&r>l)){i=!1,n.n&&_H(n,"bk node placement breaks on "+s+" which should have been after "+u);break}u=s,l=Hy(e.p[s.p])+Hy(e.d[s.p])+s.o.b+s.d.a}if(!i)break}return n.n&&_H(n,e+" is feasible: "+i),i}function S$t(t,e,n,r){var i,a,o,s,c,l,u;for(s=-1,u=new Gd(t);u.a<u.c.c.length;)(l=Q$(J1(u),112)).g=s--,o=i=dK(w2(MW(SW(new Fj(null,new f1(l.f,16)),new lo),new uo)).d),c=a=dK(w2(MW(SW(new Fj(null,new f1(l.k,16)),new ho),new fo)).d),r||(o=dK(w2(MW(new Fj(null,new f1(l.f,16)),new Ao)).d),c=dK(w2(MW(new Fj(null,new f1(l.k,16)),new go)).d)),l.d=o,l.a=i,l.i=c,l.b=a,0==c?n5(n,l,n.c.b,n.c):0==o&&n5(e,l,e.c.b,e.c)}function L$t(t,e,n,r){var i,a,o,s,c,l,u;if(n.d.i!=e.i){for(Qf(i=new Ibt(t),(oTt(),Ese)),lct(i,(lVt(),dfe),n),lct(i,($Xt(),tme),(WCt(),z_e)),r.c[r.c.length]=i,TZ(o=new BTt,i),H_t(o,(yGt(),TSe)),TZ(s=new BTt,i),H_t(s,oSe),u=n.d,CZ(n,o),Hot(a=new fY,n),lct(a,ppe,null),xZ(a,s),CZ(a,u),l=new C2(n.b,0);l.b<l.d.gc();)EF(l.b<l.d.gc()),HS(bEt(c=Q$(l.d.Xb(l.c=l.b++),70),Wge))===HS((Net(),KBe))&&(lct(c,Khe,n),lV(l),G$(a.b,c));vIt(i,o,s)}}function I$t(t,e,n,r){var i,a,o,s,c,l;if(n.c.i!=e.i)for(Qf(i=new Ibt(t),(oTt(),Ese)),lct(i,(lVt(),dfe),n),lct(i,($Xt(),tme),(WCt(),z_e)),r.c[r.c.length]=i,TZ(o=new BTt,i),H_t(o,(yGt(),TSe)),TZ(s=new BTt,i),H_t(s,oSe),CZ(n,o),Hot(a=new fY,n),lct(a,ppe,null),xZ(a,s),CZ(a,e),vIt(i,o,s),l=new C2(n.b,0);l.b<l.d.gc();)EF(l.b<l.d.gc()),c=Q$(l.d.Xb(l.c=l.b++),70),Q$(bEt(c,Wge),272)==(Net(),KBe)&&(IF(c,Khe)||lct(c,Khe,n),lV(l),G$(a.b,c))}function M$t(t,n,r,i,a){var o,s,c,l,u,h,f,d,A,g,p,m,b,v;for(f=new Mm,m=x4(i),p=n*t.a,A=0,o=new Fb,s=new Fb,c=new Mm,b=0,v=0,d=0,g=0,u=0,h=0;0!=m.a.gc();)(l=tdt(m,a,s))&&(m.a.Bc(l),c.c[c.c.length]=l,o.a.zc(l,o),A=t.f[l.p],b+=t.e[l.p]-A*t.b,v+=t.c[l.p]*t.b,h+=A*t.b,g+=t.e[l.p]),(!l||0==m.a.gc()||b>=p&&t.e[l.p]>A*t.b||v>=r*p)&&(f.c[f.c.length]=c,c=new Mm,Qit(s,o),o.a.$b(),u-=h,d=e.Math.max(d,u*t.b+g),u+=v,b=v,v=0,h=0,g=0);return new nS(d,f)}function O$t(t){var e,n,r,i,a,o,s,c,l,u,h,f;for(n=new Nd(new _d(t.c.b).a.vc().Kc());n.a.Ob();)s=Q$(n.a.Pb(),42),null==(i=(e=Q$(s.dd(),149)).a)&&(i=""),!(r=PN(t.c,i))&&0==i.length&&(r=vht(t)),r&&!vAt(r.c,e,!1)&&DH(r.c,e);for(o=cmt(t.a,0);o.b!=o.d.c;)a=Q$(h3(o),478),l=k5(t.c,a.a),f=k5(t.c,a.b),l&&f&&DH(l.c,new nS(f,a.c));for(bq(t.a),h=cmt(t.b,0);h.b!=h.d.c;)u=Q$(h3(h),478),e=NN(t.c,u.a),c=k5(t.c,u.b),e&&c&&DE(e,c,u.c);bq(t.b)}function D$t(t,e,n){var r,i,a,o,s,c,l,u,h,f,d;a=new Ef(t),d5((o=new Awt).g),d5(o.j),LG(o.b),d5(o.d),d5(o.i),LG(o.k),LG(o.c),LG(o.e),d=fSt(o,a,null),SMt(o,a),i=d,e&&(s=eHt(l=new Ef(e)),mTt(i,Tst(Hw(Jxe,1),$Vt,527,0,[s]))),f=!1,h=!1,n&&(l=new Ef(n),h8t in l.a&&(f=jJ(l,h8t).ge().a),f8t in l.a&&(h=jJ(l,f8t).ge().a)),u=Lk(Qnt(new zv,f),h),UTt(new us,i,u),h8t in a.a&&net(a,h8t,null),(f||h)&&(ZUt(u,c=new gy,f,h),net(a,h8t,c)),r=new zp(o),zct(new _I(i),r)}function F$t(t,e,n){var r,i,a,o,s,c,l,u,h;for(o=new qwt,l=Tst(Hw(_De,1),lqt,25,15,[0]),i=-1,a=0,r=0,c=0;c<t.b.c.length;++c){if(!((u=Q$(Oj(t.b,c),434)).b>0)){if(i=-1,32==lW(u.c,0)){if(h=l[0],btt(e,l),l[0]>h)continue}else if(LY(e,u.c,l[0])){l[0]+=u.c.length;continue}return 0}if(i<0&&u.a&&(i=c,a=l[0],r=0),i>=0){if(s=u.b,c==i&&0==(s-=r++))return 0;if(!MGt(e,l,u,s,o)){c=i-1,l[0]=a;continue}}else if(i=-1,!MGt(e,l,u,0,o))return 0}return AGt(o,n)?l[0]:0}function N$t(t){var e,n,r,i,a,o;if(!t.f){if(o=new Ec,a=new Ec,null==(e=xMe).a.zc(t,e)){for(i=new SO(vY(t));i.e!=i.i.gc();)gX(o,N$t(Q$(ymt(i),26)));e.a.Bc(t),e.a.gc()}for(!t.s&&(t.s=new tG(PIe,t,21,17)),r=new SO(t.s);r.e!=r.i.gc();)rO(n=Q$(ymt(r),170),99)&&l7(a,Q$(n,18));iut(a),t.r=new kH(t,(Q$(Xet(Vq((VX(),JIe).o),6),18),a.i),a.g),gX(o,t.r),iut(o),t.f=new ML((Q$(Xet(Vq(JIe.o),5),18),o.i),o.g),E5(t).b&=-3}return t.f}function P$t(t){var e,n,r,i,a,o,s,c,l,u,h,f,d,A;for(o=t.o,r=O8(_De,lqt,25,o,15,1),i=O8(_De,lqt,25,o,15,1),n=t.p,e=O8(_De,lqt,25,n,15,1),a=O8(_De,lqt,25,n,15,1),l=0;l<o;l++){for(h=0;h<n&&!mvt(t,l,h);)++h;r[l]=h}for(u=0;u<o;u++){for(h=n-1;h>=0&&!mvt(t,u,h);)--h;i[u]=h}for(d=0;d<n;d++){for(s=0;s<o&&!mvt(t,s,d);)++s;e[d]=s}for(A=0;A<n;A++){for(s=o-1;s>=0&&!mvt(t,s,A);)--s;a[A]=s}for(c=0;c<o;c++)for(f=0;f<n;f++)c<a[f]&&c>e[f]&&f<i[c]&&f>r[c]&&QPt(t,c,f,!1,!0)}function R$t(t){var e,n,r,i,a,o,s,c;n=$y(kN(bEt(t,(uPt(),Qae)))),a=t.a.c.d,s=t.a.d.d,n?(o=vO(zP(new O_(s.a,s.b),a),.5),c=vO(QM(t.e),.5),e=zP(KP(new O_(a.a,a.b),o),c),UF(t.d,e)):(i=Hy(CN(bEt(t.a,noe))),r=t.d,a.a>=s.a?a.b>=s.b?(r.a=s.a+(a.a-s.a)/2+i,r.b=s.b+(a.b-s.b)/2-i-t.e.b):(r.a=s.a+(a.a-s.a)/2+i,r.b=a.b+(s.b-a.b)/2+i):a.b>=s.b?(r.a=a.a+(s.a-a.a)/2+i,r.b=s.b+(a.b-s.b)/2+i):(r.a=a.a+(s.a-a.a)/2+i,r.b=a.b+(s.b-a.b)/2-i-t.e.b))}function Q$t(t,e){var n,r,i,a,o,s,c;if(null==t)return null;if(0==(a=t.length))return"";for(c=O8(BDe,XWt,25,a,15,1),P8(0,a,t.length),P8(0,a,c.length),WG(t,0,a,c,0),n=null,s=e,i=0,o=0;i<a;i++)r=c[i],kVt(),r<=32&&2&WOe[r]?s?(!n&&(n=new lD(t)),iY(n,i-o++)):(s=e,32!=r&&(!n&&(n=new lD(t)),sW(n,i-o,i-o+1,String.fromCharCode(32)))):s=!1;return s?n?(a=n.a.length)>0?lF(n.a,0,a-1):"":t.substr(0,a-1):n?n.a:t}function U$t(t){ME(t,new xxt(pk(fk(gk(Ak(new ps,zJt),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new ae))),a2(t,zJt,GJt,bmt(wae)),a2(t,zJt,XJt,bmt(gae)),a2(t,zJt,VJt,bmt(uae)),a2(t,zJt,WJt,bmt(pae)),a2(t,zJt,GYt,bmt(vae)),a2(t,zJt,XYt,bmt(bae)),a2(t,zJt,zYt,bmt(yae)),a2(t,zJt,VYt,bmt(mae)),a2(t,zJt,UJt,bmt(fae)),a2(t,zJt,$Jt,bmt(hae)),a2(t,zJt,HJt,bmt(dae)),a2(t,zJt,jJt,bmt(Aae))}function $$t(t,e,n,r){var i,a,o,s,c,l,u;if(Qf(a=new Ibt(t),(oTt(),Bse)),lct(a,($Xt(),tme),(WCt(),z_e)),i=0,e){for(lct(o=new BTt,(lVt(),dfe),e),lct(a,dfe,e.i),H_t(o,(yGt(),TSe)),TZ(o,a),l=0,u=(c=Y0(e.e)).length;l<u;++l)CZ(c[l],o);lct(e,wfe,a),++i}if(n){for(s=new BTt,lct(a,(lVt(),dfe),n.i),lct(s,dfe,n),H_t(s,(yGt(),oSe)),TZ(s,a),l=0,u=(c=Y0(n.g)).length;l<u;++l)xZ(c[l],s);lct(n,wfe,a),++i}return lct(a,(lVt(),Qhe),nft(i)),r.c[r.c.length]=a,a}function H$t(){H$t=L,_Le=Tst(Hw(BDe,1),XWt,25,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),SLe=new RegExp("[ \t\n\r\f]+");try{BLe=Tst(Hw(OMe,1),$Vt,2015,0,[new pm((sM(),cgt("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",lP((lw(),lw(),ree))))),new pm(cgt("yyyy-MM-dd'T'HH:mm:ss'.'SSS",lP(ree))),new pm(cgt("yyyy-MM-dd'T'HH:mm:ss",lP(ree))),new pm(cgt("yyyy-MM-dd'T'HH:mm",lP(ree))),new pm(cgt("yyyy-MM-dd",lP(ree)))])}catch(t){if(!rO(t=hst(t),78))throw Um(t)}}function j$t(t){var n,r,i,a;if(i=HXt((!t.c&&(t.c=vut(t.f)),t.c),0),0==t.e||0==t.a&&-1!=t.f&&t.e<0)return i;if(n=nrt(t)<0?1:0,r=t.e,i.length,e.Math.abs(TJ(t.e)),a=new Bw,1==n&&(a.a+="-"),t.e>0)if((r-=i.length-n)>=0){for(a.a+="0.";r>Hee.length;r-=Hee.length)Mj(a,Hee);AP(a,Hee,TJ(r)),oL(a,i.substr(n))}else oL(a,lF(i,n,TJ(r=n-r))),a.a+=".",oL(a,JS(i,TJ(r)));else{for(oL(a,i.substr(n));r<-Hee.length;r+=Hee.length)Mj(a,Hee);AP(a,Hee,TJ(-r))}return a.a}function K$t(t,n,r,i){var a,o,s,c,l,u,h,f,d;return u=(l=zP(new O_(r.a,r.b),t)).a*n.b-l.b*n.a,h=n.a*i.b-n.b*i.a,f=(l.a*i.b-l.b*i.a)/h,d=u/h,0==h?0==u?(o=G8(t,a=KP(new O_(r.a,r.b),vO(new O_(i.a,i.b),.5))),s=G8(KP(new O_(t.a,t.b),n),a),c=.5*e.Math.sqrt(i.a*i.a+i.b*i.b),o<s&&o<=c?new O_(t.a,t.b):s<=c?KP(new O_(t.a,t.b),n):null):null:f>=0&&f<=1&&d>=0&&d<=1?KP(new O_(t.a,t.b),vO(new O_(n.a,n.b),f)):null}function z$t(t,e,n){var r,i,a,o,s;if(r=Q$(bEt(t,($Xt(),Mge)),21),n.a>e.a&&(r.Hc((dCt(),GEe))?t.c.a+=(n.a-e.a)/2:r.Hc(VEe)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(r.Hc((dCt(),qEe))?t.c.b+=(n.b-e.b)/2:r.Hc(WEe)&&(t.c.b+=n.b-e.b)),Q$(bEt(t,(lVt(),Yhe)),21).Hc((fNt(),uhe))&&(n.a>e.a||n.b>e.b))for(s=new Gd(t.a);s.a<s.c.c.length;)(o=Q$(J1(s),10)).k==(oTt(),Cse)&&((i=Q$(bEt(o,Vhe),61))==(yGt(),oSe)?o.n.a+=n.a-e.a:i==xSe&&(o.n.b+=n.b-e.b));a=t.d,t.f.a=n.a-a.b-a.c,t.f.b=n.b-a.d-a.a}function G$t(t,e,n){var r,i,a,o,s;if(r=Q$(bEt(t,($Xt(),Mge)),21),n.a>e.a&&(r.Hc((dCt(),GEe))?t.c.a+=(n.a-e.a)/2:r.Hc(VEe)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(r.Hc((dCt(),qEe))?t.c.b+=(n.b-e.b)/2:r.Hc(WEe)&&(t.c.b+=n.b-e.b)),Q$(bEt(t,(lVt(),Yhe)),21).Hc((fNt(),uhe))&&(n.a>e.a||n.b>e.b))for(o=new Gd(t.a);o.a<o.c.c.length;)(a=Q$(J1(o),10)).k==(oTt(),Cse)&&((i=Q$(bEt(a,Vhe),61))==(yGt(),oSe)?a.n.a+=n.a-e.a:i==xSe&&(a.n.b+=n.b-e.b));s=t.d,t.f.a=n.a-s.b-s.c,t.f.b=n.b-s.d-s.a}function X$t(t){var n,r,i,a,o,s,c,l,u,h;for(l=new Bd(new Td(DLt(t)).a.vc().Kc());l.a.Ob();){for(i=Q$(l.a.Pb(),42),u=0,h=0,u=(c=Q$(i.cd(),10)).d.d,h=c.o.b+c.d.a,t.d[c.p]=0,n=c;(a=t.a[n.p])!=c;)r=xpt(n,a),s=0,s=t.c==(AJ(),Jve)?r.d.n.b+r.d.a.b-r.c.n.b-r.c.a.b:r.c.n.b+r.c.a.b-r.d.n.b-r.d.a.b,o=Hy(t.d[n.p])+s,t.d[a.p]=o,u=e.Math.max(u,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]=Hy(t.d[n.p])+u,n=t.a[n.p]}while(n!=c);t.b[c.p]=u+h}}function V$t(t){var n,r,i,a,o,s,c,l,u,h,f;for(t.b=!1,h=Nqt,c=Pqt,f=Nqt,l=Pqt,r=t.e.a.ec().Kc();r.Ob();)for(i=(n=Q$(r.Pb(),266)).a,h=e.Math.min(h,i.c),c=e.Math.max(c,i.c+i.b),f=e.Math.min(f,i.d),l=e.Math.max(l,i.d+i.a),o=new Gd(n.c);o.a<o.c.c.length;)(a=Q$(J1(o),395)).a.a?(s=(u=i.d+a.b.b)+a.c,f=e.Math.min(f,u),l=e.Math.max(l,s)):(s=(u=i.c+a.b.a)+a.c,h=e.Math.min(h,u),c=e.Math.max(c,s));t.a=new O_(c-h,l-f),t.c=new O_(h+t.d.a,f+t.d.b)}function W$t(t,e,n){var r,i,a,o,s,c,l,u;for(u=new Mm,a=0,trt(l=new O0(0,n),new alt(0,0,l,n)),i=0,c=new SO(t);c.e!=c.i.gc();)s=Q$(ymt(c),33),r=Q$(Oj(l.a,l.a.c.length-1),187),i+s.g+(0==Q$(Oj(l.a,0),187).b.c.length?0:n)>e&&(i=0,a+=l.b+n,u.c[u.c.length]=l,trt(l=new O0(a,n),r=new alt(0,l.f,l,n)),i=0),0==r.b.c.length||s.f>=r.o&&s.f<=r.f||.5*r.a<=s.f&&1.5*r.a>=s.f?vdt(r,s):(trt(l,o=new alt(r.s+r.r+n,l.f,l,n)),vdt(o,s)),i=s.i+s.g;return u.c[u.c.length]=l,u}function q$t(t){var e,n,r,i,a,o;if(!t.a){if(t.o=null,o=new Am(t),e=new Tc,null==(n=xMe).a.zc(t,n)){for(a=new SO(vY(t));a.e!=a.i.gc();)gX(o,q$t(Q$(ymt(a),26)));n.a.Bc(t),n.a.gc()}for(!t.s&&(t.s=new tG(PIe,t,21,17)),i=new SO(t.s);i.e!=i.i.gc();)rO(r=Q$(ymt(i),170),322)&&l7(e,Q$(r,34));iut(e),t.k=new wH(t,(Q$(Xet(Vq((VX(),JIe).o),7),18),e.i),e.g),gX(o,t.k),iut(o),t.a=new ML((Q$(Xet(Vq(JIe.o),4),18),o.i),o.g),E5(t).b&=-2}return t.a}function Y$t(t,e,n,r,i,a,o){var s,c,l,u,h;return u=!1,s=ADt(n.q,e.f+e.b-n.q.f),!((h=i-(n.q.e+s-o))<r.g)&&(c=a==t.c.length-1&&h>=(u1(a,t.c.length),Q$(t.c[a],200)).e,!((l=iHt(r,h,!1).a)>e.b&&!c)&&((c||l<=e.b)&&(c&&l>e.b?(n.d=l,g7(n,QTt(n,l))):(aCt(n.q,s),n.c=!0),g7(r,i-(n.s+n.r)),Cbt(r,n.q.e+n.q.d,e.f),trt(e,r),t.c.length>a&&(Cwt((u1(a,t.c.length),Q$(t.c[a],200)),r),0==(u1(a,t.c.length),Q$(t.c[a],200)).a.c.length&&s6(t,a)),u=!0),u))}function J$t(t,e,n,r){var i,a,o,s,c,l,u;if(u=aFt(t.e.Tg(),e),i=0,a=Q$(t.g,119),c=null,YE(),Q$(e,66).Oj()){for(s=0;s<t.i;++s)if(o=a[s],u.rl(o.ak())){if(Oht(o,n)){c=o;break}++i}}else if(null!=n){for(s=0;s<t.i;++s)if(o=a[s],u.rl(o.ak())){if(Oht(n,o.dd())){c=o;break}++i}}else for(s=0;s<t.i;++s)if(o=a[s],u.rl(o.ak())){if(null==o.dd()){c=o;break}++i}return c&&(mI(t.e)&&(l=e.$j()?new h4(t.e,4,e,n,null,i,!0):IY(t,e.Kj()?2:1,e,n,e.zj(),-1,!0),r?r.Ei(l):r=l),r=CRt(t,c,r)),r}function Z$t(t,n,r,i,a,o,s){var c,l,u,h,f,d,A,g;switch(A=0,g=0,l=a.c,c=a.b,h=r.f,d=r.g,n.g){case 0:A=i.i+i.g+s,g=t.c?gxt(A,o,i,s):i.j,f=e.Math.max(l,A+d),u=e.Math.max(c,g+h);break;case 1:g=i.j+i.f+s,A=t.c?Axt(g,o,i,s):i.i,f=e.Math.max(l,A+d),u=e.Math.max(c,g+h);break;case 2:A=l+s,g=0,f=l+s+d,u=e.Math.max(c,h);break;case 3:A=0,g=c+s,f=e.Math.max(l,d),u=c+s+h;break;default:throw Um(new Py("IllegalPlacementOption."))}return new aAt(t.a,f,u,n,A,g)}function tHt(t){var n,r,i,a,o,s,c,l,u,h,f,d;if(c=t.d,f=Q$(bEt(t,(lVt(),Nfe)),15),n=Q$(bEt(t,Dhe),15),f||n){if(o=Hy(CN(egt(t,($Xt(),gme)))),s=Hy(CN(egt(t,pme))),d=0,f){for(u=0,a=f.Kc();a.Ob();)i=Q$(a.Pb(),10),u=e.Math.max(u,i.o.b),d+=i.o.a;d+=o*(f.gc()-1),c.d+=u+s}if(r=0,n){for(u=0,a=n.Kc();a.Ob();)i=Q$(a.Pb(),10),u=e.Math.max(u,i.o.b),r+=i.o.a;r+=o*(n.gc()-1),c.a+=u+s}(l=e.Math.max(d,r))>t.o.a&&(h=(l-t.o.a)/2,c.b=e.Math.max(c.b,h),c.c=e.Math.max(c.c,h))}}function eHt(t){var e,n,r,i,a,o;for(rI(i=new F0,(Ost(),qxe)),r=new xd(new qy(new kx(t,wit(t,O8(Wee,cWt,2,0,6,1))).b));r.b<r.d.gc();)EF(r.b<r.d.gc()),n=xN(r.d.Xb(r.c=r.b++)),(a=pKt(lIe,n))&&null!=(o=Jjt(a,(e=jJ(t,n)).je()?e.je().a:e.ge()?""+e.ge().a:e.he()?""+e.he().a:e.Ib()))&&((xD(a.j,(rmt(),sEe))||xD(a.j,cEe))&&cct(Wtt(i,jLe),a,o),xD(a.j,aEe)&&cct(Wtt(i,NLe),a,o),xD(a.j,lEe)&&cct(Wtt(i,KLe),a,o),xD(a.j,oEe)&&cct(Wtt(i,HLe),a,o));return i}function nHt(t,e,n,r){var i,a,o,s,c,l;if(c=aFt(t.e.Tg(),e),a=Q$(t.g,119),IFt(t.e,e)){for(i=0,s=0;s<t.i;++s)if(o=a[s],c.rl(o.ak())){if(i==n)return YE(),Q$(e,66).Oj()?o:(null!=(l=o.dd())&&r&&rO(e,99)&&Q$(e,18).Bb&Uqt&&(l=QSt(t,e,s,i,l)),l);++i}throw Um(new Sy(e7t+n+s8t+i))}for(i=0,s=0;s<t.i;++s){if(o=a[s],c.rl(o.ak()))return YE(),Q$(e,66).Oj()?o:(null!=(l=o.dd())&&r&&rO(e,99)&&Q$(e,18).Bb&Uqt&&(l=QSt(t,e,s,i,l)),l);++i}return e.zj()}function rHt(t,e,n){var r,i,a,o,s,c,l,u;if(i=Q$(t.g,119),IFt(t.e,e))return YE(),Q$(e,66).Oj()?new uj(e,t):new OS(e,t);for(l=aFt(t.e.Tg(),e),r=0,s=0;s<t.i;++s){if(o=(a=i[s]).ak(),l.rl(o)){if(YE(),Q$(e,66).Oj())return a;if(o==(CLt(),cOe)||o==aOe){for(c=new uD(Udt(a.dd()));++s<t.i;)((o=(a=i[s]).ak())==cOe||o==aOe)&&oL(c,Udt(a.dd()));return AR(Q$(e.Yj(),148),c.a)}return null!=(u=a.dd())&&n&&rO(e,99)&&Q$(e,18).Bb&Uqt&&(u=QSt(t,e,s,r,u)),u}++r}return e.zj()}function iHt(t,n,r){var i,a,o,s,c,l,u,h,f,d;for(o=0,s=t.t,a=0,i=0,l=0,d=0,f=0,r&&(t.n.c=O8(Lte,$Vt,1,0,5,1),G$(t.n,new FJ(t.s,t.t,t.i))),c=0,h=new Gd(t.b);h.a<h.c.c.length;)o+(u=Q$(J1(h),33)).g+(c>0?t.i:0)>n&&l>0&&(o=0,s+=l+t.i,a=e.Math.max(a,d),i+=l+t.i,l=0,d=0,r&&(++f,G$(t.n,new FJ(t.s,s,t.i))),c=0),d+=u.g+(c>0?t.i:0),l=e.Math.max(l,u.f),r&&cvt(Q$(Oj(t.n,f),211),u),o+=u.g+(c>0?t.i:0),++c;return a=e.Math.max(a,d),i+=l,r&&(t.r=a,t.d=i,vyt(t.j)),new KW(t.s,t.t,a,i)}function aHt(t,e,n,r,i){var a,o,s,c,l,u,h,f,d;if(Lx(),xG(t,"src"),xG(n,"dest"),f=tlt(t),c=tlt(n),gH(!!(4&f.i),"srcType is not an array"),gH(!!(4&c.i),"destType is not an array"),h=f.c,o=c.c,gH(1&h.i?h==o:!(1&o.i),"Array types don't match"),d=t.length,l=n.length,e<0||r<0||i<0||e+i>d||r+i>l)throw Um(new lb);if(1&h.i||f==c)i>0&&R_t(t,e,n,r,i,!0);else if(u=ent(t),a=ent(n),HS(t)===HS(n)&&e<r)for(e+=i,s=r+i;s-- >r;)LX(a,s,u[--e]);else for(s=r+i;r<s;)LX(a,r++,u[e++])}function oHt(){oHt=L,rne=Tst(Hw(_De,1),lqt,25,15,[RWt,1162261467,SWt,1220703125,362797056,1977326743,SWt,387420489,Lqt,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,SWt,1291467969,1544804416,1838265625,60466176]),ine=Tst(Hw(_De,1),lqt,25,15,[-1,-1,31,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])}function sHt(t){var e,n,r,i,a,o,s;for(r=new Gd(t.b);r.a<r.c.c.length;)for(a=new Gd(i0(Q$(J1(r),29).a));a.a<a.c.c.length;)if(Ytt(i=Q$(J1(a),10))&&!(n=Q$(bEt(i,(lVt(),Fhe)),305)).g&&n.d)for(e=n,s=n.d;s;)ePt(s.i,s.k,!1,!0),S9(e.a),S9(s.i),S9(s.k),S9(s.b),CZ(s.c,e.c.d),CZ(e.c,null),EZ(e.a,null),EZ(s.i,null),EZ(s.k,null),EZ(s.b,null),(o=new p3(e.i,s.a,e.e,s.j,s.f)).k=e.k,o.n=e.n,o.b=e.b,o.c=s.c,o.g=e.g,o.d=s.d,lct(e.i,Fhe,o),lct(s.a,Fhe,o),s=s.d,e=o}function cHt(t,e){var n,r,i,a,o;if(o=Q$(e,136),CMt(t),CMt(o),null!=o.b){if(t.c=!0,null==t.b)return t.b=O8(_De,lqt,25,o.b.length,15,1),void aHt(o.b,0,t.b,0,o.b.length);for(a=O8(_De,lqt,25,t.b.length+o.b.length,15,1),n=0,r=0,i=0;n<t.b.length||r<o.b.length;)n>=t.b.length?(a[i++]=o.b[r++],a[i++]=o.b[r++]):r>=o.b.length?(a[i++]=t.b[n++],a[i++]=t.b[n++]):o.b[r]<t.b[n]||o.b[r]===t.b[n]&&o.b[r+1]<t.b[n+1]?(a[i++]=o.b[r++],a[i++]=o.b[r++]):(a[i++]=t.b[n++],a[i++]=t.b[n++]);t.b=a}}function lHt(t,e){var n,r,i,a,o,s,c,l,u,h;return n=$y(kN(bEt(t,(lVt(),sfe)))),s=$y(kN(bEt(e,sfe))),r=Q$(bEt(t,cfe),11),c=Q$(bEt(e,cfe),11),i=Q$(bEt(t,lfe),11),l=Q$(bEt(e,lfe),11),u=!!r&&r==c,h=!!i&&i==l,n||s?(a=(!$y(kN(bEt(t,sfe)))||$y(kN(bEt(t,ofe))))&&(!$y(kN(bEt(e,sfe)))||$y(kN(bEt(e,ofe)))),o=!($y(kN(bEt(t,sfe)))&&$y(kN(bEt(t,ofe)))||$y(kN(bEt(e,sfe)))&&$y(kN(bEt(e,ofe)))),new FQ(u&&a||h&&o,u,h)):new FQ(Q$(J1(new Gd(t.j)),11).p==Q$(J1(new Gd(e.j)),11).p,u,h)}function uHt(t){var n,r,i,a,o,s,c,l;for(i=0,r=0,l=new Wx,n=0,c=new Gd(t.n);c.a<c.c.c.length;)0==(s=Q$(J1(c),211)).c.c.length?n5(l,s,l.c.b,l.c):(i=e.Math.max(i,s.d),r+=s.a+(n>0?t.i:0)),++n;for(Zdt(t.n,l),t.d=r,t.r=i,t.g=0,t.f=0,t.e=0,t.o=Nqt,t.p=Nqt,o=new Gd(t.b);o.a<o.c.c.length;)a=Q$(J1(o),33),t.p=e.Math.min(t.p,a.g),t.g=e.Math.max(t.g,a.g),t.f=e.Math.max(t.f,a.f),t.o=e.Math.min(t.o,a.f),t.e+=a.f+t.i;t.a=t.e/t.b.c.length-t.i*((t.b.c.length-1)/t.b.c.length),vyt(t.j)}function hHt(t){var e,n,r,i;return 64&t.Db?qft(t):(e=new uD(V5t),(r=t.k)?oL(oL((e.a+=' "',e),r),'"'):(!t.n&&(t.n=new tG(HLe,t,1,7)),t.n.i>0&&(!(i=(!t.n&&(t.n=new tG(HLe,t,1,7)),Q$(Xet(t.n,0),137)).a)||oL(oL((e.a+=' "',e),i),'"'))),!t.b&&(t.b=new cR(FLe,t,4,7)),n=!(t.b.i<=1&&(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c.i<=1)),e.a+=n?" [":" ",oL(e,qO(new mw,new SO(t.b))),n&&(e.a+="]"),e.a+=e1t,n&&(e.a+="["),oL(e,qO(new mw,new SO(t.c))),n&&(e.a+="]"),e.a)}function fHt(t,e){var n,r,i,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=HL(o,qxt(91)))?(c=o.substr(a),e.a+=""+lF(null==o?KVt:(vV(o),o),0,a)):e.a+=""+o),t.d&&0!=t.d.i){for(i=!0,e.a+="<",r=new SO(t.d);r.e!=r.i.gc();)n=Q$(ymt(r),87),i?i=!1:e.a+=QVt,fHt(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 ",fHt(t.b,e)):t.f&&(e.a+=" extends ",fHt(t.f,e)))}function dHt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E;for(y=t.c,w=e.c,n=w9(y.a,t,0),r=w9(w.a,e,0),b=Q$(DAt(t,(art(),Ube)).Kc().Pb(),11),x=Q$(DAt(t,$be).Kc().Pb(),11),v=Q$(DAt(e,Ube).Kc().Pb(),11),E=Q$(DAt(e,$be).Kc().Pb(),11),p=Y0(b.e),k=Y0(x.g),m=Y0(v.e),C=Y0(E.g),Wyt(t,r,w),l=0,d=(a=m).length;l<d;++l)CZ(a[l],b);for(u=0,A=(o=C).length;u<A;++u)xZ(o[u],x);for(Wyt(e,n,y),h=0,g=(s=p).length;h<g;++h)CZ(s[h],v);for(c=0,f=(i=k).length;c<f;++c)xZ(i[c],E)}function AHt(t,e,n,r){var i,a,o,s,c,l;if(a=Xft(r),!$y(kN(bEt(r,($Xt(),Bpe))))&&!$y(kN(bEt(t,hpe)))||pI(Q$(bEt(t,tme),98)))switch(TZ(s=new BTt,t),e?((l=s.n).a=e.a-t.n.a,l.b=e.b-t.n.b,XTt(l,0,0,t.o.a,t.o.b),H_t(s,KQt(s,a))):(i=lAt(a),H_t(s,n==(art(),$be)?i:Cft(i))),o=Q$(bEt(r,(lVt(),Yhe)),21),c=s.j,a.g){case 2:case 1:(c==(yGt(),sSe)||c==xSe)&&o.Fc((fNt(),Ahe));break;case 4:case 3:(c==(yGt(),oSe)||c==TSe)&&o.Fc((fNt(),Ahe))}else i=lAt(a),s=NQt(t,n,n==(art(),$be)?i:Cft(i));return s}function gHt(t,n,r){var i,a,o,s,c,l,u;return e.Math.abs(n.s-n.c)<hZt||e.Math.abs(r.s-r.c)<hZt?0:(i=XDt(t,n.j,r.e),a=XDt(t,r.j,n.e),o=0,-1==i||-1==a?(-1==i&&(new jZ((_6(),kye),r,n,1),++o),-1==a&&(new jZ((_6(),kye),n,r,1),++o)):(s=Cht(n.j,r.s,r.c),s+=Cht(r.e,n.s,n.c),c=Cht(r.j,n.s,n.c),(l=i+16*s)<(u=a+16*(c+=Cht(n.e,r.s,r.c)))?new jZ((_6(),Cye),n,r,u-l):l>u?new jZ((_6(),Cye),r,n,l-u):l>0&&u>0&&(new jZ((_6(),Cye),n,r,0),new jZ(Cye,r,n,0))),o)}function pHt(t,n){var r,i,a,o,s;for(s=new olt(new Ed(t.f.b).a);s.b;){if(a=Q$((o=tnt(s)).cd(),594),1==n){if(a.gf()!=(Qht(),UBe)&&a.gf()!=NBe)continue}else if(a.gf()!=(Qht(),PBe)&&a.gf()!=RBe)continue;switch(i=Q$(Q$(o.dd(),46).b,81),r=Q$(Q$(o.dd(),46).a,189).c,a.gf().g){case 2:i.g.c=t.e.a,i.g.b=e.Math.max(1,i.g.b+r);break;case 1:i.g.c=i.g.c+r,i.g.b=e.Math.max(1,i.g.b-r);break;case 4:i.g.d=t.e.b,i.g.a=e.Math.max(1,i.g.a+r);break;case 3:i.g.d=i.g.d+r,i.g.a=e.Math.max(1,i.g.a-r)}}}function mHt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p;for(c=O8(_De,lqt,25,n.b.c.length,15,1),u=O8(Lse,IWt,267,n.b.c.length,0,1),l=O8(_se,a1t,10,n.b.c.length,0,1),d=0,A=(f=t.a).length;d<A;++d){for(p=0,s=new Gd((h=f[d]).e);s.a<s.c.c.length;)++c[i=ZL((a=Q$(J1(s),10)).c)],g=Hy(CN(bEt(n,($Xt(),bme)))),c[i]>0&&l[i]&&(g=NM(t.b,l[i],a)),p=e.Math.max(p,a.c.c.b+g);for(o=new Gd(h.e);o.a<o.c.c.length;)(a=Q$(J1(o),10)).n.b=p+a.d.d,(r=a.c).c.b=p+a.d.d+a.o.b+a.d.a,u[w9(r.b.b,r,0)]=a.k,l[w9(r.b.b,r,0)]=a}}function bHt(t,e){var n,r,i,a,o,s,c,l,h,f,d;for(r=new oz(YO(AOt(e).a.Kc(),new u));AIt(r);)rO(Xet((!(n=Q$(K5(r),79)).b&&(n.b=new cR(FLe,n,4,7)),n.b),0),186)||(c=Txt(Q$(Xet((!n.c&&(n.c=new cR(FLe,n,5,8)),n.c),0),82)),ZLt(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,zwt(a=new O_(d.a,d.b),e.g,e.f),d.a-=a.a,d.b-=a.b,o=h-d.a,s=f-d.b,zwt(l=new O_(d.a,d.b),c.g,c.f),d.a-=l.a,d.b-=l.b,h=o+d.a,f=s+d.b,_nt(i=iNt(n,!0,!0),o),Lnt(i,s),Cnt(i,h),Snt(i,f),bHt(t,c)))}function vHt(t){ME(t,new xxt(pk(fk(gk(Ak(new ps,N4t),"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 ns))),a2(t,N4t,P4t,bmt(vxe)),a2(t,N4t,R4t,bmt(pxe)),a2(t,N4t,Q4t,bmt(gxe)),a2(t,N4t,U4t,bmt(dxe)),a2(t,N4t,$4t,bmt(Axe)),a2(t,N4t,WJt,fxe),a2(t,N4t,mZt,8),a2(t,N4t,H4t,bmt(bxe)),a2(t,N4t,j4t,bmt(cxe)),a2(t,N4t,K4t,bmt(lxe)),a2(t,N4t,G2t,(cD(),!1))}function yHt(t,n){var r,i,a,o,s,c,l,u,h,f;for(Sxt(n,"Simple node placement",1),f=Q$(bEt(t,(lVt(),Sfe)),304),c=0,o=new Gd(t.b);o.a<o.c.c.length;){for((s=(i=Q$(J1(o),29)).c).b=0,r=null,u=new Gd(i.a);u.a<u.c.c.length;)l=Q$(J1(u),10),r&&(s.b+=_gt(l,r,f.c)),s.b+=l.d.d+l.o.b+l.d.a,r=l;c=e.Math.max(c,s.b)}for(a=new Gd(t.b);a.a<a.c.c.length;)for(h=(c-(s=(i=Q$(J1(a),29)).c).b)/2,r=null,u=new Gd(i.a);u.a<u.c.c.length;)l=Q$(J1(u),10),r&&(h+=_gt(l,r,f.c)),h+=l.d.d,l.n.b=h,h+=l.o.b+l.d.a,r=l;$Tt(n)}function wHt(t,e,n,r){var i,a,o,s,c,l,u,h;if(0==r.gc())return!1;if(YE(),o=(c=Q$(e,66).Oj())?r:new get(r.gc()),IFt(t.e,e)){if(e.hi())for(u=r.Kc();u.Ob();)zUt(t,e,l=u.Pb(),rO(e,99)&&!!(Q$(e,18).Bb&Uqt))||(a=Y3(e,l),o.Fc(a));else if(!c)for(u=r.Kc();u.Ob();)a=Y3(e,l=u.Pb()),o.Fc(a)}else{for(h=aFt(t.e.Tg(),e),i=Q$(t.g,119),s=0;s<t.i;++s)if(a=i[s],h.rl(a.ak()))throw Um(new Py(_9t));if(r.gc()>1)throw Um(new Py(_9t));c||(a=Y3(e,r.Kc().Pb()),o.Fc(a))}return sct(t,kBt(t,e,n),o)}function kHt(t,e){var n,r,i,a;for(Wet(e.b.j),qx(LW(new Fj(null,new f1(e.d,16)),new aa),new oa),a=new Gd(e.d);a.a<a.c.c.length;){switch((i=Q$(J1(a),101)).e.g){case 0:n=Q$(Oj(i.j,0),113).d.j,Hf(i,Q$(LD(_z(Q$(c6(i.k,n),15).Oc(),Vle)),113)),$f(i,Q$(LD(Bz(Q$(c6(i.k,n),15).Oc(),Vle)),113));break;case 1:r=$yt(i),Hf(i,Q$(LD(_z(Q$(c6(i.k,r[0]),15).Oc(),Vle)),113)),$f(i,Q$(LD(Bz(Q$(c6(i.k,r[1]),15).Oc(),Vle)),113));break;case 2:VBt(t,i);break;case 3:PDt(i);break;case 4:jDt(t,i)}Vet(i)}t.a=null}function CHt(t,e,n){var r,i,a,o,s,c,l,u;return r=t.a.o==(oZ(),rye)?Nqt:Pqt,!(s=iUt(t,new i_(e,n))).a&&s.c?(DH(t.d,s),r):s.a?(i=s.a.c,c=s.a.d,n?(l=t.a.c==(AJ(),Zve)?c:i,a=t.a.c==Zve?i:c,o=t.a.g[a.i.p],u=Hy(t.a.p[o.p])+Hy(t.a.d[a.i.p])+a.n.b+a.a.b-Hy(t.a.d[l.i.p])-l.n.b-l.a.b):(l=t.a.c==(AJ(),Jve)?c:i,a=t.a.c==Jve?i:c,u=Hy(t.a.p[t.a.g[a.i.p].p])+Hy(t.a.d[a.i.p])+a.n.b+a.a.b-Hy(t.a.d[l.i.p])-l.n.b-l.a.b),t.a.n[t.a.g[i.i.p].p]=(cD(),!0),t.a.n[t.a.g[c.i.p].p]=!0,u):r}function xHt(t,e,n){var r,i,a,o,s,c,l;if(IFt(t.e,e))YE(),LLt((s=Q$(e,66).Oj()?new uj(e,t):new OS(e,t)).c,s.b),YM(s,Q$(n,14));else{for(l=aFt(t.e.Tg(),e),r=Q$(t.g,119),a=0;a<t.i;++a)if(i=r[a].ak(),l.rl(i)){if(i==(CLt(),cOe)||i==aOe){for(o=a,(c=Sbt(t,e,n))?uNt(t,a):++a;a<t.i;)(i=r[a].ak())==cOe||i==aOe?uNt(t,a):++a;c||Q$(sbt(t,o,Y3(e,n)),72)}else Sbt(t,e,n)?uNt(t,a):Q$(sbt(t,a,(YE(),Q$(e,66).Oj()?Q$(n,72):Y3(e,n))),72);return}Sbt(t,e,n)||l7(t,(YE(),Q$(e,66).Oj()?Q$(n,72):Y3(e,n)))}}function EHt(t,e,n){var r,i,a,o,s,c,l,u;return Oht(n,t.b)||(t.b=n,a=new Yt,o=Q$(E4(LW(new Fj(null,new f1(n.f,16)),a),O9(new q,new Y,new it,new at,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),zne),Kne]))),21),t.e=!0,t.f=!0,t.c=!0,t.d=!0,i=o.Hc(($mt(),Qie)),r=o.Hc(Uie),i&&!r&&(t.f=!1),!i&&r&&(t.d=!1),i=o.Hc(Rie),r=o.Hc($ie),i&&!r&&(t.c=!1),!i&&r&&(t.e=!1)),u=Q$(t.a.Ce(e,n),46),c=Q$(u.a,19).a,l=Q$(u.b,19).a,s=!1,c<0?t.c||(s=!0):t.e||(s=!0),l<0?t.d||(s=!0):t.f||(s=!0),s?EHt(t,u,n):u}function THt(t){var n,r,i,a;a=t.o,$N(),t.A.dc()||Oht(t.A,Lie)?n=a.b:(n=xSt(t.f),t.A.Hc((bgt(),FSe))&&!t.B.Hc((ZRt(),zSe))&&(n=e.Math.max(n,xSt(Q$(oW(t.p,(yGt(),oSe)),244))),n=e.Math.max(n,xSt(Q$(oW(t.p,TSe),244)))),(r=sot(t))&&(n=e.Math.max(n,r.b)),t.A.Hc(NSe)&&(t.q!=(WCt(),G_e)&&t.q!=z_e||(n=e.Math.max(n,zH(Q$(oW(t.b,(yGt(),oSe)),124))),n=e.Math.max(n,zH(Q$(oW(t.b,TSe),124)))))),$y(kN(t.e.yf().We((cVt(),RTe))))?a.b=e.Math.max(a.b,n):a.b=n,(i=t.f.i).d=0,i.a=n,jUt(t.f)}function BHt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d;for(u=0;u<e.length;u++){for(o=t.Kc();o.Ob();)Q$(o.Pb(),225).Of(u,e);for(h=0;h<e[u].length;h++){for(s=t.Kc();s.Ob();)Q$(s.Pb(),225).Pf(u,h,e);for(d=e[u][h].j,f=0;f<d.c.length;f++){for(c=t.Kc();c.Ob();)Q$(c.Pb(),225).Qf(u,h,f,e);for(u1(f,d.c.length),n=0,i=new m6(Q$(d.c[f],11).b);bM(i.a)||bM(i.b);)for(r=Q$(bM(i.a)?J1(i.a):J1(i.b),17),l=t.Kc();l.Ob();)Q$(l.Pb(),225).Nf(u,h,f,n++,r,e)}}}for(a=t.Kc();a.Ob();)Q$(a.Pb(),225).Mf()}function _Ht(t,e){var n,r,i,a,o;for(t.b=Hy(CN(bEt(e,($Xt(),vme)))),t.c=Hy(CN(bEt(e,kme))),t.d=Q$(bEt(e,npe),336),t.a=Q$(bEt(e,Ege),275),uvt(e),i=(a=Q$(E4(SW(SW(ftt(ftt(new Fj(null,new f1(e.b,16)),new yn),new wn),new kn),new Cn),m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),Kne)]))),15)).Kc();i.Ob();)n=Q$(i.Pb(),17),Q$(bEt(n,(lVt(),Mfe)),15).Jc(new tg(t)),lct(n,Mfe,null);for(r=a.Kc();r.Ob();)n=Q$(r.Pb(),17),o=Q$(bEt(n,(lVt(),Ofe)),17),QXt(t,Q$(bEt(n,Lfe),15),o),lct(n,Lfe,null)}function SHt(t){t.b=null,t.a=null,t.o=null,t.q=null,t.v=null,t.w=null,t.B=null,t.p=null,t.Q=null,t.R=null,t.S=null,t.T=null,t.U=null,t.V=null,t.W=null,t.bb=null,t.eb=null,t.ab=null,t.H=null,t.db=null,t.c=null,t.d=null,t.f=null,t.n=null,t.r=null,t.s=null,t.u=null,t.G=null,t.J=null,t.e=null,t.j=null,t.i=null,t.g=null,t.k=null,t.t=null,t.F=null,t.I=null,t.L=null,t.M=null,t.O=null,t.P=null,t.$=null,t.N=null,t.Z=null,t.cb=null,t.K=null,t.D=null,t.A=null,t.C=null,t._=null,t.fb=null,t.X=null,t.Y=null,t.gb=!1,t.hb=!1}function LHt(t){var e,n,r,i,a;if(t.k!=(oTt(),Tse))return!1;if(t.j.c.length<=1)return!1;if(Q$(bEt(t,($Xt(),tme)),98)==(WCt(),z_e))return!1;if(fbt(),(r=(t.q?t.q:(xq(),xq(),lne))._b(Fpe)?Q$(bEt(t,Fpe),197):Q$(bEt(pV(t),Npe),197))==ube)return!1;if(r!=lbe&&r!=cbe){if(i=Hy(CN(egt(t,Mme))),!(e=Q$(bEt(t,Ime),142))&&(e=new UP(i,i,i,i)),a=adt(t,(yGt(),TSe)),e.d+e.a+(a.gc()-1)*i>t.o.b)return!1;if(n=adt(t,oSe),e.d+e.a+(n.gc()-1)*i>t.o.b)return!1}return!0}function IHt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A;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=t0(t.a[0],zqt),r=t0(e.a[0],zqt),o==c?(A=dK(u=rdt(n,r)),0==(d=dK(yz(u,32)))?new z6(o,A):new uG(o,2,Tst(Hw(_De,1),lqt,25,15,[A,d]))):Zpt(o<0?ndt(r,n):ndt(n,r));if(o==c)f=o,h=a>=s?M8(t.a,a,e.a,s):M8(e.a,s,t.a,a);else{if(0==(i=a!=s?a>s?1:-1:xlt(t.a,e.a,a)))return SNt(),ene;1==i?(f=o,h=d6(t.a,a,e.a,s)):(f=c,h=d6(e.a,s,t.a,a))}return z0(l=new uG(f,h.length,h)),l}function MHt(t,n,r,i,a,o,s){var c,l,u,h,f,d,A;return f=$y(kN(bEt(n,($Xt(),_pe)))),d=null,o==(art(),Ube)&&i.c.i==r?d=i.c:o==$be&&i.d.i==r&&(d=i.d),(u=s)&&f&&!d?(G$(u.e,i),A=e.Math.max(Hy(CN(bEt(u.d,ipe))),Hy(CN(bEt(i,ipe)))),lct(u.d,ipe,A)):(yGt(),h=ESe,d?h=d.j:pI(Q$(bEt(r,tme),98))&&(h=o==Ube?TSe:oSe),l=DHt(t,n,r,o,h,i),c=G5((pV(r),i)),o==Ube?(xZ(c,Q$(Oj(l.j,0),11)),CZ(c,a)):(xZ(c,a),CZ(c,Q$(Oj(l.j,0),11))),u=new Kht(i,c,l,Q$(bEt(l,(lVt(),dfe)),11),o,!d)),YSt(t.a,i,new IQ(u.d,n,o)),u}function OHt(t,e){var n,r,i,a,o,s,c,l,u,h;if(u=null,t.d&&(u=Q$(xJ(t.d,e),138)),!u){if(h=(a=t.a.Mh()).i,!t.d||Mx(t.d)!=h){for(c=new Om,t.d&&Cat(c,t.d),s=l=c.f.c+c.g.c;s<h;++s)r=Q$(Xet(a,s),138),(n=Q$(null==(i=Bht(t.e,r).ne())?w_t(c.f,null,r):odt(c.g,i,r),138))&&n!=r&&(null==i?w_t(c.f,null,n):odt(c.g,i,n));if(c.f.c+c.g.c!=h)for(o=0;o<l;++o)r=Q$(Xet(a,o),138),(n=Q$(null==(i=Bht(t.e,r).ne())?w_t(c.f,null,r):odt(c.g,i,r),138))&&n!=r&&(null==i?w_t(c.f,null,n):odt(c.g,i,n));t.d=c}u=Q$(xJ(t.d,e),138)}return u}function DHt(t,e,n,r,i,a){var o,s,c,l,u,h;return o=null,l=r==(art(),Ube)?a.c:a.d,c=Xft(e),l.i==n?(o=Q$(FX(t.b,l),10))||(lct(o=fXt(l,Q$(bEt(n,($Xt(),tme)),98),i,$Rt(l),null,l.n,l.o,c,e),(lVt(),dfe),l),XV(t.b,l,o)):(s=LCt(o=fXt((u=new Jt,h=Hy(CN(bEt(e,($Xt(),bme))))/2,cct(u,Zpe,h),u),Q$(bEt(n,tme),98),i,r==Ube?-1:1,null,new Hk,new O_(0,0),c,e),n,r),lct(o,(lVt(),dfe),s),XV(t.b,s,o)),Q$(bEt(e,(lVt(),Yhe)),21).Fc((fNt(),uhe)),pI(Q$(bEt(e,($Xt(),tme)),98))?lct(e,tme,(WCt(),X_e)):lct(e,tme,(WCt(),V_e)),o}function FHt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g;Sxt(e,"Orthogonal edge routing",1),l=Hy(CN(bEt(t,($Xt(),Sme)))),n=Hy(CN(bEt(t,vme))),r=Hy(CN(bEt(t,kme))),f=new lX(0,n),g=0,o=new C2(t.b,0),s=null,u=null,c=null,h=null;do{h=(u=o.b<o.d.gc()?(EF(o.b<o.d.gc()),Q$(o.d.Xb(o.c=o.b++),29)):null)?u.a:null,s&&(Cjt(s,g),g+=s.c.a),A=LKt(f,t,c,h,s?g+r:g),i=!s||XS(c,(AFt(),yye)),a=!u||XS(h,(AFt(),yye)),A>0?(d=(A-1)*n,s&&(d+=r),u&&(d+=r),d<l&&!i&&!a&&(d=l),g+=d):!i&&!a&&(g+=l),s=u,c=h}while(u);t.f.a=g,$Tt(e)}function NHt(){var t;NHt=L,yIe=new xv,bIe=O8(Wee,cWt,2,0,6,1),CIe=e0(Ust(33,58),Ust(1,26)),xIe=e0(Ust(97,122),Ust(65,90)),EIe=Ust(48,57),wIe=e0(CIe,0),kIe=e0(xIe,EIe),TIe=e0(e0(0,Ust(1,6)),Ust(33,38)),BIe=e0(e0(EIe,Ust(65,70)),Ust(97,102)),MIe=e0(wIe,Amt("-_.!~*'()")),OIe=e0(kIe,GAt("-_.!~*'()")),Amt(o7t),GAt(o7t),e0(MIe,Amt(";:@&=+$,")),e0(OIe,GAt(";:@&=+$,")),_Ie=Amt(":/?#"),SIe=GAt(":/?#"),LIe=Amt("/?#"),IIe=GAt("/?#"),(t=new Fb).a.zc("jar",t),t.a.zc("zip",t),t.a.zc("archive",t),xq(),vIe=new Sw(t)}function PHt(t,e){var n,r,i,a,o;if(lct(e,(Hjt(),owe),0),i=Q$(bEt(e,iwe),86),0==e.d.b)i?(o=Hy(CN(bEt(i,lwe)))+t.a+w5(i,e),lct(e,lwe,o)):lct(e,lwe,0);else{for(n=new fp(cmt(new hp(e).a.d,0));wC(n.a);)PHt(t,Q$(h3(n.a),188).c);r=Q$(eO(new fp(cmt(new hp(e).a.d,0))),86),a=(Hy(CN(bEt(Q$(kD(new fp(cmt(new hp(e).a.d,0))),86),lwe)))+Hy(CN(bEt(r,lwe))))/2,i?(o=Hy(CN(bEt(i,lwe)))+t.a+w5(i,e),lct(e,lwe,o),lct(e,owe,Hy(CN(bEt(e,lwe)))-a),_Kt(t,e)):lct(e,lwe,a)}}function RHt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d;s=0,d=0,c=kJ(t.f,t.f.length),a=t.d,o=t.i,r=t.a,i=t.b;do{for(f=0,l=new Gd(t.p);l.a<l.c.c.length;)h=SKt(t,Q$(J1(l),10)),n=!0,(t.q==(cDt(),kbe)||t.q==Ebe)&&(n=$y(kN(h.b))),Q$(h.a,19).a<0&&n?(++f,c=kJ(t.f,t.f.length),t.d=t.d+Q$(h.a,19).a,d+=a-t.d,a=t.d+Q$(h.a,19).a,o=t.i,r=i0(t.a),i=i0(t.b)):(t.f=kJ(c,c.length),t.d=a,t.a=(bX(r),r?new ZR(r):U$(new Gd(r))),t.b=(bX(i),i?new ZR(i):U$(new Gd(i))),t.i=o);++s,u=0!=f&&$y(kN(e.Kb(new nS(nft(d),nft(s)))))}while(u)}function QHt(t,n,r,i){var a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;return o=t.f,f=n.f,s=o==(qOt(),OCe)||o==FCe,c=o==DCe||o==NCe,d=f==DCe||f==NCe,l=o==DCe||o==OCe,A=f==DCe||f==OCe,!s||f!=OCe&&f!=FCe?c&&d?t.f==NCe?t:n:l&&A?(o==DCe?(h=t,u=n):(h=n,u=t),g=r.j+r.f,p=h.e+i.f,m=e.Math.max(g,p)-e.Math.min(r.j,h.e),a=(h.d+i.g-r.i)*m,b=r.i+r.g,v=u.d+i.g,a<=(e.Math.max(b,v)-e.Math.min(r.i,u.d))*(u.e+i.f-r.j)?t.f==DCe?t:n:t.f==OCe?t:n):t:t.f==FCe?t:n}function UHt(t){var e,n,r,i,a,o,s,c,l,u;for(l=t.e.a.c.length,a=new Gd(t.e.a);a.a<a.c.c.length;)Q$(J1(a),121).j=!1;for(t.i=O8(_De,lqt,25,l,15,1),t.g=O8(_De,lqt,25,l,15,1),t.n=new Mm,i=0,u=new Mm,s=new Gd(t.e.a);s.a<s.c.c.length;)(o=Q$(J1(s),121)).d=i++,0==o.b.a.c.length&&G$(t.n,o),gst(u,o.g);for(e=0,r=new Gd(u);r.a<r.c.c.length;)(n=Q$(J1(r),213)).c=e++,n.f=!1;c=u.c.length,null==t.b||t.b.length<c?(t.b=O8(MDe,Hqt,25,c,15,1),t.c=O8(SDe,JYt,25,c,16,1)):Jy(t.c),t.d=u,t.p=new ID(tet(t.d.c.length)),t.j=1}function $Ht(t,e){var n,r,i,a,o,s,c,l,u;if(!(e.e.c.length<=1)){for(t.f=e,t.d=Q$(bEt(t.f,(rwt(),poe)),379),t.g=Q$(bEt(t.f,yoe),19).a,t.e=Hy(CN(bEt(t.f,moe))),t.c=Hy(CN(bEt(t.f,goe))),rX(t.b),i=new Gd(t.f.c);i.a<i.c.c.length;)r=Q$(J1(i),282),vRt(t.b,r.c,r,null),vRt(t.b,r.d,r,null);for(s=t.f.e.c.length,t.a=vj(MDe,[cWt,Hqt],[104,25],15,[s,s],2),l=new Gd(t.f.e);l.a<l.c.c.length;)B$t(t,c=Q$(J1(l),144),t.a[c.b]);for(t.i=vj(MDe,[cWt,Hqt],[104,25],15,[s,s],2),a=0;a<s;++a)for(o=0;o<s;++o)u=1/((n=t.a[a][o])*n),t.i[a][o]=u}}function HHt(t){var e,n,r,i;if(!(null==t.b||t.b.length<=2||t.a)){for(e=0,i=0;i<t.b.length;){for(e!=i?(t.b[e]=t.b[i++],t.b[e+1]=t.b[i++]):i+=2,n=t.b[e+1];i<t.b.length&&!(n+1<t.b[i]);)if(n+1==t.b[i])t.b[e+1]=t.b[i+1],n=t.b[e+1],i+=2;else if(n>=t.b[i+1])i+=2;else{if(!(n<t.b[i+1]))throw Um(new dy("Token#compactRanges(): Internel Error: ["+t.b[e]+","+t.b[e+1]+"] ["+t.b[i]+","+t.b[i+1]+"]"));t.b[e+1]=t.b[i+1],n=t.b[e+1],i+=2}e+=2}e!=t.b.length&&(r=O8(_De,lqt,25,e,15,1),aHt(t.b,0,r,0,e),t.b=r),t.a=!0}}function jHt(t,e){var n,r,i,a,o,s,c;for(o=Az(t.a).Kc();o.Ob();){if((a=Q$(o.Pb(),17)).b.c.length>0)for(r=new ZR(Q$(c6(t.a,a),21)),xq(),mM(r,new PA(e)),i=new C2(a.b,0);i.b<i.d.gc();){switch(EF(i.b<i.d.gc()),n=Q$(i.d.Xb(i.c=i.b++),70),s=-1,Q$(bEt(n,($Xt(),Wge)),272).g){case 1:s=r.c.length-1;break;case 0:s=Ykt(r);break;case 2:s=0}-1!=s&&(u1(s,r.c.length),G$((c=Q$(r.c[s],243)).b.b,n),Q$(bEt(pV(c.b.c.i),(lVt(),Yhe)),21).Fc((fNt(),lhe)),Q$(bEt(pV(c.b.c.i),Yhe),21).Fc(she),lV(i),lct(n,pfe,a))}xZ(a,null),CZ(a,null)}}function KHt(t,e){var n,r,i,a;return n=new Rt,1==(i=2==(i=(r=Q$(E4(LW(new Fj(null,new f1(t.f,16)),n),O9(new q,new Y,new it,new at,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),zne),Kne]))),21)).gc())?1:0)&&VS(hgt(Q$(E4(SW(r.Lc(),new Qt),Xat(wpt(0),new nt)),162).a,2),0)&&(i=0),1==(a=2==(a=(r=Q$(E4(LW(new Fj(null,new f1(e.f,16)),n),O9(new q,new Y,new it,new at,Tst(Hw(Jne,1),IWt,132,0,[zne,Kne]))),21)).gc())?1:0)&&VS(hgt(Q$(E4(SW(r.Lc(),new Ut),Xat(wpt(0),new nt)),162).a,2),0)&&(a=0),i<a?-1:i==a?0:1}function zHt(t){var e,n,r,i,a,o,s,c,l,u,h;if(c=new Mm,!IF(t,(lVt(),Ghe)))return c;for(r=Q$(bEt(t,Ghe),15).Kc();r.Ob();)Ajt(e=Q$(r.Pb(),10),t),c.c[c.c.length]=e;for(i=new Gd(t.b);i.a<i.c.c.length;)for(o=new Gd(Q$(J1(i),29).a);o.a<o.c.c.length;)(a=Q$(J1(o),10)).k==(oTt(),Cse)&&(s=Q$(bEt(a,Xhe),10))&&(TZ(l=new BTt,a),H_t(l,Q$(bEt(a,Vhe),61)),u=Q$(Oj(s.j,0),11),xZ(h=new fY,l),CZ(h,u));for(n=new Gd(c);n.a<n.c.c.length;)EZ(e=Q$(J1(n),10),Q$(Oj(t.b,t.b.c.length-1),29));return c}function GHt(t){var e,n,r,i,a,o,s,c,l,u,h,f;for(a=$y(kN(JIt(e=GJ(t),($Xt(),fpe)))),u=0,i=0,l=new SO((!t.e&&(t.e=new cR(NLe,t,7,4)),t.e));l.e!=l.i.gc();)o=(s=WSt(c=Q$(ymt(l),79)))&&a&&$y(kN(JIt(c,dpe))),f=Txt(Q$(Xet((!c.c&&(c.c=new cR(FLe,c,5,8)),c.c),0),82)),s&&o?++i:s&&!o?++u:qJ(f)==e||f==e?++i:++u;for(r=new SO((!t.d&&(t.d=new cR(NLe,t,8,5)),t.d));r.e!=r.i.gc();)o=(s=WSt(n=Q$(ymt(r),79)))&&a&&$y(kN(JIt(n,dpe))),h=Txt(Q$(Xet((!n.b&&(n.b=new cR(FLe,n,4,7)),n.b),0),82)),s&&o?++u:s&&!o?++i:qJ(h)==e||h==e?++u:++i;return u-i}function XHt(t,e){var n,r,i,a,o,s,c,l,u;if(Sxt(e,"Edge splitting",1),t.b.c.length<=2)$Tt(e);else{for(EF((a=new C2(t.b,0)).b<a.d.gc()),o=Q$(a.d.Xb(a.c=a.b++),29);a.b<a.d.gc();)for(i=o,EF(a.b<a.d.gc()),o=Q$(a.d.Xb(a.c=a.b++),29),s=new Gd(i.a);s.a<s.c.c.length;)for(c=new Gd(Q$(J1(s),10).j);c.a<c.c.c.length;)for(r=new Gd(Q$(J1(c),11).g);r.a<r.c.c.length;)(l=(n=Q$(J1(r),17)).d.i.c)!=i&&l!=o&&KFt(n,(Qf(u=new Ibt(t),(oTt(),Ese)),lct(u,(lVt(),dfe),n),lct(u,($Xt(),tme),(WCt(),z_e)),EZ(u,o),u));$Tt(e)}}function VHt(t,e){var n,r,i,a,o,s,c,l,u;if((o=null!=e.p&&!e.b)||Sxt(e,aZt,1),a=1/(n=Q$(bEt(t,(lVt(),Cfe)),15)).gc(),e.n)for(_H(e,"ELK Layered uses the following "+n.gc()+" modules:"),u=0,l=n.Kc();l.Ob();)_H(e," Slot "+(u<10?"0":"")+u+++": "+Jk(tlt(Q$(l.Pb(),51))));for(c=n.Kc();c.Ob();)Q$(c.Pb(),51).pf(t,bat(e,a));for(i=new Gd(t.b);i.a<i.c.c.length;)r=Q$(J1(i),29),gst(t.a,r.a),r.a.c=O8(Lte,$Vt,1,0,5,1);for(s=new Gd(t.a);s.a<s.c.c.length;)EZ(Q$(J1(s),10),null);t.b.c=O8(Lte,$Vt,1,0,5,1),o||$Tt(e)}function WHt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C;i=Hy(CN(bEt(n,($Xt(),Dpe)))),f=4,a=3,k=20/(w=Q$(bEt(n,Ome),19).a),d=!1,l=0,s=FVt;do{for(o=1!=l,h=0!=l,C=0,b=0,y=(p=t.a).length;b<y;++b)(A=p[b]).f=null,Uzt(t,A,o,h,i),C+=e.Math.abs(A.a);do{c=zQt(t,n)}while(c);for(m=0,v=(g=t.a).length;m<v;++m)if(0!=(r=fG(A=g[m]).a))for(u=new Gd(A.e);u.a<u.c.c.length;)Q$(J1(u),10).n.b+=r;0==l||1==l?--f<=0&&(C<s||-f>w)?(l=2,s=FVt):0==l?(l=1,s=C):(l=0,s=C):(d=C>=s||s-C<k,s=C,d&&--a)}while(!(d&&a<=0))}function qHt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A;for(A=new Om,a=t.a.ec().Kc();a.Ob();)XV(A,r=Q$(a.Pb(),168),n.Je(r));for(bX(t),mM(o=t?new ZR(t):U$(t.a.ec().Kc()),new wA(A)),s=x4(o),c=new TM(e),w_t((d=new Om).f,e,c);0!=s.a.gc();){for(l=null,u=null,h=null,i=s.a.ec().Kc();i.Ob();)if(r=Q$(i.Pb(),168),Hy(CN($S(SY(A.f,r))))<=Nqt){if(cG(d,r.a)&&!cG(d,r.b)){u=r.b,h=r.a,l=r;break}if(cG(d,r.b)&&!cG(d,r.a)){u=r.a,h=r.b,l=r;break}}if(!l)break;f=new TM(u),G$(Q$($S(SY(d.f,h)),221).a,f),w_t(d.f,u,f),s.a.Bc(l)}return c}function YHt(t,e,n){var r,i,a,o,s,c,l,u;for(Sxt(n,"Depth-first cycle removal",1),c=(l=e.a).c.length,t.c=new Mm,t.d=O8(SDe,JYt,25,c,16,1),t.a=O8(SDe,JYt,25,c,16,1),t.b=new Mm,a=0,s=new Gd(l);s.a<s.c.c.length;)(o=Q$(J1(s),10)).p=a,c3(udt(o))&&G$(t.c,o),++a;for(u=new Gd(t.c);u.a<u.c.c.length;)jBt(t,Q$(J1(u),10));for(i=0;i<c;i++)t.d[i]||(u1(i,l.c.length),jBt(t,Q$(l.c[i],10)));for(r=new Gd(t.b);r.a<r.c.c.length;)t$t(Q$(J1(r),17),!0),lct(e,(lVt(),$he),(cD(),!0));t.c=null,t.d=null,t.a=null,t.b=null,$Tt(n)}function JHt(t,e){var n,r,i,a,o,s,c;for(t.a.c=O8(Lte,$Vt,1,0,5,1),r=cmt(e.b,0);r.b!=r.d.c;)0==(n=Q$(h3(r),86)).b.b&&(lct(n,(Hjt(),dwe),(cD(),!0)),G$(t.a,n));switch(t.a.c.length){case 0:lct(i=new ilt(0,e,"DUMMY_ROOT"),(Hjt(),dwe),(cD(),!0)),lct(i,twe,!0),DH(e.b,i);break;case 1:break;default:for(a=new ilt(0,e,"SUPER_ROOT"),s=new Gd(t.a);s.a<s.c.c.length;)lct(c=new Kq(a,o=Q$(J1(s),86)),(Hjt(),twe),(cD(),!0)),DH(a.a.a,c),DH(a.d,c),DH(o.b,c),lct(o,dwe,!1);lct(a,(Hjt(),dwe),(cD(),!0)),lct(a,twe,!0),DH(e.b,a)}}function ZHt(t,n){var r,i,a,o,s,c;return wNt(),o=n.c-(t.c+t.b),a=t.c-(n.c+n.b),s=t.d-(n.d+n.a),r=n.d-(t.d+t.a),i=e.Math.max(a,o),c=e.Math.max(s,r),cM(),rrt(L3t),(e.Math.abs(i)<=L3t||0==i||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:jL(isNaN(i),isNaN(0)))>=0^(rrt(L3t),(e.Math.abs(c)<=L3t||0==c||isNaN(c)&&isNaN(0)?0:c<0?-1:c>0?1:jL(isNaN(c),isNaN(0)))>=0)?e.Math.max(c,i):(rrt(L3t),(e.Math.abs(i)<=L3t||0==i||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:jL(isNaN(i),isNaN(0)))>0?e.Math.sqrt(c*c+i*i):-e.Math.sqrt(c*c+i*i))}function tjt(t,e){var n,r,i,a,o;if(e)if(!t.a&&(t.a=new Pb),2!=t.e)if(1!=e.e)0!=(o=t.a.a.c.length)?0!=(a=Q$(hV(t.a,o-1),117)).e&&10!=a.e||0!=e.e&&10!=e.e?Tb(t.a,e):(0==e.e||e.bm().length,0==a.e?(n=new Ew,(r=a._l())>=Uqt?rL(n,Gft(r)):MX(n,r&WWt),a=new pJ(10,null,0),vG(t.a,a,o-1)):(a.bm().length,rL(n=new Ew,a.bm())),0==e.e?(r=e._l())>=Uqt?rL(n,Gft(r)):MX(n,r&WWt):rL(n,e.bm()),Q$(a,521).b=n.a):Tb(t.a,e);else for(i=0;i<e.em();i++)tjt(t,e.am(i));else Tb(t.a,e)}function ejt(t){var e,n,r,i,a;return null!=t.g?t.g:t.a<32?(t.g=FGt(uot(t.f),TJ(t.e)),t.g):(i=HXt((!t.c&&(t.c=vut(t.f)),t.c),0),0==t.e?i:(e=(!t.c&&(t.c=vut(t.f)),t.c).e<0?2:1,n=i.length,r=-t.e+n-e,(a=new Tw).a+=""+i,t.e>0&&r>=-6?r>=0?vZ(a,n-TJ(t.e),String.fromCharCode(46)):(a.a=lF(a.a,0,e-1)+"0."+JS(a.a,e-1),vZ(a,e+1,Ugt(Hee,0,-TJ(r)-1))):(n-e>=1&&(vZ(a,e,String.fromCharCode(46)),++n),vZ(a,n,String.fromCharCode(69)),r>0&&vZ(a,++n,String.fromCharCode(43)),vZ(a,++n,""+pz(uot(r)))),t.g=a.a,t.g))}function njt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d;if(!n.dc()){for(o=0,u=0,f=Q$((r=n.Kc()).Pb(),19).a;o<e.f;){if(o==f&&(u=0,f=r.Ob()?Q$(r.Pb(),19).a:e.f+1),o!=u)for(d=Q$(Oj(t.b,o),29),h=Q$(Oj(t.b,u),29),l=new Gd(i0(d.a));l.a<l.c.c.length;)if(Wyt(c=Q$(J1(l),10),h.a.c.length,h),0==u)for(a=new Gd(i0(udt(c)));a.a<a.c.c.length;)t$t(i=Q$(J1(a),17),!0),lct(t,(lVt(),$he),(cD(),!0)),nKt(t,i,1);++u,++o}for(s=new C2(t.b,0);s.b<s.d.gc();)EF(s.b<s.d.gc()),0==Q$(s.d.Xb(s.c=s.b++),29).a.c.length&&lV(s)}}function rjt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;for(u=(o=e.b).o,c=o.d,r=Hy(CN(gmt(o,($Xt(),bme)))),i=Hy(CN(gmt(o,yme))),l=Hy(CN(gmt(o,Lme))),nH(s=new lv,c.d,c.c,c.a,c.b),f=xPt(e,r,i,l),m=new Gd(e.d);m.a<m.c.c.length;){for(A=(p=Q$(J1(m),101)).f.a.ec().Kc();A.Ob();)a=(d=Q$(A.Pb(),409)).a,h=kxt(d),b=new vv,fxt(d,d.c,f,b),QEt(d,h,f,b),fxt(d,d.d,f,b),n=b,n=t.Uf(d,h,n),bq(a.a),Qit(a.a,n),qx(new Fj(null,new f1(n,16)),new fB(u,s));(g=p.i)&&(axt(p,g,f,i),ppt(u,s,v=new fI(g.g)),KP(v,g.j),ppt(u,s,v))}nH(c,s.d,s.c,s.a,s.b)}function ijt(t,e,n){var r,i,a;if((i=Q$(bEt(e,($Xt(),Ege)),275))!=(YEt(),rhe)){switch(Sxt(n,"Horizontal Compaction",1),t.a=e,Xw(r=new vLt(((a=new B9).d=e,a.c=Q$(bEt(a.d,Yge),218),zNt(a),EKt(a),cPt(a),a.a)),t.b),1===Q$(bEt(e,xge),422).g?Gw(r,new git(t.a)):Gw(r,(Tq(),lre)),i.g){case 1:BMt(r);break;case 2:BMt(Czt(r,(Qht(),RBe)));break;case 3:BMt(Kw(Czt(BMt(r),(Qht(),RBe)),new pi));break;case 4:BMt(Kw(Czt(BMt(r),(Qht(),RBe)),new vg(a)));break;case 5:BMt(zw(r,fle))}Czt(r,(Qht(),PBe)),r.e=!0,Mzt(a),$Tt(n)}}function ajt(t,e,n,r,i,a,o,s){var c,l,u,h;switch(c=a6(Tst(Hw(RCe,1),$Vt,220,0,[e,n,r,i])),h=null,t.b.g){case 1:h=a6(Tst(Hw(Zke,1),$Vt,526,0,[new Zo,new Yo,new Jo]));break;case 0:h=a6(Tst(Hw(Zke,1),$Vt,526,0,[new Jo,new Yo,new Zo]));break;case 2:h=a6(Tst(Hw(Zke,1),$Vt,526,0,[new Yo,new Zo,new Jo]))}for(u=new Gd(h);u.a<u.c.c.length;)l=Q$(J1(u),526),c.c.length>1&&(c=l.mg(c,t.a,s));return 1==c.c.length?Q$(Oj(c,c.c.length-1),220):2==c.c.length?QHt((u1(0,c.c.length),Q$(c.c[0],220)),(u1(1,c.c.length),Q$(c.c[1],220)),o,a):null}function ojt(t){var n,r,i,a,o,s;for(Set(t.a,new Zt),r=new Gd(t.a);r.a<r.c.c.length;)n=Q$(J1(r),221),i=zP(QM(Q$(t.b,65).c),Q$(n.b,65).c),tae?(s=Q$(t.b,65).b,o=Q$(n.b,65).b,e.Math.abs(i.a)>=e.Math.abs(i.b)?(i.b=0,o.d+o.a>s.d&&o.d<s.d+s.a&&MH(i,e.Math.max(s.c-(o.c+o.b),o.c-(s.c+s.b)))):(i.a=0,o.c+o.b>s.c&&o.c<s.c+s.b&&MH(i,e.Math.max(s.d-(o.d+o.a),o.d-(s.d+s.a))))):MH(i,CUt(Q$(t.b,65),Q$(n.b,65))),a=e.Math.sqrt(i.a*i.a+i.b*i.b),MH(i,a=$Ct(Gie,n,a,i)),IK(Q$(n.b,65),i),Set(n.a,new SA(i)),Q$(Gie.b,65),N8(Gie,Xie,n)}function sjt(t){var n,r,i,a,o,s,c,l,h,f,d,A;for(t.f=new Rb,c=0,i=0,a=new Gd(t.e.b);a.a<a.c.c.length;)for(s=new Gd(Q$(J1(a),29).a);s.a<s.c.c.length;){for((o=Q$(J1(s),10)).p=c++,r=new oz(YO(hdt(o).a.Kc(),new u));AIt(r);)Q$(K5(r),17).p=i++;for(n=LHt(o),f=new Gd(o.j);f.a<f.c.c.length;)h=Q$(J1(f),11),n&&(A=h.a.b)!=e.Math.floor(A)&&(l=A-y2(uot(e.Math.round(A))),h.a.b-=l),(d=h.n.b+h.a.b)!=e.Math.floor(d)&&(l=d-y2(uot(e.Math.round(d))),h.n.b-=l)}t.g=c,t.b=i,t.i=O8(tye,$Vt,401,c,0,1),t.c=O8(qve,$Vt,649,i,0,1),t.d.a.$b()}function cjt(t){var e,n,r,i,a,o,s,c,l;if(t.ej())if(c=t.fj(),t.i>0){if(e=new DS(t.i,t.g),a=(n=t.i)<100?null:new Rk(n),t.ij())for(r=0;r<t.i;++r)o=t.g[r],a=t.kj(o,a);if(i6(t),i=1==n?t.Zi(4,Xet(e,0),null,0,c):t.Zi(6,e,null,-1,c),t.bj()){for(r=new iF(e);r.e!=r.i.gc();)a=t.dj(wmt(r),a);a?(a.Ei(i),a.Fi()):t.$i(i)}else a?(a.Ei(i),a.Fi()):t.$i(i)}else i6(t),t.$i(t.Zi(6,(xq(),cne),null,-1,c));else if(t.bj())if(t.i>0){for(s=t.g,l=t.i,i6(t),a=l<100?null:new Rk(l),r=0;r<l;++r)o=s[r],a=t.dj(o,a);a&&a.Fi()}else i6(t);else i6(t)}function ljt(t,n,r){var i,a,o,s,c,l,u,h,f;for(Rot(this),r==(dJ(),Iye)?kG(this.r,t):kG(this.w,t),h=Nqt,u=Pqt,s=n.a.ec().Kc();s.Ob();)a=Q$(s.Pb(),46),c=Q$(a.a,455),(l=(i=Q$(a.b,17)).c)==t&&(l=i.d),kG(c==Iye?this.r:this.w,l),f=(yGt(),bSe).Hc(l.j)?Hy(CN(bEt(l,(lVt(),Ife)))):Lct(Tst(Hw(EEe,1),cWt,8,0,[l.i.n,l.n,l.a])).b,h=e.Math.min(h,f),u=e.Math.max(u,f);for(GEt(this,(yGt(),bSe).Hc(t.j)?Hy(CN(bEt(t,(lVt(),Ife)))):Lct(Tst(Hw(EEe,1),cWt,8,0,[t.i.n,t.n,t.a])).b,h,u),o=n.a.ec().Kc();o.Ob();)a=Q$(o.Pb(),46),tBt(this,Q$(a.b,17));this.o=!1}function ujt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;return n=8191&t.l,r=t.l>>13|(15&t.m)<<9,i=t.m>>4&8191,a=t.m>>17|(255&t.h)<<5,o=(1048320&t.h)>>8,p=r*(s=8191&e.l),m=i*s,b=a*s,v=o*s,0!=(c=e.l>>13|(15&e.m)<<9)&&(p+=n*c,m+=r*c,b+=i*c,v+=a*c),0!=(l=e.m>>4&8191)&&(m+=n*l,b+=r*l,v+=i*l),0!=(u=e.m>>17|(255&e.h)<<5)&&(b+=n*u,v+=r*u),0!=(h=(1048320&e.h)>>8)&&(v+=n*h),d=((g=n*s)>>22)+(p>>9)+((262143&m)<<4)+((31&b)<<17),A=(m>>18)+(b>>5)+((4095&v)<<8),A+=(d+=(f=(g&Eqt)+((511&p)<<13))>>22)>>22,CM(f&=Eqt,d&=Eqt,A&=Tqt)}function hjt(t){var n,r,i,a,o,s,c;if(0!=(c=Q$(Oj(t.j,0),11)).g.c.length&&0!=c.e.c.length)throw Um(new Ry("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(0!=c.g.c.length){for(o=Nqt,r=new Gd(c.g);r.a<r.c.c.length;)n=Q$(J1(r),17),i=Q$(bEt(s=n.d.i,($Xt(),Tpe)),142),o=e.Math.min(o,s.n.a-i.b);return new Uh(bX(o))}if(0!=c.e.c.length){for(a=Pqt,r=new Gd(c.e);r.a<r.c.c.length;)n=Q$(J1(r),17),i=Q$(bEt(s=n.c.i,($Xt(),Tpe)),142),a=e.Math.max(a,s.n.a+s.o.a+i.c);return new Uh(bX(a))}return ey(),ey(),Ste}function fjt(t,e){var n,r,i,a,o,s;if(t.Fk()){if(t.i>4){if(!t.wj(e))return!1;if(t.rk()){if(s=(n=(r=Q$(e,49)).Ug())==t.e&&(t.Dk()?r.Og(r.Vg(),t.zk())==t.Ak():-1-r.Vg()==t.aj()),t.Ek()&&!s&&!n&&r.Zg())for(i=0;i<t.i;++i)if(HS(t.Gk(Q$(t.g[i],56)))===HS(e))return!0;return s}if(t.Dk()&&!t.Ck()){if(HS(a=Q$(e,56).ah(Bbt(Q$(t.ak(),18))))===HS(t.e))return!0;if(null==a||!Q$(a,56).kh())return!1}}if(o=Ekt(t,e),t.Ek()&&!o)for(i=0;i<t.i;++i)if(HS(r=t.Gk(Q$(t.g[i],56)))===HS(e))return!0;return o}return Ekt(t,e)}function djt(t,e){var n,r,i,a,o,s,c,l,u,h,f;for(u=new Mm,f=new Fb,o=e.b,i=0;i<o.c.length;i++){for(l=(u1(i,o.c.length),Q$(o.c[i],29)).a,u.c=O8(Lte,$Vt,1,0,5,1),a=0;a<l.c.length;a++)(s=t.a[i][a]).p=a,s.k==(oTt(),Bse)&&(u.c[u.c.length]=s),r5(Q$(Oj(e.b,i),29).a,a,s),s.j.c=O8(Lte,$Vt,1,0,5,1),gst(s.j,Q$(Q$(Oj(t.b,i),15).Xb(a),14)),IR(Q$(bEt(s,($Xt(),tme)),98))||lct(s,tme,(WCt(),K_e));for(r=new Gd(u);r.a<r.c.c.length;)h=WPt(n=Q$(J1(r),10)),f.a.zc(h,f),f.a.zc(n,f)}for(c=f.a.ec().Kc();c.Ob();)s=Q$(c.Pb(),10),xq(),mM(s.j,(Klt(),sle)),s.i=!0,eSt(s)}function Ajt(t,e){var n,r,i,a,o,s,c,l,u,h;if(u=Q$(bEt(t,(lVt(),Vhe)),61),r=Q$(Oj(t.j,0),11),u==(yGt(),sSe)?H_t(r,xSe):u==xSe&&H_t(r,sSe),Q$(bEt(e,($Xt(),Rpe)),174).Hc((bgt(),PSe))){if(c=Hy(CN(bEt(t,Tme))),l=Hy(CN(bEt(t,Bme))),o=Hy(CN(bEt(t,xme))),(s=Q$(bEt(e,rme),21)).Hc((hSt(),tSe)))for(n=l,h=t.o.a/2-r.n.a,a=new Gd(r.f);a.a<a.c.c.length;)(i=Q$(J1(a),70)).n.b=n,i.n.a=h-i.o.a/2,n+=i.o.b+o;else if(s.Hc(nSe))for(a=new Gd(r.f);a.a<a.c.c.length;)(i=Q$(J1(a),70)).n.a=c+t.o.a-r.n.a;l0(new EA((AE(),new UW(e,!1,!1,new Qe))),new PQ(null,t,!1))}}function gjt(t,n){var r,i,a,o,s,c,l;if(0!=n.c.length){for(xq(),bK(n.c,n.c.length,null),i=Q$(J1(a=new Gd(n)),145);a.a<a.c.c.length;)r=Q$(J1(a),145),!ant(i.e.c,r.e.c)||Pgt(QN(i.e).b,r.e.d)||Pgt(QN(r.e).b,i.e.d)?(eUt(t,i),i=r):(gst(i.k,r.k),gst(i.b,r.b),gst(i.c,r.c),Qit(i.i,r.i),gst(i.d,r.d),gst(i.j,r.j),o=e.Math.min(i.e.c,r.e.c),s=e.Math.min(i.e.d,r.e.d),c=e.Math.max(i.e.c+i.e.b,r.e.c+r.e.b)-o,l=e.Math.max(i.e.d+i.e.a,r.e.d+r.e.a)-s,OH(i.e,o,s,c,l),Z1(i.f,r.f),!i.a&&(i.a=r.a),gst(i.g,r.g),G$(i.g,r));eUt(t,i)}}function pjt(t,e,n,r){var i,a,o,s,c,l;if((s=t.j)==(yGt(),ESe)&&e!=(WCt(),V_e)&&e!=(WCt(),W_e)&&(H_t(t,s=KQt(t,n)),!(t.q?t.q:(xq(),xq(),lne))._b(($Xt(),Zpe))&&s!=ESe&&(0!=t.n.a||0!=t.n.b)&&lct(t,Zpe,wwt(t,s))),e==(WCt(),G_e)){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:(i=t.i.o.b)>0&&(l=t.n.b/i)}lct(t,(lVt(),kfe),l)}if(c=t.o,o=t.a,r)o.a=r.a,o.b=r.b,t.d=!0;else if(e!=V_e&&e!=W_e&&s!=ESe)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}function mjt(t){var e,n,r,i,a,o,s,c,l,u;if(t.ej())if(u=t.Vi(),c=t.fj(),u>0)if(e=new wat(t.Gi()),a=(n=u)<100?null:new Rk(n),qN(t,n,e.g),i=1==n?t.Zi(4,Xet(e,0),null,0,c):t.Zi(6,e,null,-1,c),t.bj()){for(r=new SO(e);r.e!=r.i.gc();)a=t.dj(ymt(r),a);a?(a.Ei(i),a.Fi()):t.$i(i)}else a?(a.Ei(i),a.Fi()):t.$i(i);else qN(t,t.Vi(),t.Wi()),t.$i(t.Zi(6,(xq(),cne),null,-1,c));else if(t.bj())if((u=t.Vi())>0){for(s=t.Wi(),l=u,qN(t,u,s),a=l<100?null:new Rk(l),r=0;r<l;++r)o=s[r],a=t.dj(o,a);a&&a.Fi()}else qN(t,t.Vi(),t.Wi());else qN(t,t.Vi(),t.Wi())}function bjt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d;for(s=new Gd(e);s.a<s.c.c.length;)(a=Q$(J1(s),233)).e=null,a.c=0;for(c=null,o=new Gd(e);o.a<o.c.c.length;)if(h=(a=Q$(J1(o),233)).d[0],!n||h.k==(oTt(),Tse)){for(d=Q$(bEt(h,(lVt(),rfe)),15).Kc();d.Ob();)f=Q$(d.Pb(),10),n&&f.k!=(oTt(),Tse)||((!a.e&&(a.e=new Mm),a.e).Fc(t.b[f.c.p][f.p]),++t.b[f.c.p][f.p].c);if(!n&&h.k==(oTt(),Tse)){if(c)for(u=Q$(c6(t.d,c),21).Kc();u.Ob();)for(l=Q$(u.Pb(),10),i=Q$(c6(t.d,h),21).Kc();i.Ob();)r=Q$(i.Pb(),10),K$(t.b[l.c.p][l.p]).Fc(t.b[r.c.p][r.p]),++t.b[r.c.p][r.p].c;c=h}}}function vjt(t,e){var n,r,i,a,o,s,c;for(n=0,c=new Mm,a=new Gd(e);a.a<a.c.c.length;){switch(i=Q$(J1(a),11),Zlt(t.b,t.d[i.p]),c.c=O8(Lte,$Vt,1,0,5,1),i.i.k.g){case 0:Set(Q$(bEt(i,(lVt(),wfe)),10).j,new Yg(c));break;case 1:xM(Wct(SW(new Fj(null,new f1(i.i.j,16)),new Jg(i))),new Zg(c));break;case 3:G$(c,new nS(Q$(bEt(i,(lVt(),dfe)),11),nft(i.e.c.length+i.g.c.length)))}for(s=new Gd(c);s.a<s.c.c.length;)o=Q$(J1(s),46),(r=CC(t,Q$(o.a,11)))>t.d[i.p]&&(n+=J4(t.b,r)*Q$(o.b,19).a,d3(t.a,nft(r)));for(;!Gy(t.a);)Ctt(t.b,Q$(dG(t.a),19).a)}return n}function yjt(t,n,r,i){var a,o,s,c,l,u,h,f,d,A;for((h=new fI(Q$(JIt(t,(EEt(),UEe)),8))).a=e.Math.max(h.a-r.b-r.c,0),h.b=e.Math.max(h.b-r.d-r.a,0),(null==(a=CN(JIt(t,DEe)))||(vV(a),a<=0))&&(a=1.3),s=new Mm,f=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));f.e!=f.i.gc();)o=new jF(Q$(ymt(f),33)),s.c[s.c.length]=o;switch(Q$(JIt(t,FEe),311).g){case 3:A=aUt(s,n,h.a,h.b,(l=i,vV(a),l));break;case 1:A=m$t(s,n,h.a,h.b,(u=i,vV(a),u));break;default:A=xjt(s,n,h.a,h.b,(c=i,vV(a),c))}PGt(t,(d=vXt(new jet(A),n,r,h.a,h.b,i,(vV(a),a))).a,d.b,!1,!0)}function wjt(t,e){var n,r,i,a;a=new ZR((n=e.b).j),i=0,(r=n.j).c=O8(Lte,$Vt,1,0,5,1),tX(Q$(got(t.b,(yGt(),sSe),(Bit(),Fle)),15),n),i=Yvt(a,i,new Fi,r),tX(Q$(got(t.b,sSe,Dle),15),n),i=Yvt(a,i,new Di,r),tX(Q$(got(t.b,sSe,Ole),15),n),tX(Q$(got(t.b,oSe,Fle),15),n),tX(Q$(got(t.b,oSe,Dle),15),n),i=Yvt(a,i,new Ni,r),tX(Q$(got(t.b,oSe,Ole),15),n),tX(Q$(got(t.b,xSe,Fle),15),n),i=Yvt(a,i,new Pi,r),tX(Q$(got(t.b,xSe,Dle),15),n),i=Yvt(a,i,new Ri,r),tX(Q$(got(t.b,xSe,Ole),15),n),tX(Q$(got(t.b,TSe,Fle),15),n),i=Yvt(a,i,new qi,r),tX(Q$(got(t.b,TSe,Dle),15),n),tX(Q$(got(t.b,TSe,Ole),15),n)}function kjt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p;for(Sxt(n,"Layer size calculation",1),h=Nqt,u=Pqt,a=!1,c=new Gd(t.b);c.a<c.c.c.length;)if((l=(s=Q$(J1(c),29)).c).a=0,l.b=0,0!=s.a.c.length){for(a=!0,d=new Gd(s.a);d.a<d.c.c.length;)g=(f=Q$(J1(d),10)).o,A=f.d,l.a=e.Math.max(l.a,g.a+A.b+A.c);p=(i=Q$(Oj(s.a,0),10)).n.b-i.d.d,i.k==(oTt(),Cse)&&(p-=Q$(bEt(t,($Xt(),Ime)),142).d),r=(o=Q$(Oj(s.a,s.a.c.length-1),10)).n.b+o.o.b+o.d.a,o.k==Cse&&(r+=Q$(bEt(t,($Xt(),Ime)),142).a),l.b=r-p,h=e.Math.min(h,p),u=e.Math.max(u,r)}a||(h=0,u=0),t.f.b=u-h,t.c.b-=h,$Tt(n)}function Cjt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m;for(a=0,o=0,l=new Gd(t.a);l.a<l.c.c.length;)s=Q$(J1(l),10),a=e.Math.max(a,s.d.b),o=e.Math.max(o,s.d.c);for(c=new Gd(t.a);c.a<c.c.c.length;){switch(s=Q$(J1(c),10),Q$(bEt(s,($Xt(),vge)),248).g){case 1:A=0;break;case 2:A=1;break;case 5:A=.5;break;default:for(r=0,h=0,d=new Gd(s.j);d.a<d.c.c.length;)0==(f=Q$(J1(d),11)).e.c.length||++r,0==f.g.c.length||++h;A=r+h==0?.5:h/(r+h)}p=t.c,u=s.o.a,m=(p.a-u)*A,A>.5?m-=2*o*(A-.5):A<.5&&(m+=2*a*(.5-A)),m<(i=s.d.b)&&(m=i),g=s.d.c,m>p.a-g-u&&(m=p.a-g-u),s.n.a=n+m}}function xjt(t,e,n,r,i){var a,o,s,c,l,u,h,f,d;for(s=O8(MDe,Hqt,25,t.c.length,15,1),nwt(f=new zz(new Xs),t),l=0,d=new Mm;0!=f.b.c.length;)if(o=Q$(0==f.b.c.length?null:Oj(f.b,0),157),l>1&&eK(o)*tK(o)/2>s[0]){for(a=0;a<d.c.length-1&&eK(o)*tK(o)/2>s[a];)++a;h=new jet(new s1(d,0,a+1)),u=eK(o)/tK(o),c=vXt(h,e,new hv,n,r,i,u),KP(vL(h.e),c),R8(eEt(f,h)),nwt(f,new s1(d,a+1,d.c.length)),d.c=O8(Lte,$Vt,1,0,5,1),l=0,yK(s,s.length,0)}else null!=(0==f.b.c.length?null:Oj(f.b,0))&&lit(f,0),l>0&&(s[l]=s[l-1]),s[l]+=eK(o)*tK(o),++l,d.c[d.c.length]=o;return d}function Ejt(t){var e,n,r;if((n=Q$(bEt(t,($Xt(),vpe)),163))==(Cdt(),Rfe)){for(e=new oz(YO(udt(t).a.Kc(),new u));AIt(e);)if(!z5(Q$(K5(e),17)))throw Um(new nw(T1t+gyt(t)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(n==Ufe)for(r=new oz(YO(hdt(t).a.Kc(),new u));AIt(r);)if(!z5(Q$(K5(r),17)))throw Um(new nw(T1t+gyt(t)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}function Tjt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d;for(Sxt(e,"Label dummy removal",1),r=Hy(CN(bEt(t,($Xt(),yme)))),i=Hy(CN(bEt(t,xme))),c=Q$(bEt(t,Kge),103),s=new Gd(t.b);s.a<s.c.c.length;)for(u=new C2(Q$(J1(s),29).a,0);u.b<u.d.gc();)EF(u.b<u.d.gc()),(l=Q$(u.d.Xb(u.c=u.b++),10)).k==(oTt(),xse)&&(h=Q$(bEt(l,(lVt(),dfe)),17),d=Hy(CN(bEt(h,ipe))),o=HS(bEt(l,afe))===HS((Gyt(),w_e)),n=new fI(l.n),o&&(n.b+=d+r),a=new O_(l.o.a,l.o.b-d-r),f=Q$(bEt(l,Efe),15),c==(Qht(),UBe)||c==NBe?LNt(f,n,i,a,o,c):Hut(f,n,i,a),gst(h.b,f),rKt(l,HS(bEt(t,Yge))===HS((xdt(),WBe))),lV(u));$Tt(e)}function Bjt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y;for(s=new Mm,i=new Gd(e.a);i.a<i.c.c.length;)for(o=new Gd(Q$(J1(i),10).j);o.a<o.c.c.length;){for(l=null,v=0,y=(b=Y0((a=Q$(J1(o),11)).g)).length;v<y;++v)dot((m=b[v]).d.i,n)||((p=MHt(t,e,n,m,m.c,(art(),$be),l))!=l&&(s.c[s.c.length]=p),p.c&&(l=p));for(c=null,A=0,g=(d=Y0(a.e)).length;A<g;++A)dot((f=d[A]).c.i,n)||((p=MHt(t,e,n,f,f.d,(art(),Ube),c))!=c&&(s.c[s.c.length]=p),p.c&&(c=p))}for(h=new Gd(s);h.a<h.c.c.length;)u=Q$(J1(h),441),-1!=w9(e.a,u.a,0)||G$(e.a,u.a),u.c&&(r.c[r.c.length]=u)}function _jt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A;for(Sxt(n,"Interactive cycle breaking",1),u=new Mm,f=new Gd(e.a);f.a<f.c.c.length;)for((h=Q$(J1(f),10)).p=1,d=Qkt(h).a,l=DAt(h,(art(),$be)).Kc();l.Ob();)for(a=new Gd(Q$(l.Pb(),11).g);a.a<a.c.c.length;)(A=(r=Q$(J1(a),17)).d.i)!=h&&Qkt(A).a<d&&(u.c[u.c.length]=r);for(o=new Gd(u);o.a<o.c.c.length;)t$t(r=Q$(J1(o),17),!0);for(u.c=O8(Lte,$Vt,1,0,5,1),c=new Gd(e.a);c.a<c.c.c.length;)(s=Q$(J1(c),10)).p>0&&hBt(t,s,u);for(i=new Gd(u);i.a<i.c.c.length;)t$t(r=Q$(J1(i),17),!0);u.c=O8(Lte,$Vt,1,0,5,1),$Tt(n)}function Sjt(t,e){var n,r,i,a,o,s,c,l,u;return l="",0==e.length?t.de(GWt,KWt,-1,-1):(mR((u=NEt(e)).substr(0,3),"at ")&&(u=u.substr(3)),-1==(o=(u=u.replace(/\[.*?\]/g,"")).indexOf("("))?-1==(o=u.indexOf("@"))?(l=u,u=""):(l=NEt(u.substr(o+1)),u=NEt(u.substr(0,o))):(n=u.indexOf(")",o),l=u.substr(o+1,n-(o+1)),u=NEt(u.substr(0,o))),-1!=(o=HL(u,qxt(46)))&&(u=u.substr(o+1)),(0==u.length||mR(u,"Anonymous function"))&&(u=KWt),s=mD(l,qxt(58)),i=CR(l,qxt(58),s-1),c=-1,r=-1,a=GWt,-1!=s&&-1!=i&&(a=l.substr(0,i),c=cF(l.substr(i+1,s-(i+1))),r=cF(l.substr(s+1))),t.de(a,u,c,r))}function Ljt(t,e,n){var r,i,a,o,s,c;if(0==e.l&&0==e.m&&0==e.h)throw Um(new _y("divide by zero"));if(0==t.l&&0==t.m&&0==t.h)return n&&(hee=CM(0,0,0)),CM(0,0,0);if(e.h==Bqt&&0==e.m&&0==e.l)return Qdt(t,n);if(c=!1,e.h>>19&&(e=act(e),c=!c),o=SOt(e),a=!1,i=!1,r=!1,t.h==Bqt&&0==t.m&&0==t.l){if(i=!0,a=!0,-1!=o)return s=wIt(t,o),c&&Sct(s),n&&(hee=CM(0,0,0)),s;t=GL((z9(),fee)),r=!0,c=!c}else t.h>>19&&(a=!0,t=act(t),r=!0,c=!c);return-1!=o?Uct(t,o,c,a,n):Pwt(t,e)<0?(n&&(hee=a?act(t):CM(t.l,t.m,t.h)),CM(0,0,0)):lQt(r?t:CM(t.l,t.m,t.h),e,c,a,i,n)}function Ijt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A;if(t.e&&t.c.c<t.f)throw Um(new Ry("Expected "+t.f+" phases to be configured; only found "+t.c.c));for(u=Q$(Xk(t.g),9),d=sF(t.f),s=0,l=(a=u).length;s<l;++s)(h=Q$(D9(t,(r=a[s]).g),246))?G$(d,Q$(sAt(t,h),123)):d.c[d.c.length]=null;for(A=new Q2,qx(SW(LW(SW(new Fj(null,new f1(d,16)),new hs),new wp(e)),new fs),new kp(A)),Yat(A,t.a),n=new Mm,o=0,c=(i=u).length;o<c;++o)gst(n,kst(t,qq(Q$(D9(A,(r=i[o]).g),20)))),(f=Q$(Oj(d,r.g),123))&&(n.c[n.c.length]=f);return gst(n,kst(t,qq(Q$(D9(A,u[u.length-1].g+1),20)))),n}function Mjt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A;for(Sxt(r,"Model order cycle breaking",1),t.a=0,t.b=0,f=new Mm,u=n.a.c.length,l=new Gd(n.a);l.a<l.c.c.length;)IF(c=Q$(J1(l),10),(lVt(),ffe))&&(u=e.Math.max(u,Q$(bEt(c,ffe),19).a+1));for(A=new Gd(n.a);A.a<A.c.c.length;)for(s=KBt(t,d=Q$(J1(A),10),u),h=DAt(d,(art(),$be)).Kc();h.Ob();)for(o=new Gd(Q$(h.Pb(),11).g);o.a<o.c.c.length;)KBt(t,(i=Q$(J1(o),17)).d.i,u)<s&&(f.c[f.c.length]=i);for(a=new Gd(f);a.a<a.c.c.length;)t$t(i=Q$(J1(a),17),!0),lct(n,(lVt(),$he),(cD(),!0));f.c=O8(Lte,$Vt,1,0,5,1),$Tt(r)}function Ojt(t,e){var n,r,i,a,o,s,c;if(!(t.g>e.f||e.g>t.f)){for(n=0,r=0,o=t.w.a.ec().Kc();o.Ob();)i=Q$(o.Pb(),11),put(Lct(Tst(Hw(EEe,1),cWt,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&++n;for(s=t.r.a.ec().Kc();s.Ob();)i=Q$(s.Pb(),11),put(Lct(Tst(Hw(EEe,1),cWt,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&--n;for(c=e.w.a.ec().Kc();c.Ob();)i=Q$(c.Pb(),11),put(Lct(Tst(Hw(EEe,1),cWt,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&++r;for(a=e.r.a.ec().Kc();a.Ob();)i=Q$(a.Pb(),11),put(Lct(Tst(Hw(EEe,1),cWt,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&--r;n<r?new x6(t,e,r-n):r<n?new x6(e,t,n-r):(new x6(e,t,0),new x6(t,e,0))}}function Djt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;for(l=e.c,i=VI(t.e),h=vO(QF(QM(XI(t.e)),t.d*t.a,t.c*t.b),-.5),n=i.a-h.a,r=i.b-h.b,n=(o=e.a).c-n,r=o.d-r,c=new Gd(l);c.a<c.c.c.length;){switch(d=n+(f=(s=Q$(J1(c),395)).b).a,p=r+f.b,A=TJ(d/t.a),m=TJ(p/t.b),(a=s.a).g){case 0:$mt(),u=Qie;break;case 1:$mt(),u=Rie;break;case 2:$mt(),u=Uie;break;default:$mt(),u=$ie}a.a?(b=TJ((p+s.c)/t.b),G$(t.f,new OQ(u,nft(m),nft(b))),a==(Hmt(),Zie)?dct(t,0,m,A,b):dct(t,A,m,t.d-1,b)):(g=TJ((d+s.c)/t.a),G$(t.f,new OQ(u,nft(A),nft(g))),a==(Hmt(),Yie)?dct(t,A,0,g,m):dct(t,A,m,g,t.c-1))}}function Fjt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y;for(f=new Mm,a=new Mm,g=null,s=n.Kc();s.Ob();)o=new Ug(Q$(s.Pb(),19).a),a.c[a.c.length]=o,g&&(o.d=g,g.e=o),g=o;for(v=KUt(t),u=0;u<a.c.length;++u){for(d=null,p=D6((u1(0,a.c.length),Q$(a.c[0],652))),r=null,i=Nqt,h=1;h<t.b.c.length;++h)m=p?e.Math.abs(p.b-h):e.Math.abs(h-d.b)+1,(A=d?e.Math.abs(h-d.b):m+1)<m?(l=d,c=A):(l=p,c=m),y=Hy(CN(bEt(t,($Xt(),Ume)))),(b=v[h]+e.Math.pow(c,y))<i&&(i=b,(r=l).c=h),p&&h==p.b&&(d=p,p=Oz(p));r&&(G$(f,nft(r.c)),r.a=!0,mft(r))}return xq(),bK(f.c,f.c.length,null),f}function Njt(t){var e,n,r,i,a,o,s,c,l,u;for(e=new xc,n=new xc,l=mR(P7t,(i=OQt(t.b,R7t))?xN(igt((!i.b&&(i.b=new qF((gVt(),bMe),KMe,i)),i.b),Q7t)):null),c=0;c<t.i;++c)rO(s=Q$(t.g[c],170),99)?(o=Q$(s,18)).Bb&l6t?(!(o.Bb&lWt)||!l&&null==((a=OQt(o,R7t))?xN(igt((!a.b&&(a.b=new qF((gVt(),bMe),KMe,a)),a.b),Z6t)):null))&&l7(e,o):(u=Bbt(o))&&u.Bb&l6t||(!(o.Bb&lWt)||!l&&null==((r=OQt(o,R7t))?xN(igt((!r.b&&(r.b=new qF((gVt(),bMe),KMe,r)),r.b),Z6t)):null))&&l7(n,o):(YE(),Q$(s,66).Oj()&&(s.Jj()||(l7(e,s),l7(n,s))));iut(e),iut(n),t.a=Q$(e.g,247),Q$(n.g,247)}function Pjt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d;for(c=DTt(e),Q$(bEt(e,($Xt(),$ge)),314)!=(Srt(),cue)&&t5(c,new me),t5(c,new DA(Q$(bEt(e,Fge),292))),d=0,l=new Mm,i=new hW(c);i.a!=i.b;)r=Q$(Rut(i),37),IKt(t.c,r),d+=(h=Q$(bEt(r,(lVt(),Cfe)),15)).gc(),G$(l,new nS(r,h.Kc()));for(Sxt(n,"Recursive hierarchical layout",d),f=Q$(Q$(Oj(l,l.c.length-1),46).b,47);f.Ob();)for(s=new Gd(l);s.a<s.c.c.length;)for(o=Q$(J1(s),46),h=Q$(o.b,47),a=Q$(o.a,37);h.Ob();){if(rO(u=Q$(h.Pb(),51),507)){if(a.e)break;u.pf(a,bat(n,1));break}u.pf(a,bat(n,1))}$Tt(n)}function Rjt(t,e){var n,r,i,a,o,s,c,l;if(h1(s=e.length-1,e.length),93==(o=e.charCodeAt(s))){if((a=HL(e,qxt(91)))>=0)return i=Adt(t,e.substr(1,a-1)),qGt(t,e.substr(a+1,s-(a+1)),i)}else{if(n=-1,null==kee&&(kee=new RegExp("\\d")),kee.test(String.fromCharCode(o))&&(n=CR(e,qxt(46),s-1))>=0){r=Q$(X5(t,Tet(t,e.substr(1,n-1)),!1),58),c=0;try{c=hQt(e.substr(n+1),RWt,FVt)}catch(t){throw rO(t=hst(t),127)?Um(new I9(t)):Um(t)}if(c<r.gc())return rO(l=r.Xb(c),72)&&(l=Q$(l,72).dd()),Q$(l,56)}if(n<0)return Q$(X5(t,Tet(t,e.substr(1)),!1),56)}return null}function Qjt(t,e,n){var r,i,a,o,s,c,l;if(LAt(e,n)>=0)return n;switch(DV(Q9(t,n))){case 2:if(mR("",Bht(t,n.Hj()).ne())){if(c=bMt(t,e,s=yW(Q9(t,n)),vW(Q9(t,n))))return c;for(o=0,l=(i=wRt(t,e)).gc();o<l;++o)if(aDt(_G(Q9(t,c=Q$(i.Xb(o),170))),s))return c}return null;case 4:if(mR("",Bht(t,n.Hj()).ne())){for(r=n;r;r=q1(Q9(t,r)))if(c=vMt(t,e,yW(Q9(t,r)),vW(Q9(t,r))))return c;if(s=yW(Q9(t,n)),mR(E9t,s))return bkt(t,e);for(o=0,l=(a=kRt(t,e)).gc();o<l;++o)if(aDt(_G(Q9(t,c=Q$(a.Xb(o),170))),s))return c}return null;default:return null}}function Ujt(t,e,n){var r,i,a,o,s,c,l,u;if(0==n.gc())return!1;if(YE(),a=(s=Q$(e,66).Oj())?n:new get(n.gc()),IFt(t.e,e)){if(e.hi())for(l=n.Kc();l.Ob();)zUt(t,e,c=l.Pb(),rO(e,99)&&!!(Q$(e,18).Bb&Uqt))||(i=Y3(e,c),a.Hc(i)||a.Fc(i));else if(!s)for(l=n.Kc();l.Ob();)i=Y3(e,c=l.Pb()),a.Fc(i)}else{if(n.gc()>1)throw Um(new Py(_9t));for(u=aFt(t.e.Tg(),e),r=Q$(t.g,119),o=0;o<t.i;++o)if(i=r[o],u.rl(i.ak())){if(n.Hc(s?i:i.dd()))return!1;for(l=n.Kc();l.Ob();)c=l.Pb(),Q$(sbt(t,o,s?Q$(c,72):Y3(e,c)),72);return!0}s||(i=Y3(e,n.Kc().Pb()),a.Fc(i))}return gX(t,a)}function $jt(t,n){var r,i,a,o,s,c,l;for(l=new Wx,c=new Nd(new _d(t.c).a.vc().Kc());c.a.Ob();)a=Q$(c.a.Pb(),42),0==(o=Q$(a.dd(),458)).b&&n5(l,o,l.c.b,l.c);for(;0!=l.b;)for(null==(o=Q$(0==l.b?null:(EF(0!=l.b),Let(l,l.a.a)),458)).a&&(o.a=0),i=new Gd(o.d);i.a<i.c.c.length;)null==(r=Q$(J1(i),654)).b.a?r.b.a=Hy(o.a)+r.a:n.o==(oZ(),nye)?r.b.a=e.Math.min(Hy(r.b.a),Hy(o.a)+r.a):r.b.a=e.Math.max(Hy(r.b.a),Hy(o.a)+r.a),--r.b.b,0==r.b.b&&DH(l,r.b);for(s=new Nd(new _d(t.c).a.vc().Kc());s.a.Ob();)a=Q$(s.a.Pb(),42),o=Q$(a.dd(),458),n.i[o.c.p]=o.a}function Hjt(){Hjt=L,swe=new am(SZt),new am(LZt),new eP("DEPTH",nft(0)),ewe=new eP("FAN",nft(0)),Zye=new eP(z3t,nft(0)),dwe=new eP("ROOT",(cD(),!1)),rwe=new eP("LEFTNEIGHBOR",null),hwe=new eP("RIGHTNEIGHBOR",null),iwe=new eP("LEFTSIBLING",null),fwe=new eP("RIGHTSIBLING",null),twe=new eP("DUMMY",!1),new eP("LEVEL",nft(0)),uwe=new eP("REMOVABLE_EDGES",new Wx),Awe=new eP("XCOOR",nft(0)),gwe=new eP("YCOOR",nft(0)),awe=new eP("LEVELHEIGHT",0),nwe=new eP("ID",""),cwe=new eP("POSITION",nft(0)),lwe=new eP("PRELIM",0),owe=new eP("MODIFIER",0),Jye=new am(IZt),Yye=new am(MZt)}function jjt(t,n,r,i){var a,o,s,c,l,u,h,f,d,A;for(h=r+n.c.c.a,A=new Gd(n.j);A.a<A.c.c.length;){if(d=Q$(J1(A),11),a=Lct(Tst(Hw(EEe,1),cWt,8,0,[d.i.n,d.n,d.a])),n.k==(oTt(),Bse)&&(c=Q$(bEt(d,(lVt(),dfe)),11),a.a=Lct(Tst(Hw(EEe,1),cWt,8,0,[c.i.n,c.n,c.a])).a,n.n.a=a.a),s=new O_(0,a.b),d.j==(yGt(),oSe))s.a=h;else{if(d.j!=TSe)continue;s.a=r}if(!(e.Math.abs(a.a-s.a)<=i)||Owt(n))for(o=d.g.c.length+d.e.c.length>1,u=new m6(d.b);bM(u.a)||bM(u.b);)f=(l=Q$(bM(u.a)?J1(u.a):J1(u.b),17)).c==d?l.d:l.c,e.Math.abs(Lct(Tst(Hw(EEe,1),cWt,8,0,[f.i.n,f.n,f.a])).b-s.b)>1&&pFt(t,l,s,o,d)}}function Kjt(t){var n,r,i,a,o,s;if(a=new C2(t.e,0),i=new C2(t.a,0),t.d)for(r=0;r<t.b;r++)EF(a.b<a.d.gc()),a.d.Xb(a.c=a.b++);else for(r=0;r<t.b-1;r++)EF(a.b<a.d.gc()),a.d.Xb(a.c=a.b++),lV(a);for(n=Hy((EF(a.b<a.d.gc()),CN(a.d.Xb(a.c=a.b++))));t.f-n>F3t;){for(o=n,s=0;e.Math.abs(n-o)<F3t;)++s,n=Hy((EF(a.b<a.d.gc()),CN(a.d.Xb(a.c=a.b++)))),EF(i.b<i.d.gc()),i.d.Xb(i.c=i.b++);s<t.b&&(EF(a.b>0),a.a.Xb(a.c=--a.b),FUt(t,t.b-s,o,i,a),EF(a.b<a.d.gc()),a.d.Xb(a.c=a.b++)),EF(i.b>0),i.a.Xb(i.c=--i.b)}if(!t.d)for(r=0;r<t.b-1;r++)EF(a.b<a.d.gc()),a.d.Xb(a.c=a.b++),lV(a);t.d=!0,t.c=!0}function zjt(){zjt=L,AOe=(rC(),dOe).b,mOe=Q$(Xet(Vq(dOe.b),0),34),gOe=Q$(Xet(Vq(dOe.b),1),34),pOe=Q$(Xet(Vq(dOe.b),2),34),BOe=dOe.bb,Q$(Xet(Vq(dOe.bb),0),34),Q$(Xet(Vq(dOe.bb),1),34),SOe=dOe.fb,LOe=Q$(Xet(Vq(dOe.fb),0),34),Q$(Xet(Vq(dOe.fb),1),34),Q$(Xet(Vq(dOe.fb),2),18),MOe=dOe.qb,FOe=Q$(Xet(Vq(dOe.qb),0),34),Q$(Xet(Vq(dOe.qb),1),18),Q$(Xet(Vq(dOe.qb),2),18),OOe=Q$(Xet(Vq(dOe.qb),3),34),DOe=Q$(Xet(Vq(dOe.qb),4),34),POe=Q$(Xet(Vq(dOe.qb),6),34),NOe=Q$(Xet(Vq(dOe.qb),5),18),bOe=dOe.j,vOe=dOe.k,yOe=dOe.q,wOe=dOe.w,kOe=dOe.B,COe=dOe.A,xOe=dOe.C,EOe=dOe.D,TOe=dOe._,_Oe=dOe.cb,IOe=dOe.hb}function Gjt(t,n,r){var i,a,o,s,c,l,u,h,f;t.c=0,t.b=0,i=2*n.c.a.c.length+1;t:for(u=r.Kc();u.Ob();){if(f=0,s=(l=Q$(u.Pb(),11)).j==(yGt(),sSe)||l.j==xSe){if(!(h=Q$(bEt(l,(lVt(),wfe)),10)))continue;f+=nPt(t,i,l,h)}else{for(c=new Gd(l.g);c.a<c.c.c.length;){if((a=Q$(J1(c),17).d).i.c==n.c){G$(t.a,l);continue t}f+=t.g[a.p]}for(o=new Gd(l.e);o.a<o.c.c.length;){if((a=Q$(J1(o),17).c).i.c==n.c){G$(t.a,l);continue t}f-=t.g[a.p]}}l.e.c.length+l.g.c.length>0?(t.f[l.p]=f/(l.e.c.length+l.g.c.length),t.c=e.Math.min(t.c,t.f[l.p]),t.b=e.Math.max(t.b,t.f[l.p])):s&&(t.f[l.p]=f)}}function Xjt(t){t.b=null,t.bb=null,t.fb=null,t.qb=null,t.a=null,t.c=null,t.d=null,t.e=null,t.f=null,t.n=null,t.M=null,t.L=null,t.Q=null,t.R=null,t.K=null,t.db=null,t.eb=null,t.g=null,t.i=null,t.j=null,t.k=null,t.gb=null,t.o=null,t.p=null,t.q=null,t.r=null,t.$=null,t.ib=null,t.S=null,t.T=null,t.t=null,t.s=null,t.u=null,t.v=null,t.w=null,t.B=null,t.A=null,t.C=null,t.D=null,t.F=null,t.G=null,t.H=null,t.I=null,t.J=null,t.P=null,t.Z=null,t.U=null,t.V=null,t.W=null,t.X=null,t.Y=null,t._=null,t.ab=null,t.cb=null,t.hb=null,t.nb=null,t.lb=null,t.mb=null,t.ob=null,t.pb=null,t.jb=null,t.kb=null,t.N=!1,t.O=!1}function Vjt(t,e,n){var r,i;for(Sxt(n,"Graph transformation ("+t.a+")",1),i=i0(e.a),r=new Gd(e.b);r.a<r.c.c.length;)gst(i,Q$(J1(r),29).a);if(Q$(bEt(e,($Xt(),zge)),419)==(Ptt(),xue))switch(Q$(bEt(e,Kge),103).g){case 2:I2(e,i);break;case 3:fgt(e,i);break;case 4:t.a==(Eit(),$se)?(fgt(e,i),L2(e,i)):(L2(e,i),fgt(e,i))}else if(t.a==(Eit(),$se))switch(Q$(bEt(e,Kge),103).g){case 2:I2(e,i),L2(e,i);break;case 3:fgt(e,i),I2(e,i);break;case 4:I2(e,i),fgt(e,i)}else switch(Q$(bEt(e,Kge),103).g){case 2:I2(e,i),L2(e,i);break;case 3:I2(e,i),fgt(e,i);break;case 4:fgt(e,i),I2(e,i)}$Tt(n)}function Wjt(t,e,n){var r,i,a,o,s,c,l,h,f,d,A;for(c=new lI,l=new lI,d=new lI,A=new lI,s=Hy(CN(bEt(e,($Xt(),_me)))),i=Hy(CN(bEt(e,bme))),o=new Gd(n);o.a<o.c.c.length;)if(a=Q$(J1(o),10),(h=Q$(bEt(a,(lVt(),Vhe)),61))==(yGt(),sSe))for(l.a.zc(a,l),r=new oz(YO(udt(a).a.Kc(),new u));AIt(r);)kG(c,Q$(K5(r),17).c.i);else if(h==xSe)for(A.a.zc(a,A),r=new oz(YO(udt(a).a.Kc(),new u));AIt(r);)kG(d,Q$(K5(r),17).c.i);0!=c.a.gc()&&(f=LKt(new lX(2,i),e,c,l,-s-e.c.b))>0&&(t.a=s+(f-1)*i,e.c.b+=t.a,e.f.b+=t.a),0!=d.a.gc()&&(f=LKt(new lX(1,i),e,d,A,e.f.b+s-e.c.b))>0&&(e.f.b+=s+(f-1)*i)}function qjt(t,e){var n,r,i,a;a=t.F,null==e?(t.F=null,Flt(t,null)):(t.F=(vV(e),e),-1!=(r=HL(e,qxt(60)))?(i=e.substr(0,r),-1==HL(e,qxt(46))&&!mR(i,IVt)&&!mR(i,E7t)&&!mR(i,T7t)&&!mR(i,B7t)&&!mR(i,_7t)&&!mR(i,S7t)&&!mR(i,L7t)&&!mR(i,I7t)&&(i=M7t),-1!=(n=mD(e,qxt(62)))&&(i+=""+e.substr(n+1)),Flt(t,i)):(i=e,-1==HL(e,qxt(46))&&(-1!=(r=HL(e,qxt(91)))&&(i=e.substr(0,r)),mR(i,IVt)||mR(i,E7t)||mR(i,T7t)||mR(i,B7t)||mR(i,_7t)||mR(i,S7t)||mR(i,L7t)||mR(i,I7t)?i=e:(i=M7t,-1!=r&&(i+=""+e.substr(r)))),Flt(t,i),i==e&&(t.F=t.D))),4&t.Db&&!(1&t.Db)&&fot(t,new Jz(t,1,5,a,e))}function Yjt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;if(!((g=e.b.c.length)<3)){for(d=O8(_De,lqt,25,g,15,1),h=0,u=new Gd(e.b);u.a<u.c.c.length;)l=Q$(J1(u),29),d[h++]=l.a.c.length;for(f=new C2(e.b,2),r=1;r<g-1;r++)for(EF(f.b<f.d.gc()),A=new Gd((n=Q$(f.d.Xb(f.c=f.b++),29)).a),a=0,s=0,c=0;c<d[r+1];c++)if(v=Q$(J1(A),10),c==d[r+1]-1||qTt(t,v,r+1,r)){for(o=d[r]-1,qTt(t,v,r+1,r)&&(o=t.c.e[Q$(Q$(Q$(Oj(t.c.b,v.p),15).Xb(0),46).a,10).p]);s<=c;){if(!qTt(t,b=Q$(Oj(n.a,s),10),r+1,r))for(m=Q$(Oj(t.c.b,b.p),15).Kc();m.Ob();)p=Q$(m.Pb(),46),((i=t.c.e[Q$(p.a,10).p])<a||i>o)&&kG(t.b,Q$(p.b,17));++s}a=o}}}function Jjt(t,e){var n;if(null==e||mR(e,KVt))return null;if(0==e.length&&t.k!=(TBt(),gEe))return null;switch(t.k.g){case 1:return bpt(e,a5t)?(cD(),mee):bpt(e,o5t)?(cD(),pee):null;case 2:try{return nft(hQt(e,RWt,FVt))}catch(t){if(rO(t=hst(t),127))return null;throw Um(t)}case 4:try{return fTt(e)}catch(t){if(rO(t=hst(t),127))return null;throw Um(t)}case 3:return e;case 5:return rut(t),$St(t,e);case 6:return rut(t),PMt(t,t.a,e);case 7:try{return(n=rIt(t)).Jf(e),n}catch(t){if(rO(t=hst(t),32))return null;throw Um(t)}default:throw Um(new Ry("Invalid type set for this layout option."))}}function Zjt(t){var e,n,r,i,a,o,s;for(Dtt(),s=new Xb,n=new Gd(t);n.a<n.c.c.length;)e=Q$(J1(n),140),(!s.b||e.c>=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 r=new Cmt((Lst(),Yoe)),e2(t,ose,new qy(Tst(Hw(qoe,1),$Vt,369,0,[r]))),o=new Cmt(tse),e2(t,ase,new qy(Tst(Hw(qoe,1),$Vt,369,0,[o]))),i=new Cmt(Joe),e2(t,ise,new qy(Tst(Hw(qoe,1),$Vt,369,0,[i]))),a=new Cmt(Zoe),e2(t,rse,new qy(Tst(Hw(qoe,1),$Vt,369,0,[a]))),DOt(r.c,Yoe),DOt(i.c,Joe),DOt(a.c,Zoe),DOt(o.c,tse),s.a.c=O8(Lte,$Vt,1,0,5,1),gst(s.a,r.c),gst(s.a,eot(i.c)),gst(s.a,a.c),gst(s.a,eot(o.c)),s}function tKt(t){var e;switch(t.d){case 1:if(t.hj())return-2!=t.o;break;case 2:if(t.hj())return-2==t.o;break;case 3:case 5:case 4:case 6:case 7:return t.o>-2;default:return!1}switch(e=t.gj(),t.p){case 0:return null!=e&&$y(kN(e))!=qS(t.k,0);case 1:return null!=e&&Q$(e,217).a!=dK(t.k)<<24>>24;case 2:return null!=e&&Q$(e,172).a!=(dK(t.k)&WWt);case 6:return null!=e&&qS(Q$(e,162).a,t.k);case 5:return null!=e&&Q$(e,19).a!=dK(t.k);case 7:return null!=e&&Q$(e,184).a!=dK(t.k)<<16>>16;case 3:return null!=e&&Hy(CN(e))!=t.j;case 4:return null!=e&&Q$(e,155).a!=t.j;default:return null==e?null!=t.n:!Oht(e,t.n)}}function eKt(t,e,n){var r,i,a,o;return t.Fk()&&t.Ek()&&HS(o=Hz(t,Q$(n,56)))!==HS(n)?(t.Oi(e),t.Ui(e,Q7(t,e,o)),t.rk()&&(i=Q$(n,49),a=t.Dk()?t.Bk()?i.ih(t.b,Bbt(Q$(eet(yY(t.b),t.aj()),18)).n,Q$(eet(yY(t.b),t.aj()).Yj(),26).Bj(),null):i.ih(t.b,LAt(i.Tg(),Bbt(Q$(eet(yY(t.b),t.aj()),18))),null,null):i.ih(t.b,-1-t.aj(),null,null),!Q$(o,49).eh()&&(r=Q$(o,49),a=t.Dk()?t.Bk()?r.gh(t.b,Bbt(Q$(eet(yY(t.b),t.aj()),18)).n,Q$(eet(yY(t.b),t.aj()).Yj(),26).Bj(),a):r.gh(t.b,LAt(r.Tg(),Bbt(Q$(eet(yY(t.b),t.aj()),18))),null,a):r.gh(t.b,-1-t.aj(),null,a)),a&&a.Fi()),mI(t.b)&&t.$i(t.Zi(9,n,o,e,!1)),o):n}function nKt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;for(h=Hy(CN(bEt(t,($Xt(),wme)))),i=Hy(CN(bEt(t,Fme))),lct(d=new Js,wme,h+i),b=(u=n).d,p=u.c.i,v=u.d.i,m=ZL(p.c),y=ZL(v.c),a=new Mm,f=m;f<=y;f++)Qf(c=new Ibt(t),(oTt(),Ese)),lct(c,(lVt(),dfe),u),lct(c,tme,(WCt(),z_e)),lct(c,Cme,d),A=Q$(Oj(t.b,f),29),f==m?Wyt(c,A.a.c.length-r,A):EZ(c,A),(w=Hy(CN(bEt(u,ipe))))<0&&lct(u,ipe,w=0),c.o.b=w,g=e.Math.floor(w/2),H_t(s=new BTt,(yGt(),TSe)),TZ(s,c),s.n.b=g,H_t(l=new BTt,oSe),TZ(l,c),l.n.b=g,CZ(u,s),Hot(o=new fY,u),lct(o,ppe,null),xZ(o,l),CZ(o,b),Kwt(c,u,o),a.c[a.c.length]=o,u=o;return a}function rKt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p;for(s=Q$(FTt(t,(yGt(),TSe)).Kc().Pb(),11).e,h=Q$(FTt(t,oSe).Kc().Pb(),11).g,o=s.c.length,p=A1(Q$(Oj(t.j,0),11));o-- >0;){for(u1(0,s.c.length),d=Q$(s.c[0],17),u1(0,h.c.length),i=w9((r=Q$(h.c[0],17)).d.e,r,0),S2(d,r.d,i),xZ(r,null),CZ(r,null),f=d.a,e&&DH(f,new fI(p)),n=cmt(r.a,0);n.b!=n.d.c;)DH(f,new fI(Q$(h3(n),8)));for(g=d.b,u=new Gd(r.b);u.a<u.c.c.length;)l=Q$(J1(u),70),g.c[g.c.length]=l;if(A=Q$(bEt(d,($Xt(),ppe)),74),a=Q$(bEt(r,ppe),74))for(A||(A=new vv,lct(d,ppe,A)),c=cmt(a,0);c.b!=c.d.c;)DH(A,new fI(Q$(h3(c),8)))}}function iKt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A;if(r=Q$(oW(t.b,n),124),(l=Q$(Q$(c6(t.r,n),21),84)).dc())return r.n.b=0,void(r.n.c=0);for(u=t.u.Hc((hSt(),tSe)),s=0,c=l.Kc(),h=null,f=0,d=0;c.Ob();)a=Hy(CN((i=Q$(c.Pb(),111)).b.We((DD(),Iie)))),o=i.b.rf().a,t.A.Hc((bgt(),PSe))&&vPt(t,n),h?(A=d+h.d.c+t.w+i.d.b,s=e.Math.max(s,(cM(),rrt(uJt),e.Math.abs(f-a)<=uJt||f==a||isNaN(f)&&isNaN(a)?0:A/(a-f)))):t.C&&t.C.b>0&&(s=e.Math.max(s,hat(t.C.b+i.d.b,a))),h=i,f=a,d=o;t.C&&t.C.c>0&&(A=d+t.C.c,u&&(A+=h.d.c),s=e.Math.max(s,(cM(),rrt(uJt),e.Math.abs(f-1)<=uJt||1==f||isNaN(f)&&isNaN(1)?0:A/(1-f)))),r.n.b=0,r.a.a=s}function aKt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A;if(r=Q$(oW(t.b,n),124),(l=Q$(Q$(c6(t.r,n),21),84)).dc())return r.n.d=0,void(r.n.a=0);for(u=t.u.Hc((hSt(),tSe)),s=0,t.A.Hc((bgt(),PSe))&&yPt(t,n),c=l.Kc(),h=null,d=0,f=0;c.Ob();)o=Hy(CN((i=Q$(c.Pb(),111)).b.We((DD(),Iie)))),a=i.b.rf().b,h?(A=f+h.d.a+t.w+i.d.d,s=e.Math.max(s,(cM(),rrt(uJt),e.Math.abs(d-o)<=uJt||d==o||isNaN(d)&&isNaN(o)?0:A/(o-d)))):t.C&&t.C.d>0&&(s=e.Math.max(s,hat(t.C.d+i.d.d,o))),h=i,d=o,f=a;t.C&&t.C.a>0&&(A=f+t.C.a,u&&(A+=h.d.a),s=e.Math.max(s,(cM(),rrt(uJt),e.Math.abs(d-1)<=uJt||1==d||isNaN(d)&&isNaN(1)?0:A/(1-d)))),r.n.d=0,r.a.b=s}function oKt(t,e,n){var r,i,a,o,s,c;for(this.g=t,s=e.d.length,c=n.d.length,this.d=O8(_se,a1t,10,s+c,0,1),o=0;o<s;o++)this.d[o]=e.d[o];for(a=0;a<c;a++)this.d[s+a]=n.d[a];if(e.e){if(this.e=j$(e.e),this.e.Mc(n),n.e)for(i=n.e.Kc();i.Ob();)(r=Q$(i.Pb(),233))!=e&&(this.e.Hc(r)?--r.c:this.e.Fc(r))}else n.e&&(this.e=j$(n.e),this.e.Mc(e));this.f=e.f+n.f,this.a=e.a+n.a,this.a>0?Yet(this,this.f/this.a):null!=uO(e.g,e.d[0]).a&&null!=uO(n.g,n.d[0]).a?Yet(this,(Hy(uO(e.g,e.d[0]).a)+Hy(uO(n.g,n.d[0]).a))/2):null!=uO(e.g,e.d[0]).a?Yet(this,uO(e.g,e.d[0]).a):null!=uO(n.g,n.d[0]).a&&Yet(this,uO(n.g,n.d[0]).a)}function sKt(t,e){var n,r,i,a,o,s,c,l,u;for(t.a=new QX(Iat(GBe)),r=new Gd(e.a);r.a<r.c.c.length;){for(n=Q$(J1(r),841),o=new Tpt(Tst(Hw(Voe,1),$Vt,81,0,[])),G$(t.a.a,o),c=new Gd(n.d);c.a<c.c.c.length;)QKt(l=new MD(t,s=Q$(J1(c),110)),Q$(bEt(n.c,(lVt(),zhe)),21)),cG(t.g,n)||(XV(t.g,n,new O_(s.c,s.d)),XV(t.f,n,l)),G$(t.a.b,l),A2(o,l);for(a=new Gd(n.b);a.a<a.c.c.length;)l=new MD(t,(i=Q$(J1(a),594)).kf()),XV(t.b,i,new nS(o,l)),QKt(l,Q$(bEt(n.c,(lVt(),zhe)),21)),i.hf()&&(QKt(u=new Ept(t,i.hf(),1),Q$(bEt(n.c,zhe),21)),A2(new Tpt(Tst(Hw(Voe,1),$Vt,81,0,[])),u),YSt(t.c,i.gf(),new nS(o,u)))}return t.a}function cKt(t){var e;this.a=t,e=(oTt(),Tst(Hw(Lse,1),IWt,267,0,[Tse,Ese,Cse,Bse,xse,kse])).length,this.b=vj(uEe,[cWt,y3t],[593,146],0,[e,e],2),this.c=vj(uEe,[cWt,y3t],[593,146],0,[e,e],2),RY(this,Tse,($Xt(),_me),Sme),tst(this,Tse,Ese,wme,kme),PY(this,Tse,Bse,wme),PY(this,Tse,Cse,wme),tst(this,Tse,xse,_me,Sme),RY(this,Ese,bme,vme),PY(this,Ese,Bse,bme),PY(this,Ese,Cse,bme),tst(this,Ese,xse,wme,kme),YI(this,Bse,bme),PY(this,Bse,Cse,bme),PY(this,Bse,xse,Eme),YI(this,Cse,Mme),tst(this,Cse,xse,Bme,Tme),RY(this,xse,bme,bme),RY(this,kse,bme,vme),tst(this,kse,Tse,wme,kme),tst(this,kse,xse,wme,kme),tst(this,kse,Ese,wme,kme)}function lKt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p;if(rO(o=n.ak(),99)&&Q$(o,18).Bb&Uqt&&(f=Q$(n.dd(),49),(g=tht(t.e,f))!=f)){if(yO(t,e,cxt(t,e,u=Y3(o,g))),h=null,mI(t.e)&&(r=Qjt((_Bt(),qMe),t.e.Tg(),o))!=eet(t.e.Tg(),t.c)){for(p=aFt(t.e.Tg(),o),s=0,a=Q$(t.g,119),c=0;c<e;++c)i=a[c],p.rl(i.ak())&&++s;(h=new h4(t.e,9,r,f,g,s,!1)).Ei(new M9(t.e,9,t.c,n,u,e,!1))}return(d=Bbt(A=Q$(o,18)))?(h=f.ih(t.e,LAt(f.Tg(),d),null,h),h=Q$(g,49).gh(t.e,LAt(g.Tg(),d),null,h)):A.Bb&l6t&&(l=-1-LAt(t.e.Tg(),A),h=f.ih(t.e,l,null,null),!Q$(g,49).eh()&&(h=Q$(g,49).gh(t.e,l,null,h))),h&&h.Fi(),u}return n}function uKt(t){var n,r,i,a,o,s,c,l;for(o=new Gd(t.a.b);o.a<o.c.c.length;)(a=Q$(J1(o),81)).b.c=a.g.c,a.b.d=a.g.d;for(l=new O_(Nqt,Nqt),n=new O_(Pqt,Pqt),i=new Gd(t.a.b);i.a<i.c.c.length;)r=Q$(J1(i),81),l.a=e.Math.min(l.a,r.g.c),l.b=e.Math.min(l.b,r.g.d),n.a=e.Math.max(n.a,r.g.c+r.g.b),n.b=e.Math.max(n.b,r.g.d+r.g.a);for(c=kX(t.c).a.nc();c.Ob();)s=Q$(c.Pb(),46),r=Q$(s.b,81),l.a=e.Math.min(l.a,r.g.c),l.b=e.Math.min(l.b,r.g.d),n.a=e.Math.max(n.a,r.g.c+r.g.b),n.b=e.Math.max(n.b,r.g.d+r.g.a);t.d=$F(new O_(l.a,l.b)),t.e=zP(new O_(n.a,n.b),l),t.a.a.c=O8(Lte,$Vt,1,0,5,1),t.a.b.c=O8(Lte,$Vt,1,0,5,1)}function hKt(t){var e,n,r;for(ylt(lIe,Tst(Hw(Pre,1),$Vt,130,0,[new Ih])),n=new kf(t),r=0;r<n.a.length;++r)mR(e=dtt(n,r).je().a,"layered")?ylt(lIe,Tst(Hw(Pre,1),$Vt,130,0,[new sh])):mR(e,"force")?ylt(lIe,Tst(Hw(Pre,1),$Vt,130,0,[new ju])):mR(e,"stress")?ylt(lIe,Tst(Hw(Pre,1),$Vt,130,0,[new zu])):mR(e,"mrtree")?ylt(lIe,Tst(Hw(Pre,1),$Vt,130,0,[new xh])):mR(e,"radial")?ylt(lIe,Tst(Hw(Pre,1),$Vt,130,0,[new mh])):mR(e,"disco")?ylt(lIe,Tst(Hw(Pre,1),$Vt,130,0,[new Hu,new Uu])):mR(e,"sporeOverlap")||mR(e,"sporeCompaction")?ylt(lIe,Tst(Hw(Pre,1),$Vt,130,0,[new wh])):mR(e,"rectpacking")&&ylt(lIe,Tst(Hw(Pre,1),$Vt,130,0,[new Bh]))}function fKt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m;if(f=new fI(t.o),m=e.a/f.a,s=e.b/f.b,g=e.a-f.a,a=e.b-f.b,n)for(i=HS(bEt(t,($Xt(),tme)))===HS((WCt(),z_e)),A=new Gd(t.j);A.a<A.c.c.length;)switch((d=Q$(J1(A),11)).j.g){case 1:i||(d.n.a*=m);break;case 2:d.n.a+=g,i||(d.n.b*=s);break;case 3:i||(d.n.a*=m),d.n.b+=a;break;case 4:i||(d.n.b*=s)}for(l=new Gd(t.b);l.a<l.c.c.length;)u=(c=Q$(J1(l),70)).n.a+c.o.a/2,h=c.n.b+c.o.b/2,(p=u/f.a)+(o=h/f.b)>=1&&(p-o>0&&h>=0?(c.n.a+=g,c.n.b+=a*o):p-o<0&&u>=0&&(c.n.a+=g*p,c.n.b+=a));t.o.a=e.a,t.o.b=e.b,lct(t,($Xt(),Rpe),(bgt(),new WR(r=Q$(Xk(WSe),9),Q$(xP(r,r.length),9),0)))}function dKt(t,e,n,r,i,a){if(null!=e&&Gdt(e,_Ie,SIe))throw Um(new Py("invalid scheme: "+e));if(!(t||null!=n&&-1==HL(n,qxt(35))&&n.length>0&&(h1(0,n.length),47!=n.charCodeAt(0))))throw Um(new Py("invalid opaquePart: "+n));if(t&&(null==e||!Ox(vIe,e.toLowerCase()))&&null!=n&&Gdt(n,LIe,IIe))throw Um(new Py(s7t+n));if(t&&null!=e&&Ox(vIe,e.toLowerCase())&&!BCt(n))throw Um(new Py(s7t+n));if(!zdt(r))throw Um(new Py("invalid device: "+r));if(!Nut(i))throw Um(new Py(null==i?"invalid segments: null":"invalid segment: "+cut(i)));if(null!=a&&-1!=HL(a,qxt(35)))throw Um(new Py("invalid query: "+a))}function AKt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;for(Sxt(n,"Calculate Graph Size",1),n.n&&t&&b0(n,o2(t),(Ult(),aLe)),c=JJt,l=JJt,o=Z3t,s=Z3t,f=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));f.e!=f.i.gc();)g=(u=Q$(ymt(f),33)).i,p=u.j,b=u.g,i=u.f,a=Q$(JIt(u,(cVt(),LTe)),142),c=e.Math.min(c,g-a.b),l=e.Math.min(l,p-a.d),o=e.Math.max(o,g+b+a.c),s=e.Math.max(s,p+i+a.a);for(d=new O_(c-(A=Q$(JIt(t,(cVt(),zTe)),116)).b,l-A.d),h=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));h.e!=h.i.gc();)Tnt(u=Q$(ymt(h),33),u.i-d.a),Bnt(u,u.j-d.b);m=o-c+(A.b+A.c),r=s-l+(A.d+A.a),Ent(t,m),xnt(t,r),n.n&&t&&b0(n,o2(t),(Ult(),aLe))}function gKt(t){var e,n,r,i,a,o,s,c,l,u;for(r=new Mm,o=new Gd(t.e.a);o.a<o.c.c.length;){for(u=0,(i=Q$(J1(o),121)).k.c=O8(Lte,$Vt,1,0,5,1),n=new Gd(ydt(i));n.a<n.c.c.length;)(e=Q$(J1(n),213)).f&&(G$(i.k,e),++u);1==u&&(r.c[r.c.length]=i)}for(a=new Gd(r);a.a<a.c.c.length;)for(i=Q$(J1(a),121);1==i.k.c.length;){for(l=Q$(J1(new Gd(i.k)),213),t.b[l.c]=l.g,s=l.d,c=l.e,n=new Gd(ydt(i));n.a<n.c.c.length;)Oht(e=Q$(J1(n),213),l)||(e.f?s==e.d||c==e.e?t.b[l.c]-=t.b[e.c]-e.g:t.b[l.c]+=t.b[e.c]-e.g:i==s?e.d==i?t.b[l.c]+=e.g:t.b[l.c]-=e.g:e.d==i?t.b[l.c]-=e.g:t.b[l.c]+=e.g);b9(s.k,l),b9(c.k,l),i=s==i?l.e:l.d}}function pKt(t,e){var n,r,i,a,o,s,c,l,u,h,f;if(null==e||0==e.length)return null;if(!(a=Q$(xJ(t.f,e),23))){for(i=new Nd(new _d(t.d).a.vc().Kc());i.a.Ob();)if(o=Q$(i.a.Pb(),42),s=(n=Q$(o.dd(),23)).f,f=e.length,mR(s.substr(s.length-f,f),e)&&(e.length==s.length||46==lW(s,s.length-e.length-1))){if(a)return null;a=n}if(!a)for(r=new Nd(new _d(t.d).a.vc().Kc());r.a.Ob();)if(o=Q$(r.a.Pb(),42),null!=(h=(n=Q$(o.dd(),23)).g))for(l=0,u=(c=h).length;l<u;++l)if(s=c[l],f=e.length,mR(s.substr(s.length-f,f),e)&&(e.length==s.length||46==lW(s,s.length-e.length-1))){if(a)return null;a=n}a&&mZ(t.f,e,a)}return a}function mKt(t,e){var n,r,i,a,o;for(n=new Bw,o=!1,a=0;a<e.length;a++)if(h1(a,e.length),32!=(r=e.charCodeAt(a)))o?39==r?a+1<e.length&&(h1(a+1,e.length),39==e.charCodeAt(a+1))?(n.a+=String.fromCharCode(r),++a):o=!1:n.a+=String.fromCharCode(r):HL("GyMLdkHmsSEcDahKzZv",qxt(r))>0?(Tmt(t,n,0),n.a+=String.fromCharCode(r),Tmt(t,n,i=ipt(e,a)),a+=i-1):39==r?a+1<e.length&&(h1(a+1,e.length),39==e.charCodeAt(a+1))?(n.a+="'",++a):o=!0:n.a+=String.fromCharCode(r);else for(Tmt(t,n,0),n.a+=" ",Tmt(t,n,0);a+1<e.length&&(h1(a+1,e.length),32==e.charCodeAt(a+1));)++a;Tmt(t,n,0),pxt(t)}function bKt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m;if(Sxt(r,"Network simplex layering",1),t.b=n,m=4*Q$(bEt(n,($Xt(),Ome)),19).a,(p=t.b.a).c.length<1)$Tt(r);else{for(g=null,a=cmt(o=_Rt(t,p),0);a.b!=a.d.c;){for(i=Q$(h3(a),15),c=m*TJ(e.Math.sqrt(i.gc())),XRt(Vw(qw(Ww(QQ(s=sQt(i)),c),g),!0),bat(r,1)),f=t.b.b,A=new Gd(s.a);A.a<A.c.c.length;){for(d=Q$(J1(A),121);f.c.length<=d.e;)vK(f,f.c.length,new UX(t.b));EZ(Q$(d.f,10),Q$(Oj(f,d.e),29))}if(o.b>1)for(g=O8(_De,lqt,25,t.b.b.c.length,15,1),h=0,u=new Gd(t.b.b);u.a<u.c.c.length;)l=Q$(J1(u),29),g[h++]=l.a.c.length}p.c=O8(Lte,$Vt,1,0,5,1),t.a=null,t.b=null,t.c=null,$Tt(r)}}function vKt(t){var n,r,i,a,o,s,c;for(n=0,o=new Gd(t.b.a);o.a<o.c.c.length;)(i=Q$(J1(o),189)).b=0,i.c=0;for(kTt(t,0),eAt(t,t.g),yDt(t.c),Yy(t.c),Qht(),r=PBe,FRt(tL(xzt(FRt(tL(xzt(FRt(xzt(t.c,r)),wft(r)))),r))),xzt(t.c,PBe),Uft(t,t.g),yEt(t,0),pHt(t,0),xMt(t,1),kTt(t,1),eAt(t,t.d),yDt(t.c),s=new Gd(t.b.a);s.a<s.c.c.length;)i=Q$(J1(s),189),n+=e.Math.abs(i.c);for(c=new Gd(t.b.a);c.a<c.c.c.length;)(i=Q$(J1(c),189)).b=0,i.c=0;for(r=UBe,FRt(tL(xzt(FRt(tL(xzt(FRt(Yy(xzt(t.c,r))),wft(r)))),r))),xzt(t.c,PBe),Uft(t,t.d),yEt(t,1),pHt(t,1),xMt(t,0),Yy(t.c),a=new Gd(t.b.a);a.a<a.c.c.length;)i=Q$(J1(a),189),n+=e.Math.abs(i.c);return n}function yKt(t,e){var n,r,i,a,o,s,c,l,u;if(null!=(l=e).b&&null!=t.b){for(CMt(t),HHt(t),CMt(l),HHt(l),n=O8(_De,lqt,25,t.b.length+l.b.length,15,1),u=0,r=0,o=0;r<t.b.length&&o<l.b.length;)if(i=t.b[r],a=t.b[r+1],s=l.b[o],c=l.b[o+1],a<s)r+=2;else if(a>=s&&i<=c)s<=i&&a<=c?(n[u++]=i,n[u++]=a,r+=2):s<=i?(n[u++]=i,n[u++]=c,t.b[r]=c+1,o+=2):a<=c?(n[u++]=s,n[u++]=a,r+=2):(n[u++]=s,n[u++]=c,t.b[r]=c+1);else{if(!(c<i))throw Um(new dy("Token#intersectRanges(): Internal Error: ["+t.b[r]+","+t.b[r+1]+"] & ["+l.b[o]+","+l.b[o+1]+"]"));o+=2}for(;r<t.b.length;)n[u++]=t.b[r++],n[u++]=t.b[r++];t.b=O8(_De,lqt,25,u,15,1),aHt(n,0,t.b,0,u)}}function wKt(t){var n,r,i,a,o,s,c;for(n=new Mm,t.g=new Mm,t.d=new Mm,s=new olt(new Ed(t.f.b).a);s.b;)G$(n,Q$(Q$((o=tnt(s)).dd(),46).b,81)),dI(Q$(o.cd(),594).gf())?G$(t.d,Q$(o.dd(),46)):G$(t.g,Q$(o.dd(),46));for(eAt(t,t.d),eAt(t,t.g),t.c=new cLt(t.b),tk(t.c,(pE(),Hoe)),Uft(t,t.d),Uft(t,t.g),gst(n,t.c.a.b),t.e=new O_(Nqt,Nqt),t.a=new O_(Pqt,Pqt),i=new Gd(n);i.a<i.c.c.length;)r=Q$(J1(i),81),t.e.a=e.Math.min(t.e.a,r.g.c),t.e.b=e.Math.min(t.e.b,r.g.d),t.a.a=e.Math.max(t.a.a,r.g.c+r.g.b),t.a.b=e.Math.max(t.a.b,r.g.d+r.g.a);Zw(t.c,new we),c=0;do{a=vKt(t),++c}while((c<2||a>PWt)&&c<10);Zw(t.c,new ke),vKt(t),BG(t.c),uKt(t.f)}function kKt(t,e,n){var r,i,a,o,s,c,l,u,h,f;if($y(kN(bEt(n,($Xt(),fpe)))))for(i=new Gd(n.j);i.a<i.c.c.length;)for(s=0,c=(o=Y0(Q$(J1(i),11).g)).length;s<c;++s)(a=o[s]).d.i==n&&$y(kN(bEt(a,dpe)))&&(u=a.c,(l=Q$(FX(t.b,u),10))||(lct(l=fXt(u,(WCt(),V_e),u.j,-1,null,null,u.o,Q$(bEt(e,Kge),103),e),(lVt(),dfe),u),XV(t.b,u,l),G$(e.a,l)),f=a.d,(h=Q$(FX(t.b,f),10))||(lct(h=fXt(f,(WCt(),V_e),f.j,1,null,null,f.o,Q$(bEt(e,Kge),103),e),(lVt(),dfe),f),XV(t.b,f,h),G$(e.a,h)),xZ(r=G5(a),Q$(Oj(l.j,0),11)),CZ(r,Q$(Oj(h.j,0),11)),YSt(t.a,a,new IQ(r,e,(art(),$be))),Q$(bEt(e,(lVt(),Yhe)),21).Fc((fNt(),uhe)))}function CKt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A;for(Sxt(n,"Label dummy switching",1),r=Q$(bEt(e,($Xt(),Xge)),227),pat(e),i=wMt(e,r),t.a=O8(MDe,Hqt,25,e.b.c.length,15,1),IBt(),u=0,d=(s=Tst(Hw(aue,1),IWt,227,0,[Yle,Zle,qle,Jle,tue,Wle])).length;u<d;++u)if(((a=s[u])==tue||a==Wle||a==Jle)&&!Q$(xD(i.a,a)?i.b[a.g]:null,15).dc()){Jat(t,e);break}for(h=0,A=(c=Tst(Hw(aue,1),IWt,227,0,[Yle,Zle,qle,Jle,tue,Wle])).length;h<A;++h)(a=c[h])==tue||a==Wle||a==Jle||jRt(t,Q$(xD(i.a,a)?i.b[a.g]:null,15));for(l=0,f=(o=Tst(Hw(aue,1),IWt,227,0,[Yle,Zle,qle,Jle,tue,Wle])).length;l<f;++l)((a=o[l])==tue||a==Wle||a==Jle)&&jRt(t,Q$(xD(i.a,a)?i.b[a.g]:null,15));t.a=null,$Tt(n)}function xKt(t,e){var n,r,i,a,o,s,c,l,u,h,f;switch(t.k.g){case 1:if(r=Q$(bEt(t,(lVt(),dfe)),17),(n=Q$(bEt(r,Afe),74))?$y(kN(bEt(r,Tfe)))&&(n=Yct(n)):n=new vv,l=Q$(bEt(t,cfe),11)){if(e<=(u=Lct(Tst(Hw(EEe,1),cWt,8,0,[l.i.n,l.n,l.a]))).a)return u.b;n5(n,u,n.a,n.a.a)}if(h=Q$(bEt(t,lfe),11)){if((f=Lct(Tst(Hw(EEe,1),cWt,8,0,[h.i.n,h.n,h.a]))).a<=e)return f.b;n5(n,f,n.c.b,n.c)}if(n.b>=2){for(o=Q$(h3(c=cmt(n,0)),8),s=Q$(h3(c),8);s.a<e&&c.b!=c.d.c;)o=s,s=Q$(h3(c),8);return o.b+(e-o.a)/(s.a-o.a)*(s.b-o.b)}break;case 3:switch(i=(a=Q$(bEt(Q$(Oj(t.j,0),11),(lVt(),dfe)),11)).i,a.j.g){case 1:return i.n.b;case 3:return i.n.b+i.o.b}}return Qkt(t).b}function EKt(t){var e,n,r,i,a,o,s,c,l,h;for(a=new Gd(t.d.b);a.a<a.c.c.length;)for(s=new Gd(Q$(J1(a),29).a);s.a<s.c.c.length;)!$y(kN(bEt(o=Q$(J1(s),10),($Xt(),kge))))||c3(ldt(o))?(i=new KW(o.n.a-o.d.b,o.n.b-o.d.d,o.o.a+o.d.b+o.d.c,o.o.b+o.d.d+o.d.a),e=_D(eE(Zx(tE(new Gb,o),i),dle),t.a),BD(Jx(Gnt(new zb,Tst(Hw(hre,1),$Vt,57,0,[e])),e),t.a),c=new Dm,XV(t.e,e,c),(n=R3(new oz(YO(udt(o).a.Kc(),new u)))-R3(new oz(YO(hdt(o).a.Kc(),new u))))<0?zst(c,!0,(Qht(),PBe)):n>0&&zst(c,!0,(Qht(),RBe)),o.k==(oTt(),Cse)&&fW(c),XV(t.f,o,e)):((l=(r=Q$(eY(ldt(o)),17)).c.i)==o&&(l=r.d.i),h=new nS(l,zP(QM(o.n),l.n)),XV(t.b,o,h))}function TKt(t,n,r){var i,a,o,s,c,l,u,h;switch(Sxt(r,"Node promotion heuristic",1),t.g=n,vGt(t),t.q=Q$(bEt(n,($Xt(),xpe)),260),h=Q$(bEt(t.g,Cpe),19).a,o=new ur,t.q.g){case 2:case 1:default:RHt(t,o);break;case 3:for(t.q=(cDt(),_be),RHt(t,o),l=0,c=new Gd(t.a);c.a<c.c.c.length;)s=Q$(J1(c),19),l=e.Math.max(l,s.a);l>t.j&&(t.q=kbe,RHt(t,o));break;case 4:for(t.q=(cDt(),_be),RHt(t,o),u=0,a=new Gd(t.b);a.a<a.c.c.length;)i=CN(J1(a)),u=e.Math.max(u,(vV(i),i));u>t.k&&(t.q=Ebe,RHt(t,o));break;case 6:RHt(t,new og(TJ(e.Math.ceil(t.f.length*h/100))));break;case 5:RHt(t,new sg(TJ(e.Math.ceil(t.d*h/100))))}sNt(t,n),$Tt(r)}function BKt(t,e,n){var r,i,a,o;this.j=t,this.e=HCt(t),this.o=this.j.e,this.i=!!this.o,this.p=this.i?Q$(Oj(n,pV(this.o).p),214):null,i=Q$(bEt(t,(lVt(),Yhe)),21),this.g=i.Hc((fNt(),uhe)),this.b=new Mm,this.d=new dgt(this.e),o=Q$(bEt(this.j,xfe),230),this.q=$ot(e,o,this.e),this.k=new iZ(this),a=a6(Tst(Hw(yle,1),$Vt,225,0,[this,this.d,this.k,this.q])),e!=(srt(),_ve)||$y(kN(bEt(t,($Xt(),Oge))))?e==_ve&&$y(kN(bEt(t,($Xt(),Oge))))?(r=new zCt(this.e),a.c[a.c.length]=r,this.c=new pit(r,o,Q$(this.q,402))):this.c=new pB(e,this):(r=new zCt(this.e),a.c[a.c.length]=r,this.c=new H2(r,o,Q$(this.q,402))),G$(a,this.c),BHt(a,this.e),this.s=dXt(this.k)}function _Kt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;for(f=(l=Q$(eO(new fp(cmt(new hp(e).a.d,0))),86))?Q$(bEt(l,(Hjt(),rwe)),86):null,i=1;l&&f;){for(o=0,b=0,n=l,r=f,a=0;a<i;a++)n=H8(n),r=H8(r),b+=Hy(CN(bEt(n,(Hjt(),owe)))),o+=Hy(CN(bEt(r,owe)));if(m=Hy(CN(bEt(f,(Hjt(),lwe)))),p=Hy(CN(bEt(l,lwe))),u=w5(l,f),0<(h=m+o+t.a+u-p-b)){for(s=e,c=0;s&&s!=r;)++c,s=Q$(bEt(s,iwe),86);if(!s)return;for(g=h/c,s=e;s!=r;)A=Hy(CN(bEt(s,lwe)))+h,lct(s,lwe,A),d=Hy(CN(bEt(s,owe)))+h,lct(s,owe,d),h-=g,s=Q$(bEt(s,iwe),86)}++i,f=(l=0==l.d.b?JRt(new hp(e),i):Q$(eO(new fp(cmt(new hp(l).a.d,0))),86))?Q$(bEt(l,rwe),86):null}}function SKt(t,e){var n,r,i,a,o,s,c,l,h;for(s=!0,i=0,c=t.f[e.p],l=e.o.b+t.n,n=t.c[e.p][2],r5(t.a,c,nft(Q$(Oj(t.a,c),19).a-1+n)),r5(t.b,c,Hy(CN(Oj(t.b,c)))-l+n*t.e),++c>=t.i?(++t.i,G$(t.a,nft(1)),G$(t.b,l)):(r=t.c[e.p][1],r5(t.a,c,nft(Q$(Oj(t.a,c),19).a+1-r)),r5(t.b,c,Hy(CN(Oj(t.b,c)))+l-r*t.e)),(t.q==(cDt(),kbe)&&(Q$(Oj(t.a,c),19).a>t.j||Q$(Oj(t.a,c-1),19).a>t.j)||t.q==Ebe&&(Hy(CN(Oj(t.b,c)))>t.k||Hy(CN(Oj(t.b,c-1)))>t.k))&&(s=!1),a=new oz(YO(udt(e).a.Kc(),new u));AIt(a);)o=Q$(K5(a),17).c.i,t.f[o.p]==c&&(i+=Q$((h=SKt(t,o)).a,19).a,s=s&&$y(kN(h.b)));return t.f[e.p]=c,new nS(nft(i+=t.c[e.p][0]),(cD(),!!s))}function LKt(t,n,r,i,a){var o,s,c,l,u,h,f,d,A,g,p,m,b;for(f=new Om,s=new Mm,rSt(t,r,t.d.fg(),s,f),rSt(t,i,t.d.gg(),s,f),t.b=.2*(p=UIt(ftt(new Fj(null,new f1(s,16)),new Bo)),m=UIt(ftt(new Fj(null,new f1(s,16)),new _o)),e.Math.min(p,m)),o=0,c=0;c<s.c.length-1;c++)for(u1(c,s.c.length),l=Q$(s.c[c],112),g=c+1;g<s.c.length;g++)o+=gHt(t,l,(u1(g,s.c.length),Q$(s.c[g],112)));for(d=Q$(bEt(n,(lVt(),xfe)),230),o>=2&&(b=WOt(s,!0,d),!t.e&&(t.e=new up(t)),cpt(t.e,b,s,t.b)),nxt(s,d),izt(s),A=-1,h=new Gd(s);h.a<h.c.c.length;)u=Q$(J1(h),112),e.Math.abs(u.s-u.c)<hZt||(A=e.Math.max(A,u.o),t.d.dg(u,a,t.c));return t.d.a.a.$b(),A+1}function IKt(t,e){var n,r;Hy(CN(bEt(e,($Xt(),bme))))<2&&lct(e,bme,2),Q$(bEt(e,Kge),103)==(Qht(),QBe)&&lct(e,Kge,Xft(e)),0==(n=Q$(bEt(e,fme),19)).a?lct(e,(lVt(),xfe),new cdt):lct(e,(lVt(),xfe),new T4(n.a)),null==kN(bEt(e,Ope))&&lct(e,Ope,(cD(),HS(bEt(e,Yge))===HS((xdt(),VBe)))),qx(new Fj(null,new f1(e.a,16)),new FA(t)),qx(ftt(new Fj(null,new f1(e.b,16)),new be),new NA(t)),r=new cKt(e),lct(e,(lVt(),Sfe),r),c2(t.a),TG(t.a,(vEt(),Foe),Q$(bEt(e,Hge),246)),TG(t.a,Noe,Q$(bEt(e,Epe),246)),TG(t.a,Poe,Q$(bEt(e,$ge),246)),TG(t.a,Roe,Q$(bEt(e,Ppe),246)),TG(t.a,Qoe,Eot(Q$(bEt(e,Yge),218))),iI(t.a,MXt(e)),lct(e,Cfe,Ijt(t.a,e))}function MKt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;return f=t.c[e],d=t.c[n],!((A=Q$(bEt(f,(lVt(),rfe)),15))&&0!=A.gc()&&A.Hc(d)||(g=f.k!=(oTt(),Ese)&&d.k!=Ese,b=(p=Q$(bEt(f,nfe),10))!=(m=Q$(bEt(d,nfe),10)),v=!!p&&p!=f||!!m&&m!=d,y=svt(f,(yGt(),sSe)),w=svt(d,xSe),v|=svt(f,xSe)||svt(d,sSe),g&&(v&&b||y||w))||f.k==(oTt(),Bse)&&d.k==Tse||d.k==(oTt(),Bse)&&f.k==Tse)&&(u=t.c[e],a=t.c[n],i=ukt(t.e,u,a,(yGt(),TSe)),c=ukt(t.i,u,a,oSe),CDt(t.f,u,a),l=Olt(t.b,u,a)+Q$(i.a,19).a+Q$(c.a,19).a+t.f.d,s=Olt(t.b,a,u)+Q$(i.b,19).a+Q$(c.b,19).a+t.f.b,t.a&&(h=Q$(bEt(u,dfe),11),o=Q$(bEt(a,dfe),11),l+=Q$((r=Hyt(t.g,h,o)).a,19).a,s+=Q$(r.b,19).a),l>s)}function OKt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p;for(r=Q$(bEt(t,($Xt(),tme)),98),s=t.f,o=t.d,c=s.a+o.b+o.c,l=0-o.d-t.c.b,h=s.b+o.d+o.a-t.c.b,u=new Mm,f=new Mm,a=new Gd(n);a.a<a.c.c.length;){switch(i=Q$(J1(a),10),r.g){case 1:case 2:case 3:RDt(i);break;case 4:A=(d=Q$(bEt(i,Jpe),8))?d.a:0,i.n.a=c*Hy(CN(bEt(i,(lVt(),kfe))))-A,Yot(i,!0,!1);break;case 5:p=(g=Q$(bEt(i,Jpe),8))?g.a:0,i.n.a=Hy(CN(bEt(i,(lVt(),kfe))))-p,Yot(i,!0,!1),s.a=e.Math.max(s.a,i.n.a+i.o.a/2)}switch(Q$(bEt(i,(lVt(),Vhe)),61).g){case 1:i.n.b=l,u.c[u.c.length]=i;break;case 3:i.n.b=h,f.c[f.c.length]=i}}switch(r.g){case 1:case 2:Nht(u,t),Nht(f,t);break;case 3:Pht(u,t),Pht(f,t)}}function DKt(t,e){var n,r,i,a,o,s,c,l,u,h;for(u=new Mm,h=new Im,a=null,i=0,r=0;r<e.length;++r)switch(Nlt(a,n=e[r])&&(i=Bgt(t,h,u,Nve,i)),IF(n,(lVt(),nfe))&&(a=Q$(bEt(n,nfe),10)),n.k.g){case 0:for(c=$I(N$(adt(n,(yGt(),sSe)),new Fa));Jrt(c);)o=Q$(E9(c),11),t.d[o.p]=i++,u.c[u.c.length]=o;for(i=Bgt(t,h,u,Nve,i),l=$I(N$(adt(n,xSe),new Fa));Jrt(l);)o=Q$(E9(l),11),t.d[o.p]=i++,u.c[u.c.length]=o;break;case 3:adt(n,Fve).dc()||(o=Q$(adt(n,Fve).Xb(0),11),t.d[o.p]=i++,u.c[u.c.length]=o),adt(n,Nve).dc()||d3(h,n);break;case 1:for(s=adt(n,(yGt(),TSe)).Kc();s.Ob();)o=Q$(s.Pb(),11),t.d[o.p]=i++,u.c[u.c.length]=o;adt(n,oSe).Jc(new YB(h,n))}return Bgt(t,h,u,Nve,i),u}function FKt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;for(u=Nqt,h=Nqt,c=Pqt,l=Pqt,d=new Gd(n.i);d.a<d.c.c.length;)f=Q$(J1(d),65),xI(a=Q$(Q$(FX(t.g,f.a),46).b,33),f.b.c,f.b.d),u=e.Math.min(u,a.i),h=e.Math.min(h,a.j),c=e.Math.max(c,a.i+a.g),l=e.Math.max(l,a.j+a.f);for(A=Q$(JIt(t.c,(xEt(),hxe)),116),PGt(t.c,c-u+(A.b+A.c),l-h+(A.d+A.a),!0,!0),hEt(t.c,-u+A.b,-h+A.d),i=new SO(eq(t.c));i.e!=i.i.gc();)s=iNt(r=Q$(ymt(i),79),!0,!0),g=TEt(r),m=SEt(r),p=new O_(g.i+g.g/2,g.j+g.f/2),o=new O_(m.i+m.g/2,m.j+m.f/2),zwt(b=zP(new O_(o.a,o.b),p),g.g,g.f),KP(p,b),zwt(v=zP(new O_(p.a,p.b),o),m.g,m.f),KP(o,v),TI(s,p.a,p.b),EI(s,o.a,o.b)}function NKt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d;if(t.c=t.d,f=null==(d=kN(bEt(e,($Xt(),dme))))||(vV(d),d),a=Q$(bEt(e,(lVt(),Yhe)),21).Hc((fNt(),uhe)),n=!((i=Q$(bEt(e,tme),98))==(WCt(),K_e)||i==G_e||i==z_e),!f||!n&&a)h=new qy(Tst(Hw(yse,1),YZt,37,0,[e]));else{for(u=new Gd(e.a);u.a<u.c.c.length;)Q$(J1(u),10).p=0;for(h=new Mm,l=new Gd(e.a);l.a<l.c.c.length;)if(r=MQt(t,Q$(J1(l),10),null)){for(Hot(c=new brt,e),lct(c,zhe,Q$(r.b,21)),vq(c.d,e.d),lct(c,Upe,null),s=Q$(r.a,15).Kc();s.Ob();)o=Q$(s.Pb(),10),G$(c.a,o),o.a=c;h.Fc(c)}a&&(HS(bEt(e,Tge))===HS((Uht(),use))?t.c=t.b:t.c=t.a)}return HS(bEt(e,Tge))!==HS((Uht(),fse))&&(xq(),h.ad(new De)),h}function PKt(t){ME(t,new xxt(mk(dk(pk(fk(gk(Ak(new ps,W3t),"ELK Mr. Tree"),"Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."),new Fo),q3t),Zft((lIt(),WLe))))),a2(t,W3t,WJt,_we),a2(t,W3t,mZt,20),a2(t,W3t,VJt,AZt),a2(t,W3t,pZt,nft(1)),a2(t,W3t,yZt,(cD(),!0)),a2(t,W3t,G2t,bmt(wwe)),a2(t,W3t,TZt,bmt(Cwe)),a2(t,W3t,UZt,bmt(xwe)),a2(t,W3t,EZt,bmt(Ewe)),a2(t,W3t,BZt,bmt(kwe)),a2(t,W3t,xZt,bmt(Twe)),a2(t,W3t,_Zt,bmt(Swe)),a2(t,W3t,G3t,bmt(Dwe)),a2(t,W3t,X3t,bmt(Iwe))}function RKt(t){t.q||(t.q=!0,t.p=yot(t,0),t.a=yot(t,1),Pit(t.a,0),t.f=yot(t,2),Pit(t.f,1),Nit(t.f,2),t.n=yot(t,3),Nit(t.n,3),Nit(t.n,4),Nit(t.n,5),Nit(t.n,6),t.g=yot(t,4),Pit(t.g,7),Nit(t.g,8),t.c=yot(t,5),Pit(t.c,7),Pit(t.c,8),t.i=yot(t,6),Pit(t.i,9),Pit(t.i,10),Pit(t.i,11),Pit(t.i,12),Nit(t.i,13),t.j=yot(t,7),Pit(t.j,9),t.d=yot(t,8),Pit(t.d,3),Pit(t.d,4),Pit(t.d,5),Pit(t.d,6),Nit(t.d,7),Nit(t.d,8),Nit(t.d,9),Nit(t.d,10),t.b=yot(t,9),Nit(t.b,0),Nit(t.b,1),t.e=yot(t,10),Nit(t.e,1),Nit(t.e,2),Nit(t.e,3),Nit(t.e,4),Pit(t.e,5),Pit(t.e,6),Pit(t.e,7),Pit(t.e,8),Pit(t.e,9),Pit(t.e,10),Nit(t.e,11),t.k=yot(t,11),Nit(t.k,0),Nit(t.k,1),t.o=wot(t,12),t.s=wot(t,13))}function QKt(t,e){e.dc()&&tH(t.j,!0,!0,!0,!0),Oht(e,(yGt(),dSe))&&tH(t.j,!0,!0,!0,!1),Oht(e,cSe)&&tH(t.j,!1,!0,!0,!0),Oht(e,wSe)&&tH(t.j,!0,!0,!1,!0),Oht(e,CSe)&&tH(t.j,!0,!1,!0,!0),Oht(e,ASe)&&tH(t.j,!1,!0,!0,!1),Oht(e,lSe)&&tH(t.j,!1,!0,!1,!0),Oht(e,kSe)&&tH(t.j,!0,!1,!1,!0),Oht(e,ySe)&&tH(t.j,!0,!1,!0,!1),Oht(e,bSe)&&tH(t.j,!0,!0,!0,!0),Oht(e,hSe)&&tH(t.j,!0,!0,!0,!0),Oht(e,bSe)&&tH(t.j,!0,!0,!0,!0),Oht(e,uSe)&&tH(t.j,!0,!0,!0,!0),Oht(e,vSe)&&tH(t.j,!0,!0,!0,!0),Oht(e,mSe)&&tH(t.j,!0,!0,!0,!0),Oht(e,pSe)&&tH(t.j,!0,!0,!0,!0)}function UKt(t,e,n,r,i){var a,o,s,c,l,u,h,f,d,A,g,p;for(a=new Mm,l=new Gd(r);l.a<l.c.c.length;)if(o=null,(s=Q$(J1(l),441)).f==(art(),$be))for(A=new Gd(s.e);A.a<A.c.c.length;)pV(p=(d=Q$(J1(A),17)).d.i)==e?Eet(t,e,s,d,s.b,d.d):!n||dot(p,n)?jEt(t,e,s,r,d):((f=MHt(t,e,n,d,s.b,$be,o))!=o&&(a.c[a.c.length]=f),f.c&&(o=f));else for(h=new Gd(s.e);h.a<h.c.c.length;)if(pV(g=(u=Q$(J1(h),17)).c.i)==e)Eet(t,e,s,u,u.c,s.b);else{if(!n||dot(g,n))continue;(f=MHt(t,e,n,u,s.b,Ube,o))!=o&&(a.c[a.c.length]=f),f.c&&(o=f)}for(c=new Gd(a);c.a<c.c.c.length;)s=Q$(J1(c),441),-1!=w9(e.a,s.a,0)||G$(e.a,s.a),s.c&&(i.c[i.c.length]=s)}function $Kt(t,e,n){var r,i,a,o,s,c,l,u;for(c=new Mm,s=new Gd(e.a);s.a<s.c.c.length;)for(u=adt(Q$(J1(s),10),(yGt(),oSe)).Kc();u.Ob();)for(i=new Gd(Q$(u.Pb(),11).g);i.a<i.c.c.length;)!h5(r=Q$(J1(i),17))&&r.c.i.c==r.d.i.c||h5(r)||r.d.i.c!=n||(c.c[c.c.length]=r);for(o=eot(n.a).Kc();o.Ob();)for(u=adt(Q$(o.Pb(),10),(yGt(),TSe)).Kc();u.Ob();)for(i=new Gd(Q$(u.Pb(),11).e);i.a<i.c.c.length;)if((h5(r=Q$(J1(i),17))||r.c.i.c!=r.d.i.c)&&!h5(r)&&r.c.i.c==e){for(EF((l=new C2(c,c.c.length)).b>0),a=Q$(l.a.Xb(l.c=--l.b),17);a!=r&&l.b>0;)t.a[a.p]=!0,t.a[r.p]=!0,EF(l.b>0),a=Q$(l.a.Xb(l.c=--l.b),17);l.b>0&&lV(l)}}function HKt(t,e,n){var r,i,a,o,s,c,l,u,h;if(t.a!=e.Aj())throw Um(new Py(A6t+e.ne()+g6t));if(r=Bht((_Bt(),qMe),e).$k())return r.Aj().Nh().Ih(r,n);if(o=Bht(qMe,e).al()){if(null==n)return null;if((s=Q$(n,15)).dc())return"";for(h=new xw,a=s.Kc();a.Ob();)i=a.Pb(),rL(h,o.Aj().Nh().Ih(o,i)),h.a+=" ";return NL(h,h.a.length-1)}if(!(u=Bht(qMe,e).bl()).dc()){for(l=u.Kc();l.Ob();)if((c=Q$(l.Pb(),148)).wj(n))try{if(null!=(h=c.Aj().Nh().Ih(c,n)))return h}catch(t){if(!rO(t=hst(t),102))throw Um(t)}throw Um(new Py("Invalid value: '"+n+"' for datatype :"+e.ne()))}return Q$(e,834).Fj(),null==n?null:rO(n,172)?""+Q$(n,172).a:tlt(n)==bee?UM(BLe[0],Q$(n,199)):Udt(n)}function jKt(t){var n,r,i,a,o,s,c,l,u;for(l=new Wx,s=new Wx,a=new Gd(t);a.a<a.c.c.length;)(r=Q$(J1(a),128)).v=0,r.n=r.i.c.length,r.u=r.t.c.length,0==r.n&&n5(l,r,l.c.b,l.c),0==r.u&&0==r.r.a.gc()&&n5(s,r,s.c.b,s.c);for(o=-1;0!=l.b;)for(n=new Gd((r=Q$(twt(l,0),128)).t);n.a<n.c.c.length;)(u=Q$(J1(n),268).b).v=e.Math.max(u.v,r.v+1),o=e.Math.max(o,u.v),--u.n,0==u.n&&n5(l,u,l.c.b,l.c);if(o>-1){for(i=cmt(s,0);i.b!=i.d.c;)(r=Q$(h3(i),128)).v=o;for(;0!=s.b;)for(n=new Gd((r=Q$(twt(s,0),128)).i);n.a<n.c.c.length;)0==(c=Q$(J1(n),268).a).r.a.gc()&&(c.v=e.Math.min(c.v,r.v-1),--c.u,0==c.u&&n5(s,c,s.c.b,s.c))}}function KKt(t,n,r,i,a){var o,s,c,l;return l=Nqt,s=!1,o=!!(c=K$t(t,zP(new O_(n.a,n.b),t),KP(new O_(r.a,r.b),a),zP(new O_(i.a,i.b),r)))&&!(e.Math.abs(c.a-t.a)<=c5t&&e.Math.abs(c.b-t.b)<=c5t||e.Math.abs(c.a-n.a)<=c5t&&e.Math.abs(c.b-n.b)<=c5t),(c=K$t(t,zP(new O_(n.a,n.b),t),r,a))&&((e.Math.abs(c.a-t.a)<=c5t&&e.Math.abs(c.b-t.b)<=c5t)==(e.Math.abs(c.a-n.a)<=c5t&&e.Math.abs(c.b-n.b)<=c5t)||o?l=e.Math.min(l,uV(zP(c,r))):s=!0),(c=K$t(t,zP(new O_(n.a,n.b),t),i,a))&&(s||(e.Math.abs(c.a-t.a)<=c5t&&e.Math.abs(c.b-t.b)<=c5t)==(e.Math.abs(c.a-n.a)<=c5t&&e.Math.abs(c.b-n.b)<=c5t)||o)&&(l=e.Math.min(l,uV(zP(c,i)))),l}function zKt(t){ME(t,new xxt(dk(pk(fk(gk(Ak(new ps,RZt),QZt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new ge),gZt))),a2(t,RZt,wZt,bmt(voe)),a2(t,RZt,CZt,(cD(),!0)),a2(t,RZt,TZt,bmt(koe)),a2(t,RZt,UZt,bmt(Coe)),a2(t,RZt,EZt,bmt(xoe)),a2(t,RZt,BZt,bmt(woe)),a2(t,RZt,xZt,bmt(Eoe)),a2(t,RZt,_Zt,bmt(Toe)),a2(t,RZt,OZt,bmt(boe)),a2(t,RZt,FZt,bmt(poe)),a2(t,RZt,NZt,bmt(moe)),a2(t,RZt,PZt,bmt(yoe)),a2(t,RZt,DZt,bmt(goe))}function GKt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p;for(Sxt(e,"Interactive crossing minimization",1),o=0,a=new Gd(t.b);a.a<a.c.c.length;)(r=Q$(J1(a),29)).p=o++;for(g=new Fk((f=HCt(t)).length),BHt(new qy(Tst(Hw(yle,1),$Vt,225,0,[g])),f),A=0,o=0,i=new Gd(t.b);i.a<i.c.c.length;){for(n=0,h=0,u=new Gd((r=Q$(J1(i),29)).a);u.a<u.c.c.length;)for((c=Q$(J1(u),10)).n.a>0&&(n+=c.n.a+c.o.a/2,++h),d=new Gd(c.j);d.a<d.c.c.length;)Q$(J1(d),11).p=A++;for(h>0&&(n/=h),p=O8(MDe,Hqt,25,r.a.c.length,15,1),s=0,l=new Gd(r.a);l.a<l.c.c.length;)(c=Q$(J1(l),10)).p=s++,p[c.p]=xKt(c,n),c.k==(oTt(),Ese)&&lct(c,(lVt(),gfe),p[c.p]);xq(),mM(r.a,new Hg(p)),rQt(g,f,o,!0),++o}$Tt(e)}function XKt(t,e){var n,r,i,a,o,s,c,l,u;if(5!=e.e){if(null!=(l=e).b&&null!=t.b){for(CMt(t),HHt(t),CMt(l),HHt(l),n=O8(_De,lqt,25,t.b.length+l.b.length,15,1),u=0,r=0,o=0;r<t.b.length&&o<l.b.length;)if(i=t.b[r],a=t.b[r+1],s=l.b[o],c=l.b[o+1],a<s)n[u++]=t.b[r++],n[u++]=t.b[r++];else if(a>=s&&i<=c)s<=i&&a<=c?r+=2:s<=i?(t.b[r]=c+1,o+=2):a<=c?(n[u++]=i,n[u++]=s-1,r+=2):(n[u++]=i,n[u++]=s-1,t.b[r]=c+1,o+=2);else{if(!(c<i))throw Um(new dy("Token#subtractRanges(): Internal Error: ["+t.b[r]+","+t.b[r+1]+"] - ["+l.b[o]+","+l.b[o+1]+"]"));o+=2}for(;r<t.b.length;)n[u++]=t.b[r++],n[u++]=t.b[r++];t.b=O8(_De,lqt,25,u,15,1),aHt(n,0,t.b,0,u)}}else yKt(t,e)}function VKt(t){var e,n,r,i,a,o,s;if(!t.A.dc()){if(t.A.Hc((bgt(),NSe))&&(Q$(oW(t.b,(yGt(),sSe)),124).k=!0,Q$(oW(t.b,xSe),124).k=!0,e=t.q!=(WCt(),G_e)&&t.q!=z_e,Mf(Q$(oW(t.b,oSe),124),e),Mf(Q$(oW(t.b,TSe),124),e),Mf(t.g,e),t.A.Hc(PSe)&&(Q$(oW(t.b,sSe),124).j=!0,Q$(oW(t.b,xSe),124).j=!0,Q$(oW(t.b,oSe),124).k=!0,Q$(oW(t.b,TSe),124).k=!0,t.g.k=!0)),t.A.Hc(FSe))for(t.a.j=!0,t.a.k=!0,t.g.j=!0,t.g.k=!0,s=t.B.Hc((ZRt(),zSe)),a=0,o=(i=tmt()).length;a<o;++a)r=i[a],(n=Q$(oW(t.i,r),306))&&(apt(r)?(n.j=!0,n.k=!0):(n.j=!s,n.k=!s));t.A.Hc(DSe)&&t.B.Hc((ZRt(),KSe))&&(t.g.j=!0,t.g.j=!0,t.a.j||(t.a.j=!0,t.a.k=!0,t.a.e=!0))}}function WKt(t){var e,n,r,i,a,o,s,c,l,u,h,f,d,A,g;for(n=new Gd(t.e.b);n.a<n.c.c.length;)for(i=new Gd(Q$(J1(n),29).a);i.a<i.c.c.length;)if(r=Q$(J1(i),10),c=(h=t.i[r.p]).a.e,s=h.d.e,r.n.b=c,g=s-c-r.o.b,e=LHt(r),fbt(),u=(r.q?r.q:(xq(),xq(),lne))._b(($Xt(),Fpe))?Q$(bEt(r,Fpe),197):Q$(bEt(pV(r),Npe),197),e&&(u==lbe||u==cbe)&&(r.o.b+=g),e&&(u==hbe||u==lbe||u==cbe)){for(d=new Gd(r.j);d.a<d.c.c.length;)f=Q$(J1(d),11),(yGt(),hSe).Hc(f.j)&&(l=Q$(FX(t.k,f),121),f.n.b=l.e-c);for(o=new Gd(r.b);o.a<o.c.c.length;)a=Q$(J1(o),70),(A=Q$(bEt(r,Lpe),21)).Hc((ZIt(),M_e))?a.n.b+=g:A.Hc(O_e)&&(a.n.b+=g/2);(u==lbe||u==cbe)&&adt(r,(yGt(),xSe)).Jc(new ip(g))}}function qKt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d;if(!t.b)return!1;for(o=null,f=null,i=1,(c=new U8(null,null)).a[1]=t.b,h=c;h.a[i];)l=i,s=f,f=h,h=h.a[i],i=(r=t.a.ue(e,h.d))<0?0:1,0==r&&(!n.c||rW(h.e,n.d))&&(o=h),h&&h.b||Xy(h.a[i])||(Xy(h.a[1-i])?f=f.a[l]=dit(h,i):Xy(h.a[1-i])||(d=f.a[1-l])&&(Xy(d.a[1-l])||Xy(d.a[l])?(a=s.a[1]==f?1:0,Xy(d.a[l])?s.a[a]=n2(f,l):Xy(d.a[1-l])&&(s.a[a]=dit(f,l)),h.b=s.a[a].b=!0,s.a[a].a[0].b=!1,s.a[a].a[1].b=!1):(f.b=!1,d.b=!0,h.b=!0)));return o&&(n.b=!0,n.d=o.e,h!=o&&(fEt(t,c,o,u=new U8(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 YKt(t){var n,r,i,a,o,s,c,l,u,h,f,d;for(a=new Gd(t.a.a.b);a.a<a.c.c.length;)for(l=(i=Q$(J1(a),57)).c.Kc();l.Ob();)c=Q$(l.Pb(),57),i.a!=c.a&&(f=dI(t.a.d)?t.a.g.Oe(i,c):t.a.g.Pe(i,c),o=i.b.a+i.d.b+f-c.b.a,o=e.Math.ceil(o),o=e.Math.max(0,o),Y9(i,c)?(s=SD(new $b,t.d),n=(u=TJ(e.Math.ceil(c.b.a-i.b.a)))-(c.b.a-i.b.a),r=i,(h=l3(i).a)||(h=l3(c).a,n=-n,r=c),h&&(r.b.a-=n,h.n.a-=n),zDt(iE(rE(aE(nE(new Ub,e.Math.max(0,u)),1),s),t.c[i.a.d])),zDt(iE(rE(aE(nE(new Ub,e.Math.max(0,-u)),1),s),t.c[c.a.d]))):(d=1,(rO(i.g,145)&&rO(c.g,10)||rO(c.g,145)&&rO(i.g,10))&&(d=2),zDt(iE(rE(aE(nE(new Ub,TJ(o)),d),t.c[i.a.d]),t.c[c.a.d]))))}function JKt(t,n,r){var i,a,o,s,c,l,u,h,f,d;if(r)for(i=-1,h=new C2(n,0);h.b<h.d.gc();){if(EF(h.b<h.d.gc()),c=Q$(h.d.Xb(h.c=h.b++),10),null==(f=t.c[c.c.p][c.p].a)){for(s=i+1,o=new C2(n,h.b);o.b<o.d.gc();)if(null!=(d=fO(t,(EF(o.b<o.d.gc()),Q$(o.d.Xb(o.c=o.b++),10))).a)){vV(d),s=d;break}f=(i+s)/2,t.c[c.c.p][c.p].a=f,t.c[c.c.p][c.p].d=(vV(f),f),t.c[c.c.p][c.p].b=1}vV(f),i=f}else{for(a=0,u=new Gd(n);u.a<u.c.c.length;)c=Q$(J1(u),10),null!=t.c[c.c.p][c.p].a&&(a=e.Math.max(a,Hy(t.c[c.c.p][c.p].a)));for(a+=2,l=new Gd(n);l.a<l.c.c.length;)c=Q$(J1(l),10),null==t.c[c.c.p][c.p].a&&(f=$Mt(t.i,24)*oYt*a-1,t.c[c.c.p][c.p].a=f,t.c[c.c.p][c.p].d=f,t.c[c.c.p][c.p].b=1)}}function ZKt(){FL(RIe,new el),FL(FIe,new fl),FL(UIe,new Cl),FL(QIe,new Sl),FL($Ie,new Ll),FL(KIe,new Il),FL(zIe,new Ml),FL(QLe,new Ol),FL(RLe,new zc),FL(ULe,new Gc),FL(LLe,new Xc),FL(XIe,new Vc),FL($Le,new Wc),FL(VIe,new qc),FL(WIe,new Yc),FL(PIe,new Jc),FL(NIe,new Zc),FL(KMe,new tl),FL(GIe,new nl),FL(BMe,new rl),FL(yee,new il),FL(Hw(IDe,1),new al),FL(Cee,new ol),FL(Eee,new sl),FL(bee,new cl),FL(NDe,new ll),FL(Tee,new ul),FL(iIe,new hl),FL(mIe,new dl),FL(uOe,new Al),FL(SMe,new gl),FL(Bee,new pl),FL(Lee,new ml),FL(Ite,new bl),FL(Nee,new vl),FL(Ote,new yl),FL(tOe,new wl),FL(PDe,new kl),FL(Ree,new xl),FL(Wee,new El),FL(cIe,new Tl),FL(RDe,new Bl)}function tzt(t,e,n){var r,i,a,o,s,c,l,u,h;for(!n&&(n=jst(e.q.getTimezoneOffset())),i=6e4*(e.q.getTimezoneOffset()-n.a),c=s=new EN(rdt(uot(e.q.getTime()),i)),s.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(i>0?i-=864e5:i+=864e5,c=new EN(rdt(uot(e.q.getTime()),i))),u=new Bw,l=t.a.length,a=0;a<l;)if((r=lW(t.a,a))>=97&&r<=122||r>=65&&r<=90){for(o=a+1;o<l&&lW(t.a,o)==r;++o);aVt(u,r,o-a,s,c,n),a=o}else if(39==r){if(++a<l&&39==lW(t.a,a)){u.a+="'",++a;continue}for(h=!1;!h;){for(o=a;o<l&&39!=lW(t.a,o);)++o;if(o>=l)throw Um(new Py("Missing trailing '"));o+1<l&&39==lW(t.a,o+1)?++o:h=!0,oL(u,lF(t.a,a,o)),a=o+1}}else u.a+=String.fromCharCode(r),++a;return u.a}function ezt(t){var e,n,r,i,a,o,s,c;for(e=null,r=new Gd(t);r.a<r.c.c.length;)Hy(uO((n=Q$(J1(r),233)).g,n.d[0]).a),n.b=null,n.e&&n.e.gc()>0&&0==n.c&&(!e&&(e=new Mm),e.c[e.c.length]=n);if(e)for(;0!=e.c.length;){if((n=Q$(s6(e,0),233)).b&&n.b.c.length>0)for(!n.b&&(n.b=new Mm),a=new Gd(n.b);a.a<a.c.c.length;)if(jy(uO((i=Q$(J1(a),233)).g,i.d[0]).a)==jy(uO(n.g,n.d[0]).a)){if(w9(t,i,0)>w9(t,n,0))return new nS(i,n)}else if(Hy(uO(i.g,i.d[0]).a)>Hy(uO(n.g,n.d[0]).a))return new nS(i,n);for(s=(!n.e&&(n.e=new Mm),n.e).Kc();s.Ob();)!(o=Q$(s.Pb(),233)).b&&(o.b=new Mm),IZ(0,(c=o.b).c.length),CT(c.c,0,n),o.c==c.c.length&&(e.c[e.c.length]=o)}return null}function nzt(t,e){var n,r,i,a,o,s;if(null==t)return KVt;if(null!=e.a.zc(t,e))return"[...]";for(n=new Iot(QVt,"[","]"),a=0,o=(i=t).length;a<o;++a)null!=(r=i[a])&&4&tlt(r).i?!Array.isArray(r)||(s=ptt(r))>=14&&s<=16?rO(r,177)?h6(n,N_t(Q$(r,177))):rO(r,190)?h6(n,YCt(Q$(r,190))):rO(r,195)?h6(n,yTt(Q$(r,195))):rO(r,2012)?h6(n,JCt(Q$(r,2012))):rO(r,48)?h6(n,F_t(Q$(r,48))):rO(r,364)?h6(n,gSt(Q$(r,364))):rO(r,832)?h6(n,D_t(Q$(r,832))):rO(r,104)&&h6(n,O_t(Q$(r,104))):e.a._b(r)?(n.a?oL(n.a,n.b):n.a=new uD(n.d),iL(n.a,"[...]")):h6(n,nzt(ent(r),new Lj(e))):h6(n,null==r?KVt:Udt(r));return n.a?0==n.e.length?n.a.a:n.a.a+""+n.e:n.c}function rzt(t,n,r,i){var a,o,s,c,l,u,h,f,d,A,g,p;for(A=HTt(iNt(n,!1,!1)),i&&(A=Yct(A)),p=Hy(CN(JIt(n,(kmt(),gae)))),EF(0!=A.b),d=Q$(A.a.a.c,8),u=Q$(Fmt(A,1),8),A.b>2?(gst(l=new Mm,new s1(A,1,A.b)),Hot(g=new kIt(GXt(l,p+t.a)),n),r.c[r.c.length]=g):g=Q$(FX(t.b,i?TEt(n):SEt(n)),266),s=TEt(n),i&&(s=SEt(n)),o=nBt(d,s),c=p+t.a,o.a?(c+=e.Math.abs(d.b-u.b),f=new O_(u.a,(u.b+d.b)/2)):(c+=e.Math.abs(d.a-u.a),f=new O_((u.a+d.a)/2,u.b)),XV(i?t.d:t.c,n,new _vt(g,o,f,c)),XV(t.b,n,g),!n.n&&(n.n=new tG(HLe,n,1,7)),h=new SO(n.n);h.e!=h.i.gc();)a=YPt(t,Q$(ymt(h),137),!0,0,0),r.c[r.c.length]=a}function izt(t){var n,r,i,a,o,s,c,l,u;for(l=new Mm,s=new Mm,o=new Gd(t);o.a<o.c.c.length;)Xf(i=Q$(J1(o),112),i.f.c.length),Vf(i,i.k.c.length),0==i.d&&(l.c[l.c.length]=i),0==i.i&&0==i.e.b&&(s.c[s.c.length]=i);for(r=-1;0!=l.c.length;)for(n=new Gd((i=Q$(s6(l,0),112)).k);n.a<n.c.c.length;)Wf(u=Q$(J1(n),129).b,e.Math.max(u.o,i.o+1)),r=e.Math.max(r,u.o),Xf(u,u.d-1),0==u.d&&(l.c[l.c.length]=u);if(r>-1){for(a=new Gd(s);a.a<a.c.c.length;)(i=Q$(J1(a),112)).o=r;for(;0!=s.c.length;)for(n=new Gd((i=Q$(s6(s,0),112)).f);n.a<n.c.c.length;)(c=Q$(J1(n),129).a).e.b>0||(Wf(c,e.Math.min(c.o,i.o-1)),Vf(c,c.i-1),0==c.i&&(s.c[s.c.length]=c))}}function azt(t,e,n){var r,i,a,o,s;if(s=t.c,!e&&(e=LMe),t.c=e,4&t.Db&&!(1&t.Db)&&(o=new Jz(t,1,2,s,t.c),n?n.Ei(o):n=o),s!=e)if(rO(t.Cb,284))t.Db>>16==-10?n=Q$(t.Cb,284).nk(e,n):t.Db>>16==-15&&(!e&&(gVt(),e=lMe),!s&&(gVt(),s=lMe),t.Cb.nh()&&(o=new M9(t.Cb,1,13,s,e,obt(U9(Q$(t.Cb,59)),t),!1),n?n.Ei(o):n=o));else if(rO(t.Cb,88))t.Db>>16==-23&&(rO(e,88)||(gVt(),e=fMe),rO(s,88)||(gVt(),s=fMe),t.Cb.nh()&&(o=new M9(t.Cb,1,10,s,e,obt(i4(Q$(t.Cb,26)),t),!1),n?n.Ei(o):n=o));else if(rO(t.Cb,444))for(!(a=Q$(t.Cb,836)).b&&(a.b=new km(new Ov)),i=new Cm(new olt(new Ed(a.b.a).a));i.a.b;)n=azt(r=Q$(tnt(i.a).cd(),87),yOt(r,a),n);return n}function ozt(t,e){var n,r,i,a,o,s,c,l,u,h,f;for(o=$y(kN(JIt(t,($Xt(),fpe)))),f=Q$(JIt(t,rme),21),c=!1,l=!1,h=new SO((!t.c&&(t.c=new tG(KLe,t,9,9)),t.c));!(h.e==h.i.gc()||c&&l);){for(a=Q$(ymt(h),118),s=0,i=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[(!a.d&&(a.d=new cR(NLe,a,8,5)),a.d),(!a.e&&(a.e=new cR(NLe,a,7,4)),a.e)])));AIt(i)&&(r=Q$(K5(i),79),u=o&&WSt(r)&&$y(kN(JIt(r,dpe))),n=fjt((!r.b&&(r.b=new cR(FLe,r,4,7)),r.b),a)?t==qJ(Txt(Q$(Xet((!r.c&&(r.c=new cR(FLe,r,5,8)),r.c),0),82))):t==qJ(Txt(Q$(Xet((!r.b&&(r.b=new cR(FLe,r,4,7)),r.b),0),82))),!((u||n)&&++s>1)););(s>0||f.Hc((hSt(),tSe))&&(!a.n&&(a.n=new tG(HLe,a,1,7)),a.n).i>0)&&(c=!0),s>1&&(l=!0)}c&&e.Fc((fNt(),uhe)),l&&e.Fc((fNt(),hhe))}function szt(t){var n,r,i,a,o,s,c,l,u,h,f,d;if((d=Q$(JIt(t,(cVt(),NTe)),21)).dc())return null;if(c=0,s=0,d.Hc((bgt(),NSe))){for(h=Q$(JIt(t,aBe),98),i=2,r=2,a=2,o=2,n=qJ(t)?Q$(JIt(qJ(t),hTe),103):Q$(JIt(t,hTe),103),u=new SO((!t.c&&(t.c=new tG(KLe,t,9,9)),t.c));u.e!=u.i.gc();)if(l=Q$(ymt(u),118),(f=Q$(JIt(l,fBe),61))==(yGt(),ESe)&&(f=SUt(l,n),qmt(l,fBe,f)),h==(WCt(),z_e))switch(f.g){case 1:i=e.Math.max(i,l.i+l.g);break;case 2:r=e.Math.max(r,l.j+l.f);break;case 3:a=e.Math.max(a,l.i+l.g);break;case 4:o=e.Math.max(o,l.j+l.f)}else switch(f.g){case 1:i+=l.g+2;break;case 2:r+=l.f+2;break;case 3:a+=l.g+2;break;case 4:o+=l.f+2}c=e.Math.max(i,a),s=e.Math.max(r,o)}return PGt(t,c,s,!0,!0)}function czt(t,n,r,i,a){var o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;for(v=Q$(E4(vet(SW(new Fj(null,new f1(n.d,16)),new Lg(r)),new Ig(r)),m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),Kne)]))),15),f=FVt,h=RWt,l=new Gd(n.b.j);l.a<l.c.c.length;)(c=Q$(J1(l),11)).j==r&&(f=e.Math.min(f,c.p),h=e.Math.max(h,c.p));if(f==FVt)for(s=0;s<v.gc();s++)A7(Q$(v.Xb(s),101),r,s);else for(Yj(y=O8(_De,lqt,25,a.length,15,1),y.length),b=v.Kc();b.Ob();){for(m=Q$(b.Pb(),101),o=Q$(FX(t.b,m),177),u=0,p=f;p<=h;p++)o[p]&&(u=e.Math.max(u,i[p]));if(m.i){for(A=m.i.c,w=new Fb,d=0;d<a.length;d++)a[A][d]&&kG(w,nft(y[d]));for(;Rx(w,nft(u));)++u}for(A7(m,r,u),g=f;g<=h;g++)o[g]&&(i[g]=u+1);m.i&&(y[m.i.c]=u)}}function lzt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g;for(a=null,i=new Gd(n.a);i.a<i.c.c.length;)LHt(r=Q$(J1(i),10))?(u=new HW(r,!0,c=SD(oE(new $b,r),t.f),l=SD(oE(new $b,r),t.f)),h=r.o.b,fbt(),d=1e4,(f=(r.q?r.q:(xq(),xq(),lne))._b(($Xt(),Fpe))?Q$(bEt(r,Fpe),197):Q$(bEt(pV(r),Npe),197))==cbe&&(d=1),A=zDt(iE(rE(nE(aE(new Ub,d),TJ(e.Math.ceil(h))),c),l)),f==lbe&&kG(t.d,A),SQt(t,eot(adt(r,(yGt(),TSe))),u),SQt(t,adt(r,oSe),u),o=u):(g=SD(oE(new $b,r),t.f),qx(SW(new Fj(null,new f1(r.j,16)),new $a),new ZB(t,g)),o=new HW(r,!1,g,g)),t.i[r.p]=o,a&&(s=a.c.d.a+NM(t.n,a.c,r)+r.d.d,a.b||(s+=a.c.o.b),zDt(iE(rE(aE(nE(new Ub,TJ(e.Math.ceil(s))),0),a.d),o.a))),a=o}function uzt(t,n){var r,i,a,o,s,c,l,h,f,d,A,g,p;for(Sxt(n,"Label dummy insertions",1),d=new Mm,s=Hy(CN(bEt(t,($Xt(),yme)))),h=Hy(CN(bEt(t,xme))),f=Q$(bEt(t,Kge),103),A=new Gd(t.a);A.a<A.c.c.length;)for(o=new oz(YO(hdt(Q$(J1(A),10)).a.Kc(),new u));AIt(o);)if((a=Q$(K5(o),17)).c.i!=a.d.i&&ZM(a.b,Jce)){for(r=sOt(t,a,p=ket(a),g=sF(a.b.c.length)),d.c[d.c.length]=r,i=r.o,c=new C2(a.b,0);c.b<c.d.gc();)EF(c.b<c.d.gc()),HS(bEt(l=Q$(c.d.Xb(c.c=c.b++),70),Wge))===HS((Net(),jBe))&&(f==(Qht(),UBe)||f==NBe?(i.a+=l.o.a+h,i.b=e.Math.max(i.b,l.o.b)):(i.a=e.Math.max(i.a,l.o.a),i.b+=l.o.b+h),g.c[g.c.length]=l,lV(c));f==(Qht(),UBe)||f==NBe?(i.a-=h,i.b+=s+p):i.b+=s-h+p}gst(t.a,d),$Tt(n)}function hzt(t,n,r,i){var a,o,s,c,l,u,h,f,d,A;for(f=GNt(t,n,o=new ALt(n)),A=e.Math.max(Hy(CN(bEt(n,($Xt(),ipe)))),1),h=new Gd(f.a);h.a<h.c.c.length;)u=Q$(J1(h),46),l=Upt(Q$(u.a,8),Q$(u.b,8),A),jH(r,new O_(l.c,l.d)),jH(r,PF(new O_(l.c,l.d),l.b,0)),jH(r,PF(new O_(l.c,l.d),0,l.a)),jH(r,PF(new O_(l.c,l.d),l.b,l.a));switch(d=o.d,c=Upt(Q$(f.b.a,8),Q$(f.b.b,8),A),d==(yGt(),TSe)||d==oSe?(i.c[d.g]=e.Math.min(i.c[d.g],c.d),i.b[d.g]=e.Math.max(i.b[d.g],c.d+c.a)):(i.c[d.g]=e.Math.min(i.c[d.g],c.c),i.b[d.g]=e.Math.max(i.b[d.g],c.c+c.b)),a=Pqt,s=o.c.i.d,d.g){case 4:a=s.c;break;case 2:a=s.b;break;case 1:a=s.a;break;case 3:a=s.d}return i.a[d.g]=e.Math.max(i.a[d.g],a),o}function fzt(t){var e,n,r,i;if(-1!=(e=HL(n=null!=t.D?t.D:t.B,qxt(91)))){r=n.substr(0,e),i=new xw;do{i.a+="["}while(-1!=(e=uF(n,91,++e)));mR(r,IVt)?i.a+="Z":mR(r,E7t)?i.a+="B":mR(r,T7t)?i.a+="C":mR(r,B7t)?i.a+="D":mR(r,_7t)?i.a+="F":mR(r,S7t)?i.a+="I":mR(r,L7t)?i.a+="J":mR(r,I7t)?i.a+="S":(i.a+="L",i.a+=""+r,i.a+=";");try{return null}catch(t){if(!rO(t=hst(t),60))throw Um(t)}}else if(-1==HL(n,qxt(46))){if(mR(n,IVt))return SDe;if(mR(n,E7t))return IDe;if(mR(n,T7t))return BDe;if(mR(n,B7t))return MDe;if(mR(n,_7t))return ODe;if(mR(n,S7t))return _De;if(mR(n,L7t))return LDe;if(mR(n,I7t))return DDe}return null}function dzt(t,e,n){var r,i,a,o,s,c,l,u;for(Hot(l=new Ibt(n),e),lct(l,(lVt(),dfe),e),l.o.a=e.g,l.o.b=e.f,l.n.a=e.i,l.n.b=e.j,G$(n.a,l),XV(t.a,e,l),(0!=(!e.a&&(e.a=new tG(jLe,e,10,11)),e.a).i||$y(kN(JIt(e,($Xt(),fpe)))))&&lct(l,Phe,(cD(),!0)),c=Q$(bEt(n,Yhe),21),(u=Q$(bEt(l,($Xt(),tme)),98))==(WCt(),W_e)?lct(l,tme,V_e):u!=V_e&&c.Fc((fNt(),dhe)),r=Q$(bEt(n,Kge),103),s=new SO((!e.c&&(e.c=new tG(KLe,e,9,9)),e.c));s.e!=s.i.gc();)$y(kN(JIt(o=Q$(ymt(s),118),Hpe)))||Jzt(t,o,l,c,r,u);for(a=new SO((!e.n&&(e.n=new tG(HLe,e,1,7)),e.n));a.e!=a.i.gc();)!$y(kN(JIt(i=Q$(ymt(a),137),Hpe)))&&i.a&&G$(l.b,$ut(i));return $y(kN(bEt(l,kge)))&&c.Fc((fNt(),che)),$y(kN(bEt(l,hpe)))&&(c.Fc((fNt(),fhe)),c.Fc(hhe),lct(l,tme,V_e)),l}function Azt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x;s=Q$(FX(e.c,t),459),p=e.a.c,c=e.a.c+e.a.b,o=(C=s.f)<(x=s.a),d=new O_(p,C),m=new O_(c,x),A=new O_(i=(p+c)/2,C),b=new O_(i,x),a=eDt(t,C,x),y=A1(e.B),w=new O_(i,a),k=A1(e.D),n=hct(Tst(Hw(EEe,1),cWt,8,0,[y,w,k])),h=!1,(g=e.B.i)&&g.c&&s.d&&((l=o&&g.p<g.c.a.c.length-1||!o&&g.p>0)?l&&(u=g.p,o?++u:--u,h=!(iDt(r=nct(Q$(Oj(g.c.a,u),10)),y,n[0])||Qz(r,y,n[0]))):h=!0),f=!1,(v=e.D.i)&&v.c&&s.e&&(o&&v.p>0||!o&&v.p<v.c.a.c.length-1?(u=v.p,o?--u:++u,f=!(iDt(r=nct(Q$(Oj(v.c.a,u),10)),n[0],k)||Qz(r,n[0],k))):f=!0),h&&f&&DH(t.a,w),h||Znt(t.a,Tst(Hw(EEe,1),cWt,8,0,[d,A])),f||Znt(t.a,Tst(Hw(EEe,1),cWt,8,0,[b,m]))}function gzt(t,e){var n,r,i,a,o,s,c;if(rO(t.Ug(),160)?(gzt(Q$(t.Ug(),160),e),e.a+=" > "):e.a+="Root ",mR((n=t.Tg().zb).substr(0,3),"Elk")?oL(e,n.substr(3)):e.a+=""+n,i=t.zg())oL((e.a+=" ",e),i);else if(rO(t,354)&&(c=Q$(t,137).a))oL((e.a+=" ",e),c);else{for(a=new SO(t.Ag());a.e!=a.i.gc();)if(c=Q$(ymt(a),137).a)return void oL((e.a+=" ",e),c);if(rO(t,352)&&(!(r=Q$(t,79)).b&&(r.b=new cR(FLe,r,4,7)),0!=r.b.i&&(!r.c&&(r.c=new cR(FLe,r,5,8)),0!=r.c.i))){for(e.a+=" (",o=new rF((!r.b&&(r.b=new cR(FLe,r,4,7)),r.b));o.e!=o.i.gc();)o.e>0&&(e.a+=QVt),gzt(Q$(ymt(o),160),e);for(e.a+=e1t,s=new rF((!r.c&&(r.c=new cR(FLe,r,5,8)),r.c));s.e!=s.i.gc();)s.e>0&&(e.a+=QVt),gzt(Q$(ymt(s),160),e);e.a+=")"}}}function pzt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d;if(a=Q$(bEt(t,(lVt(),dfe)),79)){for(r=t.a,KP(i=new fI(n),Ikt(t)),dot(t.d.i,t.c.i)?(f=t.c,zP(h=Lct(Tst(Hw(EEe,1),cWt,8,0,[f.n,f.a])),n)):h=A1(t.c),n5(r,h,r.a,r.a.a),d=A1(t.d),null!=bEt(t,Ffe)&&KP(d,Q$(bEt(t,Ffe),8)),n5(r,d,r.c.b,r.c),Jet(r,i),Mrt(o=iNt(a,!0,!0),Q$(Xet((!a.b&&(a.b=new cR(FLe,a,4,7)),a.b),0),82)),Ort(o,Q$(Xet((!a.c&&(a.c=new cR(FLe,a,5,8)),a.c),0),82)),VUt(r,o),u=new Gd(t.b);u.a<u.c.c.length;)l=Q$(J1(u),70),Ent(s=Q$(bEt(l,dfe),137),l.o.a),xnt(s,l.o.b),xI(s,l.n.a+i.a,l.n.b+i.b),qmt(s,(_it(),Zce),kN(bEt(l,Zce)));(c=Q$(bEt(t,($Xt(),ppe)),74))?(Jet(c,i),qmt(a,ppe,c)):qmt(a,ppe,null),e==(xdt(),qBe)?qmt(a,Yge,qBe):qmt(a,Yge,null)}}function mzt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;for(d=e.c.length,f=0,h=new Gd(t.b);h.a<h.c.c.length;)if(0!=(m=(u=Q$(J1(h),29)).a).c.length){for(l=0,b=null,i=Q$(J1(p=new Gd(m)),10),a=null;i;){if((a=Q$(Oj(e,i.p),257)).c>=0){for(c=null,s=new C2(u.a,l+1);s.b<s.d.gc()&&(EF(s.b<s.d.gc()),o=Q$(s.d.Xb(s.c=s.b++),10),!((c=Q$(Oj(e,o.p),257)).d==a.d&&c.c<a.c));)c=null;c&&(b&&(r5(r,i.p,nft(Q$(Oj(r,i.p),19).a-1)),Q$(Oj(n,b.p),15).Mc(a)),a=dxt(a,i,d++),e.c[e.c.length]=a,G$(n,new Mm),b?(Q$(Oj(n,b.p),15).Fc(a),G$(r,nft(1))):G$(r,nft(0)))}A=null,p.a<p.c.c.length&&(A=Q$(J1(p),10),g=Q$(Oj(e,A.p),257),Q$(Oj(n,i.p),15).Fc(g),r5(r,A.p,nft(Q$(Oj(r,A.p),19).a+1))),a.d=f,a.c=l++,b=i,i=A}++f}}function bzt(t,n,r,i){var a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;return c=t,u=zP(new O_(n.a,n.b),t),l=r,h=zP(new O_(i.a,i.b),r),f=c.a,p=c.b,A=l.a,b=l.b,d=u.a,m=u.b,a=(g=h.a)*m-d*(v=h.b),cM(),rrt(L3t),!(e.Math.abs(0-a)<=L3t||0==a||isNaN(0)&&isNaN(a))&&(o=1/a*((f-A)*m-(p-b)*d),s=1/a*-(-(f-A)*v+(p-b)*g),rrt(L3t),(e.Math.abs(0-o)<=L3t||0==o||isNaN(0)&&isNaN(o)?0:0<o?-1:0>o?1:jL(isNaN(0),isNaN(o)))<0&&(rrt(L3t),(e.Math.abs(o-1)<=L3t||1==o||isNaN(o)&&isNaN(1)?0:o<1?-1:o>1?1:jL(isNaN(o),isNaN(1)))<0)&&(rrt(L3t),(e.Math.abs(0-s)<=L3t||0==s||isNaN(0)&&isNaN(s)?0:0<s?-1:0>s?1:jL(isNaN(0),isNaN(s)))<0)&&(rrt(L3t),(e.Math.abs(s-1)<=L3t||1==s||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:jL(isNaN(s),isNaN(1)))<0))}function vzt(t){var e,n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k;for(h=new cV(new eA(t));h.b!=h.c.a.d;)for(s=Q$((u=s7(h)).d,56),e=Q$(u.e,56),g=0,y=(null==(o=s.Tg()).i&&HUt(o),o.i).length;g<y;++g)if(null==o.i&&HUt(o),a=o.i,(l=g>=0&&g<a.length?a[g]:null).Ij()&&!l.Jj())if(rO(l,99))!((c=Q$(l,18)).Bb&l6t)&&!((k=Bbt(c))&&k.Bb&l6t)&&b$t(t,c,s,e);else if(YE(),Q$(l,66).Oj()&&(n=Q$((w=l)?Q$(e,49).xh(w):null,153)))for(d=Q$(s.ah(l),153),r=n.gc(),p=0,A=d.gc();p<A;++p)if(rO(f=d.il(p),99)){if(null==(i=utt(t,v=d.jl(p)))&&null!=v){if(b=Q$(f,18),!t.b||b.Bb&l6t||Bbt(b))continue;i=v}if(!n.dl(f,i))for(m=0;m<r;++m)if(n.il(m)==f&&HS(n.jl(m))===HS(i)){n.ii(n.gc()-1,m),--r;break}}else n.dl(d.il(p),d.jl(p))}function yzt(t,n,r,i,a,o,s){var c,l,u,h,f,d,A,g,p,m,b,v;if(m=W$t(n,r,t.g),a.n&&a.n&&o&&b0(a,o2(o),(Ult(),aLe)),t.b)for(p=0;p<m.c.length;p++)u1(p,m.c.length),h=Q$(m.c[p],200),0!=p&&(u1(p-1,m.c.length),gut(h,(d=Q$(m.c[p-1],200)).f+d.b+t.g)),bXt(p,m,r,t.g),$wt(t,h),a.n&&o&&b0(a,o2(o),(Ult(),aLe));else for(g=new Gd(m);g.a<g.c.c.length;)for(u=new Gd((A=Q$(J1(g),200)).a);u.a<u.c.c.length;)Dat(b=new NJ((l=Q$(J1(u),187)).s,l.t,t.g),l),G$(A.d,b);return Kvt(t,m),a.n&&a.n&&o&&b0(a,o2(o),(Ult(),aLe)),v=e.Math.max(t.d,i.a-(s.b+s.c)),c=(f=e.Math.max(t.c,i.b-(s.d+s.a)))-t.c,t.e&&t.f&&(v/f<t.a?v=f*t.a:c+=v/t.a-f),t.e&&Sgt(m,v,c),a.n&&a.n&&o&&b0(a,o2(o),(Ult(),aLe)),new tj(t.a,v,t.c+c,(qOt(),PCe))}function wzt(t){var n,r,i,a,o,s,c,l,u,h;for(t.j=O8(_De,lqt,25,t.g,15,1),t.o=new Mm,qx(ftt(new Fj(null,new f1(t.e.b,16)),new Va),new ap(t)),t.a=O8(SDe,JYt,25,t.b,16,1),Iht(new Fj(null,new f1(t.e.b,16)),new sp(t)),h=new Mm,qx(SW(ftt(new Fj(null,new f1(t.e.b,16)),new qa),new op(t)),new t_(t,h)),c=new Gd(h);c.a<c.c.c.length;)if(!((s=Q$(J1(c),508)).c.length<=1))if(2!=s.c.length){if(!GCt(s)&&!OBt(s,new Wa))for(l=new Gd(s),i=null;l.a<l.c.c.length;)n=Q$(J1(l),17),r=t.c[n.p],u=!i||l.a>=l.c.c.length?z3((oTt(),Tse),Ese):z3((oTt(),Ese),Ese),u*=2,a=r.a.g,r.a.g=e.Math.max(a,a+(u-a)),o=r.b.g,r.b.g=e.Math.max(o,o+(u-o)),i=n}else KIt(s),LHt((u1(0,s.c.length),Q$(s.c[0],17)).d.i)||G$(t.o,s)}function kzt(t,e,n,r,i){var a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;for(v=H$(t),c=new Mm,l=(a=t.c.length)-1,u=a+1;0!=v.a.c;){for(;0!=n.b;)EF(0!=n.b),m=Q$(Let(n,n.a.a),112),LJ(v.a,m),m.g=l--,OUt(m,e,n,r);for(;0!=e.b;)EF(0!=e.b),b=Q$(Let(e,e.a.a),112),LJ(v.a,b),b.g=u++,OUt(b,e,n,r);for(s=RWt,g=new Rd(new QP(new OD(new Pd(v.a).a).b));iT(g.a.a);){if(A=Q$(mF(g.a).cd(),112),!r&&A.b>0&&A.a<=0){c.c=O8(Lte,$Vt,1,0,5,1),c.c[c.c.length]=A;break}(d=A.i-A.d)>=s&&(d>s&&(c.c=O8(Lte,$Vt,1,0,5,1),s=d),c.c[c.c.length]=A)}0!=c.c.length&&(o=Q$(Oj(c,pbt(i,c.c.length)),112),LJ(v.a,o),o.g=u++,OUt(o,e,n,r),c.c=O8(Lte,$Vt,1,0,5,1))}for(p=t.c.length+1,f=new Gd(t);f.a<f.c.c.length;)(h=Q$(J1(f),112)).g<a&&(h.g=h.g+p)}function Czt(t,e){var n;if(t.e)throw Um(new Ry((wN(Are),LYt+Are.k+IYt)));if(!xT(t.a,e))throw Um(new dy(MYt+e+OYt));if(e==t.d)return t;switch(n=t.d,t.d=e,n.g){case 0:switch(e.g){case 2:$vt(t);break;case 1:Bct(t),$vt(t);break;case 4:Zkt(t),$vt(t);break;case 3:Zkt(t),Bct(t),$vt(t)}break;case 2:switch(e.g){case 1:Bct(t),NPt(t);break;case 4:Zkt(t),$vt(t);break;case 3:Zkt(t),Bct(t),$vt(t)}break;case 1:switch(e.g){case 2:Bct(t),NPt(t);break;case 4:Bct(t),Zkt(t),$vt(t);break;case 3:Bct(t),Zkt(t),Bct(t),$vt(t)}break;case 4:switch(e.g){case 2:Zkt(t),$vt(t);break;case 1:Zkt(t),Bct(t),$vt(t);break;case 3:Bct(t),NPt(t)}break;case 3:switch(e.g){case 2:Bct(t),Zkt(t),$vt(t);break;case 1:Bct(t),Zkt(t),Bct(t),$vt(t);break;case 4:Bct(t),NPt(t)}}return t}function xzt(t,e){var n;if(t.d)throw Um(new Ry((wN(Woe),LYt+Woe.k+IYt)));if(!E_(t.a,e))throw Um(new dy(MYt+e+OYt));if(e==t.c)return t;switch(n=t.c,t.c=e,n.g){case 0:switch(e.g){case 2:Jct(t);break;case 1:Tct(t),Jct(t);break;case 4:tCt(t),Jct(t);break;case 3:tCt(t),Tct(t),Jct(t)}break;case 2:switch(e.g){case 1:Tct(t),PPt(t);break;case 4:tCt(t),Jct(t);break;case 3:tCt(t),Tct(t),Jct(t)}break;case 1:switch(e.g){case 2:Tct(t),PPt(t);break;case 4:Tct(t),tCt(t),Jct(t);break;case 3:Tct(t),tCt(t),Tct(t),Jct(t)}break;case 4:switch(e.g){case 2:tCt(t),Jct(t);break;case 1:tCt(t),Tct(t),Jct(t);break;case 3:Tct(t),PPt(t)}break;case 3:switch(e.g){case 2:Tct(t),tCt(t),Jct(t);break;case 1:Tct(t),tCt(t),Tct(t),Jct(t);break;case 4:Tct(t),PPt(t)}}return t}function Ezt(t,n,r){var i,a,o,s,c,l,h,f;for(l=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));l.e!=l.i.gc();)for(a=new oz(YO(AOt(c=Q$(ymt(l),33)).a.Kc(),new u));AIt(a);){if(!(i=Q$(K5(a),79)).b&&(i.b=new cR(FLe,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new cR(FLe,i,5,8)),i.c.i<=1)))throw Um(new rw("Graph must not contain hyperedges."));if(!ZLt(i)&&c!=Txt(Q$(Xet((!i.c&&(i.c=new cR(FLe,i,5,8)),i.c),0),82)))for(Hot(h=new BP,i),lct(h,(xit(),soe),i),Ff(h,Q$($S(SY(r.f,c)),144)),Nf(h,Q$(FX(r,Txt(Q$(Xet((!i.c&&(i.c=new cR(FLe,i,5,8)),i.c),0),82))),144)),G$(n.c,h),s=new SO((!i.n&&(i.n=new tG(HLe,i,1,7)),i.n));s.e!=s.i.gc();)Hot(f=new m4(h,(o=Q$(ymt(s),137)).a),o),lct(f,soe,o),f.e.a=e.Math.max(o.g,1),f.e.b=e.Math.max(o.f,1),R$t(f),G$(n.d,f)}}function Tzt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;for(wJ(f=new eGt(t),!(n==(Qht(),UBe)||n==NBe)),h=f.a,d=new hv,Fet(),s=0,l=(a=Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])).length;s<l;++s)r=a[s],(u=lO(h,Hre,r))&&(d.d=e.Math.max(d.d,u.Re()));for(o=0,c=(i=Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])).length;o<c;++o)r=i[o],(u=lO(h,Kre,r))&&(d.a=e.Math.max(d.a,u.Re()));for(m=0,v=(g=Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])).length;m<v;++m)(u=lO(h,g[m],Hre))&&(d.b=e.Math.max(d.b,u.Se()));for(p=0,b=(A=Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])).length;p<b;++p)(u=lO(h,A[p],Kre))&&(d.c=e.Math.max(d.c,u.Se()));return d.d>0&&(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}function Bzt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g;for(d=r.d,f=r.c,s=(o=new O_(r.f.a+r.d.b+r.d.c,r.f.b+r.d.d+r.d.a)).b,u=new Gd(t.a);u.a<u.c.c.length;)if((c=Q$(J1(u),10)).k==(oTt(),Cse)){switch(i=Q$(bEt(c,(lVt(),Vhe)),61),a=Q$(bEt(c,Whe),8),h=c.n,i.g){case 2:h.a=r.f.a+d.c-f.a;break;case 4:h.a=-f.a-d.b}switch(g=0,i.g){case 2:case 4:n==(WCt(),G_e)?(A=Hy(CN(bEt(c,kfe))),h.b=o.b*A-Q$(bEt(c,($Xt(),Jpe)),8).b,g=h.b+a.b,Yot(c,!1,!0)):n==z_e&&(h.b=Hy(CN(bEt(c,kfe)))-Q$(bEt(c,($Xt(),Jpe)),8).b,g=h.b+a.b,Yot(c,!1,!0))}s=e.Math.max(s,g)}for(r.f.b+=s-o.b,l=new Gd(t.a);l.a<l.c.c.length;)if((c=Q$(J1(l),10)).k==(oTt(),Cse))switch(i=Q$(bEt(c,(lVt(),Vhe)),61),h=c.n,i.g){case 1:h.b=-f.b-d.d;break;case 3:h.b=r.f.b+d.a-f.b}}function _zt(t){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k;for(i=Q$(bEt(t,(Hjt(),swe)),33),c=FVt,l=FVt,o=RWt,s=RWt,w=cmt(t.b,0);w.b!=w.d.c;)A=(v=Q$(h3(w),86)).e,g=v.f,c=e.Math.min(c,A.a-g.a/2),l=e.Math.min(l,A.b-g.b/2),o=e.Math.max(o,A.a+g.a/2),s=e.Math.max(s,A.b+g.b/2);for(f=new O_((d=Q$(JIt(i,(BIt(),Bwe)),116)).b-c,d.d-l),y=cmt(t.b,0);y.b!=y.d.c;)rO(h=bEt(v=Q$(h3(y),86),swe),239)&&xI(a=Q$(h,33),(u=KP(v.e,f)).a-a.g/2,u.b-a.f/2);for(b=cmt(t.a,0);b.b!=b.d.c;)m=Q$(h3(b),188),(r=Q$(bEt(m,swe),79))&&(n5(n=m.a,p=new fI(m.b.e),n.a,n.a.a),n5(n,k=new fI(m.c.e),n.c.b,n.c),JEt(p,Q$(Fmt(n,1),8),m.b.f),JEt(k,Q$(Fmt(n,n.b-2),8),m.c.f),VUt(n,iNt(r,!0,!0)));PGt(i,o-c+(d.b+d.c),s-l+(d.d+d.a),!1,!1)}function Szt(t){var e,n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m;for(bP(c=new C2(l=t.b,0),new UX(t)),p=!1,a=1;c.b<c.d.gc();){for(EF(c.b<c.d.gc()),s=Q$(c.d.Xb(c.c=c.b++),29),u1(a,l.c.length),d=Q$(l.c[a],29),g=(A=i0(s.a)).c.length,f=new Gd(A);f.a<f.c.c.length;)EZ(u=Q$(J1(f),10),d);if(p){for(h=G1(new ly(A),0);h.c.Sb();)for(i=new Gd(i0(udt(u=Q$(f5(h),10))));i.a<i.c.c.length;)t$t(r=Q$(J1(i),17),!0),lct(t,(lVt(),$he),(cD(),!0)),n=nKt(t,r,g),e=Q$(bEt(u,Fhe),305),m=Q$(Oj(n,n.c.length-1),17),e.k=m.c.i,e.n=m,e.b=r.d.i,e.c=r;p=!1}else 0!=A.c.length&&(u1(0,A.c.length),Q$(A.c[0],10).k==(oTt(),kse)&&(p=!0,a=-1));++a}for(o=new C2(t.b,0);o.b<o.d.gc();)EF(o.b<o.d.gc()),0==Q$(o.d.Xb(o.c=o.b++),29).a.c.length&&lV(o)}function Lzt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;if((h=Q$(Q$(c6(t.r,n),21),84)).gc()<=2||n==(yGt(),oSe)||n==(yGt(),TSe))YGt(t,n);else{for(p=t.u.Hc((hSt(),rSe)),r=n==(yGt(),sSe)?(Fot(),Fie):(Fot(),Mie),b=n==sSe?(H9(),eie):(H9(),rie),i=Yw(UQ(r),t.s),m=n==sSe?Nqt:Pqt,u=h.Kc();u.Ob();)!(c=Q$(u.Pb(),111)).c||c.c.d.c.length<=0||(g=c.b.rf(),A=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),p?(d.c=A.a-(a=f.n,f.e.a+a.b+a.c)-t.s,p=!1):d.c=A.a+g.a+t.s,_Y(b,oJt),f.f=b,u7(f,(q7(),qre)),G$(i.d,new OK(d,yft(i,d))),m=n==sSe?e.Math.min(m,A.b):e.Math.max(m,A.b+c.b.rf().b));for(m+=n==sSe?-t.t:t.t,TAt((i.e=m,i)),l=h.Kc();l.Ob();)!(c=Q$(l.Pb(),111)).c||c.c.d.c.length<=0||((d=c.c.i).c-=c.e.a,d.d-=c.e.b)}}function Izt(t,n,r){var i;if(Sxt(r,"StretchWidth layering",1),0!=n.a.c.length){for(t.c=n,t.t=0,t.u=0,t.i=Nqt,t.g=Pqt,t.d=Hy(CN(bEt(n,($Xt(),bme)))),Kmt(t),TIt(t),EIt(t),Dkt(t),Agt(t),t.i=e.Math.max(1,t.i),t.g=e.Math.max(1,t.g),t.d=t.d/t.i,t.f=t.g/t.i,t.s=Rbt(t),i=new UX(t.c),G$(t.c.b,i),t.r=i0(t.p),t.n=kJ(t.k,t.k.length);0!=t.r.c.length;)t.o=Kut(t),!t.o||Cct(t)&&0!=t.b.a.gc()?(DCt(t,i),i=new UX(t.c),G$(t.c.b,i),Qit(t.a,t.b),t.b.a.$b(),t.t=t.u,t.u=0):Cct(t)?(t.c.b.c=O8(Lte,$Vt,1,0,5,1),i=new UX(t.c),G$(t.c.b,i),t.t=0,t.u=0,t.b.a.$b(),t.a.a.$b(),++t.f,t.r=i0(t.p),t.n=kJ(t.k,t.k.length)):(EZ(t.o,i),b9(t.r,t.o),kG(t.b,t.o),t.t=t.t-t.k[t.o.p]*t.d+t.j[t.o.p],t.u+=t.e[t.o.p]*t.d);n.a.c=O8(Lte,$Vt,1,0,5,1),YBt(n.b),$Tt(r)}else $Tt(r)}function Mzt(t){var n,r,i,a;for(qx(SW(new Fj(null,new f1(t.a.b,16)),new yi),new wi),uCt(t),qx(SW(new Fj(null,new f1(t.a.b,16)),new ki),new Ci),t.c==(xdt(),qBe)&&(qx(SW(ftt(new Fj(null,new f1(new Td(t.f),1)),new xi),new Ei),new Cg(t)),qx(SW(LW(ftt(ftt(new Fj(null,new f1(t.d.b,16)),new Ti),new Bi),new _i),new Si),new Eg(t))),a=new O_(Nqt,Nqt),n=new O_(Pqt,Pqt),i=new Gd(t.a.b);i.a<i.c.c.length;)r=Q$(J1(i),57),a.a=e.Math.min(a.a,r.d.c),a.b=e.Math.min(a.b,r.d.d),n.a=e.Math.max(n.a,r.d.c+r.d.b),n.b=e.Math.max(n.b,r.d.d+r.d.a);KP(vL(t.d.c),$F(new O_(a.a,a.b))),KP(vL(t.d.f),zP(new O_(n.a,n.b),a)),sDt(t,a,n),LG(t.f),LG(t.b),LG(t.g),LG(t.e),t.a.a.c=O8(Lte,$Vt,1,0,5,1),t.a.b.c=O8(Lte,$Vt,1,0,5,1),t.a=null,t.d=null}function Ozt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;for(r=new Mm,A=new Gd(e.a);A.a<A.c.c.length;)if((f=(d=Q$(J1(A),10)).e)&&(gst(r,Ozt(t,f,d)),kKt(t,f,d),Q$(bEt(f,(lVt(),Yhe)),21).Hc((fNt(),uhe))))for(m=Q$(bEt(d,($Xt(),tme)),98),h=Q$(bEt(d,rme),174).Hc((hSt(),tSe)),p=new Gd(d.j);p.a<p.c.c.length;)for(g=Q$(J1(p),11),(i=Q$(FX(t.b,g),10))||(lct(i=fXt(g,m,g.j,-(g.e.c.length-g.g.c.length),null,new Hk,g.o,Q$(bEt(f,Kge),103),f),dfe,g),XV(t.b,g,i),G$(f.a,i)),a=Q$(Oj(i.j,0),11),l=new Gd(g.f);l.a<l.c.c.length;)c=Q$(J1(l),70),(o=new $k).o.a=c.o.a,o.o.b=c.o.b,G$(a.f,o),h||(b=g.j,u=0,Uz(Q$(bEt(d,rme),21))&&(u=ISt(c.n,c.o,g.o,0,b)),m==(WCt(),V_e)||(yGt(),hSe).Hc(b)?o.o.a=u:o.o.b=u);return UKt(t,e,n,r,s=new Mm),n&&Bjt(t,e,n,s),s}function Dzt(t,e,n){var r,i,a,o,s,c,l,u;if(!t.c[e.c.p][e.p].e){for(t.c[e.c.p][e.p].e=!0,t.c[e.c.p][e.p].b=0,t.c[e.c.p][e.p].d=0,t.c[e.c.p][e.p].a=null,u=new Gd(e.j);u.a<u.c.c.length;)for(l=Q$(J1(u),11),c=(n?new UA(l):new HA(l)).Kc();c.Ob();)(o=(s=Q$(c.Pb(),11)).i).c==e.c?o!=e&&(Dzt(t,o,n),t.c[e.c.p][e.p].b+=t.c[o.c.p][o.p].b,t.c[e.c.p][e.p].d+=t.c[o.c.p][o.p].d):(t.c[e.c.p][e.p].d+=t.g[s.p],++t.c[e.c.p][e.p].b);if(a=Q$(bEt(e,(lVt(),Ohe)),15))for(i=a.Kc();i.Ob();)r=Q$(i.Pb(),10),e.c==r.c&&(Dzt(t,r,n),t.c[e.c.p][e.p].b+=t.c[r.c.p][r.p].b,t.c[e.c.p][e.p].d+=t.c[r.c.p][r.p].d);t.c[e.c.p][e.p].b>0&&(t.c[e.c.p][e.p].d+=$Mt(t.i,24)*oYt*.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 Fzt(t){var e,n,r,i,a,o,s,c,l,u,h,f,d,A;for(f=new Gd(t);f.a<f.c.c.length;){for(JD((h=Q$(J1(f),10)).n),JD(h.o),X6(h.f),VPt(h),aPt(h),A=new Gd(h.j);A.a<A.c.c.length;){for(JD((d=Q$(J1(A),11)).n),JD(d.a),JD(d.o),H_t(d,avt(d.j)),(i=Q$(bEt(d,($Xt(),eme)),19))&&lct(d,eme,nft(-i.a)),r=new Gd(d.g);r.a<r.c.c.length;){for(e=cmt((n=Q$(J1(r),17)).a,0);e.b!=e.d.c;)JD(Q$(h3(e),8));if(o=Q$(bEt(n,ppe),74))for(a=cmt(o,0);a.b!=a.d.c;)JD(Q$(h3(a),8));for(l=new Gd(n.b);l.a<l.c.c.length;)JD((s=Q$(J1(l),70)).n),JD(s.o)}for(u=new Gd(d.f);u.a<u.c.c.length;)JD((s=Q$(J1(u),70)).n),JD(s.o)}for(h.k==(oTt(),Cse)&&(lct(h,(lVt(),Vhe),avt(Q$(bEt(h,Vhe),61))),dFt(h)),c=new Gd(h.b);c.a<c.c.c.length;)VPt(s=Q$(J1(c),70)),JD(s.o),JD(s.n)}}function Nzt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y;for(t.e=e,s=ZSt(e),v=new Mm,r=new Gd(s);r.a<r.c.c.length;){for(n=Q$(J1(r),15),y=new Mm,v.c[v.c.length]=y,c=new Fb,f=n.Kc();f.Ob();){for(a=YPt(t,h=Q$(f.Pb(),33),!0,0,0),y.c[y.c.length]=a,new O_(d=h.i,A=h.j),!h.n&&(h.n=new tG(HLe,h,1,7)),u=new SO(h.n);u.e!=u.i.gc();)i=YPt(t,Q$(ymt(u),137),!1,d,A),y.c[y.c.length]=i;for(!h.c&&(h.c=new tG(KLe,h,9,9)),p=new SO(h.c);p.e!=p.i.gc();)for(o=YPt(t,g=Q$(ymt(p),118),!1,d,A),y.c[y.c.length]=o,m=g.i+d,b=g.j+A,!g.n&&(g.n=new tG(HLe,g,1,7)),l=new SO(g.n);l.e!=l.i.gc();)i=YPt(t,Q$(ymt(l),137),!1,m,b),y.c[y.c.length]=i;Qit(c,qq(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[AOt(h),dOt(h)]))))}zOt(t,c,y)}return t.f=new Pk(v),Hot(t.f,e),t.f}function Pzt(t,e,n,r,i){var a,o,s,c,l,u,h,f,d,A,g,p;null==(A=FX(t.e,r))&&(l=Q$(A=new gy,183),c=new HX(e+"_s"+i),net(l,H6t,c)),JX(n,d=Q$(A,183)),$q(p=new gy,"x",r.j),$q(p,"y",r.k),net(d,z6t,p),$q(h=new gy,"x",r.b),$q(h,"y",r.c),net(d,"endPoint",h),!GC((!r.a&&(r.a=new LO(MLe,r,5)),r.a))&&(a=new Gp(u=new Tf),t5((!r.a&&(r.a=new LO(MLe,r,5)),r.a),a),net(d,F6t,u)),!!Ebt(r)&&iEt(t.a,d,P6t,NBt(t,Ebt(r))),!!Tbt(r)&&iEt(t.a,d,N6t,NBt(t,Tbt(r))),!(0==(!r.e&&(r.e=new cR(PLe,r,10,9)),r.e).i)&&(o=new xS(t,f=new Tf),t5((!r.e&&(r.e=new cR(PLe,r,10,9)),r.e),o),net(d,Q6t,f)),0!=(!r.g&&(r.g=new cR(PLe,r,9,10)),r.g).i&&(s=new ES(t,g=new Tf),t5((!r.g&&(r.g=new cR(PLe,r,9,10)),r.g),s),net(d,R6t,g))}function Rzt(t){var n,r,i,a,o,s,c;for($N(),i=t.f.n,s=wX(t.r).a.nc();s.Ob();){if(a=0,(o=Q$(s.Pb(),111)).b.Xe((cVt(),iBe))&&(a=Hy(CN(o.b.We(iBe))))<0)switch(o.b.Hf().g){case 1:i.d=e.Math.max(i.d,-a);break;case 3:i.a=e.Math.max(i.a,-a);break;case 2:i.c=e.Math.max(i.c,-a);break;case 4:i.b=e.Math.max(i.b,-a)}if(Uz(t.u))switch(n=mat(o.b,a),c=!Q$(t.e.We($Te),174).Hc((ZRt(),USe)),r=!1,o.b.Hf().g){case 1:r=n>i.d,i.d=e.Math.max(i.d,n),c&&r&&(i.d=e.Math.max(i.d,i.a),i.a=i.d+a);break;case 3:r=n>i.a,i.a=e.Math.max(i.a,n),c&&r&&(i.a=e.Math.max(i.a,i.d),i.d=i.a+a);break;case 2:r=n>i.c,i.c=e.Math.max(i.c,n),c&&r&&(i.c=e.Math.max(i.b,i.c),i.b=i.c+a);break;case 4:r=n>i.b,i.b=e.Math.max(i.b,n),c&&r&&(i.b=e.Math.max(i.b,i.c),i.c=i.b+a)}}}function Qzt(t){var e,n,r,i,a,o,s,c,l,u,h;for(l=new Gd(t);l.a<l.c.c.length;){switch(c=Q$(J1(l),10),a=null,(o=Q$(bEt(c,($Xt(),vpe)),163)).g){case 1:case 2:Yst(),a=Lue;break;case 3:case 4:Yst(),a=_ue}if(a)lct(c,(lVt(),Hhe),(Yst(),Lue)),a==_ue?NDt(c,o,(art(),Ube)):a==Lue&&NDt(c,o,(art(),$be));else if(pI(Q$(bEt(c,tme),98))&&0!=c.j.c.length){for(e=!0,h=new Gd(c.j);h.a<h.c.c.length;){if(!((u=Q$(J1(h),11)).j==(yGt(),oSe)&&u.e.c.length-u.g.c.length>0||u.j==TSe&&u.e.c.length-u.g.c.length<0)){e=!1;break}for(i=new Gd(u.g);i.a<i.c.c.length;)if(n=Q$(J1(i),17),(s=Q$(bEt(n.d.i,vpe),163))==(Cdt(),Qfe)||s==Ufe){e=!1;break}for(r=new Gd(u.e);r.a<r.c.c.length;)if(n=Q$(J1(r),17),(s=Q$(bEt(n.c.i,vpe),163))==(Cdt(),Pfe)||s==Rfe){e=!1;break}}e&&NDt(c,o,(art(),Hbe))}}}function Uzt(t,n,r,i,a){var o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C;for(C=0,A=0,f=new Gd(n.e);f.a<f.c.c.length;){for(h=Q$(J1(f),10),d=0,c=0,l=r?Q$(bEt(h,zve),19).a:RWt,b=i?Q$(bEt(h,Gve),19).a:RWt,u=e.Math.max(l,b),y=new Gd(h.j);y.a<y.c.c.length;){if(v=Q$(J1(y),11),w=h.n.b+v.n.b+v.a.b,i)for(s=new Gd(v.g);s.a<s.c.c.length;)g=(p=(o=Q$(J1(s),17)).d).i,n!=t.a[g.p]&&(m=e.Math.max(Q$(bEt(g,zve),19).a,Q$(bEt(g,Gve),19).a),(k=Q$(bEt(o,($Xt(),hme)),19).a)>=u&&k>=m&&(d+=g.n.b+p.n.b+p.a.b-w,++c));if(r)for(s=new Gd(v.e);s.a<s.c.c.length;)g=(p=(o=Q$(J1(s),17)).c).i,n!=t.a[g.p]&&(m=e.Math.max(Q$(bEt(g,zve),19).a,Q$(bEt(g,Gve),19).a),(k=Q$(bEt(o,($Xt(),hme)),19).a)>=u&&k>=m&&(d+=g.n.b+p.n.b+p.a.b-w,++c))}c>0&&(C+=d/c,++A)}A>0?(n.a=a*C/A,n.g=A):(n.a=0,n.g=0)}function $zt(t,e){var n,r,i,a,o,s,c,l,u,h;for(r=new Gd(t.a.b);r.a<r.c.c.length;)for(s=new Gd(Q$(J1(r),29).a);s.a<s.c.c.length;)o=Q$(J1(s),10),e.j[o.p]=o,e.i[o.p]=e.o==(oZ(),rye)?Pqt:Nqt;for(LG(t.c),a=t.a.b,e.c==(AJ(),Jve)&&(a=rO(a,152)?o6(Q$(a,152)):rO(a,131)?Q$(a,131).a:rO(a,54)?new ly(a):new Tx(a)),F7(t.e,e,t.b),bT(e.p,null),i=a.Kc();i.Ob();)for(c=Q$(i.Pb(),29).a,e.o==(oZ(),rye)&&(c=rO(c,152)?o6(Q$(c,152)):rO(c,131)?Q$(c,131).a:rO(c,54)?new ly(c):new Tx(c)),h=c.Kc();h.Ob();)u=Q$(h.Pb(),10),e.g[u.p]==u&&sXt(t,u,e);for($jt(t,e),n=a.Kc();n.Ob();)for(h=new Gd(Q$(n.Pb(),29).a);h.a<h.c.c.length;)u=Q$(J1(h),10),e.p[u.p]=e.p[e.g[u.p].p],u==e.g[u.p]&&(l=Hy(e.i[e.j[u.p].p]),(e.o==(oZ(),rye)&&l>Pqt||e.o==nye&&l<Nqt)&&(e.p[u.p]=Hy(e.p[u.p])+l));t.e.cg()}function Hzt(t,e,n,r){var i,a,o,s,c;return pDt(s=new eGt(e),r),i=!0,t&&t.Xe((cVt(),hTe))&&(i=(a=Q$(t.We((cVt(),hTe)),103))==(Qht(),QBe)||a==PBe||a==RBe),sPt(s,!1),Set(s.e.wf(),new LQ(s,!1,i)),IJ(s,s.f,(Fet(),Hre),(yGt(),sSe)),IJ(s,s.f,Kre,xSe),IJ(s,s.g,Hre,TSe),IJ(s,s.g,Kre,oSe),Umt(s,sSe),Umt(s,xSe),cW(s,oSe),cW(s,TSe),$N(),(o=s.A.Hc((bgt(),DSe))&&s.B.Hc((ZRt(),KSe))?ZAt(s):null)&&nk(s.a,o),Rzt(s),ryt(s),iyt(s),VKt(s),xRt(s),bwt(s),Rpt(s,sSe),Rpt(s,xSe),BPt(s),THt(s),n?(jdt(s),vwt(s),Rpt(s,oSe),Rpt(s,TSe),c=s.B.Hc((ZRt(),zSe)),x_t(s,c,sSe),x_t(s,c,xSe),E_t(s,c,oSe),E_t(s,c,TSe),qx(new Fj(null,new f1(new _d(s.i),0)),new _t),qx(SW(new Fj(null,wX(s.r).a.oc()),new St),new Lt),UCt(s),s.e.uf(s.o),qx(new Fj(null,wX(s.r).a.oc()),new Mt),s.o):s.o}function jzt(t){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p;for(u=Nqt,i=new Gd(t.a.b);i.a<i.c.c.length;)n=Q$(J1(i),81),u=e.Math.min(u,n.d.f.g.c+n.e.a);for(A=new Wx,s=new Gd(t.a.a);s.a<s.c.c.length;)(o=Q$(J1(s),189)).i=u,0==o.e&&n5(A,o,A.c.b,A.c);for(;0!=A.b;){for(a=(o=Q$(0==A.b?null:(EF(0!=A.b),Let(A,A.a.a)),189)).f.g.c,d=o.a.a.ec().Kc();d.Ob();)h=Q$(d.Pb(),81),p=o.i+h.e.a,h.d.g||h.g.c<p?h.o=p:h.o=h.g.c;for(a-=o.f.o,o.b+=a,t.c==(Qht(),RBe)||t.c==NBe?o.c+=a:o.c-=a,f=o.a.a.ec().Kc();f.Ob();)for(l=(h=Q$(f.Pb(),81)).f.Kc();l.Ob();)c=Q$(l.Pb(),81),g=dI(t.c)?t.f.ef(h,c):t.f.ff(h,c),c.d.i=e.Math.max(c.d.i,h.o+h.g.b+g-c.e.a),c.k||(c.d.i=e.Math.max(c.d.i,c.g.c-c.e.a)),--c.d.e,0==c.d.e&&DH(A,c.d)}for(r=new Gd(t.a.b);r.a<r.c.c.length;)(n=Q$(J1(r),81)).g.c=n.o}function Kzt(t){var e,n,r,i,a,o,s,c;switch(s=t.b,e=t.a,0===Q$(bEt(t,(Rwt(),Cre)),427).g?mM(s,new Jd(new jt)):mM(s,new Jd(new Kt)),1===Q$(bEt(t,wre),428).g?(mM(s,new Ht),mM(s,new zt),mM(s,new Pt)):(mM(s,new Ht),mM(s,new $t)),Q$(bEt(t,Ere),250).g){case 0:c=new qt;break;case 1:c=new Vt;break;case 2:c=new Wt;break;case 3:c=new Xt;break;case 5:c=new _A(new Wt);break;case 4:c=new _A(new Vt);break;case 7:c=new DT(new _A(new Vt),new _A(new Wt));break;case 8:c=new DT(new _A(new Xt),new _A(new Wt));break;default:c=new _A(new Xt)}for(o=new Gd(s);o.a<o.c.c.length;){for(a=Q$(J1(o),167),i=0,n=new nS(nft(r=0),nft(i));UQt(e,a,r,i);)n=Q$(c.Ce(n,a),46),r=Q$(n.a,19).a,i=Q$(n.b,19).a;RPt(e,a,r,i)}}function zzt(t){var e,n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C;for(f=(a=t.f.b).a,u=a.b,A=t.e.g,d=t.e.f,CI(t.e,a.a,a.b),k=f/A,C=u/d,l=new SO(mW(t.e));l.e!=l.i.gc();)Tnt(c=Q$(ymt(l),137),c.i*k),Bnt(c,c.j*C);for(b=new SO(bW(t.e));b.e!=b.i.gc();)y=(m=Q$(ymt(b),118)).i,w=m.j,y>0&&Tnt(m,y*k),w>0&&Bnt(m,w*C);for(Zat(t.b,new he),e=new Mm,s=new olt(new Ed(t.c).a);s.b;)r=Q$((o=tnt(s)).cd(),79),n=Q$(o.dd(),395).a,i=iNt(r,!1,!1),VUt(h=hxt(TEt(r),HTt(i),n),i),(v=BEt(r))&&-1==w9(e,v,0)&&(e.c[e.c.length]=v,sq(v,(EF(0!=h.b),Q$(h.a.a.c,8)),n));for(p=new olt(new Ed(t.d).a);p.b;)r=Q$((g=tnt(p)).cd(),79),n=Q$(g.dd(),395).a,i=iNt(r,!1,!1),h=hxt(SEt(r),Yct(HTt(i)),n),VUt(h=Yct(h),i),(v=_Et(r))&&-1==w9(e,v,0)&&(e.c[e.c.length]=v,sq(v,(EF(0!=h.b),Q$(h.c.b.c,8)),n))}function Gzt(t,n,r,i){var a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C;if(0!=r.c.length){for(A=new Mm,d=new Gd(r);d.a<d.c.c.length;)G$(A,new O_((f=Q$(J1(d),33)).i,f.j));for(i.n&&n&&b0(i,o2(n),(Ult(),aLe));OEt(t,r);)kMt(t,r,!1);for(i.n&&n&&b0(i,o2(n),(Ult(),aLe)),s=0,c=0,a=null,0!=r.c.length&&(u1(0,r.c.length),s=(a=Q$(r.c[0],33)).i-(u1(0,A.c.length),Q$(A.c[0],8)).a,c=a.j-(u1(0,A.c.length),Q$(A.c[0],8)).b),o=e.Math.sqrt(s*s+c*c),h=zut(r);0!=h.a.gc();){for(u=h.a.ec().Kc();u.Ob();)l=Q$(u.Pb(),33),p=(g=t.f).i+g.g/2,m=g.j+g.f/2,b=l.i+l.g/2,y=l.j+l.f/2-m,k=(v=b-p)/(w=e.Math.sqrt(v*v+y*y)),C=y/w,Tnt(l,l.i+k*o),Bnt(l,l.j+C*o);i.n&&n&&b0(i,o2(n),(Ult(),aLe)),h=zut(new ZR(h))}t.a&&t.a.lg(new ZR(h)),i.n&&n&&b0(i,o2(n),(Ult(),aLe)),Gzt(t,n,new ZR(h),i)}}function Xzt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;if(p=t.n,m=t.o,d=t.d,f=Hy(CN(egt(t,($Xt(),gme)))),n){for(h=f*(n.gc()-1),A=0,l=n.Kc();l.Ob();)h+=(s=Q$(l.Pb(),10)).o.a,A=e.Math.max(A,s.o.b);for(b=p.a-(h-m.a)/2,o=p.b-d.d+A,a=i=m.a/(n.gc()+1),c=n.Kc();c.Ob();)(s=Q$(c.Pb(),10)).n.a=b,s.n.b=o-s.o.b,b+=s.o.a+f,(u=FOt(s)).n.a=s.o.a/2-u.a.a,u.n.b=s.o.b,(g=Q$(bEt(s,(lVt(),Nhe)),11)).e.c.length+g.g.c.length==1&&(g.n.a=a-g.a.a,g.n.b=0,TZ(g,t)),a+=i}if(r){for(h=f*(r.gc()-1),A=0,l=r.Kc();l.Ob();)h+=(s=Q$(l.Pb(),10)).o.a,A=e.Math.max(A,s.o.b);for(b=p.a-(h-m.a)/2,o=p.b+m.b+d.a-A,a=i=m.a/(r.gc()+1),c=r.Kc();c.Ob();)(s=Q$(c.Pb(),10)).n.a=b,s.n.b=o,b+=s.o.a+f,(u=FOt(s)).n.a=s.o.a/2-u.a.a,u.n.b=0,(g=Q$(bEt(s,(lVt(),Nhe)),11)).e.c.length+g.g.c.length==1&&(g.n.a=a-g.a.a,g.n.b=m.b,TZ(g,t)),a+=i}}function Vzt(t,n){var r,i,a,o,s,c;if(Q$(bEt(n,(lVt(),Yhe)),21).Hc((fNt(),uhe))){for(c=new Gd(n.a);c.a<c.c.c.length;)(o=Q$(J1(c),10)).k==(oTt(),Tse)&&(a=Q$(bEt(o,($Xt(),Tpe)),142),t.c=e.Math.min(t.c,o.n.a-a.b),t.a=e.Math.max(t.a,o.n.a+o.o.a+a.c),t.d=e.Math.min(t.d,o.n.b-a.d),t.b=e.Math.max(t.b,o.n.b+o.o.b+a.a));for(s=new Gd(n.a);s.a<s.c.c.length;)if((o=Q$(J1(s),10)).k!=(oTt(),Tse))switch(o.k.g){case 2:if((i=Q$(bEt(o,($Xt(),vpe)),163))==(Cdt(),Rfe)){o.n.a=t.c-10,qyt(o,new Kn).Jb(new ng(o));break}if(i==Ufe){o.n.a=t.a+10,qyt(o,new zn).Jb(new rg(o));break}if((r=Q$(bEt(o,efe),303))==(j9(),The)){hjt(o).Jb(new ig(o)),o.n.b=t.d-10;break}if(r==xhe){hjt(o).Jb(new ag(o)),o.n.b=t.b+10;break}break;default:throw Um(new Py("The node type "+o.k+" is not supported by the "+qce))}}}function Wzt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A,g;for(c=new O_(r.i+r.g/2,r.j+r.f/2),f=GHt(r),d=Q$(JIt(e,($Xt(),tme)),98),g=Q$(JIt(r,ame),61),QS(hmt(r),Zpe)||(A=0==r.i&&0==r.j?0:tEt(r,g),qmt(r,Zpe,A)),lct(i=fXt(r,d,g,f,new O_(e.g,e.f),c,new O_(r.g,r.f),Q$(bEt(n,Kge),103),n),(lVt(),dfe),r),Uf(a=Q$(Oj(i.j,0),11),wQt(r)),lct(i,rme,(hSt(),Zft(nSe))),u=Q$(JIt(e,rme),174).Hc(tSe),s=new SO((!r.n&&(r.n=new tG(HLe,r,1,7)),r.n));s.e!=s.i.gc();)if(!$y(kN(JIt(o=Q$(ymt(s),137),Hpe)))&&o.a&&(h=$ut(o),G$(a.f,h),!u))switch(l=0,Uz(Q$(JIt(e,rme),21))&&(l=ISt(new O_(o.i,o.j),new O_(o.g,o.f),new O_(r.g,r.f),0,g)),g.g){case 2:case 4:h.o.a=l;break;case 1:case 3:h.o.b=l}lct(i,Tme,CN(JIt(qJ(e),Tme))),lct(i,Bme,CN(JIt(qJ(e),Bme))),lct(i,xme,CN(JIt(qJ(e),xme))),G$(n.a,i),XV(t.a,r,i)}function qzt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;for(Sxt(n,"Processor arrange level",1),u=0,xq(),Rit(e,new im((Hjt(),ewe))),a=e.b,s=cmt(e,e.b),l=!0;l&&s.b.b!=s.d.a;)p=Q$(K0(s),86),0==Q$(bEt(p,ewe),19).a?--a:l=!1;if(o=new JR(new s1(e,0,a)),c=new JR(new s1(e,a,e.b)),0==o.b)for(d=cmt(c,0);d.b!=d.d.c;)lct(Q$(h3(d),86),cwe,nft(u++));else for(h=o.b,v=cmt(o,0);v.b!=v.d.c;){for(lct(b=Q$(h3(v),86),cwe,nft(u++)),qzt(t,r=Dst(b),bat(n,1/h|0)),Rit(r,VV(new im(cwe))),f=new Wx,m=cmt(r,0);m.b!=m.d.c;)for(p=Q$(h3(m),86),g=cmt(b.d,0);g.b!=g.d.c;)(A=Q$(h3(g),188)).c==p&&n5(f,A,f.c.b,f.c);for(bq(b.d),Qit(b.d,f),s=cmt(c,c.b),i=b.d.b,l=!0;0<i&&l&&s.b.b!=s.d.a;)p=Q$(K0(s),86),0==Q$(bEt(p,ewe),19).a?(lct(p,cwe,nft(u++)),--i,bet(s)):l=!1}$Tt(n)}function Yzt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p;for(Sxt(e,"Inverted port preprocessing",1),s=new C2(t.b,0),n=null,p=new Mm;s.b<s.d.gc();){for(g=n,EF(s.b<s.d.gc()),n=Q$(s.d.Xb(s.c=s.b++),29),u=new Gd(p);u.a<u.c.c.length;)EZ(c=Q$(J1(u),10),g);for(p.c=O8(Lte,$Vt,1,0,5,1),h=new Gd(n.a);h.a<h.c.c.length;)if((c=Q$(J1(h),10)).k==(oTt(),Tse)&&pI(Q$(bEt(c,($Xt(),tme)),98))){for(A=iPt(c,(art(),Ube),(yGt(),oSe)).Kc();A.Ob();)for(f=Q$(A.Pb(),11),i=0,a=(r=Q$(Wpt(o=f.e,O8(bse,i1t,17,o.c.length,0,1)),474)).length;i<a;++i)I$t(t,f,r[i],p);for(d=iPt(c,$be,TSe).Kc();d.Ob();)for(f=Q$(d.Pb(),11),i=0,a=(r=Q$(Wpt(o=f.g,O8(bse,i1t,17,o.c.length,0,1)),474)).length;i<a;++i)L$t(t,f,r[i],p)}}for(l=new Gd(p);l.a<l.c.c.length;)EZ(c=Q$(J1(l),10),n);$Tt(e)}function Jzt(t,e,n,r,i,a){var o,s,c,l,u,h;for(Hot(l=new BTt,e),H_t(l,Q$(JIt(e,($Xt(),ame)),61)),lct(l,(lVt(),dfe),e),TZ(l,n),(h=l.o).a=e.g,h.b=e.f,(u=l.n).a=e.i,u.b=e.j,XV(t.a,e,l),(o=o5(LW(ftt(new Fj(null,(!e.e&&(e.e=new cR(NLe,e,7,4)),new f1(e.e,16))),new Ve),new Ge),new GA(e)))||(o=o5(LW(ftt(new Fj(null,(!e.d&&(e.d=new cR(NLe,e,8,5)),new f1(e.d,16))),new We),new Xe),new XA(e))),o||(o=o5(new Fj(null,(!e.e&&(e.e=new cR(NLe,e,7,4)),new f1(e.e,16))),new qe)),lct(l,tfe,(cD(),!!o)),pjt(l,a,i,Q$(JIt(e,Jpe),8)),c=new SO((!e.n&&(e.n=new tG(HLe,e,1,7)),e.n));c.e!=c.i.gc();)!$y(kN(JIt(s=Q$(ymt(c),137),Hpe)))&&s.a&&G$(l.f,$ut(s));switch(i.g){case 2:case 1:(l.j==(yGt(),sSe)||l.j==xSe)&&r.Fc((fNt(),Ahe));break;case 4:case 3:(l.j==(yGt(),oSe)||l.j==TSe)&&r.Fc((fNt(),Ahe))}return l}function Zzt(t,n,r,i,a,o,s){var c,l,u,h,f,d,A,g,p,m,b,v;for(f=null,i==(dJ(),Iye)?f=n:i==Mye&&(f=r),g=f.a.ec().Kc();g.Ob();){for(A=Q$(g.Pb(),11),p=Lct(Tst(Hw(EEe,1),cWt,8,0,[A.i.n,A.n,A.a])).b,v=new Fb,c=new Fb,u=new m6(A.b);bM(u.a)||bM(u.b);)if($y(kN(bEt(l=Q$(bM(u.a)?J1(u.a):J1(u.b),17),(lVt(),Tfe))))==a&&-1!=w9(o,l,0)){if(m=l.d==A?l.c:l.d,b=Lct(Tst(Hw(EEe,1),cWt,8,0,[m.i.n,m.n,m.a])).b,e.Math.abs(b-p)<.2)continue;b<p?n.a._b(m)?kG(v,new nS(Iye,l)):kG(v,new nS(Mye,l)):n.a._b(m)?kG(c,new nS(Iye,l)):kG(c,new nS(Mye,l))}if(v.a.gc()>1)for(t5(v,new s_(t,d=new ljt(A,v,i))),s.c[s.c.length]=d,h=v.a.ec().Kc();h.Ob();)b9(o,Q$(h.Pb(),46).b);if(c.a.gc()>1)for(t5(c,new c_(t,d=new ljt(A,c,i))),s.c[s.c.length]=d,h=c.a.ec().Kc();h.Ob();)b9(o,Q$(h.Pb(),46).b)}}function tGt(t){ME(t,new xxt(dk(pk(fk(gk(Ak(new ps,d4t),"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 jo),d4t))),a2(t,d4t,g3t,bmt(Oke)),a2(t,d4t,mZt,bmt(Nke)),a2(t,d4t,TZt,bmt(Tke)),a2(t,d4t,UZt,bmt(Bke)),a2(t,d4t,EZt,bmt(_ke)),a2(t,d4t,BZt,bmt(Eke)),a2(t,d4t,xZt,bmt(Ske)),a2(t,d4t,_Zt,bmt(Mke)),a2(t,d4t,l4t,bmt(Cke)),a2(t,d4t,c4t,bmt(xke)),a2(t,d4t,f4t,bmt(Lke)),a2(t,d4t,o4t,bmt(Ike)),a2(t,d4t,s4t,bmt(Dke)),a2(t,d4t,u4t,bmt(Fke)),a2(t,d4t,h4t,bmt(Pke))}function eGt(t){var e;if(this.r=OW(new Tt,new Bt),this.b=new $dt(Q$(bX(RSe),290)),this.p=new $dt(Q$(bX(RSe),290)),this.i=new $dt(Q$(bX(Nie),290)),this.e=t,this.o=new fI(t.rf()),this.D=t.Df()||$y(kN(t.We((cVt(),xTe)))),this.A=Q$(t.We((cVt(),NTe)),21),this.B=Q$(t.We($Te),21),this.q=Q$(t.We(aBe),98),this.u=Q$(t.We(lBe),21),!dEt(this.u))throw Um(new nw("Invalid port label placement: "+this.u));if(this.v=$y(kN(t.We(hBe))),this.j=Q$(t.We(DTe),21),!tOt(this.j))throw Um(new nw("Invalid node label placement: "+this.j));this.n=Q$(Zyt(t,MTe),116),this.k=Hy(CN(Zyt(t,_Be))),this.d=Hy(CN(Zyt(t,BBe))),this.w=Hy(CN(Zyt(t,FBe))),this.s=Hy(CN(Zyt(t,SBe))),this.t=Hy(CN(Zyt(t,LBe))),this.C=Q$(Zyt(t,OBe),142),this.c=2*this.d,e=!this.B.Hc((ZRt(),USe)),this.f=new _pt(0,e,0),this.g=new _pt(1,e,0),yy(this.f,(Fet(),jre),this.g)}function nGt(t,n,r,i,a){var o,s,c,l,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T;for(y=0,p=0,g=0,A=1,v=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));v.e!=v.i.gc();)A+=R3(new oz(YO(AOt(m=Q$(ymt(v),33)).a.Kc(),new u))),x=m.g,p=e.Math.max(p,x),d=m.f,g=e.Math.max(g,d),y+=x*d;for(s=y+2*i*i*A*(!t.a&&(t.a=new tG(jLe,t,10,11)),t.a).i,o=e.Math.sqrt(s),l=e.Math.max(o*r,p),c=e.Math.max(o/r,g),b=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));b.e!=b.i.gc();)m=Q$(ymt(b),33),E=a.b+($Mt(n,26)*rYt+$Mt(n,27)*iYt)*(l-m.g),T=a.b+($Mt(n,26)*rYt+$Mt(n,27)*iYt)*(c-m.f),Tnt(m,E),Bnt(m,T);for(C=l+(a.b+a.c),k=c+(a.d+a.a),w=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));w.e!=w.i.gc();)for(f=new oz(YO(AOt(Q$(ymt(w),33)).a.Kc(),new u));AIt(f);)ZLt(h=Q$(K5(f),79))||UXt(h,n,C,k);PGt(t,C+=a.b+a.c,k+=a.d+a.a,!1,!0)}function rGt(t){var e,n,r,i,a,o,s,c,l,u,h;if(null==t)throw Um(new Cw(KVt));if(l=t,c=!1,(a=t.length)>0&&(h1(0,t.length),45!=(e=t.charCodeAt(0))&&43!=e||(t=t.substr(1),--a,c=45==e)),0==a)throw Um(new Cw(Fqt+l+'"'));for(;t.length>0&&(h1(0,t.length),48==t.charCodeAt(0));)t=t.substr(1),--a;if(a>(nUt(),Dee)[10])throw Um(new Cw(Fqt+l+'"'));for(i=0;i<a;i++)if(-1==ept((h1(i,t.length),t.charCodeAt(i))))throw Um(new Cw(Fqt+l+'"'));for(h=0,o=Mee[10],u=Oee[10],s=y9(Fee[10]),n=!0,(r=a%o)>0&&(h=-parseInt(t.substr(0,r),10),t=t.substr(r),a-=r,n=!1);a>=o;){if(r=parseInt(t.substr(0,o),10),t=t.substr(o),a-=o,n)n=!1;else{if(Vut(h,s)<0)throw Um(new Cw(Fqt+l+'"'));h=idt(h,u)}h=ndt(h,r)}if(Vut(h,0)>0)throw Um(new Cw(Fqt+l+'"'));if(!c&&Vut(h=y9(h),0)<0)throw Um(new Cw(Fqt+l+'"'));return h}function iGt(t,e){var n,r,i,a,o,s,c;if(YH(),this.a=new zM(this),this.b=t,this.c=e,this.f=_G(Q9((_Bt(),qMe),e)),this.f.dc())if((s=bkt(qMe,t))==e)for(this.e=!0,this.d=new Mm,this.f=new fc,this.f.Fc(E9t),Q$(OHt(R9(qMe,zet(t)),""),26)==t&&this.f.Fc(iz(qMe,zet(t))),i=kRt(qMe,t).Kc();i.Ob();)switch(r=Q$(i.Pb(),170),DV(Q9(qMe,r))){case 4:this.d.Fc(r);break;case 5:this.f.Gc(_G(Q9(qMe,r)))}else if(YE(),Q$(e,66).Oj())for(this.e=!0,this.f=null,this.d=new Mm,o=0,c=(null==t.i&&HUt(t),t.i).length;o<c;++o)for(null==t.i&&HUt(t),n=t.i,r=o>=0&&o<n.length?n[o]:null,a=Y1(Q9(qMe,r));a;a=Y1(Q9(qMe,a)))a==e&&this.d.Fc(r);else 1==DV(Q9(qMe,e))&&s?(this.f=null,this.d=(CLt(),lOe)):(this.f=null,this.e=!0,this.d=(xq(),new Hd(e)));else this.e=5==DV(Q9(qMe,e)),this.f.Fb(iOe)&&(this.f=iOe)}function aGt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g;for(r=0,i=Tvt(t,n),d=t.s,A=t.t,u=Q$(Q$(c6(t.r,n),21),84).Kc();u.Ob();)if((l=Q$(u.Pb(),111)).c&&!(l.c.d.c.length<=0)){switch(g=l.b.rf(),c=l.b.Xe((cVt(),iBe))?Hy(CN(l.b.We(iBe))):0,(f=(h=l.c).i).b=(s=h.n,h.e.a+s.b+s.c),f.a=(o=h.n,h.e.b+o.d+o.a),n.g){case 1:f.c=l.a?(g.a-f.b)/2:g.a+d,f.d=g.b+c+i,u7(h,(q7(),Vre)),GN(h,(H9(),rie));break;case 3:f.c=l.a?(g.a-f.b)/2:g.a+d,f.d=-c-i-f.a,u7(h,(q7(),Vre)),GN(h,(H9(),eie));break;case 2:f.c=-c-i-f.b,l.a?(a=t.v?f.a:Q$(Oj(h.d,0),181).rf().b,f.d=(g.b-a)/2):f.d=g.b+A,u7(h,(q7(),qre)),GN(h,(H9(),nie));break;case 4:f.c=g.a+c+i,l.a?(a=t.v?f.a:Q$(Oj(h.d,0),181).rf().b,f.d=(g.b-a)/2):f.d=g.b+A,u7(h,(q7(),Wre)),GN(h,(H9(),nie))}(n==(yGt(),sSe)||n==xSe)&&(r=e.Math.max(r,f.a))}r>0&&(Q$(oW(t.b,n),124).a.b=r)}function oGt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p;for(Sxt(e,"Comment pre-processing",1),n=0,c=new Gd(t.a);c.a<c.c.c.length;)if($y(kN(bEt(s=Q$(J1(c),10),($Xt(),kge))))){for(++n,i=0,r=null,l=null,A=new Gd(s.j);A.a<A.c.c.length;)i+=(f=Q$(J1(A),11)).e.c.length+f.g.c.length,1==f.e.c.length&&(l=(r=Q$(Oj(f.e,0),17)).c),1==f.g.c.length&&(l=(r=Q$(Oj(f.g,0),17)).d);if(1!=i||l.e.c.length+l.g.c.length!=1||$y(kN(bEt(l.i,kge)))){for(p=new Mm,d=new Gd(s.j);d.a<d.c.c.length;){for(h=new Gd((f=Q$(J1(d),11)).g);h.a<h.c.c.length;)0==(u=Q$(J1(h),17)).d.g.c.length||(p.c[p.c.length]=u);for(o=new Gd(f.e);o.a<o.c.c.length;)0==(a=Q$(J1(o),17)).c.e.c.length||(p.c[p.c.length]=a)}for(g=new Gd(p);g.a<g.c.c.length;)t$t(Q$(J1(g),17),!0)}else ZGt(s,r,l,l.i),SG(c)}e.n&&_H(e,"Found "+n+" comment boxes"),$Tt(e)}function sGt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A,g;if(f=Hy(CN(bEt(t,($Xt(),Tme)))),d=Hy(CN(bEt(t,Bme))),h=Hy(CN(bEt(t,xme))),s=t.o,o=(a=Q$(Oj(t.j,0),11)).n,g=CBt(a,h)){if(e.Hc((hSt(),tSe)))switch(Q$(bEt(t,(lVt(),Vhe)),61).g){case 1:g.c=(s.a-g.b)/2-o.a,g.d=d;break;case 3:g.c=(s.a-g.b)/2-o.a,g.d=-d-g.a;break;case 2:n&&0==a.e.c.length&&0==a.g.c.length?(u=r?g.a:Q$(Oj(a.f,0),70).o.b,g.d=(s.b-u)/2-o.b):g.d=s.b+d-o.b,g.c=-f-g.b;break;case 4:n&&0==a.e.c.length&&0==a.g.c.length?(u=r?g.a:Q$(Oj(a.f,0),70).o.b,g.d=(s.b-u)/2-o.b):g.d=s.b+d-o.b,g.c=f}else if(e.Hc(nSe))switch(Q$(bEt(t,(lVt(),Vhe)),61).g){case 1:case 3:g.c=o.a+f;break;case 2:case 4:n&&!a.c?(u=r?g.a:Q$(Oj(a.f,0),70).o.b,g.d=(s.b-u)/2-o.b):g.d=o.b+d}for(i=g.d,l=new Gd(a.f);l.a<l.c.c.length;)(A=(c=Q$(J1(l),70)).n).a=g.c,A.b=i,i+=c.o.b+h}}function cGt(){FL(hOe,new Wl),FL(HOe,new ou),FL(jOe,new mu),FL(KOe,new _u),FL(Wee,new Mu),FL(Hw(IDe,1),new Ou),FL(yee,new Du),FL(Cee,new Fu),FL(Wee,new Ql),FL(Wee,new Ul),FL(Wee,new $l),FL(Tee,new Hl),FL(Wee,new jl),FL(Nte,new Kl),FL(Nte,new zl),FL(Wee,new Gl),FL(Bee,new Xl),FL(Wee,new Vl),FL(Wee,new ql),FL(Wee,new Yl),FL(Wee,new Jl),FL(Wee,new Zl),FL(Hw(IDe,1),new tu),FL(Wee,new eu),FL(Wee,new nu),FL(Nte,new ru),FL(Nte,new iu),FL(Wee,new au),FL(Lee,new su),FL(Wee,new cu),FL(Nee,new lu),FL(Wee,new uu),FL(Wee,new hu),FL(Wee,new fu),FL(Wee,new du),FL(Nte,new Au),FL(Nte,new gu),FL(Wee,new pu),FL(Wee,new bu),FL(Wee,new vu),FL(Wee,new yu),FL(Wee,new wu),FL(Wee,new ku),FL(Ree,new Cu),FL(Wee,new xu),FL(Wee,new Eu),FL(Wee,new Tu),FL(Ree,new Bu),FL(Nee,new Su),FL(Wee,new Lu),FL(Lee,new Iu)}function lGt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;if((h=e.length)>0&&(h1(0,e.length),64!=(s=e.charCodeAt(0)))){if(37==s&&(c=!1,0!=(u=e.lastIndexOf("%"))&&(u==h-1||(h1(u+1,e.length),c=46==e.charCodeAt(u+1))))){if(b=mR("%",o=e.substr(1,u-1))?null:IGt(o),r=0,c)try{r=hQt(e.substr(u+2),RWt,FVt)}catch(t){throw rO(t=hst(t),127)?Um(new I9(t)):Um(t)}for(g=kit(t.Wg());g.Ob();)if(rO(d=xot(g),510)&&(m=(i=Q$(d,590)).d,(null==b?null==m:mR(b,m))&&0==r--))return i;return null}if(f=-1==(l=e.lastIndexOf("."))?e:e.substr(0,l),n=0,-1!=l)try{n=hQt(e.substr(l+1),RWt,FVt)}catch(t){if(!rO(t=hst(t),127))throw Um(t);f=e}for(f=mR("%",f)?null:IGt(f),A=kit(t.Wg());A.Ob();)if(rO(d=xot(A),191)&&(p=(a=Q$(d,191)).ne(),(null==f?null==p:mR(f,p))&&0==n--))return a;return null}return Rjt(t,e)}function uGt(t){var e,n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x;for(v=new Mm,h=new Gd(t.b);h.a<h.c.c.length;)for(A=new Gd(Q$(J1(h),29).a);A.a<A.c.c.length;)if((f=Q$(J1(A),10)).k==(oTt(),Cse)&&IF(f,(lVt(),Xhe))){for(g=null,m=null,p=null,k=new Gd(f.j);k.a<k.c.c.length;)switch((w=Q$(J1(k),11)).j.g){case 4:g=w;break;case 2:m=w;break;default:p=w}for(l=new Nk((b=Q$(Oj(p.g,0),17)).a),KP(c=new fI(p.n),f.n),JG(cmt(l,0),c),y=Yct(b.a),KP(u=new fI(p.n),f.n),n5(y,u,y.c.b,y.c),C=Q$(bEt(f,Xhe),10),x=Q$(Oj(C.j,0),11),a=0,s=(r=Q$(Wpt(g.e,O8(bse,i1t,17,0,0,1)),474)).length;a<s;++a)CZ(e=r[a],x),Xlt(e.a,e.a.b,l);for(i=0,o=(n=Y0(m.g)).length;i<o;++i)xZ(e=n[i],x),Xlt(e.a,0,y);xZ(b,null),CZ(b,null),v.c[v.c.length]=f}for(d=new Gd(v);d.a<d.c.c.length;)EZ(f=Q$(J1(d),10),null)}function hGt(){var t,e,n;for(hGt=L,new vtt(1,0),new vtt(10,0),new vtt(0,0),$ee=O8(nne,cWt,240,11,0,1),Hee=O8(BDe,XWt,25,100,15,1),jee=Tst(Hw(MDe,1),Hqt,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]),Kee=O8(_De,lqt,25,jee.length,15,1),zee=Tst(Hw(MDe,1),Hqt,25,15,[1,10,100,VWt,1e4,jqt,1e6,1e7,1e8,Lqt,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Gee=O8(_De,lqt,25,zee.length,15,1),Xee=O8(nne,cWt,240,11,0,1),t=0;t<Xee.length;t++)$ee[t]=new vtt(t,0),Xee[t]=new vtt(0,t),Hee[t]=48;for(;t<Hee.length;t++)Hee[t]=48;for(n=0;n<Kee.length;n++)Kee[n]=aSt(jee[n]);for(e=0;e<Gee.length;e++)Gee[e]=aSt(zee[e]);ILt()}function fGt(){function t(){this.obj=this.createObject()}return t.prototype.createObject=function(t){return Object.create(null)},t.prototype.get=function(t){return this.obj[t]},t.prototype.set=function(t,e){this.obj[t]=e},t.prototype[nYt]=function(t){delete this.obj[t]},t.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},t.prototype.entries=function(){var t=this.keys(),e=this,n=0;return{next:function(){if(n>=t.length)return{done:!0};var r=t[n++];return{value:[r,e.get(r)],done:!1}}}},KNt()||(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[nYt]=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 dGt(t){var e,n,r,i,a,o,s,c,l,u,h,f,d,A,g;if(TUt(),null==t)return null;if(0==(h=8*t.length))return"";for(f=h/24|0,a=null,a=O8(BDe,XWt,25,4*(0!=(s=h%24)?f+1:f),15,1),l=0,u=0,e=0,n=0,r=0,o=0,i=0,c=0;c<f;c++)e=t[i++],u=(15&(n=t[i++]))<<24>>24,l=(3&e)<<24>>24,d=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,A=-128&n?(n>>4^240)<<24>>24:n>>4<<24>>24,g=-128&(r=t[i++])?(r>>6^252)<<24>>24:r>>6<<24>>24,a[o++]=GOe[d],a[o++]=GOe[A|l<<4],a[o++]=GOe[u<<2|g],a[o++]=GOe[63&r];return 8==s?(l=(3&(e=t[i]))<<24>>24,d=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,a[o++]=GOe[d],a[o++]=GOe[l<<4],a[o++]=61,a[o++]=61):16==s&&(e=t[i],u=(15&(n=t[i+1]))<<24>>24,l=(3&e)<<24>>24,d=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,A=-128&n?(n>>4^240)<<24>>24:n>>4<<24>>24,a[o++]=GOe[d],a[o++]=GOe[A|l<<4],a[o++]=GOe[u<<2],a[o++]=61),Ugt(a,0,a.length)}function AGt(t,n){var r,i,a,o,s,c;if(0==t.e&&t.p>0&&(t.p=-(t.p-1)),t.p>RWt&&t4(n,t.p-cqt),s=n.q.getDate(),RJ(n,1),t.k>=0&&pZ(n,t.k),t.c>=0?RJ(n,t.c):t.k>=0?(i=35-new mct(n.q.getFullYear()-cqt,n.q.getMonth(),35).q.getDate(),RJ(n,e.Math.min(i,s))):RJ(n,s),t.f<0&&(t.f=n.q.getHours()),t.b>0&&t.f<12&&(t.f+=12),iO(n,24==t.f&&t.g?0:t.f),t.j>=0&&A6(n,t.j),t.n>=0&&K8(n,t.n),t.i>=0&&dL(n,rdt(idt(Skt(uot(n.q.getTime()),VWt),VWt),t.i)),t.a&&(t4(a=new Sx,a.q.getFullYear()-cqt-80),sT(uot(n.q.getTime()),uot(a.q.getTime()))&&t4(n,a.q.getFullYear()-cqt+100)),t.d>=0)if(-1==t.c)(r=(7+t.d-n.q.getDay())%7)>3&&(r-=7),c=n.q.getMonth(),RJ(n,n.q.getDate()+r),n.q.getMonth()!=c&&RJ(n,n.q.getDate()+(r>0?-7:7));else if(n.q.getDay()!=t.d)return!1;return t.o>RWt&&(o=n.q.getTimezoneOffset(),dL(n,rdt(uot(n.q.getTime()),60*(t.o-o)*VWt))),!0}function gGt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m;if(rO(i=bEt(e,(lVt(),dfe)),239)){for(d=Q$(i,33),A=e.e,h=new fI(e.c),a=e.d,h.a+=a.b,h.b+=a.d,xD(Q$(JIt(d,($Xt(),$pe)),174),(ZRt(),$Se))&&(_f(f=Q$(JIt(d,jpe),116),a.a),Pf(f,a.d),Sf(f,a.b),Rf(f,a.c)),n=new Mm,l=new Gd(e.a);l.a<l.c.c.length;)for(rO(bEt(s=Q$(J1(l),10),dfe),239)?BGt(s,h):rO(bEt(s,dfe),186)&&!A&&xI(r=Q$(bEt(s,dfe),118),(p=vUt(e,s,r.g,r.f)).a,p.b),g=new Gd(s.j);g.a<g.c.c.length;)qx(SW(new Fj(null,new f1(Q$(J1(g),11).g,16)),new VA(s)),new WA(n));if(A)for(g=new Gd(A.j);g.a<g.c.c.length;)qx(SW(new Fj(null,new f1(Q$(J1(g),11).g,16)),new qA(A)),new YA(n));for(m=Q$(JIt(d,Yge),218),o=new Gd(n);o.a<o.c.c.length;)pzt(Q$(J1(o),17),m,h);for(bQt(e),c=new Gd(e.a);c.a<c.c.c.length;)(u=(s=Q$(J1(c),10)).e)&&gGt(t,u)}}function pGt(t){ME(t,new xxt(mk(dk(pk(fk(gk(Ak(new ps,gZt),"ELK Force"),"Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."),new Ae),gZt),wK((lIt(),JLe),Tst(Hw(rIe,1),IWt,237,0,[qLe]))))),a2(t,gZt,pZt,nft(1)),a2(t,gZt,mZt,80),a2(t,gZt,bZt,5),a2(t,gZt,VJt,AZt),a2(t,gZt,vZt,nft(1)),a2(t,gZt,yZt,(cD(),!0)),a2(t,gZt,WJt,Vae),a2(t,gZt,wZt,bmt(Uae)),a2(t,gZt,kZt,bmt(Wae)),a2(t,gZt,CZt,!1),a2(t,gZt,xZt,bmt(Gae)),a2(t,gZt,EZt,bmt(zae)),a2(t,gZt,TZt,bmt(Kae)),a2(t,gZt,BZt,bmt(jae)),a2(t,gZt,_Zt,bmt(qae)),a2(t,gZt,sZt,bmt(Hae)),a2(t,gZt,uZt,bmt(ioe)),a2(t,gZt,cZt,bmt($ae)),a2(t,gZt,fZt,bmt(Zae)),a2(t,gZt,lZt,bmt(toe))}function mGt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A;if(!Q$(Q$(c6(t.r,n),21),84).dc()){if(l=(s=Q$(oW(t.b,n),124)).i,c=s.n,h=TNt(t,n),i=l.b-c.b-c.c,a=s.a.a,o=l.c+c.b,A=t.w,h!=(imt(),Q_e)&&h!=$_e||1!=Q$(Q$(c6(t.r,n),21),84).gc()||(a=h==Q_e?a-2*t.w:a,h=R_e),i<a&&!t.B.Hc((ZRt(),GSe)))h==Q_e?o+=A+=(i-a)/(Q$(Q$(c6(t.r,n),21),84).gc()+1):A+=(i-a)/(Q$(Q$(c6(t.r,n),21),84).gc()-1);else switch(i<a&&(a=h==Q_e?a-2*t.w:a,h=R_e),h.g){case 3:o+=(i-a)/2;break;case 4:o+=i-a;break;case 0:r=(i-a)/(Q$(Q$(c6(t.r,n),21),84).gc()+1),o+=A+=e.Math.max(0,r);break;case 1:r=(i-a)/(Q$(Q$(c6(t.r,n),21),84).gc()-1),A+=e.Math.max(0,r)}for(d=Q$(Q$(c6(t.r,n),21),84).Kc();d.Ob();)(f=Q$(d.Pb(),111)).e.a=o+f.d.b,f.e.b=(u=f.b).Xe((cVt(),iBe))?u.Hf()==(yGt(),sSe)?-u.rf().b-Hy(CN(u.We(iBe))):Hy(CN(u.We(iBe))):u.Hf()==(yGt(),sSe)?-u.rf().b:0,o+=f.d.b+f.b.rf().a+f.d.c+A}}function bGt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g;if(!Q$(Q$(c6(t.r,n),21),84).dc()){if(l=(s=Q$(oW(t.b,n),124)).i,c=s.n,f=TNt(t,n),i=l.a-c.d-c.a,a=s.a.b,o=l.d+c.d,g=t.w,u=t.o.a,f!=(imt(),Q_e)&&f!=$_e||1!=Q$(Q$(c6(t.r,n),21),84).gc()||(a=f==Q_e?a-2*t.w:a,f=R_e),i<a&&!t.B.Hc((ZRt(),GSe)))f==Q_e?o+=g+=(i-a)/(Q$(Q$(c6(t.r,n),21),84).gc()+1):g+=(i-a)/(Q$(Q$(c6(t.r,n),21),84).gc()-1);else switch(i<a&&(a=f==Q_e?a-2*t.w:a,f=R_e),f.g){case 3:o+=(i-a)/2;break;case 4:o+=i-a;break;case 0:r=(i-a)/(Q$(Q$(c6(t.r,n),21),84).gc()+1),o+=g+=e.Math.max(0,r);break;case 1:r=(i-a)/(Q$(Q$(c6(t.r,n),21),84).gc()-1),g+=e.Math.max(0,r)}for(A=Q$(Q$(c6(t.r,n),21),84).Kc();A.Ob();)(d=Q$(A.Pb(),111)).e.a=(h=d.b).Xe((cVt(),iBe))?h.Hf()==(yGt(),TSe)?-h.rf().a-Hy(CN(h.We(iBe))):u+Hy(CN(h.We(iBe))):h.Hf()==(yGt(),TSe)?-h.rf().a:u,d.e.b=o+d.d.d,o+=d.d.d+d.b.rf().b+d.d.a+g}}function vGt(t){var n,r,i,a,o,s,c,l,h,f,d,A,g,p,m;for(t.n=Hy(CN(bEt(t.g,($Xt(),_me)))),t.e=Hy(CN(bEt(t.g,kme))),t.i=t.g.b.c.length,c=t.i-1,A=0,t.j=0,t.k=0,t.a=a6(O8(Lee,cWt,19,t.i,0,1)),t.b=a6(O8(Tee,cWt,333,t.i,7,1)),s=new Gd(t.g.b);s.a<s.c.c.length;){for((a=Q$(J1(s),29)).p=c,d=new Gd(a.a);d.a<d.c.c.length;)(f=Q$(J1(d),10)).p=A,++A;--c}for(t.f=O8(_De,lqt,25,A,15,1),t.c=vj(_De,[cWt,lqt],[48,25],15,[A,3],2),t.o=new Mm,t.p=new Mm,n=0,t.d=0,o=new Gd(t.g.b);o.a<o.c.c.length;){for(c=(a=Q$(J1(o),29)).p,i=0,m=0,l=a.a.c.length,h=0,d=new Gd(a.a);d.a<d.c.c.length;)A=(f=Q$(J1(d),10)).p,t.f[A]=f.c.p,h+=f.o.b+t.n,r=R3(new oz(YO(udt(f).a.Kc(),new u))),p=R3(new oz(YO(hdt(f).a.Kc(),new u))),t.c[A][0]=p-r,t.c[A][1]=r,t.c[A][2]=p,i+=r,m+=p,r>0&&G$(t.p,f),G$(t.o,f);g=l+(n-=i),h+=n*t.e,r5(t.a,c,nft(g)),r5(t.b,c,h),t.j=e.Math.max(t.j,g),t.k=e.Math.max(t.k,h),t.d+=n,n+=m}}function yGt(){var t;yGt=L,ESe=new G_(lJt,0),sSe=new G_(bJt,1),oSe=new G_(vJt,2),xSe=new G_(yJt,3),TSe=new G_(wJt,4),xq(),fSe=new Sw(new WR(t=Q$(Xk(RSe),9),Q$(xP(t,t.length),9),0)),dSe=uht(wK(sSe,Tst(Hw(RSe,1),qZt,61,0,[]))),cSe=uht(wK(oSe,Tst(Hw(RSe,1),qZt,61,0,[]))),wSe=uht(wK(xSe,Tst(Hw(RSe,1),qZt,61,0,[]))),CSe=uht(wK(TSe,Tst(Hw(RSe,1),qZt,61,0,[]))),bSe=uht(wK(sSe,Tst(Hw(RSe,1),qZt,61,0,[xSe]))),hSe=uht(wK(oSe,Tst(Hw(RSe,1),qZt,61,0,[TSe]))),ySe=uht(wK(sSe,Tst(Hw(RSe,1),qZt,61,0,[TSe]))),ASe=uht(wK(sSe,Tst(Hw(RSe,1),qZt,61,0,[oSe]))),kSe=uht(wK(xSe,Tst(Hw(RSe,1),qZt,61,0,[TSe]))),lSe=uht(wK(oSe,Tst(Hw(RSe,1),qZt,61,0,[xSe]))),mSe=uht(wK(sSe,Tst(Hw(RSe,1),qZt,61,0,[oSe,TSe]))),uSe=uht(wK(oSe,Tst(Hw(RSe,1),qZt,61,0,[xSe,TSe]))),vSe=uht(wK(sSe,Tst(Hw(RSe,1),qZt,61,0,[xSe,TSe]))),gSe=uht(wK(sSe,Tst(Hw(RSe,1),qZt,61,0,[oSe,xSe]))),pSe=uht(wK(sSe,Tst(Hw(RSe,1),qZt,61,0,[oSe,xSe,TSe])))}function wGt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;if(0!=n.b){for(f=new Wx,o=null,d=null,r=TJ(e.Math.floor(e.Math.log(n.b)*e.Math.LOG10E)+1),s=0,b=cmt(n,0);b.b!=b.d.c;)for(p=Q$(h3(b),86),HS(d)!==HS(bEt(p,(Hjt(),nwe)))&&(d=xN(bEt(p,nwe)),s=0),o=null!=d?d+d0(s++,r):d0(s++,r),lct(p,nwe,o),g=new fp(cmt(new hp(p).a.d,0));wC(g.a);)n5(f,A=Q$(h3(g.a),188).c,f.c.b,f.c),lct(A,nwe,o);for(h=new Om,a=0;a<o.length-r;a++)for(m=cmt(n,0);m.b!=m.d.c;)mZ(h,c=lF(xN(bEt(p=Q$(h3(m),86),(Hjt(),nwe))),0,a+1),nft(null!=(null==c?$S(SY(h.f,null)):cT(h.g,c))?Q$(null==c?$S(SY(h.f,null)):cT(h.g,c),19).a+1:1));for(u=new olt(new Ed(h).a);u.b;)l=tnt(u),i=nft(null!=FX(t.a,l.cd())?Q$(FX(t.a,l.cd()),19).a:0),mZ(t.a,xN(l.cd()),nft(Q$(l.dd(),19).a+i.a)),(!(i=Q$(FX(t.b,l.cd()),19))||i.a<Q$(l.dd(),19).a)&&mZ(t.b,xN(l.cd()),Q$(l.dd(),19));wGt(t,f)}}function kGt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;for(Sxt(r,"Interactive node layering",1),i=new Mm,A=new Gd(n.a);A.a<A.c.c.length;){for(l=(u=(f=Q$(J1(A),10)).n.a)+f.o.a,l=e.Math.max(u+1,l),b=new C2(i,0),a=null;b.b<b.d.gc();){if(EF(b.b<b.d.gc()),(p=Q$(b.d.Xb(b.c=b.b++),569)).c>=l){EF(b.b>0),b.a.Xb(b.c=--b.b);break}p.a>u&&(a?(gst(a.b,p.b),a.a=e.Math.max(a.a,p.a),lV(b)):(G$(p.b,f),p.c=e.Math.min(p.c,u),p.a=e.Math.max(p.a,l),a=p))}a||((a=new ev).c=u,a.a=l,bP(b,a),G$(a.b,f))}for(c=n.b,h=0,m=new Gd(i);m.a<m.c.c.length;)for(p=Q$(J1(m),569),(o=new UX(n)).p=h++,c.c[c.c.length]=o,g=new Gd(p.b);g.a<g.c.c.length;)EZ(f=Q$(J1(g),10),o),f.p=0;for(d=new Gd(n.a);d.a<d.c.c.length;)0==(f=Q$(J1(d),10)).p&&BNt(t,f,n);for(s=new C2(c,0);s.b<s.d.gc();)0==(EF(s.b<s.d.gc()),Q$(s.d.Xb(s.c=s.b++),29)).a.c.length&&lV(s);n.a.c=O8(Lte,$Vt,1,0,5,1),$Tt(r)}function CGt(t,e,n){var r,i,a,o,s,c,l,u,h,f;if(0!=e.e.c.length&&0!=n.e.c.length){if((r=Q$(Oj(e.e,0),17).c.i)==(o=Q$(Oj(n.e,0),17).c.i))return wM(Q$(bEt(Q$(Oj(e.e,0),17),(lVt(),ffe)),19).a,Q$(bEt(Q$(Oj(n.e,0),17),ffe),19).a);for(h=0,f=(u=t.a).length;h<f;++h){if((l=u[h])==r)return 1;if(l==o)return-1}}return 0!=e.g.c.length&&0!=n.g.c.length?(a=Q$(bEt(e,(lVt(),ufe)),10),c=Q$(bEt(n,ufe),10),i=0,s=0,IF(Q$(Oj(e.g,0),17),ffe)&&(i=Q$(bEt(Q$(Oj(e.g,0),17),ffe),19).a),IF(Q$(Oj(n.g,0),17),ffe)&&(s=Q$(bEt(Q$(Oj(e.g,0),17),ffe),19).a),a&&a==c?$y(kN(bEt(Q$(Oj(e.g,0),17),Tfe)))&&!$y(kN(bEt(Q$(Oj(n.g,0),17),Tfe)))?1:!$y(kN(bEt(Q$(Oj(e.g,0),17),Tfe)))&&$y(kN(bEt(Q$(Oj(n.g,0),17),Tfe)))||i<s?-1:i>s?1:0:(t.b&&(t.b._b(a)&&(i=Q$(t.b.xc(a),19).a),t.b._b(c)&&(s=Q$(t.b.xc(c),19).a)),i<s?-1:i>s?1:0)):0!=e.e.c.length&&0!=n.g.c.length?1:-1}function xGt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;for(Sxt(e,S1t,1),A=new Mm,y=new Mm,l=new Gd(t.b);l.a<l.c.c.length;)for(p=-1,f=0,d=(h=J0((c=Q$(J1(l),29)).a)).length;f<d;++f)if(++p,(u=h[f]).k==(oTt(),Tse)&&pI(Q$(bEt(u,($Xt(),tme)),98))){for(IR(Q$(bEt(u,($Xt(),tme)),98))||$Dt(u),lct(u,(lVt(),nfe),u),A.c=O8(Lte,$Vt,1,0,5,1),y.c=O8(Lte,$Vt,1,0,5,1),n=new Mm,Hit(b=new Wx,FTt(u,(yGt(),sSe))),LXt(t,b,A,y,n),s=p,w=u,a=new Gd(A);a.a<a.c.c.length;)Wyt(r=Q$(J1(a),10),s,c),++p,lct(r,nfe,u),o=Q$(Oj(r.j,0),11),g=Q$(bEt(o,dfe),11),$y(kN(bEt(g,yge)))||Q$(bEt(r,rfe),15).Fc(w);for(bq(b),m=FTt(u,xSe).Kc();m.Ob();)n5(b,Q$(m.Pb(),11),b.a,b.a.a);for(LXt(t,b,y,null,n),v=u,i=new Gd(y);i.a<i.c.c.length;)Wyt(r=Q$(J1(i),10),++p,c),lct(r,nfe,u),o=Q$(Oj(r.j,0),11),g=Q$(bEt(o,dfe),11),$y(kN(bEt(g,yge)))||Q$(bEt(v,rfe),15).Fc(r);0==n.c.length||lct(u,Ohe,n)}$Tt(e)}function EGt(t){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B;for(u=Q$(bEt(t,(xit(),soe)),33),g=FVt,p=FVt,d=RWt,A=RWt,b=new Gd(t.e);b.a<b.c.c.length;)C=(m=Q$(J1(b),144)).d,x=m.e,g=e.Math.min(g,C.a-x.a/2),p=e.Math.min(p,C.b-x.b/2),d=e.Math.max(d,C.a+x.a/2),A=e.Math.max(A,C.b+x.b/2);for(w=new O_((k=Q$(JIt(u,(uPt(),Xae)),116)).b-g,k.d-p),c=new Gd(t.e);c.a<c.c.c.length;)rO(y=bEt(s=Q$(J1(c),144),soe),239)&&xI(h=Q$(y,33),(v=KP(s.d,w)).a-h.g/2,v.b-h.f/2);for(i=new Gd(t.c);i.a<i.c.c.length;)r=Q$(J1(i),282),l=iNt(Q$(bEt(r,soe),79),!0,!0),zwt(T=zP(QM(r.d.d),r.c.d),r.c.e.a,r.c.e.b),TI(l,(E=KP(T,r.c.d)).a,E.b),zwt(B=zP(QM(r.c.d),r.d.d),r.d.e.a,r.d.e.b),EI(l,(n=KP(B,r.d.d)).a,n.b);for(o=new Gd(t.d);o.a<o.c.c.length;)a=Q$(J1(o),447),xI(Q$(bEt(a,soe),137),(f=KP(a.d,w)).a,f.b);PGt(u,d-g+(k.b+k.c),A-p+(k.d+k.a),!1,!0)}function TGt(t){var e,n,r,i,a,o,s,c,l,u,h;for(n=null,s=null,(i=Q$(bEt(t.b,($Xt(),epe)),376))==(S6(),qbe)&&(n=new Mm,s=new Mm),o=new Gd(t.d);o.a<o.c.c.length;)if((a=Q$(J1(o),101)).i)switch(a.e.g){case 0:e=Q$(a4(new Vx(a.b)),61),i==qbe&&e==(yGt(),sSe)?n.c[n.c.length]=a:i==qbe&&e==(yGt(),xSe)?s.c[s.c.length]=a:Ovt(a,e);break;case 1:c=a.a.d.j,l=a.c.d.j,c==(yGt(),sSe)?hG(a,sSe,(Sst(),mle),a.a):l==sSe?hG(a,sSe,(Sst(),ble),a.c):c==xSe?hG(a,xSe,(Sst(),ble),a.a):l==xSe&&hG(a,xSe,(Sst(),mle),a.c);break;case 2:case 3:xD(r=a.b,(yGt(),sSe))?xD(r,xSe)?xD(r,TSe)?xD(r,oSe)||hG(a,sSe,(Sst(),ble),a.c):hG(a,sSe,(Sst(),mle),a.a):hG(a,sSe,(Sst(),ple),null):hG(a,xSe,(Sst(),ple),null);break;case 4:u=a.a.d.j,h=a.a.d.j,u==(yGt(),sSe)||h==sSe?hG(a,xSe,(Sst(),ple),null):hG(a,sSe,(Sst(),ple),null)}n&&(0==n.c.length||WUt(n,(yGt(),sSe)),0==s.c.length||WUt(s,(yGt(),xSe)))}function BGt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A;for(r=Q$(bEt(t,(lVt(),dfe)),33),d=Q$(bEt(t,($Xt(),Qge)),19).a,a=Q$(bEt(t,ype),19).a,qmt(r,Qge,nft(d)),qmt(r,ype,nft(a)),Tnt(r,t.n.a+e.a),Bnt(r,t.n.b+e.b),(0!=Q$(JIt(r,Rpe),174).gc()||t.e||HS(bEt(pV(t),Ppe))===HS((Obt(),mbe))&&gI((fbt(),(t.q?t.q:(xq(),xq(),lne))._b(Fpe)?Q$(bEt(t,Fpe),197):Q$(bEt(pV(t),Npe),197))))&&(Ent(r,t.o.a),xnt(r,t.o.b)),h=new Gd(t.j);h.a<h.c.c.length;)rO(A=bEt(l=Q$(J1(h),11),dfe),186)&&(xI(i=Q$(A,118),l.n.a,l.n.b),qmt(i,ame,l.j));for(f=0!=Q$(bEt(t,Lpe),174).gc(),c=new Gd(t.b);c.a<c.c.c.length;)o=Q$(J1(c),70),(f||0!=Q$(bEt(o,Lpe),174).gc())&&(CI(n=Q$(bEt(o,dfe),137),o.o.a,o.o.b),xI(n,o.n.a,o.n.b));if(!Uz(Q$(bEt(t,rme),21)))for(u=new Gd(t.j);u.a<u.c.c.length;)for(s=new Gd((l=Q$(J1(u),11)).f);s.a<s.c.c.length;)o=Q$(J1(s),70),Ent(n=Q$(bEt(o,dfe),137),o.o.a),xnt(n,o.o.b),xI(n,o.n.a,o.n.b)}function _Gt(t){var e,n,r,i,a;switch(_Y(t,n8t),(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b).i+(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c).i){case 0:throw Um(new Py("The edge must have at least one source or target."));case 1:return 0==(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b).i?qJ(Txt(Q$(Xet((!t.c&&(t.c=new cR(FLe,t,5,8)),t.c),0),82))):qJ(Txt(Q$(Xet((!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),0),82)))}if(1==(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b).i&&1==(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c).i){if(i=Txt(Q$(Xet((!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),0),82)),a=Txt(Q$(Xet((!t.c&&(t.c=new cR(FLe,t,5,8)),t.c),0),82)),qJ(i)==qJ(a))return qJ(i);if(i==qJ(a))return i;if(a==qJ(i))return a}for(e=Txt(Q$(K5(r=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[(!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),(!t.c&&(t.c=new cR(FLe,t,5,8)),t.c)])))),82));AIt(r);)if((n=Txt(Q$(K5(r),82)))!=e&&!Bet(n,e))if(qJ(n)==qJ(e))e=qJ(n);else if(!(e=UMt(e,n)))return null;return e}function SGt(t,n,r){var i,a,o,s,c,l,h,f,d,A,g,p,m,b,v,y,w,k;for(Sxt(r,"Polyline edge routing",1),b=Hy(CN(bEt(n,($Xt(),Zge)))),g=Hy(CN(bEt(n,Sme))),a=Hy(CN(bEt(n,vme))),i=e.Math.min(1,a/g),w=0,l=0,0!=n.b.c.length&&(w=.4*i*(k=lOt(Q$(Oj(n.b,0),29)))),c=new C2(n.b,0);c.b<c.d.gc();){for(EF(c.b<c.d.gc()),(o=XS(s=Q$(c.d.Xb(c.c=c.b++),29),yye))&&w>0&&(w-=g),Cjt(s,w),f=0,A=new Gd(s.a);A.a<A.c.c.length;){for(h=0,m=new oz(YO(hdt(d=Q$(J1(A),10)).a.Kc(),new u));AIt(m);)v=A1((p=Q$(K5(m),17)).c).b,y=A1(p.d).b,s!=p.d.i.c||h5(p)||(VSt(p,w,.4*i*e.Math.abs(v-y)),p.c.j==(yGt(),TSe)&&(v=0,y=0)),h=e.Math.max(h,e.Math.abs(y-v));switch(d.k.g){case 0:case 4:case 1:case 3:case 5:jjt(t,d,w,b)}f=e.Math.max(f,h)}c.b<c.d.gc()&&(k=lOt((EF(c.b<c.d.gc()),Q$(c.d.Xb(c.c=c.b++),29))),f=e.Math.max(f,k),EF(c.b>0),c.a.Xb(c.c=--c.b)),l=.4*i*f,!o&&c.b<c.d.gc()&&(l+=g),w+=s.c.a+l}t.a.a.$b(),n.f.a=w,$Tt(r)}function LGt(t){var e,n,r,i,a,o,s,c,l,h,f,d,A,g,p,m,b;for(l=new Om,s=new gJ,r=new Gd(t.a.a.b);r.a<r.c.c.length;)if(c=l2(e=Q$(J1(r),57)))w_t(l.f,c,e);else if(b=l3(e))for(i=new Gd(b.k);i.a<i.c.c.length;)YSt(s,Q$(J1(i),17),e);for(n=new Gd(t.a.a.b);n.a<n.c.c.length;)if(c=l2(e=Q$(J1(n),57)))for(o=new oz(YO(hdt(c).a.Kc(),new u));AIt(o);)if(!h5(a=Q$(K5(o),17))&&(A=a.c,m=a.d,!(yGt(),bSe).Hc(a.c.j)||!bSe.Hc(a.d.j))){if(g=Q$(FX(l,a.d.i),57),zDt(iE(rE(aE(nE(new Ub,0),100),t.c[e.a.d]),t.c[g.a.d])),A.j==TSe&&Lz((gat(),A)))for(f=Q$(c6(s,a),21).Kc();f.Ob();)if((h=Q$(f.Pb(),57)).d.c<e.d.c){if((d=t.c[h.a.d])==(p=t.c[e.a.d]))continue;zDt(iE(rE(aE(nE(new Ub,1),100),d),p))}if(m.j==oSe&&Sz((gat(),m)))for(f=Q$(c6(s,a),21).Kc();f.Ob();)if((h=Q$(f.Pb(),57)).d.c>e.d.c){if((d=t.c[e.a.d])==(p=t.c[h.a.d]))continue;zDt(iE(rE(aE(nE(new Ub,1),100),d),p))}}}function IGt(t){var e,n,r,i,a,o,s,c;if(NHt(),null==t)return null;if((i=HL(t,qxt(37)))<0)return t;for(c=new uD(t.substr(0,i)),e=O8(IDe,m6t,25,4,15,1),s=0,r=0,o=t.length;i<o;i++)if(h1(i,t.length),37==t.charCodeAt(i)&&t.length>i+2&&tct((h1(i+1,t.length),t.charCodeAt(i+1)),TIe,BIe)&&tct((h1(i+2,t.length),t.charCodeAt(i+2)),TIe,BIe))if(n=TH((h1(i+1,t.length),t.charCodeAt(i+1)),(h1(i+2,t.length),t.charCodeAt(i+2))),i+=2,r>0?128==(192&n)?e[s++]=n<<24>>24:r=0:n>=128&&(192==(224&n)?(e[s++]=n<<24>>24,r=2):224==(240&n)?(e[s++]=n<<24>>24,r=3):240==(248&n)&&(e[s++]=n<<24>>24,r=4)),r>0){if(s==r){switch(s){case 2:OX(c,((31&e[0])<<6|63&e[1])&WWt);break;case 3:OX(c,((15&e[0])<<12|(63&e[1])<<6|63&e[2])&WWt)}s=0,r=0}}else{for(a=0;a<s;++a)OX(c,e[a]&WWt);s=0,c.a+=String.fromCharCode(n)}else{for(a=0;a<s;++a)OX(c,e[a]&WWt);s=0,OX(c,(h1(i,t.length),t.charCodeAt(i)))}return c.a}function MGt(t,e,n,r,i){var a,o,s;if(btt(t,e),o=e[0],a=lW(n.c,0),s=-1,qct(n))if(r>0){if(o+r>t.length)return!1;s=zSt(t.substr(0,o+r),e)}else s=zSt(t,e);switch(a){case 71:return s=Kxt(t,o,Tst(Hw(Wee,1),cWt,2,6,[uqt,hqt]),e),i.e=s,!0;case 77:return gNt(t,e,i,s,o);case 76:return pNt(t,e,i,s,o);case 69:return r_t(t,e,o,i);case 99:return i_t(t,e,o,i);case 97:return s=Kxt(t,o,Tst(Hw(Wee,1),cWt,2,6,["AM","PM"]),e),i.b=s,!0;case 121:return mNt(t,e,o,s,n,i);case 100:return!(s<=0||(i.c=s,0));case 83:return!(s<0)&&wAt(s,o,e[0],i);case 104:12==s&&(s=0);case 75:case 72:return!(s<0||(i.f=s,i.g=!1,0));case 107:return!(s<0||(i.f=s,i.g=!0,0));case 109:return!(s<0||(i.j=s,0));case 115:return!(s<0||(i.n=s,0));case 90:if(o<t.length&&(h1(o,t.length),90==t.charCodeAt(o)))return++e[0],i.o=0,!0;case 122:case 118:return Bxt(t,o,e,i);default:return!1}}function OGt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C;if(d=Q$(Q$(c6(t.r,n),21),84),n!=(yGt(),oSe)&&n!=TSe){for(o=n==sSe?(Fot(),Mie):(Fot(),Fie),w=n==sSe?(H9(),rie):(H9(),eie),a=(i=(r=Q$(oW(t.b,n),124)).i).c+Mct(Tst(Hw(MDe,1),Hqt,25,15,[r.n.b,t.C.b,t.k])),b=i.c+i.b-Mct(Tst(Hw(MDe,1),Hqt,25,15,[r.n.c,t.C.c,t.k])),s=Yw(UQ(o),t.t),v=n==sSe?Pqt:Nqt,f=d.Kc();f.Ob();)!(u=Q$(f.Pb(),111)).c||u.c.d.c.length<=0||(m=u.b.rf(),p=u.e,(g=(A=u.c).i).b=(l=A.n,A.e.a+l.b+l.c),g.a=(c=A.n,A.e.b+c.d+c.a),_Y(w,oJt),A.f=w,u7(A,(q7(),qre)),g.c=p.a-(g.b-m.a)/2,k=e.Math.min(a,p.a),C=e.Math.max(b,p.a+m.a),g.c<k?g.c=k:g.c+g.b>C&&(g.c=C-g.b),G$(s.d,new OK(g,yft(s,g))),v=n==sSe?e.Math.max(v,p.b+u.b.rf().b):e.Math.min(v,p.b));for(v+=n==sSe?t.t:-t.t,(y=TAt((s.e=v,s)))>0&&(Q$(oW(t.b,n),124).a.b=y),h=d.Kc();h.Ob();)!(u=Q$(h.Pb(),111)).c||u.c.d.c.length<=0||((g=u.c.i).c-=u.e.a,g.d-=u.e.b)}else aGt(t,n)}function DGt(t){var e,n,r,i,a,o,s,c,l,h;for(e=new Om,o=new SO(t);o.e!=o.i.gc();){for(a=Q$(ymt(o),33),n=new Fb,XV(Cae,a,n),h=new oe,r=Q$(E4(new Fj(null,new jG(new oz(YO(dOt(a).a.Kc(),new u)))),xK(h,m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[(Hlt(),Kne)])))),83),Ynt(n,Q$(r.xc((cD(),!0)),14),new se),i=Q$(E4(SW(Q$(r.xc(!1),15).Lc(),new ce),m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[Kne]))),15).Kc();i.Ob();)(l=BEt(Q$(i.Pb(),79)))&&((s=Q$($S(SY(e.f,l)),21))||(s=SFt(l),w_t(e.f,l,s)),Qit(n,s));for(r=Q$(E4(new Fj(null,new jG(new oz(YO(AOt(a).a.Kc(),new u)))),xK(h,m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[Kne])))),83),Ynt(n,Q$(r.xc(!0),14),new le),c=Q$(E4(SW(Q$(r.xc(!1),15).Lc(),new ue),m7(new H,new $,new rt,Tst(Hw(Jne,1),IWt,132,0,[Kne]))),15).Kc();c.Ob();)(l=_Et(Q$(c.Pb(),79)))&&((s=Q$($S(SY(e.f,l)),21))||(s=SFt(l),w_t(e.f,l,s)),Qit(n,s))}}function FGt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g;if(oHt(),(c=Vut(t,0)<0)&&(t=y9(t)),0==Vut(t,0))switch(e){case 0:return"0";case 1:return Xqt;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 Tw).a+=e<0?"0E+":"0E",d.a+=e==RWt?"2147483648":""+-e,d.a}h=O8(BDe,XWt,25,1+(u=18),15,1),n=u,g=t;do{l=g,g=Skt(g,10),h[--n]=dK(rdt(48,ndt(l,idt(g,10))))&WWt}while(0!=Vut(g,0));if(i=ndt(ndt(ndt(u,n),e),1),0==e)return c&&(h[--n]=45),Ugt(h,n,u-n);if(e>0&&Vut(i,-6)>=0){if(Vut(i,0)>=0){for(a=n+dK(i),s=u-1;s>=a;s--)h[s+1]=h[s];return h[++a]=46,c&&(h[--n]=45),Ugt(h,n,u-n+1)}for(o=2;sT(o,rdt(y9(i),1));o++)h[--n]=48;return h[--n]=46,h[--n]=48,c&&(h[--n]=45),Ugt(h,n,u-n)}return A=n+1,r=u,f=new Bw,c&&(f.a+="-"),r-A>=1?(OX(f,h[n]),f.a+=".",f.a+=Ugt(h,n+1,u-n-1)):f.a+=Ugt(h,n,u-n),f.a+="E",Vut(i,0)>0&&(f.a+="+"),f.a+=""+pz(i),f.a}function NGt(t,e,n){var r,i,a,o,s,c,l,u,h,f;if(t.e.a.$b(),t.f.a.$b(),t.c.c=O8(Lte,$Vt,1,0,5,1),t.i.c=O8(Lte,$Vt,1,0,5,1),t.g.a.$b(),e)for(o=new Gd(e.a);o.a<o.c.c.length;)for(u=FTt(a=Q$(J1(o),10),(yGt(),oSe)).Kc();u.Ob();)for(l=Q$(u.Pb(),11),kG(t.e,l),i=new Gd(l.g);i.a<i.c.c.length;)h5(r=Q$(J1(i),17))||(G$(t.c,r),pmt(t,r),((s=r.c.i.k)==(oTt(),Tse)||s==Bse||s==Cse||s==kse)&&G$(t.j,r),(h=(f=r.d).i.c)==n?kG(t.f,f):h==e?kG(t.e,f):b9(t.c,r));if(n)for(o=new Gd(n.a);o.a<o.c.c.length;){for(c=new Gd((a=Q$(J1(o),10)).j);c.a<c.c.c.length;)for(i=new Gd(Q$(J1(c),11).g);i.a<i.c.c.length;)h5(r=Q$(J1(i),17))&&kG(t.g,r);for(u=FTt(a,(yGt(),TSe)).Kc();u.Ob();)for(l=Q$(u.Pb(),11),kG(t.f,l),i=new Gd(l.g);i.a<i.c.c.length;)h5(r=Q$(J1(i),17))||(G$(t.c,r),pmt(t,r),((s=r.c.i.k)==(oTt(),Tse)||s==Bse||s==Cse||s==kse)&&G$(t.j,r),(h=(f=r.d).i.c)==n?kG(t.f,f):h==e?kG(t.e,f):b9(t.c,r))}}function PGt(t,n,r,i,a){var o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C;if(m=new O_(t.g,t.f),(p=GBt(t)).a=e.Math.max(p.a,n),p.b=e.Math.max(p.b,r),C=p.a/m.a,h=p.b/m.b,w=p.a-m.a,l=p.b-m.b,i)for(s=qJ(t)?Q$(JIt(qJ(t),(cVt(),hTe)),103):Q$(JIt(t,(cVt(),hTe)),103),c=HS(JIt(t,(cVt(),aBe)))===HS((WCt(),z_e)),v=new SO((!t.c&&(t.c=new tG(KLe,t,9,9)),t.c));v.e!=v.i.gc();)switch(b=Q$(ymt(v),118),(y=Q$(JIt(b,fBe),61))==(yGt(),ESe)&&(y=SUt(b,s),qmt(b,fBe,y)),y.g){case 1:c||Tnt(b,b.i*C);break;case 2:Tnt(b,b.i+w),c||Bnt(b,b.j*h);break;case 3:c||Tnt(b,b.i*C),Bnt(b,b.j+l);break;case 4:c||Bnt(b,b.j*h)}if(CI(t,p.a,p.b),a)for(d=new SO((!t.n&&(t.n=new tG(HLe,t,1,7)),t.n));d.e!=d.i.gc();)A=(f=Q$(ymt(d),137)).i+f.g/2,g=f.j+f.f/2,(k=A/m.a)+(u=g/m.b)>=1&&(k-u>0&&g>=0?(Tnt(f,f.i+w),Bnt(f,f.j+l*u)):k-u<0&&A>=0&&(Tnt(f,f.i+w*k),Bnt(f,f.j+l)));return qmt(t,(cVt(),NTe),(bgt(),new WR(o=Q$(Xk(WSe),9),Q$(xP(o,o.length),9),0))),new O_(C,h)}function RGt(t){var n,r,i,a,o,s,c,l,u,h,f;if(h=qJ(Txt(Q$(Xet((!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),0),82)))==qJ(Txt(Q$(Xet((!t.c&&(t.c=new cR(FLe,t,5,8)),t.c),0),82))),s=new Hk,(n=Q$(JIt(t,(Glt(),c_e)),74))&&n.b>=2){if(0==(!t.a&&(t.a=new tG(PLe,t,6,6)),t.a).i)Zk(),r=new oc,l7((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a),r);else if((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a).i>1)for(f=new rF((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a));f.e!=f.i.gc();)Wkt(f);VUt(n,Q$(Xet((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a),0),202))}if(h)for(i=new SO((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a));i.e!=i.i.gc();)for(l=new SO((!(r=Q$(ymt(i),202)).a&&(r.a=new LO(MLe,r,5)),r.a));l.e!=l.i.gc();)c=Q$(ymt(l),469),s.a=e.Math.max(s.a,c.a),s.b=e.Math.max(s.b,c.b);for(o=new SO((!t.n&&(t.n=new tG(HLe,t,1,7)),t.n));o.e!=o.i.gc();)a=Q$(ymt(o),137),(u=Q$(JIt(a,A_e),8))&&xI(a,u.a,u.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 QGt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C;for(b=n.c.length,a=new HRt(t.a,r,null,null),C=O8(MDe,Hqt,25,b,15,1),A=O8(MDe,Hqt,25,b,15,1),d=O8(MDe,Hqt,25,b,15,1),g=0,c=0;c<b;c++)A[c]=FVt,d[c]=RWt;for(l=0;l<b;l++)for(u1(l,n.c.length),i=Q$(n.c[l],180),C[l]=mMt(i),C[g]>C[l]&&(g=l),h=new Gd(t.a.b);h.a<h.c.c.length;)for(m=new Gd(Q$(J1(h),29).a);m.a<m.c.c.length;)p=Q$(J1(m),10),w=Hy(i.p[p.p])+Hy(i.d[p.p]),A[l]=e.Math.min(A[l],w),d[l]=e.Math.max(d[l],w+p.o.b);for(k=O8(MDe,Hqt,25,b,15,1),u=0;u<b;u++)(u1(u,n.c.length),Q$(n.c[u],180)).o==(oZ(),nye)?k[u]=A[g]-A[u]:k[u]=d[g]-d[u];for(o=O8(MDe,Hqt,25,b,15,1),f=new Gd(t.a.b);f.a<f.c.c.length;)for(y=new Gd(Q$(J1(f),29).a);y.a<y.c.c.length;){for(v=Q$(J1(y),10),s=0;s<b;s++)o[s]=Hy((u1(s,n.c.length),Q$(n.c[s],180)).p[v.p])+Hy((u1(s,n.c.length),Q$(n.c[s],180)).d[v.p])+k[s];o.sort(nnt(x.prototype.te,x,[])),a.p[v.p]=(o[1]+o[2])/2,a.d[v.p]=0}return a}function UGt(t,e,n){var r,i,a,o,s;switch(r=e.i,a=t.i.o,i=t.i.d,s=t.n,o=Lct(Tst(Hw(EEe,1),cWt,8,0,[s,t.a])),t.j.g){case 1:GN(e,(H9(),eie)),r.d=-i.d-n-r.a,Q$(Q$(Oj(e.d,0),181).We((lVt(),afe)),285)==(Gyt(),y_e)?(u7(e,(q7(),qre)),r.c=o.a-Hy(CN(bEt(t,hfe)))-n-r.b):(u7(e,(q7(),Wre)),r.c=o.a+Hy(CN(bEt(t,hfe)))+n);break;case 2:u7(e,(q7(),Wre)),r.c=a.a+i.c+n,Q$(Q$(Oj(e.d,0),181).We((lVt(),afe)),285)==(Gyt(),y_e)?(GN(e,(H9(),eie)),r.d=o.b-Hy(CN(bEt(t,hfe)))-n-r.a):(GN(e,(H9(),rie)),r.d=o.b+Hy(CN(bEt(t,hfe)))+n);break;case 3:GN(e,(H9(),rie)),r.d=a.b+i.a+n,Q$(Q$(Oj(e.d,0),181).We((lVt(),afe)),285)==(Gyt(),y_e)?(u7(e,(q7(),qre)),r.c=o.a-Hy(CN(bEt(t,hfe)))-n-r.b):(u7(e,(q7(),Wre)),r.c=o.a+Hy(CN(bEt(t,hfe)))+n);break;case 4:u7(e,(q7(),qre)),r.c=-i.b-n-r.b,Q$(Q$(Oj(e.d,0),181).We((lVt(),afe)),285)==(Gyt(),y_e)?(GN(e,(H9(),eie)),r.d=o.b-Hy(CN(bEt(t,hfe)))-n-r.a):(GN(e,(H9(),rie)),r.d=o.b+Hy(CN(bEt(t,hfe)))+n)}}function $Gt(t,n,r,i,a,o,s){var c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S,L;for(A=0,T=0,l=new Gd(t);l.a<l.c.c.length;)szt(c=Q$(J1(l),33)),A=e.Math.max(A,c.g),T+=c.g*c.f;for(E=Jyt(t,T/t.c.length),T+=t.c.length*E,A=e.Math.max(A,e.Math.sqrt(T*s))+r.b,S=r.b,L=r.d,d=0,h=r.b+r.c,DH(x=new Wx,nft(0)),k=new Wx,u=new C2(t,0);u.b<u.d.gc();)EF(u.b<u.d.gc()),_=(c=Q$(u.d.Xb(u.c=u.b++),33)).g,f=c.f,S+_>A&&(o&&(lL(k,d),lL(x,nft(u.b-1))),S=r.b,L+=d+n,d=0,h=e.Math.max(h,r.b+r.c+_)),Tnt(c,S),Bnt(c,L),h=e.Math.max(h,S+_+r.c),d=e.Math.max(d,f),S+=_+n;if(h=e.Math.max(h,i),(B=L+d+r.a)<a&&(d+=a-B,B=a),o)for(S=r.b,u=new C2(t,0),lL(x,nft(t.c.length)),m=Q$(h3(C=cmt(x,0)),19).a,lL(k,d),w=cmt(k,0),y=0;u.b<u.d.gc();)u.b==m&&(S=r.b,y=Hy(CN(h3(w))),m=Q$(h3(C),19).a),EF(u.b<u.d.gc()),b=(c=Q$(u.d.Xb(u.c=u.b++),33)).f,xnt(c,y),g=y,u.b==m&&(p=h-S-r.c,v=c.g,Ent(c,p),h_t(c,new O_(p,g),new O_(v,b))),S+=c.g+n;return new O_(h,B)}function HGt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T;for(Sxt(n,"Compound graph postprocessor",1),r=$y(kN(bEt(t,($Xt(),Dme)))),c=Q$(bEt(t,(lVt(),Uhe)),224),h=new Fb,b=c.ec().Kc();b.Ob();){for(m=Q$(b.Pb(),17),s=new ZR(c.cc(m)),xq(),mM(s,new PA(t)),k=iat((u1(0,s.c.length),Q$(s.c[0],243))),x=aat(Q$(Oj(s,s.c.length-1),243)),y=k.i,v=dot(x.i,y)?y.e:pV(y),f=Lmt(m,s),bq(m.a),d=null,o=new Gd(s);o.a<o.c.c.length;)a=Q$(J1(o),243),SBt(p=new Hk,a.a,v),A=a.b,Xlt(i=new vv,0,A.a),Jet(i,p),w=new fI(A1(A.c)),C=new fI(A1(A.d)),KP(w,p),KP(C,p),d&&(0==i.b?g=C:(EF(0!=i.b),g=Q$(i.a.a.c,8)),E=e.Math.abs(d.a-g.a)>hZt,T=e.Math.abs(d.b-g.b)>hZt,(!r&&E&&T||r&&(E||T))&&DH(m.a,w)),Qit(m.a,i),0==i.b?d=w:(EF(0!=i.b),d=Q$(i.c.b.c,8)),qot(A,f,p),aat(a)==x&&(pV(x.i)!=a.a&&SBt(p=new Hk,pV(x.i),v),lct(m,Ffe,p)),xTt(A,m,v),h.a.zc(A,h);xZ(m,k),CZ(m,x)}for(u=h.a.ec().Kc();u.Ob();)xZ(l=Q$(u.Pb(),17),null),CZ(l,null);$Tt(n)}function jGt(t){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;if(1==t.gc())return Q$(t.Xb(0),231);if(t.gc()<=0)return new b6;for(a=t.Kc();a.Ob();){for(r=Q$(a.Pb(),231),g=0,h=FVt,f=FVt,l=RWt,u=RWt,A=new Gd(r.e);A.a<A.c.c.length;)d=Q$(J1(A),144),g+=Q$(bEt(d,(uPt(),Yae)),19).a,h=e.Math.min(h,d.d.a-d.e.a/2),f=e.Math.min(f,d.d.b-d.e.b/2),l=e.Math.max(l,d.d.a+d.e.a/2),u=e.Math.max(u,d.d.b+d.e.b/2);lct(r,(uPt(),Yae),nft(g)),lct(r,(xit(),ooe),new O_(h,f)),lct(r,aoe,new O_(l,u))}for(xq(),t.ad(new de),Hot(p=new b6,Q$(t.Xb(0),94)),c=0,v=0,o=t.Kc();o.Ob();)r=Q$(o.Pb(),231),m=zP(QM(Q$(bEt(r,(xit(),aoe)),8)),Q$(bEt(r,ooe),8)),c=e.Math.max(c,m.a),v+=m.a*m.b;for(c=e.Math.max(c,e.Math.sqrt(v)*Hy(CN(bEt(p,(uPt(),Rae))))),y=0,w=0,s=0,n=b=Hy(CN(bEt(p,roe))),i=t.Kc();i.Ob();)r=Q$(i.Pb(),231),y+(m=zP(QM(Q$(bEt(r,(xit(),aoe)),8)),Q$(bEt(r,ooe),8))).a>c&&(y=0,w+=s+b,s=0),VRt(p,r,y,w),n=e.Math.max(n,y+m.a),s=e.Math.max(s,m.b),y+=m.a+b;return p}function KGt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A;switch(u=new vv,t.a.g){case 3:f=Q$(bEt(e.e,(lVt(),Mfe)),15),d=Q$(bEt(e.j,Mfe),15),A=Q$(bEt(e.f,Mfe),15),n=Q$(bEt(e.e,Lfe),15),r=Q$(bEt(e.j,Lfe),15),i=Q$(bEt(e.f,Lfe),15),gst(o=new Mm,f),d.Jc(new ya),gst(o,rO(d,152)?o6(Q$(d,152)):rO(d,131)?Q$(d,131).a:rO(d,54)?new ly(d):new Tx(d)),gst(o,A),gst(a=new Mm,n),gst(a,rO(r,152)?o6(Q$(r,152)):rO(r,131)?Q$(r,131).a:rO(r,54)?new ly(r):new Tx(r)),gst(a,i),lct(e.f,Mfe,o),lct(e.f,Lfe,a),lct(e.f,Ofe,e.f),lct(e.e,Mfe,null),lct(e.e,Lfe,null),lct(e.j,Mfe,null),lct(e.j,Lfe,null);break;case 1:Qit(u,e.e.a),DH(u,e.i.n),Qit(u,eot(e.j.a)),DH(u,e.a.n),Qit(u,e.f.a);break;default:Qit(u,e.e.a),Qit(u,eot(e.j.a)),Qit(u,e.f.a)}bq(e.f.a),Qit(e.f.a,u),xZ(e.f,e.e.c),s=Q$(bEt(e.e,($Xt(),ppe)),74),l=Q$(bEt(e.j,ppe),74),c=Q$(bEt(e.f,ppe),74),(s||l||c)&&(EG(h=new vv,c),EG(h,l),EG(h,s),lct(e.f,ppe,h)),xZ(e.j,null),CZ(e.j,null),xZ(e.e,null),CZ(e.e,null),EZ(e.a,null),EZ(e.i,null),e.g&&KGt(t,e.g)}function zGt(t){var e,n,r,i,a,o,s,c,l,u,h,f,d,A,g,p;if(TUt(),null==t)return null;if((A=fft(a=X9(t)))%4!=0)return null;if(0==(g=A/4|0))return O8(IDe,m6t,25,0,15,1);for(h=null,e=0,n=0,r=0,i=0,o=0,s=0,c=0,l=0,d=0,f=0,u=0,h=O8(IDe,m6t,25,3*g,15,1);d<g-1;d++){if(!(XC(o=a[u++])&&XC(s=a[u++])&&XC(c=a[u++])&&XC(l=a[u++])))return null;e=zOe[o],n=zOe[s],r=zOe[c],i=zOe[l],h[f++]=(e<<2|n>>4)<<24>>24,h[f++]=((15&n)<<4|r>>2&15)<<24>>24,h[f++]=(r<<6|i)<<24>>24}return XC(o=a[u++])&&XC(s=a[u++])?(e=zOe[o],n=zOe[s],c=a[u++],l=a[u++],-1==zOe[c]||-1==zOe[l]?61==c&&61==l?15&n?null:(aHt(h,0,p=O8(IDe,m6t,25,3*d+1,15,1),0,3*d),p[f]=(e<<2|n>>4)<<24>>24,p):61!=c&&61==l?3&(r=zOe[c])?null:(aHt(h,0,p=O8(IDe,m6t,25,3*d+2,15,1),0,3*d),p[f++]=(e<<2|n>>4)<<24>>24,p[f]=((15&n)<<4|r>>2&15)<<24>>24,p):null:(r=zOe[c],i=zOe[l],h[f++]=(e<<2|n>>4)<<24>>24,h[f++]=((15&n)<<4|r>>2&15)<<24>>24,h[f++]=(r<<6|i)<<24>>24,h)):null}function GGt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;for(Sxt(e,S1t,1),f=Q$(bEt(t,($Xt(),Yge)),218),r=new Gd(t.b);r.a<r.c.c.length;)for(o=0,s=(a=J0(Q$(J1(r),29).a)).length;o<s;++o)if((i=a[o]).k==(oTt(),Bse)){if(f==(xdt(),qBe))for(l=new Gd(i.j);l.a<l.c.c.length;)0==(c=Q$(J1(l),11)).e.c.length||Lpt(c),0==c.g.c.length||Ipt(c);else if(rO(bEt(i,(lVt(),dfe)),17))A=Q$(bEt(i,dfe),17),g=Q$(FTt(i,(yGt(),TSe)).Kc().Pb(),11),p=Q$(FTt(i,oSe).Kc().Pb(),11),m=Q$(bEt(g,dfe),11),xZ(A,b=Q$(bEt(p,dfe),11)),CZ(A,m),(v=new fI(p.i.n)).a=Lct(Tst(Hw(EEe,1),cWt,8,0,[b.i.n,b.n,b.a])).a,DH(A.a,v),(v=new fI(g.i.n)).a=Lct(Tst(Hw(EEe,1),cWt,8,0,[m.i.n,m.n,m.a])).a,DH(A.a,v);else{if(i.j.c.length>=2){for(d=!0,n=Q$(J1(u=new Gd(i.j)),11),h=null;u.a<u.c.c.length;)if(h=n,n=Q$(J1(u),11),!Oht(bEt(h,dfe),bEt(n,dfe))){d=!1;break}}else d=!1;for(l=new Gd(i.j);l.a<l.c.c.length;)0==(c=Q$(J1(l),11)).e.c.length||oFt(c,d),0==c.g.c.length||sFt(c,d)}EZ(i,null)}$Tt(e)}function XGt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E;return y=t.c[(u1(0,n.c.length),Q$(n.c[0],17)).p],x=t.c[(u1(1,n.c.length),Q$(n.c[1],17)).p],!(y.a.e.e-y.a.a-(y.b.e.e-y.b.a)==0&&x.a.e.e-x.a.a-(x.b.e.e-x.b.a)==0||!rO(b=y.b.e.f,10)||(m=Q$(b,10),k=t.i[m.p],C=m.c?w9(m.c.a,m,0):-1,o=Nqt,C>0&&(a=Q$(Oj(m.c.a,C-1),10),s=t.i[a.p],E=e.Math.ceil(NM(t.n,a,m)),o=k.a.e-m.d.d-(s.a.e+a.o.b+a.d.a)-E),u=Nqt,C<m.c.a.c.length-1&&(l=Q$(Oj(m.c.a,C+1),10),h=t.i[l.p],E=e.Math.ceil(NM(t.n,l,m)),u=h.a.e-l.d.d-(k.a.e+m.o.b+m.d.a)-E),!(r&&(cM(),rrt(L3t),e.Math.abs(o-u)<=L3t||o==u||isNaN(o)&&isNaN(u)))&&(i=iX(y.a),c=-iX(y.b),f=-iX(x.a),v=iX(x.b),p=y.a.e.e-y.a.a-(y.b.e.e-y.b.a)>0&&x.a.e.e-x.a.a-(x.b.e.e-x.b.a)<0,g=y.a.e.e-y.a.a-(y.b.e.e-y.b.a)<0&&x.a.e.e-x.a.a-(x.b.e.e-x.b.a)>0,A=y.a.e.e+y.b.a<x.b.e.e+x.a.a,d=y.a.e.e+y.b.a>x.b.e.e+x.a.a,w=0,!p&&!g&&(d?o+f>0?w=f:u-i>0&&(w=i):A&&(o+c>0?w=c:u-v>0&&(w=v))),k.a.e+=w,k.b&&(k.d.e+=w),1)))}function VGt(t,n,r){var i,a,o,s,c,l,u,h,f,d;if(i=new KW(n.qf().a,n.qf().b,n.rf().a,n.rf().b),a=new hI,t.c)for(s=new Gd(n.wf());s.a<s.c.c.length;)o=Q$(J1(s),181),a.c=o.qf().a+n.qf().a,a.d=o.qf().b+n.qf().b,a.b=o.rf().a,a.a=o.rf().b,BBt(i,a);for(u=new Gd(n.Cf());u.a<u.c.c.length;){if(h=(l=Q$(J1(u),838)).qf().a+n.qf().a,f=l.qf().b+n.qf().b,t.e&&(a.c=h,a.d=f,a.b=l.rf().a,a.a=l.rf().b,BBt(i,a)),t.d)for(s=new Gd(l.wf());s.a<s.c.c.length;)o=Q$(J1(s),181),a.c=o.qf().a+h,a.d=o.qf().b+f,a.b=o.rf().a,a.a=o.rf().b,BBt(i,a);if(t.b){if(d=new O_(-r,-r),Q$(n.We((cVt(),lBe)),174).Hc((hSt(),nSe)))for(s=new Gd(l.wf());s.a<s.c.c.length;)o=Q$(J1(s),181),d.a+=o.rf().a+r,d.b+=o.rf().b+r;d.a=e.Math.max(d.a,0),d.b=e.Math.max(d.b,0),GQt(i,l.Bf(),l.zf(),n,l,d,r)}}t.b&&GQt(i,n.Bf(),n.zf(),n,null,null,r),(c=new SQ(n.Af())).d=e.Math.max(0,n.qf().b-i.d),c.a=e.Math.max(0,i.d+i.a-(n.qf().b+n.rf().b)),c.b=e.Math.max(0,n.qf().a-i.c),c.c=e.Math.max(0,i.c+i.b-(n.qf().a+n.rf().a)),n.Ef(c)}function WGt(){var t=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"];return t[34]='\\"',t[92]="\\\\",t[173]="\\u00ad",t[1536]="\\u0600",t[1537]="\\u0601",t[1538]="\\u0602",t[1539]="\\u0603",t[1757]="\\u06dd",t[1807]="\\u070f",t[6068]="\\u17b4",t[6069]="\\u17b5",t[8203]="\\u200b",t[8204]="\\u200c",t[8205]="\\u200d",t[8206]="\\u200e",t[8207]="\\u200f",t[8232]="\\u2028",t[8233]="\\u2029",t[8234]="\\u202a",t[8235]="\\u202b",t[8236]="\\u202c",t[8237]="\\u202d",t[8238]="\\u202e",t[8288]="\\u2060",t[8289]="\\u2061",t[8290]="\\u2062",t[8291]="\\u2063",t[8292]="\\u2064",t[8298]="\\u206a",t[8299]="\\u206b",t[8300]="\\u206c",t[8301]="\\u206d",t[8302]="\\u206e",t[8303]="\\u206f",t[65279]="\\ufeff",t[65529]="\\ufff9",t[65530]="\\ufffa",t[65531]="\\ufffb",t}function qGt(t,e,n){var r,i,a,o,s,c,l,u,h,f;for(c=new Mm,h=e.length,o=_ct(n),l=0;l<h;++l){switch(u=bD(e,qxt(61),l),a=(i=ost(r=uft(o,e.substr(l,u-l)))).Aj().Nh(),lW(e,++u)){case 39:s=uF(e,39,++u),G$(c,new TS(r,WW(e.substr(u,s-u),a,i))),l=s+1;break;case 34:s=uF(e,34,++u),G$(c,new TS(r,WW(e.substr(u,s-u),a,i))),l=s+1;break;case 91:G$(c,new TS(r,f=new Mm));t:for(;;){switch(lW(e,++u)){case 39:s=uF(e,39,++u),G$(f,WW(e.substr(u,s-u),a,i)),u=s+1;break;case 34:s=uF(e,34,++u),G$(f,WW(e.substr(u,s-u),a,i)),u=s+1;break;case 110:if(++u,e.indexOf("ull",u)!=u)throw Um(new dy(a6t));f.c[f.c.length]=null,u+=3}if(!(u<h))break;switch(h1(u,e.length),e.charCodeAt(u)){case 44:break;case 93:break t;default:throw Um(new dy("Expecting , or ]"))}}l=u+1;break;case 110:if(++u,e.indexOf("ull",u)!=u)throw Um(new dy(a6t));G$(c,new TS(r,null)),l=u+3}if(!(l<h))break;if(h1(l,e.length),44!=e.charCodeAt(l))throw Um(new dy("Expecting ,"))}return nNt(t,c,n)}function YGt(t,e){var n,r,i,a,o,s,c,l,u,h,f;for(l=Q$(Q$(c6(t.r,e),21),84),o=Yxt(t,e),n=t.u.Hc((hSt(),J_e)),c=l.Kc();c.Ob();)if((s=Q$(c.Pb(),111)).c&&!(s.c.d.c.length<=0)){switch(f=s.b.rf(),(h=(u=s.c).i).b=(a=u.n,u.e.a+a.b+a.c),h.a=(i=u.n,u.e.b+i.d+i.a),e.g){case 1:s.a?(h.c=(f.a-h.b)/2,u7(u,(q7(),Vre))):o||n?(h.c=-h.b-t.s,u7(u,(q7(),qre))):(h.c=f.a+t.s,u7(u,(q7(),Wre))),h.d=-h.a-t.t,GN(u,(H9(),eie));break;case 3:s.a?(h.c=(f.a-h.b)/2,u7(u,(q7(),Vre))):o||n?(h.c=-h.b-t.s,u7(u,(q7(),qre))):(h.c=f.a+t.s,u7(u,(q7(),Wre))),h.d=f.b+t.t,GN(u,(H9(),rie));break;case 2:s.a?(r=t.v?h.a:Q$(Oj(u.d,0),181).rf().b,h.d=(f.b-r)/2,GN(u,(H9(),nie))):o||n?(h.d=-h.a-t.t,GN(u,(H9(),eie))):(h.d=f.b+t.t,GN(u,(H9(),rie))),h.c=f.a+t.s,u7(u,(q7(),Wre));break;case 4:s.a?(r=t.v?h.a:Q$(Oj(u.d,0),181).rf().b,h.d=(f.b-r)/2,GN(u,(H9(),nie))):o||n?(h.d=-h.a-t.t,GN(u,(H9(),eie))):(h.d=f.b+t.t,GN(u,(H9(),rie))),h.c=-h.b-t.s,u7(u,(q7(),qre))}o=!1}}function JGt(t,e){var n,r,i,a,o,s,c,l,u,h,f;if(dVt(),0==Mx(tDe)){for(h=O8(TDe,cWt,117,nDe.length,0,1),o=0;o<h.length;o++)h[o]=new C0(4);for(r=new Ew,a=0;a<ZOe.length;a++){if(u=new C0(4),a<84?(h1(s=2*a,mte.length),f=mte.charCodeAt(s),h1(s+1,mte.length),qFt(u,f,mte.charCodeAt(s+1))):qFt(u,rDe[s=2*(a-84)],rDe[s+1]),mR(c=ZOe[a],"Specials")&&qFt(u,65520,65533),mR(c,gte)&&(qFt(u,983040,1048573),qFt(u,1048576,1114109)),mZ(tDe,c,u),mZ(eDe,c,IUt(u)),0<(l=r.a.length)?r.a=r.a.substr(0,0):0>l&&(r.a+=nO(O8(BDe,XWt,25,-l,15,1))),r.a+="Is",HL(c,qxt(32))>=0)for(i=0;i<c.length;i++)h1(i,c.length),32!=c.charCodeAt(i)&&MX(r,(h1(i,c.length),c.charCodeAt(i)));else r.a+=""+c;Cgt(r.a,c,!0)}Cgt(pte,"Cn",!1),Cgt(bte,"Cn",!0),qFt(n=new C0(4),0,ote),mZ(tDe,"ALL",n),mZ(eDe,"ALL",IUt(n)),!CDe&&(CDe=new Om),mZ(CDe,pte,pte),!CDe&&(CDe=new Om),mZ(CDe,bte,bte),!CDe&&(CDe=new Om),mZ(CDe,"ALL","ALL")}return Q$(xJ(e?tDe:eDe,t),136)}function ZGt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m;if(f=!1,h=!1,pI(Q$(bEt(r,($Xt(),tme)),98))){o=!1,s=!1;t:for(A=new Gd(r.j);A.a<A.c.c.length;)for(d=Q$(J1(A),11),g=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[new UA(d),new HA(d)])));AIt(g);)if(!$y(kN(bEt(Q$(K5(g),11).i,kge)))){if(d.j==(yGt(),sSe)){o=!0;break t}if(d.j==xSe){s=!0;break t}}f=s&&!o,h=o&&!s}if(f||h||0==r.b.c.length)m=!h;else{for(u=0,l=new Gd(r.b);l.a<l.c.c.length;)u+=(c=Q$(J1(l),70)).n.b+c.o.b/2;m=(u/=r.b.c.length)>=r.o.b/2}m?(p=Q$(bEt(r,(lVt(),Nfe)),15))?f?a=p:(i=Q$(bEt(r,Dhe),15))?a=p.gc()<=i.gc()?p:i:(a=new Mm,lct(r,Dhe,a)):(a=new Mm,lct(r,Nfe,a)):(i=Q$(bEt(r,(lVt(),Dhe)),15))?h?a=i:(p=Q$(bEt(r,Nfe),15))?a=i.gc()<=p.gc()?i:p:(a=new Mm,lct(r,Nfe,a)):(a=new Mm,lct(r,Dhe,a)),a.Fc(t),lct(t,(lVt(),Nhe),n),e.d==n?(CZ(e,null),n.e.c.length+n.g.c.length==0&&TZ(n,null),glt(n)):(xZ(e,null),n.e.c.length+n.g.c.length==0&&TZ(n,null)),bq(e.a)}function tXt(t,e){var n,r,i,a,o,s,c,l,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S;for(b=new C2(t.b,0),g=0,l=Q$((h=e.Kc()).Pb(),19).a,w=0,n=new Fb,C=new lI;b.b<b.d.gc();){for(EF(b.b<b.d.gc()),y=new Gd(Q$(b.d.Xb(b.c=b.b++),29).a);y.a<y.c.c.length;){for(A=new oz(YO(hdt(v=Q$(J1(y),10)).a.Kc(),new u));AIt(A);)f=Q$(K5(A),17),C.a.zc(f,C);for(d=new oz(YO(udt(v).a.Kc(),new u));AIt(d);)f=Q$(K5(d),17),C.a.Bc(f)}if(g+1==l){for(bP(b,i=new UX(t)),bP(b,a=new UX(t)),E=C.a.ec().Kc();E.Ob();)x=Q$(E.Pb(),17),n.a._b(x)||(++w,n.a.zc(x,n)),lct(o=new Ibt(t),($Xt(),tme),(WCt(),X_e)),EZ(o,i),Qf(o,(oTt(),kse)),TZ(p=new BTt,o),H_t(p,(yGt(),TSe)),TZ(T=new BTt,o),H_t(T,oSe),lct(r=new Ibt(t),tme,X_e),EZ(r,a),Qf(r,kse),TZ(m=new BTt,r),H_t(m,TSe),TZ(B=new BTt,r),H_t(B,oSe),xZ(k=new fY,x.c),CZ(k,p),xZ(S=new fY,T),CZ(S,m),xZ(x,B),s=new p3(o,r,k,S,x),lct(o,(lVt(),Fhe),s),lct(r,Fhe,s),(_=k.c.i).k==kse&&((c=Q$(bEt(_,Fhe),305)).d=s,s.g=c);if(!h.Ob())break;l=Q$(h.Pb(),19).a}++g}return nft(w)}function eXt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g;for(h=0,i=new SO((!e.a&&(e.a=new tG(jLe,e,10,11)),e.a));i.e!=i.i.gc();)$y(kN(JIt(r=Q$(ymt(i),33),($Xt(),Hpe))))||(HS(JIt(e,Ige))===HS((bct(),Mbe))&&HS(JIt(e,Hge))!==HS((Vbt(),wue))&&HS(JIt(e,Hge))!==HS((Vbt(),vue))&&!$y(kN(JIt(e,Oge)))&&HS(JIt(e,Tge))===HS((Uht(),fse))||$y(kN(JIt(r,Lge)))||(qmt(r,(lVt(),ffe),nft(h)),++h),dzt(t,r,n));for(h=0,l=new SO((!e.b&&(e.b=new tG(NLe,e,12,3)),e.b));l.e!=l.i.gc();)s=Q$(ymt(l),79),(HS(JIt(e,($Xt(),Ige)))!==HS((bct(),Mbe))||HS(JIt(e,Hge))===HS((Vbt(),wue))||HS(JIt(e,Hge))===HS((Vbt(),vue))||$y(kN(JIt(e,Oge)))||HS(JIt(e,Tge))!==HS((Uht(),fse)))&&(qmt(s,(lVt(),ffe),nft(h)),++h),A=TEt(s),g=SEt(s),u=$y(kN(JIt(A,fpe))),d=!$y(kN(JIt(s,Hpe))),f=u&&WSt(s)&&$y(kN(JIt(s,dpe))),a=qJ(A)==e&&qJ(A)==qJ(g),o=(qJ(A)==e&&g==e)^(qJ(g)==e&&A==e),d&&!f&&(o||a)&&oVt(t,s,e,n);if(qJ(e))for(c=new SO(eq(qJ(e)));c.e!=c.i.gc();)(A=TEt(s=Q$(ymt(c),79)))==e&&WSt(s)&&(f=$y(kN(JIt(A,($Xt(),fpe))))&&$y(kN(JIt(s,dpe))))&&oVt(t,s,e,n)}function nXt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S,L,I;for(Sxt(r,"MinWidth layering",1),A=n.b,x=n.a,I=Q$(bEt(n,($Xt(),wpe)),19).a,c=Q$(bEt(n,kpe),19).a,t.b=Hy(CN(bEt(n,bme))),t.d=Nqt,w=new Gd(x);w.a<w.c.c.length;)(v=Q$(J1(w),10)).k==(oTt(),Tse)&&(B=v.o.b,t.d=e.Math.min(t.d,B));for(t.d=e.Math.max(1,t.d),E=x.c.length,t.c=O8(_De,lqt,25,E,15,1),t.f=O8(_De,lqt,25,E,15,1),t.e=O8(MDe,Hqt,25,E,15,1),u=0,t.a=0,k=new Gd(x);k.a<k.c.c.length;)(v=Q$(J1(k),10)).p=u++,t.c[v.p]=dut(udt(v)),t.f[v.p]=dut(hdt(v)),t.e[v.p]=v.o.b/t.d,t.a+=t.e[v.p];for(t.b/=t.d,t.a/=E,C=wLt(x),mM(x,VV(new Ng(t))),p=Nqt,g=FVt,s=null,L=I,S=I,o=c,a=c,I<0&&(L=Q$(kve.a.zd(),19).a,S=Q$(kve.b.zd(),19).a),c<0&&(o=Q$(wve.a.zd(),19).a,a=Q$(wve.b.zd(),19).a),_=L;_<=S;_++)for(i=o;i<=a;i++)b=Hy(CN((T=M$t(t,_,i,x,C)).a)),m=(d=Q$(T.b,15)).gc(),(b<p||b==p&&m<g)&&(p=b,g=m,s=d);for(f=s.Kc();f.Ob();){for(h=Q$(f.Pb(),15),l=new UX(n),y=h.Kc();y.Ob();)EZ(v=Q$(y.Pb(),10),l);A.c[A.c.length]=l}YBt(A),x.c=O8(Lte,$Vt,1,0,5,1),$Tt(r)}function rXt(t,n){var r,i,a,o,s,c,l,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E;for(t.b=n,t.a=Q$(bEt(n,($Xt(),cpe)),19).a,t.c=Q$(bEt(n,upe),19).a,0==t.c&&(t.c=FVt),p=new C2(n.b,0);p.b<p.d.gc();){for(EF(p.b<p.d.gc()),g=Q$(p.d.Xb(p.c=p.b++),29),c=new Mm,f=-1,y=-1,v=new Gd(g.a);v.a<v.c.c.length;)b=Q$(J1(v),10),R3(($Q(),new oz(YO(ldt(b).a.Kc(),new u))))>=t.a&&(i=v$t(t,b),f=e.Math.max(f,i.b),y=e.Math.max(y,i.d),G$(c,new nS(b,i)));for(C=new Mm,h=0;h<f;++h)vK(C,0,(EF(p.b>0),p.a.Xb(p.c=--p.b),bP(p,x=new UX(t.b)),EF(p.b<p.d.gc()),p.d.Xb(p.c=p.b++),x));for(s=new Gd(c);s.a<s.c.c.length;)if(a=Q$(J1(s),46),A=Q$(a.b,571).a)for(d=new Gd(A);d.a<d.c.c.length;)owt(t,Q$(J1(d),10),Kse,C);for(r=new Mm,l=0;l<y;++l)G$(r,(bP(p,E=new UX(t.b)),E));for(o=new Gd(c);o.a<o.c.c.length;)if(a=Q$(J1(o),46),k=Q$(a.b,571).c)for(w=new Gd(k);w.a<w.c.c.length;)owt(t,Q$(J1(w),10),zse,r)}for(m=new C2(n.b,0);m.b<m.d.gc();)EF(m.b<m.d.gc()),0==Q$(m.d.Xb(m.c=m.b++),29).a.c.length&&lV(m)}function iXt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_;if(Sxt(r,"Spline edge routing",1),0==n.b.c.length)return n.f.a=0,void $Tt(r);b=Hy(CN(bEt(n,($Xt(),Sme)))),c=Hy(CN(bEt(n,kme))),s=Hy(CN(bEt(n,vme))),x=Q$(bEt(n,npe),336)==(zlt(),nve),C=Hy(CN(bEt(n,rpe))),t.d=n,t.j.c=O8(Lte,$Vt,1,0,5,1),t.a.c=O8(Lte,$Vt,1,0,5,1),LG(t.k),h=XS((l=Q$(Oj(n.b,0),29)).a,(AFt(),yye)),f=XS((g=Q$(Oj(n.b,n.b.c.length-1),29)).a,yye),p=new Gd(n.b),m=null,_=0;do{for(NGt(t,m,v=p.a<p.c.c.length?Q$(J1(p),29):null),xUt(t),B=0,y=_,d=!m||h&&m==l,A=!v||f&&v==g,(E=Pw(rat(MW(SW(new Fj(null,new f1(t.i,16)),new wo),new yo))))>0?(u=0,m&&(u+=c),u+=(E-1)*s,v&&(u+=c),x&&v&&(u=e.Math.max(u,ZDt(v,s,b,C))),u<b&&!d&&!A&&(B=(b-u)/2,u=b),y+=u):!d&&!A&&(y+=b),v&&Cjt(v,y),k=new Gd(t.i);k.a<k.c.c.length;)(w=Q$(J1(k),128)).a.c=_,w.a.b=y-_,w.F=B,w.p=!m;gst(t.a,t.i),_=y,v&&(_+=v.c.a),m=v,d=A}while(v);for(a=new Gd(t.j);a.a<a.c.c.length;)o=bot(t,i=Q$(J1(a),17)),lct(i,(lVt(),Lfe),o),T=FFt(t,i),lct(i,Mfe,T);n.f.a=_,t.d=null,$Tt(r)}function aXt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v;if(g=0!=t.i,b=!1,p=null,mI(t.e)){if((u=e.gc())>0){for(f=u<100?null:new Rk(u),A=(l=new wat(e)).g,p=O8(_De,lqt,25,u,15,1),r=0,v=new get(u),i=0;i<t.i;++i){d=s=t.g[i];t:for(m=0;m<2;++m){for(c=u;--c>=0;)if(null!=d?Oht(d,A[c]):HS(d)===HS(A[c])){p.length<=r&&aHt(p,0,p=O8(_De,lqt,25,2*p.length,15,1),0,r),p[r++]=i,l7(v,A[c]);break t}if(HS(d)===HS(s))break}}if(l=v,A=v.g,u=r,r>p.length&&aHt(p,0,p=O8(_De,lqt,25,r,15,1),0,r),r>0){for(b=!0,a=0;a<r;++a)f=jR(t,Q$(d=A[a],72),f);for(o=r;--o>=0;)Myt(t,p[o]);if(r!=u){for(i=u;--i>=r;)Myt(l,i);aHt(p,0,p=O8(_De,lqt,25,r,15,1),0,r)}e=l}}}else for(e=wyt(t,e),i=t.i;--i>=0;)e.Hc(t.g[i])&&(Myt(t,i),b=!0);if(b){if(null!=p){for(h=1==(n=e.gc())?bZ(t,4,e.Kc().Pb(),null,p[0],g):bZ(t,6,e,p,p[0],g),f=n<100?null:new Rk(n),i=e.Kc();i.Ob();)f=$R(t,Q$(d=i.Pb(),72),f);f?(f.Ei(h),f.Fi()):fot(t.e,h)}else{for(f=LR(e.gc()),i=e.Kc();i.Ob();)f=$R(t,Q$(d=i.Pb(),72),f);f&&f.Fi()}return!0}return!1}function oXt(t,e){var n,r,i,a,o,s,c,l,h,f,d,A,g,p,m,b,v;for((n=new lbt(e)).a||gQt(e),l=hPt(e),c=new gJ,p=new WFt,g=new Gd(e.a);g.a<g.c.c.length;)for(i=new oz(YO(hdt(Q$(J1(g),10)).a.Kc(),new u));AIt(i);)(r=Q$(K5(i),17)).c.i.k!=(oTt(),Cse)&&r.d.i.k!=Cse||YSt(c,omt((h=hzt(t,r,l,p)).d),h.a);for(o=new Mm,v=Q$(bEt(n.c,(lVt(),zhe)),21).Kc();v.Ob();){switch(b=Q$(v.Pb(),61),A=p.c[b.g],d=p.b[b.g],s=p.a[b.g],a=null,m=null,b.g){case 4:a=new KW(t.d.a,A,l.b.a-t.d.a,d-A),m=new KW(t.d.a,A,s,d-A),jH(l,new O_(a.c+a.b,a.d)),jH(l,new O_(a.c+a.b,a.d+a.a));break;case 2:a=new KW(l.a.a,A,t.c.a-l.a.a,d-A),m=new KW(t.c.a-s,A,s,d-A),jH(l,new O_(a.c,a.d)),jH(l,new O_(a.c,a.d+a.a));break;case 1:a=new KW(A,t.d.b,d-A,l.b.b-t.d.b),m=new KW(A,t.d.b,d-A,s),jH(l,new O_(a.c,a.d+a.a)),jH(l,new O_(a.c+a.b,a.d+a.a));break;case 3:a=new KW(A,l.a.b,d-A,t.c.b-l.a.b),m=new KW(A,t.c.b-s,d-A,s),jH(l,new O_(a.c,a.d)),jH(l,new O_(a.c+a.b,a.d))}a&&((f=new Jb).d=b,f.b=a,f.c=m,f.a=qq(Q$(c6(c,omt(b)),21)),o.c[o.c.length]=f)}return gst(n.b,o),n.d=Uut(Zjt(l)),n}function sXt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g;if(null==r.p[n.p]){c=!0,r.p[n.p]=0,s=n,g=r.o==(oZ(),nye)?Pqt:Nqt;do{a=t.b.e[s.p],o=s.c.a.c.length,r.o==nye&&a>0||r.o==rye&&a<o-1?(l=null,u=null,l=r.o==rye?Q$(Oj(s.c.a,a+1),10):Q$(Oj(s.c.a,a-1),10),sXt(t,u=r.g[l.p],r),g=t.e.bg(g,n,s),r.j[n.p]==n&&(r.j[n.p]=r.j[u.p]),r.j[n.p]==r.j[u.p]?(A=NM(t.d,s,l),r.o==rye?(i=Hy(r.p[n.p]),f=Hy(r.p[u.p])+Hy(r.d[l.p])-l.d.d-A-s.d.a-s.o.b-Hy(r.d[s.p]),c?(c=!1,r.p[n.p]=e.Math.min(f,g)):r.p[n.p]=e.Math.min(i,e.Math.min(f,g))):(i=Hy(r.p[n.p]),f=Hy(r.p[u.p])+Hy(r.d[l.p])+l.o.b+l.d.a+A+s.d.d-Hy(r.d[s.p]),c?(c=!1,r.p[n.p]=e.Math.max(f,g)):r.p[n.p]=e.Math.max(i,e.Math.max(f,g)))):(A=Hy(CN(bEt(t.a,($Xt(),_me)))),d=yit(t,r.j[n.p]),h=yit(t,r.j[u.p]),r.o==rye?K1(d,h,Hy(r.p[n.p])+Hy(r.d[s.p])+s.o.b+s.d.a+A-(Hy(r.p[u.p])+Hy(r.d[l.p])-l.d.d)):K1(d,h,Hy(r.p[n.p])+Hy(r.d[s.p])-s.d.d-Hy(r.p[u.p])-Hy(r.d[l.p])-l.o.b-l.d.a-A))):g=t.e.bg(g,n,s),s=r.a[s.p]}while(s!=n);_b(t.e,n)}}function cXt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;for(h=e,u=new gJ,f=new gJ,a=M2(h,D6t),jTt((r=new lq(t,n,u,f)).a,r.b,r.c,r.d,a),g=(u.i||(u.i=new UO(u,u.c))).Kc();g.Ob();)for(A=Q$(g.Pb(),202),s=Q$(c6(u,A),21).Kc();s.Ob();){if(o=s.Pb(),!(d=Q$(cnt(t.d,o),202)))throw i=F2(h,H6t),Um(new tw(V6t+o+W6t+i+X6t));!A.e&&(A.e=new cR(PLe,A,10,9)),l7(A.e,d)}for(m=(f.i||(f.i=new UO(f,f.c))).Kc();m.Ob();)for(p=Q$(m.Pb(),202),l=Q$(c6(f,p),21).Kc();l.Ob();){if(c=l.Pb(),!(d=Q$(cnt(t.d,c),202)))throw i=F2(h,H6t),Um(new tw(V6t+c+W6t+i+X6t));!p.g&&(p.g=new cR(PLe,p,9,10)),l7(p.g,d)}!n.b&&(n.b=new cR(FLe,n,4,7)),0!=n.b.i&&(!n.c&&(n.c=new cR(FLe,n,5,8)),0!=n.c.i)&&(!n.b&&(n.b=new cR(FLe,n,4,7)),n.b.i<=1&&(!n.c&&(n.c=new cR(FLe,n,5,8)),n.c.i<=1))&&1==(!n.a&&(n.a=new tG(PLe,n,6,6)),n.a).i&&(Ebt(b=Q$(Xet((!n.a&&(n.a=new tG(PLe,n,6,6)),n.a),0),202))||Tbt(b)||(Mrt(b,Q$(Xet((!n.b&&(n.b=new cR(FLe,n,4,7)),n.b),0),82)),Ort(b,Q$(Xet((!n.c&&(n.c=new cR(FLe,n,5,8)),n.c),0),82))))}function lXt(t){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T;for(y=0,w=(v=t.a).length;y<w;++y){for(b=v[y],l=FVt,u=FVt,A=new Gd(b.e);A.a<A.c.c.length;)(o=(f=Q$(J1(A),10)).c?w9(f.c.a,f,0):-1)>0?(h=Q$(Oj(f.c.a,o-1),10),x=NM(t.b,f,h),p=f.n.b-f.d.d-(h.n.b+h.o.b+h.d.a+x)):p=f.n.b-f.d.d,l=e.Math.min(p,l),o<f.c.a.c.length-1?(h=Q$(Oj(f.c.a,o+1),10),x=NM(t.b,f,h),m=h.n.b-h.d.d-(f.n.b+f.o.b+f.d.a+x)):m=2*f.n.b,u=e.Math.min(m,u);for(c=FVt,a=!1,T=new Gd((i=Q$(Oj(b.e,0),10)).j);T.a<T.c.c.length;)for(E=Q$(J1(T),11),g=i.n.b+E.n.b+E.a.b,r=new Gd(E.e);r.a<r.c.c.length;)n=(k=Q$(J1(r),17).c).i.n.b+k.n.b+k.a.b-g,e.Math.abs(n)<e.Math.abs(c)&&e.Math.abs(n)<(n<0?l:u)&&(c=n,a=!0);for(C=new Gd((s=Q$(Oj(b.e,b.e.c.length-1),10)).j);C.a<C.c.c.length;)for(k=Q$(J1(C),11),g=s.n.b+k.n.b+k.a.b,r=new Gd(k.g);r.a<r.c.c.length;)n=(E=Q$(J1(r),17).d).i.n.b+E.n.b+E.a.b-g,e.Math.abs(n)<e.Math.abs(c)&&e.Math.abs(n)<(n<0?l:u)&&(c=n,a=!0);if(a&&0!=c)for(d=new Gd(b.e);d.a<d.c.c.length;)(f=Q$(J1(d),10)).n.b+=c}}function uXt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p;if(cG(t.a,e)){if(Rx(Q$(FX(t.a,e),53),n))return 1}else XV(t.a,e,new Fb);if(cG(t.a,n)){if(Rx(Q$(FX(t.a,n),53),e))return-1}else XV(t.a,n,new Fb);if(cG(t.e,e)){if(Rx(Q$(FX(t.e,e),53),n))return-1}else XV(t.e,e,new Fb);if(cG(t.e,n)){if(Rx(Q$(FX(t.a,n),53),e))return 1}else XV(t.e,n,new Fb);if(t.c==(bct(),Obe)||!IF(e,(lVt(),ffe))||!IF(n,(lVt(),ffe))){if(c=Q$(wD(C4(Wct(SW(new Fj(null,new f1(e.j,16)),new la)),new ua)),11),u=Q$(wD(C4(Wct(SW(new Fj(null,new f1(n.j,16)),new ha)),new fa)),11),c&&u){if(s=c.i,l=u.i,s&&s==l){for(f=new Gd(s.j);f.a<f.c.c.length;){if((h=Q$(J1(f),11))==c)return aRt(t,n,e),-1;if(h==u)return aRt(t,e,n),1}return wM(nCt(t,e),nCt(t,n))}for(g=0,p=(A=t.d).length;g<p;++g){if((d=A[g])==s)return aRt(t,n,e),-1;if(d==l)return aRt(t,e,n),1}}if(!IF(e,(lVt(),ffe))||!IF(n,ffe))return(i=nCt(t,e))>(o=nCt(t,n))?aRt(t,e,n):aRt(t,n,e),i<o?-1:i>o?1:0}return(r=Q$(bEt(e,(lVt(),ffe)),19).a)>(a=Q$(bEt(n,ffe),19).a)?aRt(t,e,n):aRt(t,n,e),r<a?-1:r>a?1:0}function hXt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A,g;if($y(kN(JIt(e,(cVt(),jTe)))))return xq(),xq(),cne;if(c=0!=(!e.a&&(e.a=new tG(jLe,e,10,11)),e.a).i,l=!(u=vSt(e)).dc(),c||l){if(!(i=Q$(JIt(e,mBe),149)))throw Um(new nw("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(g=__(i,(lIt(),YLe)),Opt(e),!c&&l&&!g)return xq(),xq(),cne;if(s=new Mm,HS(JIt(e,wTe))===HS((oht(),g_e))&&(__(i,VLe)||__(i,XLe)))for(f=pPt(t,e),Qit(d=new Wx,(!e.a&&(e.a=new tG(jLe,e,10,11)),e.a));0!=d.b;)Opt(h=Q$(0==d.b?null:(EF(0!=d.b),Let(d,d.a.a)),33)),HS(JIt(h,wTe))===HS(m_e)||E8(h,tTe)&&!y5(i,JIt(h,mBe))?(gst(s,hXt(t,h,n,r)),qmt(h,wTe,m_e),PRt(h)):Qit(d,(!h.a&&(h.a=new tG(jLe,h,10,11)),h.a));else for(f=(!e.a&&(e.a=new tG(jLe,e,10,11)),e.a).i,o=new SO((!e.a&&(e.a=new tG(jLe,e,10,11)),e.a));o.e!=o.i.gc();)gst(s,hXt(t,a=Q$(ymt(o),33),n,r)),PRt(a);for(A=new Gd(s);A.a<A.c.c.length;)qmt(Q$(J1(A),79),jTe,(cD(),!0));return zpt(e,i,bat(r,f)),dQt(s),l&&g?u:(xq(),xq(),cne)}return xq(),xq(),cne}function fXt(t,e,n,r,i,a,o,s,c){var l,u,h,f,d,A,g;switch(d=n,Qf(u=new Ibt(c),(oTt(),Cse)),lct(u,(lVt(),Whe),o),lct(u,($Xt(),tme),(WCt(),z_e)),g=Hy(CN(t.We(Zpe))),lct(u,Zpe,g),TZ(h=new BTt,u),e!=V_e&&e!=W_e||(d=r>=0?lAt(s):Cft(lAt(s)),t.Ye(ame,d)),l=new Hk,f=!1,t.Xe(Jpe)?(UF(l,Q$(t.We(Jpe),8)),f=!0):bO(l,o.a/2,o.b/2),d.g){case 4:lct(u,vpe,(Cdt(),Rfe)),lct(u,Hhe,(Yst(),Lue)),u.o.b=o.b,g<0&&(u.o.a=-g),H_t(h,(yGt(),oSe)),f||(l.a=o.a),l.a-=o.a;break;case 2:lct(u,vpe,(Cdt(),Ufe)),lct(u,Hhe,(Yst(),_ue)),u.o.b=o.b,g<0&&(u.o.a=-g),H_t(h,(yGt(),TSe)),f||(l.a=0);break;case 1:lct(u,efe,(j9(),The)),u.o.a=o.a,g<0&&(u.o.b=-g),H_t(h,(yGt(),xSe)),f||(l.b=o.b),l.b-=o.b;break;case 3:lct(u,efe,(j9(),xhe)),u.o.a=o.a,g<0&&(u.o.b=-g),H_t(h,(yGt(),sSe)),f||(l.b=0)}if(UF(h.n,l),lct(u,Jpe,l),e==K_e||e==G_e||e==z_e){if(A=0,e==K_e&&t.Xe(eme))switch(d.g){case 1:case 2:A=Q$(t.We(eme),19).a;break;case 3:case 4:A=-Q$(t.We(eme),19).a}else switch(d.g){case 4:case 2:A=a.b,e==G_e&&(A/=i.b);break;case 1:case 3:A=a.a,e==G_e&&(A/=i.a)}lct(u,kfe,A)}return lct(u,Vhe,d),u}function dXt(t){var e,n,r,i,a,o,s,c,l,h,f,d,A,g,p,m,b,v,y,w,k,C;if((n=Hy(CN(bEt(t.a.j,($Xt(),Pge)))))<-1||!t.a.i||IR(Q$(bEt(t.a.o,tme),98))||adt(t.a.o,(yGt(),oSe)).gc()<2&&adt(t.a.o,TSe).gc()<2)return!0;if(t.a.c.Rf())return!1;for(y=0,v=0,b=new Mm,c=0,l=(s=t.a.e).length;c<l;++c){for(d=0,g=(f=s[c]).length;d<g;++d)if((h=f[d]).k!=(oTt(),Bse)){for(r=t.b[h.c.p][h.p],h.k==Cse?(r.b=1,Q$(bEt(h,(lVt(),dfe)),11).j==(yGt(),oSe)&&(v+=r.a)):(C=adt(h,(yGt(),TSe))).dc()||!ZM(C,new Da)?r.c=1:((i=adt(h,oSe)).dc()||!ZM(i,new Oa))&&(y+=r.a),o=new oz(YO(hdt(h).a.Kc(),new u));AIt(o);)a=Q$(K5(o),17),y+=r.c,v+=r.b,z8(t,r,a.d.i);for(k=new oz(new GO((p=Xnt(Tst(Hw(Dte,1),$Vt,20,0,[adt(h,(yGt(),sSe)),adt(h,xSe)]))).a.length,p.a));AIt(k);)w=Q$(K5(k),11),(m=Q$(bEt(w,(lVt(),wfe)),10))&&(y+=r.c,v+=r.b,z8(t,r,m))}else b.c[b.c.length]=h;for(A=new Gd(b);A.a<A.c.c.length;)for(h=Q$(J1(A),10),r=t.b[h.c.p][h.p],o=new oz(YO(hdt(h).a.Kc(),new u));AIt(o);)a=Q$(K5(o),17),y+=r.c,v+=r.b,z8(t,r,a.d.i);b.c=O8(Lte,$Vt,1,0,5,1)}return(0==(e=y+v)?Nqt:(y-v)/e)>=n}function AXt(){function t(t){var e=this;this.dispatch=function(e){var n=e.data;switch(n.cmd){case"algorithms":var r=EAt((xq(),new Ud(new _d(lIe.b))));t.postMessage({id:n.id,data:r});break;case"categories":var i=EAt((xq(),new Ud(new _d(lIe.c))));t.postMessage({id:n.id,data:i});break;case"options":var a=EAt((xq(),new Ud(new _d(lIe.d))));t.postMessage({id:n.id,data:a});break;case"register":hKt(n.algorithms),t.postMessage({id:n.id});break;case"layout":D$t(n.graph,n.layoutOptions||{},n.options||{}),t.postMessage({id:n.id,data:n.graph})}},this.saveDispatch=function(n){try{e.dispatch(n)}catch(e){t.postMessage({id:n.data.id,error:e})}}}function e(e){var n=this;this.dispatcher=new t({postMessage:function(t){n.onmessage({data:t})}}),this.postMessage=function(t){setTimeout((function(){n.dispatcher.saveDispatch({data:t})}),0)}}if(iC(),typeof document===gYt&&typeof self!==gYt){var i=new t(self);self.onmessage=i.saveDispatch}else typeof n!==gYt&&n.exports&&(Object.defineProperty(r,"__esModule",{value:!0}),n.exports={default:e,Worker:e})}function gXt(t){t.N||(t.N=!0,t.b=yot(t,0),Nit(t.b,0),Nit(t.b,1),Nit(t.b,2),t.bb=yot(t,1),Nit(t.bb,0),Nit(t.bb,1),t.fb=yot(t,2),Nit(t.fb,3),Nit(t.fb,4),Pit(t.fb,5),t.qb=yot(t,3),Nit(t.qb,0),Pit(t.qb,1),Pit(t.qb,2),Nit(t.qb,3),Nit(t.qb,4),Pit(t.qb,5),Nit(t.qb,6),t.a=wot(t,4),t.c=wot(t,5),t.d=wot(t,6),t.e=wot(t,7),t.f=wot(t,8),t.g=wot(t,9),t.i=wot(t,10),t.j=wot(t,11),t.k=wot(t,12),t.n=wot(t,13),t.o=wot(t,14),t.p=wot(t,15),t.q=wot(t,16),t.s=wot(t,17),t.r=wot(t,18),t.t=wot(t,19),t.u=wot(t,20),t.v=wot(t,21),t.w=wot(t,22),t.B=wot(t,23),t.A=wot(t,24),t.C=wot(t,25),t.D=wot(t,26),t.F=wot(t,27),t.G=wot(t,28),t.H=wot(t,29),t.J=wot(t,30),t.I=wot(t,31),t.K=wot(t,32),t.M=wot(t,33),t.L=wot(t,34),t.P=wot(t,35),t.Q=wot(t,36),t.R=wot(t,37),t.S=wot(t,38),t.T=wot(t,39),t.U=wot(t,40),t.V=wot(t,41),t.X=wot(t,42),t.W=wot(t,43),t.Y=wot(t,44),t.Z=wot(t,45),t.$=wot(t,46),t._=wot(t,47),t.ab=wot(t,48),t.cb=wot(t,49),t.db=wot(t,50),t.eb=wot(t,51),t.gb=wot(t,52),t.hb=wot(t,53),t.ib=wot(t,54),t.jb=wot(t,55),t.kb=wot(t,56),t.lb=wot(t,57),t.mb=wot(t,58),t.nb=wot(t,59),t.ob=wot(t,60),t.pb=wot(t,61))}function pXt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;if(v=0,0==n.f.a)for(m=new Gd(t);m.a<m.c.c.length;)g=Q$(J1(m),10),v=e.Math.max(v,g.n.a+g.o.a+g.d.c);else v=n.f.a-n.c.a;for(v-=n.c.a,p=new Gd(t);p.a<p.c.c.length;){switch(Ym((g=Q$(J1(p),10)).n,v-g.o.a),rH(g.f),Vvt(g),(g.q?g.q:(xq(),xq(),lne))._b(($Xt(),sme))&&Ym(Q$(bEt(g,sme),8),v-g.o.a),Q$(bEt(g,vge),248).g){case 1:lct(g,vge,(dbt(),LEe));break;case 2:lct(g,vge,(dbt(),SEe))}for(b=g.o,w=new Gd(g.j);w.a<w.c.c.length;){for(Ym((y=Q$(J1(w),11)).n,b.a-y.o.a),Ym(y.a,y.o.a),H_t(y,_at(y.j)),(s=Q$(bEt(y,eme),19))&&lct(y,eme,nft(-s.a)),o=new Gd(y.g);o.a<o.c.c.length;){for(i=cmt((a=Q$(J1(o),17)).a,0);i.b!=i.d.c;)(r=Q$(h3(i),8)).a=v-r.a;if(u=Q$(bEt(a,ppe),74))for(l=cmt(u,0);l.b!=l.d.c;)(c=Q$(h3(l),8)).a=v-c.a;for(d=new Gd(a.b);d.a<d.c.c.length;)Ym((h=Q$(J1(d),70)).n,v-h.o.a)}for(A=new Gd(y.f);A.a<A.c.c.length;)Ym((h=Q$(J1(A),70)).n,y.o.a-h.o.a)}for(g.k==(oTt(),Cse)&&(lct(g,(lVt(),Vhe),_at(Q$(bEt(g,Vhe),61))),qEt(g)),f=new Gd(g.b);f.a<f.c.c.length;)Vvt(h=Q$(J1(f),70)),Ym(h.n,b.a-h.o.a)}}function mXt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;if(v=0,0==n.f.b)for(m=new Gd(t);m.a<m.c.c.length;)g=Q$(J1(m),10),v=e.Math.max(v,g.n.b+g.o.b+g.d.a);else v=n.f.b-n.c.b;for(v-=n.c.b,p=new Gd(t);p.a<p.c.c.length;){switch(qm((g=Q$(J1(p),10)).n,v-g.o.b),iH(g.f),Wvt(g),(g.q?g.q:(xq(),xq(),lne))._b(($Xt(),sme))&&qm(Q$(bEt(g,sme),8),v-g.o.b),Q$(bEt(g,vge),248).g){case 3:lct(g,vge,(dbt(),BEe));break;case 4:lct(g,vge,(dbt(),IEe))}for(b=g.o,w=new Gd(g.j);w.a<w.c.c.length;){for(qm((y=Q$(J1(w),11)).n,b.b-y.o.b),qm(y.a,y.o.b),H_t(y,Sat(y.j)),(s=Q$(bEt(y,eme),19))&&lct(y,eme,nft(-s.a)),o=new Gd(y.g);o.a<o.c.c.length;){for(i=cmt((a=Q$(J1(o),17)).a,0);i.b!=i.d.c;)(r=Q$(h3(i),8)).b=v-r.b;if(u=Q$(bEt(a,ppe),74))for(l=cmt(u,0);l.b!=l.d.c;)(c=Q$(h3(l),8)).b=v-c.b;for(d=new Gd(a.b);d.a<d.c.c.length;)qm((h=Q$(J1(d),70)).n,v-h.o.b)}for(A=new Gd(y.f);A.a<A.c.c.length;)qm((h=Q$(J1(A),70)).n,y.o.b-h.o.b)}for(g.k==(oTt(),Cse)&&(lct(g,(lVt(),Vhe),Sat(Q$(bEt(g,Vhe),61))),gft(g)),f=new Gd(g.b);f.a<f.c.c.length;)Wvt(h=Q$(J1(f),70)),qm(h.n,b.b-h.o.b)}}function bXt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d;for(h=!1,l=t+1,u1(t,e.c.length),o=(u=Q$(e.c[t],200)).a,s=null,a=0;a<u.a.c.length;a++)if(u1(a,o.c.length),!(i=Q$(o.c[a],187)).c)if(0!=i.b.c.length){if(i.k||(s&&jvt(s),Cbt(i,(s=new NJ(s?s.e+s.d+r:0,u.f,r)).e+s.d,u.f),G$(u.d,s),Dat(s,i),i.k=!0),c=null,d=null,a<u.a.c.length-1?d=Q$(Oj(u.a,a+1),187):l<e.c.length&&0!=(u1(l,e.c.length),Q$(e.c[l],200)).a.c.length&&(d=Q$(Oj((u1(l,e.c.length),Q$(e.c[l],200)).a,0),187)),f=!1,(c=d)&&(f=!Oht(c.j,u)),c){if(0==c.b.c.length){Cwt(u,c);break}if(g7(i,n-i.s),jvt(i.q),h|=ZEt(u,i,c,n,r),0==c.b.c.length)for(Cwt((u1(l,e.c.length),Q$(e.c[l],200)),c),c=null;e.c.length>l&&0==(u1(l,e.c.length),Q$(e.c[l],200)).a.c.length;)b9(e,(u1(l,e.c.length),e.c[l]));if(!c){--a;continue}if(LQt(e,u,i,c,f,n,l,r)){h=!0;continue}if(f){if(Y$t(e,u,i,c,n,l,r)){h=!0;continue}if(Lut(u,i)){i.c=!0,h=!0;continue}}else if(Lut(u,i)){i.c=!0,h=!0;continue}if(h)continue}Lut(u,i)?(i.c=!0,h=!0,c&&(c.k=!1)):jvt(i.q)}else Lx(),Cwt(u,i),--a,h=!0;return h}function vXt(t,n,r,i,a,o,s){var c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S,L,I;for(p=0,B=0,u=new Gd(t.b);u.a<u.c.c.length;)(l=Q$(J1(u),157)).c&&szt(l.c),p=e.Math.max(p,eK(l)),B+=eK(l)*tK(l);for(m=B/t.b.c.length,T=lkt(t.b,m),B+=t.b.c.length*T,p=e.Math.max(p,e.Math.sqrt(B*s))+r.b,L=r.b,I=r.d,A=0,f=r.b+r.c,DH(E=new Wx,nft(0)),C=new Wx,h=new C2(t.b,0),g=null,c=new Mm;h.b<h.d.gc();)EF(h.b<h.d.gc()),S=eK(l=Q$(h.d.Xb(h.c=h.b++),157)),d=tK(l),L+S>p&&(o&&(lL(C,A),lL(E,nft(h.b-1)),G$(t.d,g),c.c=O8(Lte,$Vt,1,0,5,1)),L=r.b,I+=A+n,A=0,f=e.Math.max(f,r.b+r.c+S)),c.c[c.c.length]=l,xmt(l,L,I),f=e.Math.max(f,L+S+r.c),A=e.Math.max(A,d),L+=S+n,g=l;if(gst(t.a,c),G$(t.d,Q$(Oj(c,c.c.length-1),157)),f=e.Math.max(f,i),(_=I+A+r.a)<a&&(A+=a-_,_=a),o)for(L=r.b,h=new C2(t.b,0),lL(E,nft(t.b.c.length)),v=Q$(h3(x=cmt(E,0)),19).a,lL(C,A),k=cmt(C,0),w=0;h.b<h.d.gc();)h.b==v&&(L=r.b,w=Hy(CN(h3(k))),v=Q$(h3(x),19).a),EF(h.b<h.d.gc()),zgt(l=Q$(h.d.Xb(h.c=h.b++),157),w),h.b==v&&(b=f-L-r.c,y=eK(l),Kgt(l,b),Qft(l,(b-y)/2,0)),L+=eK(l)+n;return new O_(f,_)}function yXt(t){var e,n,r,i;switch(i=null,t.c){case 6:return t.Vl();case 13:return t.Wl();case 23:return t.Nl();case 22:return t.Sl();case 18:return t.Pl();case 8:WXt(t),dVt(),i=aDe;break;case 9:return t.vl(!0);case 19:return t.wl();case 10:switch(t.a){case 100:case 68:case 119:case 87:case 115:case 83:return i=t.ul(t.a),WXt(t),i;case 101:case 102:case 110:case 114:case 116:case 117:case 118:case 120:(e=t.tl())<Uqt?(dVt(),dVt(),i=new oK(0,e)):i=gz(Gft(e));break;case 99:return t.Fl();case 67:return t.Al();case 105:return t.Il();case 73:return t.Bl();case 103:return t.Gl();case 88:return t.Cl();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t.xl();case 80:case 112:if(!(i=FSt(t,t.a)))throw Um(new iw(yVt((aM(),S8t))));break;default:i=VH(t.a)}WXt(t);break;case 0:if(93==t.a||123==t.a||125==t.a)throw Um(new iw(yVt((aM(),_8t))));i=VH(t.a),n=t.a,WXt(t),(64512&n)==$qt&&0==t.c&&56320==(64512&t.a)&&((r=O8(BDe,XWt,25,2,15,1))[0]=n&WWt,r[1]=t.a&WWt,i=oG(gz(Ugt(r,0,r.length)),0),WXt(t));break;default:throw Um(new iw(yVt((aM(),_8t))))}return i}function wXt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p;if(i=new Mm,a=FVt,o=FVt,s=FVt,r)for(a=t.f.a,g=new Gd(n.j);g.a<g.c.c.length;)for(l=new Gd(Q$(J1(g),11).g);l.a<l.c.c.length;)0!=(c=Q$(J1(l),17)).a.b&&((h=Q$(AF(c.a),8)).a<a&&(o=a-h.a,s=FVt,i.c=O8(Lte,$Vt,1,0,5,1),a=h.a),h.a<=a&&(i.c[i.c.length]=c,c.a.b>1&&(s=e.Math.min(s,e.Math.abs(Q$(Fmt(c.a,1),8).b-h.b)))));else for(g=new Gd(n.j);g.a<g.c.c.length;)for(l=new Gd(Q$(J1(g),11).e);l.a<l.c.c.length;)0!=(c=Q$(J1(l),17)).a.b&&((d=Q$(gF(c.a),8)).a>a&&(o=d.a-a,s=FVt,i.c=O8(Lte,$Vt,1,0,5,1),a=d.a),d.a>=a&&(i.c[i.c.length]=c,c.a.b>1&&(s=e.Math.min(s,e.Math.abs(Q$(Fmt(c.a,c.a.b-2),8).b-d.b)))));if(0!=i.c.length&&o>n.o.a/2&&s>n.o.b/2){for(TZ(A=new BTt,n),H_t(A,(yGt(),sSe)),A.n.a=n.o.a/2,TZ(p=new BTt,n),H_t(p,xSe),p.n.a=n.o.a/2,p.n.b=n.o.b,l=new Gd(i);l.a<l.c.c.length;)c=Q$(J1(l),17),r?(u=Q$(dH(c.a),8),(0==c.a.b?A1(c.d):Q$(AF(c.a),8)).b>=u.b?xZ(c,p):xZ(c,A)):(u=Q$(AH(c.a),8),(0==c.a.b?A1(c.c):Q$(gF(c.a),8)).b>=u.b?CZ(c,p):CZ(c,A)),(f=Q$(bEt(c,($Xt(),ppe)),74))&&vAt(f,u,!0);n.n.a=a-n.o.a/2}}function kXt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d;if(l=e,Irt(c=V3(t,I3(n),l),F2(l,H6t)),u=Q$(cnt(t.g,ySt(jJ(l,C6t))),33),r=null,(o=jJ(l,"sourcePort"))&&(r=ySt(o)),h=Q$(cnt(t.j,r),118),!u)throw Um(new tw("An edge must have a source node (edge id: '"+Wgt(l)+X6t));if(h&&!fV(GJ(h),u))throw Um(new tw("The source port of an edge must be a port of the edge's source node (edge id: '"+F2(l,H6t)+X6t));if(!c.b&&(c.b=new cR(FLe,c,4,7)),l7(c.b,h||u),f=Q$(cnt(t.g,ySt(jJ(l,q6t))),33),i=null,(s=jJ(l,"targetPort"))&&(i=ySt(s)),d=Q$(cnt(t.j,i),118),!f)throw Um(new tw("An edge must have a target node (edge id: '"+Wgt(l)+X6t));if(d&&!fV(GJ(d),f))throw Um(new tw("The target port of an edge must be a port of the edge's target node (edge id: '"+F2(l,H6t)+X6t));if(!c.c&&(c.c=new cR(FLe,c,5,8)),l7(c.c,d||f),0==(!c.b&&(c.b=new cR(FLe,c,4,7)),c.b).i||0==(!c.c&&(c.c=new cR(FLe,c,5,8)),c.c).i)throw a=F2(l,H6t),Um(new tw(G6t+a+X6t));return Ext(l,c),cMt(l,c),Dct(t,l,c)}function CXt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T;return h=BUt(UD(t,(yGt(),fSe)),e),A=ayt(UD(t,dSe),e),y=ayt(UD(t,wSe),e),x=oyt(UD(t,CSe),e),f=oyt(UD(t,cSe),e),b=ayt(UD(t,ySe),e),g=ayt(UD(t,ASe),e),k=ayt(UD(t,kSe),e),w=ayt(UD(t,lSe),e),E=oyt(UD(t,hSe),e),m=ayt(UD(t,bSe),e),v=ayt(UD(t,mSe),e),C=ayt(UD(t,uSe),e),T=oyt(UD(t,vSe),e),d=oyt(UD(t,gSe),e),p=ayt(UD(t,pSe),e),n=Mct(Tst(Hw(MDe,1),Hqt,25,15,[b.a,x.a,k.a,T.a])),r=Mct(Tst(Hw(MDe,1),Hqt,25,15,[A.a,h.a,y.a,p.a])),i=m.a,a=Mct(Tst(Hw(MDe,1),Hqt,25,15,[g.a,f.a,w.a,d.a])),l=Mct(Tst(Hw(MDe,1),Hqt,25,15,[b.b,A.b,g.b,v.b])),c=Mct(Tst(Hw(MDe,1),Hqt,25,15,[x.b,h.b,f.b,p.b])),u=E.b,s=Mct(Tst(Hw(MDe,1),Hqt,25,15,[k.b,y.b,w.b,C.b])),f7(UD(t,fSe),n+i,l+u),f7(UD(t,pSe),n+i,l+u),f7(UD(t,dSe),n+i,0),f7(UD(t,wSe),n+i,l+u+c),f7(UD(t,CSe),0,l+u),f7(UD(t,cSe),n+i+r,l+u),f7(UD(t,ASe),n+i+r,0),f7(UD(t,kSe),0,l+u+c),f7(UD(t,lSe),n+i+r,l+u+c),f7(UD(t,hSe),0,l),f7(UD(t,bSe),n,0),f7(UD(t,uSe),0,l+u+c),f7(UD(t,gSe),n+i+r,0),(o=new Hk).a=Mct(Tst(Hw(MDe,1),Hqt,25,15,[n+r+i+a,E.a,v.a,C.a])),o.b=Mct(Tst(Hw(MDe,1),Hqt,25,15,[l+c+u+s,m.b,T.b,d.b])),o}function xXt(t){var e,n,r,i,a,o,s,c,l,h,f,d,A,g,p;for(g=new Mm,f=new Gd(t.d.b);f.a<f.c.c.length;)for(A=new Gd(Q$(J1(f),29).a);A.a<A.c.c.length;){for(d=Q$(J1(A),10),i=Q$(FX(t.f,d),57),c=new oz(YO(hdt(d).a.Kc(),new u));AIt(c);)if(l=!0,h=null,(r=cmt((o=Q$(K5(c),17)).a,0)).b!=r.d.c){for(e=Q$(h3(r),8),n=null,o.c.j==(yGt(),sSe)&&((p=new T$t(e,new O_(e.a,i.d.d),i,o)).f.a=!0,p.a=o.c,g.c[g.c.length]=p),o.c.j==xSe&&((p=new T$t(e,new O_(e.a,i.d.d+i.d.a),i,o)).f.d=!0,p.a=o.c,g.c[g.c.length]=p);r.b!=r.d.c;)n=Q$(h3(r),8),ant(e.b,n.b)||(h=new T$t(e,n,null,o),g.c[g.c.length]=h,l&&(l=!1,n.b<i.d.d?h.f.a=!0:n.b>i.d.d+i.d.a?h.f.d=!0:(h.f.d=!0,h.f.a=!0))),r.b!=r.d.c&&(e=n);h&&(a=Q$(FX(t.f,o.d.i),57),e.b<a.d.d?h.f.a=!0:e.b>a.d.d+a.d.a?h.f.d=!0:(h.f.d=!0,h.f.a=!0))}for(s=new oz(YO(udt(d).a.Kc(),new u));AIt(s);)0!=(o=Q$(K5(s),17)).a.b&&(e=Q$(gF(o.a),8),o.d.j==(yGt(),sSe)&&((p=new T$t(e,new O_(e.a,i.d.d),i,o)).f.a=!0,p.a=o.d,g.c[g.c.length]=p),o.d.j==xSe&&((p=new T$t(e,new O_(e.a,i.d.d+i.d.a),i,o)).f.d=!0,p.a=o.d,g.c[g.c.length]=p))}return g}function EXt(t,e,n){var r,i,a,o,s,c,l;if(Sxt(n,"Network simplex node placement",1),t.e=e,t.n=Q$(bEt(e,(lVt(),Sfe)),304),sjt(t),NCt(t),qx(ftt(new Fj(null,new f1(t.e.b,16)),new Ha),new rp(t)),qx(SW(ftt(SW(ftt(new Fj(null,new f1(t.e.b,16)),new eo),new no),new ro),new io),new np(t)),$y(kN(bEt(t.e,($Xt(),Ope))))&&(Sxt(a=bat(n,1),"Straight Edges Pre-Processing",1),wzt(t),$Tt(a)),xbt(t.f),i=Q$(bEt(e,Ome),19).a*t.f.a.c.length,XRt(Vw(Ww(QQ(t.f),i),!1),bat(n,1)),0!=t.d.a.gc()){for(Sxt(a=bat(n,1),"Flexible Where Space Processing",1),o=Q$(LD(_z(LW(new Fj(null,new f1(t.f.a,16)),new ja),new Na)),19).a,s=Q$(LD(Bz(LW(new Fj(null,new f1(t.f.a,16)),new Ka),new Pa)),19).a-o,c=SD(new $b,t.f),l=SD(new $b,t.f),zDt(iE(rE(nE(aE(new Ub,2e4),s),c),l)),qx(SW(SW(IG(t.i),new za),new Ga),new jW(o,c,s,l)),r=t.d.a.ec().Kc();r.Ob();)Q$(r.Pb(),213).g=1;XRt(Vw(Ww(QQ(t.f),i),!1),bat(a,1)),$Tt(a)}$y(kN(bEt(e,Ope)))&&(Sxt(a=bat(n,1),"Straight Edges Post-Processing",1),EBt(t),$Tt(a)),WKt(t),t.e=null,t.f=null,t.i=null,t.c=null,LG(t.k),t.j=null,t.a=null,t.o=null,t.d.a.$b(),$Tt(n)}function TXt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;for(s=new Gd(t.a.b);s.a<s.c.c.length;)for(v=new Gd(Q$(J1(s),29).a);v.a<v.c.c.length;)b=Q$(J1(v),10),n.g[b.p]=b,n.a[b.p]=b,n.d[b.p]=0;for(c=t.a.b,n.c==(AJ(),Jve)&&(c=rO(c,152)?o6(Q$(c,152)):rO(c,131)?Q$(c,131).a:rO(c,54)?new ly(c):new Tx(c)),o=c.Kc();o.Ob();)for(d=-1,f=Q$(o.Pb(),29).a,n.o==(oZ(),rye)&&(d=FVt,f=rO(f,152)?o6(Q$(f,152)):rO(f,131)?Q$(f,131).a:rO(f,54)?new ly(f):new Tx(f)),w=f.Kc();w.Ob();)if(y=Q$(w.Pb(),10),h=null,(h=n.c==Jve?Q$(Oj(t.b.f,y.p),15):Q$(Oj(t.b.b,y.p),15)).gc()>0)if(i=h.gc(),l=TJ(e.Math.floor((i+1)/2))-1,a=TJ(e.Math.ceil((i+1)/2))-1,n.o==rye)for(u=a;u>=l;u--)n.a[y.p]==y&&(g=Q$(h.Xb(u),46),A=Q$(g.a,10),!Rx(r,g.b)&&d>t.b.e[A.p]&&(n.a[A.p]=y,n.g[y.p]=n.g[A.p],n.a[y.p]=n.g[y.p],n.f[n.g[y.p].p]=(cD(),!!($y(n.f[n.g[y.p].p])&y.k==(oTt(),Ese))),d=t.b.e[A.p]));else for(u=l;u<=a;u++)n.a[y.p]==y&&(m=Q$(h.Xb(u),46),p=Q$(m.a,10),!Rx(r,m.b)&&d<t.b.e[p.p]&&(n.a[p.p]=y,n.g[y.p]=n.g[p.p],n.a[y.p]=n.g[y.p],n.f[n.g[y.p].p]=(cD(),!!($y(n.f[n.g[y.p].p])&y.k==(oTt(),Ese))),d=t.b.e[p.p]))}function BXt(){BXt=L,tC(),ELe=ALe.a,Q$(Xet(Vq(ALe.a),0),18),vLe=ALe.f,Q$(Xet(Vq(ALe.f),0),18),Q$(Xet(Vq(ALe.f),1),34),xLe=ALe.n,Q$(Xet(Vq(ALe.n),0),34),Q$(Xet(Vq(ALe.n),1),34),Q$(Xet(Vq(ALe.n),2),34),Q$(Xet(Vq(ALe.n),3),34),yLe=ALe.g,Q$(Xet(Vq(ALe.g),0),18),Q$(Xet(Vq(ALe.g),1),34),pLe=ALe.c,Q$(Xet(Vq(ALe.c),0),18),Q$(Xet(Vq(ALe.c),1),18),wLe=ALe.i,Q$(Xet(Vq(ALe.i),0),18),Q$(Xet(Vq(ALe.i),1),18),Q$(Xet(Vq(ALe.i),2),18),Q$(Xet(Vq(ALe.i),3),18),Q$(Xet(Vq(ALe.i),4),34),kLe=ALe.j,Q$(Xet(Vq(ALe.j),0),18),mLe=ALe.d,Q$(Xet(Vq(ALe.d),0),18),Q$(Xet(Vq(ALe.d),1),18),Q$(Xet(Vq(ALe.d),2),18),Q$(Xet(Vq(ALe.d),3),18),Q$(Xet(Vq(ALe.d),4),34),Q$(Xet(Vq(ALe.d),5),34),Q$(Xet(Vq(ALe.d),6),34),Q$(Xet(Vq(ALe.d),7),34),gLe=ALe.b,Q$(Xet(Vq(ALe.b),0),34),Q$(Xet(Vq(ALe.b),1),34),bLe=ALe.e,Q$(Xet(Vq(ALe.e),0),34),Q$(Xet(Vq(ALe.e),1),34),Q$(Xet(Vq(ALe.e),2),34),Q$(Xet(Vq(ALe.e),3),34),Q$(Xet(Vq(ALe.e),4),18),Q$(Xet(Vq(ALe.e),5),18),Q$(Xet(Vq(ALe.e),6),18),Q$(Xet(Vq(ALe.e),7),18),Q$(Xet(Vq(ALe.e),8),18),Q$(Xet(Vq(ALe.e),9),18),Q$(Xet(Vq(ALe.e),10),34),CLe=ALe.k,Q$(Xet(Vq(ALe.k),0),34),Q$(Xet(Vq(ALe.k),1),34)}function _Xt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B;for(E=new Wx,k=new Wx,p=-1,c=new Gd(t);c.a<c.c.c.length;){for((o=Q$(J1(c),128)).s=p--,u=0,v=0,a=new Gd(o.t);a.a<a.c.c.length;)v+=(r=Q$(J1(a),268)).c;for(i=new Gd(o.i);i.a<i.c.c.length;)u+=(r=Q$(J1(i),268)).c;o.n=u,o.u=v,0==v?n5(k,o,k.c.b,k.c):0==u&&n5(E,o,E.c.b,E.c)}for(B=x4(t),g=(h=t.c.length)+1,m=h-1,d=new Mm;0!=B.a.gc();){for(;0!=k.b;)EF(0!=k.b),w=Q$(Let(k,k.a.a),128),B.a.Bc(w),w.s=m--,iOt(w,E,k);for(;0!=E.b;)EF(0!=E.b),C=Q$(Let(E,E.a.a),128),B.a.Bc(C),C.s=g++,iOt(C,E,k);for(A=RWt,l=B.a.ec().Kc();l.Ob();)(b=(o=Q$(l.Pb(),128)).u-o.n)>=A&&(b>A&&(d.c=O8(Lte,$Vt,1,0,5,1),A=b),d.c[d.c.length]=o);0!=d.c.length&&(f=Q$(Oj(d,pbt(e,d.c.length)),128),B.a.Bc(f),f.s=g++,iOt(f,E,k),d.c=O8(Lte,$Vt,1,0,5,1))}for(y=t.c.length+1,s=new Gd(t);s.a<s.c.c.length;)(o=Q$(J1(s),128)).s<h&&(o.s+=y);for(x=new Gd(t);x.a<x.c.c.length;)for(n=new C2((C=Q$(J1(x),128)).t,0);n.b<n.d.gc();)EF(n.b<n.d.gc()),T=(r=Q$(n.d.Xb(n.c=n.b++),268)).b,C.s>T.s&&(lV(n),b9(T.i,r),r.c>0&&(r.a=T,G$(T.t,r),r.b=C,G$(C.i,r)))}function SXt(t){var e,n,r,i,a;switch(e=t.c){case 11:return t.Ml();case 12:return t.Ol();case 14:return t.Ql();case 15:return t.Tl();case 16:return t.Rl();case 17:return t.Ul();case 21:return WXt(t),dVt(),dVt(),oDe;case 10:switch(t.a){case 65:return t.yl();case 90:return t.Dl();case 122:return t.Kl();case 98:return t.El();case 66:return t.zl();case 60:return t.Jl();case 62:return t.Hl()}}switch(a=yXt(t),e=t.c){case 3:return t.Zl(a);case 4:return t.Xl(a);case 5:return t.Yl(a);case 0:if(123==t.a&&t.d<t.j){if(i=t.d,r=0,n=-1,!((e=lW(t.i,i++))>=48&&e<=57))throw Um(new iw(yVt((aM(),G8t))));for(r=e-48;i<t.j&&(e=lW(t.i,i++))>=48&&e<=57;)if((r=10*r+e-48)<0)throw Um(new iw(yVt((aM(),q8t))));if(n=r,44==e){if(i>=t.j)throw Um(new iw(yVt((aM(),V8t))));if((e=lW(t.i,i++))>=48&&e<=57){for(n=e-48;i<t.j&&(e=lW(t.i,i++))>=48&&e<=57;)if((n=10*n+e-48)<0)throw Um(new iw(yVt((aM(),q8t))));if(r>n)throw Um(new iw(yVt((aM(),W8t))))}else n=-1}if(125!=e)throw Um(new iw(yVt((aM(),X8t))));t.sl(i)?(dVt(),dVt(),a=new c4(9,a),t.d=i+1):(dVt(),dVt(),a=new c4(3,a),t.d=i),a.dm(r),a.cm(n),WXt(t)}}return a}function LXt(t,e,n,r,i){var a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E;for(A=new q6(e.b),b=new q6(e.b),f=new q6(e.b),k=new q6(e.b),g=new q6(e.b),w=cmt(e,0);w.b!=w.d.c;)for(s=new Gd((v=Q$(h3(w),11)).g);s.a<s.c.c.length;)if((a=Q$(J1(s),17)).c.i==a.d.i){if(v.j==a.d.j){k.c[k.c.length]=a;continue}if(v.j==(yGt(),sSe)&&a.d.j==xSe){g.c[g.c.length]=a;continue}}for(c=new Gd(g);c.a<c.c.c.length;)RQt(t,a=Q$(J1(c),17),n,r,(yGt(),oSe));for(o=new Gd(k);o.a<o.c.c.length;)a=Q$(J1(o),17),Qf(C=new Ibt(t),(oTt(),Bse)),lct(C,($Xt(),tme),(WCt(),z_e)),lct(C,(lVt(),dfe),a),lct(x=new BTt,dfe,a.d),H_t(x,(yGt(),TSe)),TZ(x,C),lct(E=new BTt,dfe,a.c),H_t(E,oSe),TZ(E,C),lct(a.c,wfe,C),lct(a.d,wfe,C),xZ(a,null),CZ(a,null),n.c[n.c.length]=C,lct(C,Qhe,nft(2));for(y=cmt(e,0);y.b!=y.d.c;)l=(v=Q$(h3(y),11)).e.c.length>0,p=v.g.c.length>0,l&&p?f.c[f.c.length]=v:l?A.c[A.c.length]=v:p&&(b.c[b.c.length]=v);for(d=new Gd(A);d.a<d.c.c.length;)G$(i,$$t(t,Q$(J1(d),11),null,n));for(m=new Gd(b);m.a<m.c.c.length;)G$(i,$$t(t,null,Q$(J1(m),11),n));for(h=new Gd(f);h.a<h.c.c.length;)G$(i,$$t(t,u=Q$(J1(h),11),u,n))}function IXt(t){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C;for(g=new O_(Nqt,Nqt),n=new O_(Pqt,Pqt),w=new Gd(t);w.a<w.c.c.length;)y=Q$(J1(w),8),g.a=e.Math.min(g.a,y.a),g.b=e.Math.min(g.b,y.b),n.a=e.Math.max(n.a,y.a),n.b=e.Math.max(n.b,y.b);for(l=new O_(n.a-g.a,n.b-g.b),u=new JUt(new O_(g.a-50,g.b-l.a-50),new O_(g.a-50,n.b+l.a+50),new O_(n.a+l.b/2+50,g.b+l.b/2)),v=new Fb,a=new Mm,r=new Mm,v.a.zc(u,v),C=new Gd(t);C.a<C.c.c.length;){for(k=Q$(J1(C),8),a.c=O8(Lte,$Vt,1,0,5,1),b=v.a.ec().Kc();b.Ob();)G8((p=Q$(b.Pb(),308)).d,p.a),_dt(G8(p.d,k),G8(p.d,p.a))<0&&(a.c[a.c.length]=p);for(r.c=O8(Lte,$Vt,1,0,5,1),m=new Gd(a);m.a<m.c.c.length;)for(d=new Gd((p=Q$(J1(m),308)).e);d.a<d.c.c.length;){for(h=Q$(J1(d),168),o=!0,c=new Gd(a);c.a<c.c.c.length;)(s=Q$(J1(c),308))!=p&&(rW(h,Oj(s.e,0))||rW(h,Oj(s.e,1))||rW(h,Oj(s.e,2)))&&(o=!1);o&&(r.c[r.c.length]=h)}for(sEt(v,a),t5(v,new ft),f=new Gd(r);f.a<f.c.c.length;)kG(v,new JUt(k,(h=Q$(J1(f),168)).a,h.b))}for(t5(v,new yA(A=new Fb)),i=A.a.ec().Kc();i.Ob();)(N9(u,(h=Q$(i.Pb(),168)).a)||N9(u,h.b))&&i.Qb();return t5(A,new dt),A}function MXt(t){var e,n,r;switch(n=Q$(bEt(t,(lVt(),Yhe)),21),e=vI(Moe),Q$(bEt(t,($Xt(),spe)),334)==(oht(),g_e)&&Yat(e,Ooe),$y(kN(bEt(t,ape)))?dj(e,(vEt(),Foe),(hVt(),Uce)):dj(e,(vEt(),Poe),(hVt(),Uce)),null!=bEt(t,(T6(),kEe))&&Yat(e,Doe),($y(kN(bEt(t,Ape)))||$y(kN(bEt(t,ope))))&&GK(e,(vEt(),Qoe),(hVt(),tce)),Q$(bEt(t,Kge),103).g){case 2:case 3:case 4:GK(dj(e,(vEt(),Foe),(hVt(),nce)),Qoe,ece)}switch(n.Hc((fNt(),che))&&GK(dj(dj(e,(vEt(),Foe),(hVt(),Zse)),Roe,Yse),Qoe,Jse),HS(bEt(t,xpe))!==HS((cDt(),Bbe))&&dj(e,(vEt(),Poe),(hVt(),Mce)),n.Hc(ghe)&&(dj(e,(vEt(),Foe),(hVt(),Rce)),dj(e,Noe,Nce),dj(e,Poe,Pce)),HS(bEt(t,Ege))!==HS((YEt(),rhe))&&HS(bEt(t,Yge))!==HS((xdt(),WBe))&&GK(e,(vEt(),Qoe),(hVt(),gce)),$y(kN(bEt(t,lpe)))&&dj(e,(vEt(),Poe),(hVt(),Ace)),$y(kN(bEt(t,Uge)))&&dj(e,(vEt(),Poe),(hVt(),Gce)),POt(t)&&(r=(HS(bEt(t,spe))===HS(g_e)?Q$(bEt(t,Fge),292):Q$(bEt(t,Nge),292))==(Pot(),yhe)?(hVt(),Fce):(hVt(),Wce),dj(e,(vEt(),Roe),r)),Q$(bEt(t,jme),377).g){case 1:dj(e,(vEt(),Roe),(hVt(),Xce));break;case 2:GK(dj(dj(e,(vEt(),Poe),(hVt(),Xse)),Roe,Vse),Qoe,Wse)}return HS(bEt(t,Ige))!==HS((bct(),Mbe))&&dj(e,(vEt(),Poe),(hVt(),Vce)),e}function OXt(t){ME(t,new xxt(pk(fk(gk(Ak(new ps,I4t),"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 ts))),a2(t,I4t,VJt,1.3),a2(t,I4t,L4t,bmt(ACe)),a2(t,I4t,WJt,BCe),a2(t,I4t,mZt,15),a2(t,I4t,o3t,bmt(hCe)),a2(t,I4t,TZt,bmt(yCe)),a2(t,I4t,UZt,bmt(wCe)),a2(t,I4t,EZt,bmt(kCe)),a2(t,I4t,BZt,bmt(vCe)),a2(t,I4t,xZt,bmt(CCe)),a2(t,I4t,_Zt,bmt(_Ce)),a2(t,I4t,k4t,bmt(ECe)),a2(t,I4t,C4t,bmt(bCe)),a2(t,I4t,T4t,bmt(xCe)),a2(t,I4t,B4t,bmt(SCe)),a2(t,I4t,_4t,bmt(gCe)),a2(t,I4t,wZt,bmt(pCe)),a2(t,I4t,b3t,bmt(mCe)),a2(t,I4t,E4t,bmt(dCe)),a2(t,I4t,x4t,bmt(fCe)),a2(t,I4t,S4t,bmt(ICe))}function DXt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g;if(null==n)return null;if(t.a!=e.Aj())throw Um(new Py(A6t+e.ne()+g6t));if(rO(e,457)){if(!(g=ENt(Q$(e,671),n)))throw Um(new Py(p6t+n+"' is not a valid enumerator of '"+e.ne()+"'"));return g}switch(Bht((_Bt(),qMe),e).cl()){case 2:n=Q$t(n,!1);break;case 3:n=Q$t(n,!0)}if(r=Bht(qMe,e).$k())return r.Aj().Nh().Kh(r,n);if(h=Bht(qMe,e).al()){for(g=new Mm,l=0,u=(c=vlt(n)).length;l<u;++l)s=c[l],G$(g,h.Aj().Nh().Kh(h,s));return g}if(!(A=Bht(qMe,e).bl()).dc()){for(d=A.Kc();d.Ob();){f=Q$(d.Pb(),148);try{if(null!=(g=f.Aj().Nh().Kh(f,n)))return g}catch(t){if(!rO(t=hst(t),60))throw Um(t)}}throw Um(new Py(p6t+n+"' does not match any member types of the union datatype '"+e.ne()+"'"))}if(Q$(e,834).Fj(),!(i=Dht(e.Bj())))return null;if(i==Eee){a=0;try{a=hQt(n,RWt,FVt)&WWt}catch(t){if(!rO(t=hst(t),127))throw Um(t);a=X9(n)[0]}return ust(a)}if(i==bee){for(o=0;o<BLe.length;++o)try{return QE(BLe[o],n)}catch(t){if(!rO(t=hst(t),32))throw Um(t)}throw Um(new Py(p6t+n+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw Um(new Py(p6t+n+"' is invalid. "))}function FXt(t,e){var n,r,i,a,o,s,c,l;if(n=0,o=0,a=e.length,s=null,l=new Bw,o<a&&(h1(o,e.length),43==e.charCodeAt(o))&&(++n,++o<a&&(h1(o,e.length),43==e.charCodeAt(o)||(h1(o,e.length),45==e.charCodeAt(o)))))throw Um(new Cw(Fqt+e+'"'));for(;o<a&&(h1(o,e.length),46!=e.charCodeAt(o))&&(h1(o,e.length),101!=e.charCodeAt(o))&&(h1(o,e.length),69!=e.charCodeAt(o));)++o;if(l.a+=""+lF(null==e?KVt:(vV(e),e),n,o),o<a&&(h1(o,e.length),46==e.charCodeAt(o))){for(n=++o;o<a&&(h1(o,e.length),101!=e.charCodeAt(o))&&(h1(o,e.length),69!=e.charCodeAt(o));)++o;t.e=o-n,l.a+=""+lF(null==e?KVt:(vV(e),e),n,o)}else t.e=0;if(o<a&&(h1(o,e.length),101==e.charCodeAt(o)||(h1(o,e.length),69==e.charCodeAt(o)))&&(n=++o,o<a&&(h1(o,e.length),43==e.charCodeAt(o))&&++o<a&&(h1(o,e.length),45!=e.charCodeAt(o))&&++n,s=e.substr(n,a-n),t.e=t.e-hQt(s,RWt,FVt),t.e!=TJ(t.e)))throw Um(new Cw("Scale out of range."));if((c=l.a).length<16){if(t.f=(null==Vee&&(Vee=new RegExp("^[+-]?\\d*$","i")),Vee.test(c)?parseInt(c,10):NaN),isNaN(t.f))throw Um(new Cw(Fqt+e+'"'));t.a=aSt(t.f)}else ugt(t,new LI(c));for(t.d=l.a.length,i=0;i<l.a.length&&(45==(r=lW(l.a,i))||48==r);++i)--t.d;0==t.d&&(t.d=1)}function NXt(){NXt=L,YSt(lse=new gJ,(yGt(),fSe),pSe),YSt(lse,CSe,pSe),YSt(lse,CSe,vSe),YSt(lse,cSe,gSe),YSt(lse,cSe,pSe),YSt(lse,dSe,pSe),YSt(lse,dSe,mSe),YSt(lse,wSe,uSe),YSt(lse,wSe,pSe),YSt(lse,bSe,hSe),YSt(lse,bSe,pSe),YSt(lse,bSe,mSe),YSt(lse,bSe,uSe),YSt(lse,hSe,bSe),YSt(lse,hSe,vSe),YSt(lse,hSe,gSe),YSt(lse,hSe,pSe),YSt(lse,ySe,ySe),YSt(lse,ySe,mSe),YSt(lse,ySe,vSe),YSt(lse,ASe,ASe),YSt(lse,ASe,mSe),YSt(lse,ASe,gSe),YSt(lse,kSe,kSe),YSt(lse,kSe,uSe),YSt(lse,kSe,vSe),YSt(lse,lSe,lSe),YSt(lse,lSe,uSe),YSt(lse,lSe,gSe),YSt(lse,mSe,dSe),YSt(lse,mSe,bSe),YSt(lse,mSe,ySe),YSt(lse,mSe,ASe),YSt(lse,mSe,pSe),YSt(lse,mSe,mSe),YSt(lse,mSe,vSe),YSt(lse,mSe,gSe),YSt(lse,uSe,wSe),YSt(lse,uSe,bSe),YSt(lse,uSe,kSe),YSt(lse,uSe,lSe),YSt(lse,uSe,uSe),YSt(lse,uSe,vSe),YSt(lse,uSe,gSe),YSt(lse,uSe,pSe),YSt(lse,vSe,CSe),YSt(lse,vSe,hSe),YSt(lse,vSe,ySe),YSt(lse,vSe,kSe),YSt(lse,vSe,mSe),YSt(lse,vSe,uSe),YSt(lse,vSe,vSe),YSt(lse,vSe,pSe),YSt(lse,gSe,cSe),YSt(lse,gSe,hSe),YSt(lse,gSe,ASe),YSt(lse,gSe,lSe),YSt(lse,gSe,mSe),YSt(lse,gSe,uSe),YSt(lse,gSe,gSe),YSt(lse,gSe,pSe),YSt(lse,pSe,fSe),YSt(lse,pSe,CSe),YSt(lse,pSe,cSe),YSt(lse,pSe,dSe),YSt(lse,pSe,wSe),YSt(lse,pSe,bSe),YSt(lse,pSe,hSe),YSt(lse,pSe,mSe),YSt(lse,pSe,uSe),YSt(lse,pSe,vSe),YSt(lse,pSe,gSe),YSt(lse,pSe,pSe)}function PXt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x;for(t.d=new O_(Nqt,Nqt),t.c=new O_(Pqt,Pqt),f=n.Kc();f.Ob();)for(v=new Gd(Q$(f.Pb(),37).a);v.a<v.c.c.length;)b=Q$(J1(v),10),t.d.a=e.Math.min(t.d.a,b.n.a-b.d.b),t.d.b=e.Math.min(t.d.b,b.n.b-b.d.d),t.c.a=e.Math.max(t.c.a,b.n.a+b.o.a+b.d.c),t.c.b=e.Math.max(t.c.b,b.n.b+b.o.b+b.d.a);for(c=new Wb,h=n.Kc();h.Ob();)i=oXt(t,Q$(h.Pb(),37)),G$(c.a,i),i.a=i.a|!Q$(bEt(i.c,(lVt(),zhe)),21).dc();for(t.b=(Eut(),(x=new ye).f=new mrt(r),x.b=sKt(x.f,c),x),wKt((A=t.b,new zv,A)),t.e=new Hk,t.a=t.b.f.e,s=new Gd(c.a);s.a<s.c.c.length;)for(a=Q$(J1(s),841),y=SJ(t.b,a),ZPt(a.c,y.a,y.b),p=new Gd(a.c.a);p.a<p.c.c.length;)(g=Q$(J1(p),10)).k==(oTt(),Cse)&&(m=hOt(t,g.n,Q$(bEt(g,(lVt(),Vhe)),61)),KP(vL(g.n),m));for(o=new Gd(c.a);o.a<o.c.c.length;)for(u=new Gd(dft(a=Q$(J1(o),841)));u.a<u.c.c.length;)for(NF(C=new Nk((l=Q$(J1(u),17)).a),0,A1(l.c)),DH(C,A1(l.d)),d=null,k=cmt(C,0);k.b!=k.d.c;)w=Q$(h3(k),8),d?(ont(d.a,w.a)?(t.e.a=e.Math.min(t.e.a,d.a),t.a.a=e.Math.max(t.a.a,d.a)):ont(d.b,w.b)&&(t.e.b=e.Math.min(t.e.b,d.b),t.a.b=e.Math.max(t.a.b,d.b)),d=w):d=w;$F(t.e),KP(t.a,t.e)}function RXt(t){VMt(t.b,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"ConsistentTransient"])),VMt(t.a,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"WellFormedSourceURI"])),VMt(t.o,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),VMt(t.p,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),VMt(t.v,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),VMt(t.R,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"WellFormedName"])),VMt(t.T,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),VMt(t.U,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),VMt(t.W,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),VMt(t.bb,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"ValidDefaultValueLiteral"])),VMt(t.eb,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),VMt(t.H,V7t,Tst(Hw(Wee,1),cWt,2,6,[q7t,"ConsistentType ConsistentBounds ConsistentArguments"]))}function QXt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;if(!e.dc()){if(i=new vv,h=(o=n||Q$(e.Xb(0),17)).c,gFt(),(l=h.i.k)!=(oTt(),Tse)&&l!=Bse&&l!=Cse&&l!=kse)throw Um(new Py("The target node of the edge must be a normal node or a northSouthPort."));for(lL(i,Lct(Tst(Hw(EEe,1),cWt,8,0,[h.i.n,h.n,h.a]))),(yGt(),bSe).Hc(h.j)&&(d=Hy(CN(bEt(h,(lVt(),Ife)))),n5(i,new O_(Lct(Tst(Hw(EEe,1),cWt,8,0,[h.i.n,h.n,h.a])).a,d),i.c.b,i.c)),c=null,r=!1,s=e.Kc();s.Ob();)0!=(a=Q$(s.Pb(),17).a).b&&(r?(n5(i,vO(KP(c,(EF(0!=a.b),Q$(a.a.a.c,8))),.5),i.c.b,i.c),r=!1):r=!0,c=QM((EF(0!=a.b),Q$(a.c.b.c,8))),Qit(i,a),bq(a));f=o.d,bSe.Hc(f.j)&&(d=Hy(CN(bEt(f,(lVt(),Ife)))),n5(i,new O_(Lct(Tst(Hw(EEe,1),cWt,8,0,[f.i.n,f.n,f.a])).a,d),i.c.b,i.c)),lL(i,Lct(Tst(Hw(EEe,1),cWt,8,0,[f.i.n,f.n,f.a]))),t.d==(zlt(),tve)&&(EF(0!=i.b),A=Q$(i.a.a.c,8),g=Q$(Fmt(i,1),8),(p=new zZ(llt(h.j))).a*=5,p.b*=5,m=zP(new O_(g.a,g.b),A),KP(b=new O_(eZ(p.a,m.a),eZ(p.b,m.b)),A),JG(cmt(i,1),b),EF(0!=i.b),v=Q$(i.c.b.c,8),y=Q$(Fmt(i,i.b-2),8),(p=new zZ(llt(f.j))).a*=5,p.b*=5,m=zP(new O_(y.a,y.b),v),KP(w=new O_(eZ(p.a,m.a),eZ(p.b,m.b)),v),NF(i,i.b-1,w)),u=new s$t(i),Qit(o.a,Qbt(u))}}function UXt(t,n,r,i){var a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S,L,I,M,O,D,F;if(y=(b=Q$(Xet((!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),0),82)).Dg(),w=b.Eg(),v=b.Cg()/2,A=b.Bg()/2,rO(b,186)&&(y+=GJ(m=Q$(b,118)).i,y+=GJ(m).i),y+=v,w+=A,_=(T=Q$(Xet((!t.b&&(t.b=new cR(FLe,t,4,7)),t.b),0),82)).Dg(),S=T.Eg(),B=T.Cg()/2,k=T.Bg()/2,rO(T,186)&&(_+=GJ(E=Q$(T,118)).i,_+=GJ(E).i),_+=B,S+=k,0==(!t.a&&(t.a=new tG(PLe,t,6,6)),t.a).i)Zk(),c=new oc,l7((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a),c);else if((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a).i>1)for(d=new rF((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a));d.e!=d.i.gc();)Wkt(d);for(g=_,_>y+v?g=y+v:_<y-v&&(g=y-v),p=S,S>w+A?p=w+A:S<w-A&&(p=w-A),g>y-v&&g<y+v&&p>w-A&&p<w+A&&(g=y+v),_nt(s=Q$(Xet((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a),0),202),g),Lnt(s,p),C=y,y>_+B?C=_+B:y<_-B&&(C=_-B),x=w,w>S+k?x=S+k:w<S-k&&(x=S-k),C>_-B&&C<_+B&&x>S-k&&x<S+k&&(x=S+k),Cnt(s,C),Snt(s,x),cjt((!s.a&&(s.a=new LO(MLe,s,5)),s.a)),o=pbt(n,5),b==T&&++o,I=C-g,D=x-p,u=.20000000298023224*e.Math.sqrt(I*I+D*D),M=I/(o+1),F=D/(o+1),L=g,O=p,l=0;l<o;l++)O+=F,(h=(L+=M)+$Mt(n,24)*oYt*u-u/2)<0?h=1:h>r&&(h=r-1),(f=O+$Mt(n,24)*oYt*u-u/2)<0?f=1:f>i&&(f=i-1),Zk(),wnt(a=new ac,h),knt(a,f),l7((!s.a&&(s.a=new LO(MLe,s,5)),s.a),a)}function $Xt(){$Xt=L,cVt(),gme=yBe,pme=wBe,mme=kBe,bme=CBe,yme=xBe,wme=EBe,xme=BBe,Tme=SBe,Bme=LBe,Eme=_Be,_me=IBe,Lme=MBe,Mme=FBe,Cme=TBe,uVt(),Ame=PAe,vme=RAe,kme=QAe,Sme=UAe,cme=new zI(gBe,nft(0)),lme=DAe,ume=FAe,hme=NAe,jme=uge,Fme=jAe,Nme=GAe,Qme=tge,Pme=WAe,Rme=YAe,zme=gge,Kme=fge,$me=oge,Ume=ige,Hme=cge,Fpe=EAe,Npe=TAe,npe=Nde,rpe=Qde,Kpe=new GI(12),jpe=new zI(zTe,Kpe),xdt(),Yge=new zI(pTe,Jge=VBe),Zpe=new zI(iBe,0),fme=new zI(pBe,nft(1)),wge=new zI(rTe,AZt),Hpe=jTe,tme=aBe,ame=fBe,jge=uTe,vge=eTe,spe=wTe,dme=new zI(vBe,(cD(),!0)),fpe=xTe,dpe=ETe,Rpe=NTe,$pe=$Te,Qpe=RTe,Qht(),Kge=new zI(hTe,Gge=QBe),Lpe=DTe,Spe=MTe,rme=lBe,nme=cBe,ime=hBe,imt(),new zI(YTe,Xpe=$_e),Wpe=tBe,qpe=eBe,Ype=nBe,Vpe=ZTe,Dme=HAe,Epe=uAe,xpe=cAe,Ome=$Ae,vpe=tAe,Hge=kde,$ge=yde,Oge=ade,Dge=ode,Nge=hde,Fge=sde,Uge=bde,Bpe=fAe,_pe=dAe,gpe=Xde,Ppe=LAe,Mpe=mAe,ape=Hde,Dpe=CAe,tpe=Mde,epe=Dde,Mge=cTe,Ipe=AAe,Ege=Vfe,xge=Gfe,Cge=zfe,lpe=zde,cpe=Kde,upe=Gde,Upe=QTe,ppe=_Te,ipe=bTe,Wge=ATe,Vge=dTe,Pge=Ade,eme=sBe,kge=sTe,hpe=CTe,Jpe=rBe,zpe=XTe,Gpe=WTe,wpe=rAe,kpe=aAe,sme=ABe,yge=Kfe,Cpe=sAe,qge=_de,Xge=Tde,Tpe=LTe,mpe=Yde,Ope=yAe,Ime=OBe,zge=xde,ome=MAe,Zge=Lde,bpe=Zde,Rge=pde,Ape=BTe,ype=nAe,Qge=mde,Ige=rde,Sge=tde,Bge=Jfe,_ge=Zfe,Lge=nde,Tge=qfe,ope=jde}function HXt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_;if(oHt(),x=t.e,A=t.d,i=t.a,0==x)switch(e){case 0:return"0";case 1:return Xqt;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 Tw).a+=e<0?"0E+":"0E",k.a+=-e,k.a}if(y=O8(BDe,XWt,25,1+(v=10*A+1+7),15,1),n=v,1==A)if((s=i[0])<0){_=t0(s,zqt);do{g=_,_=Skt(_,10),y[--n]=48+dK(ndt(g,idt(_,10)))&WWt}while(0!=Vut(_,0))}else{_=s;do{g=_,_=_/10|0,y[--n]=g-10*_+48&WWt}while(0!=_)}else{aHt(i,0,T=O8(_De,lqt,25,A,15,1),0,B=A);t:for(;;){for(C=0,l=B-1;l>=0;l--)m=uxt(rdt(bz(C,32),t0(T[l],zqt))),T[l]=dK(m),C=dK(vz(m,32));b=dK(C),p=n;do{y[--n]=48+b%10&WWt}while(0!=(b=b/10|0)&&0!=n);for(r=9-p+n,c=0;c<r&&n>0;c++)y[--n]=48;for(h=B-1;0==T[h];h--)if(0==h)break t;B=h+1}for(;48==y[n];)++n}if(d=x<0,o=v-n-e-1,0==e)return d&&(y[--n]=45),Ugt(y,n,v-n);if(e>0&&o>=-6){if(o>=0){for(u=n+o,f=v-1;f>=u;f--)y[f+1]=y[f];return y[++u]=46,d&&(y[--n]=45),Ugt(y,n,v-n+1)}for(h=2;h<1-o;h++)y[--n]=48;return y[--n]=46,y[--n]=48,d&&(y[--n]=45),Ugt(y,n,v-n)}return E=n+1,a=v,w=new Bw,d&&(w.a+="-"),a-E>=1?(OX(w,y[n]),w.a+=".",w.a+=Ugt(y,n+1,v-n-1)):w.a+=Ugt(y,n,v-n),w.a+="E",o>0&&(w.a+="+"),w.a+=""+o,w.a}function jXt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;switch(t.c=n,t.g=new Om,HE(),tAt(new EA(new Dy(t.c))),b=xN(JIt(t.c,(xEt(),dxe))),s=Q$(JIt(t.c,gxe),316),y=Q$(JIt(t.c,pxe),429),a=Q$(JIt(t.c,cxe),482),v=Q$(JIt(t.c,Axe),430),t.j=Hy(CN(JIt(t.c,mxe))),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 Um(new Py(O4t+(null!=s.f?s.f:""+s.g)))}if(t.d=new DJ(o,y,a),lct(t.d,(Gat(),Vie),kN(JIt(t.c,uxe))),t.d.c=$y(kN(JIt(t.c,lxe))),0==Wq(t.c).i)return t.d;for(u=new SO(Wq(t.c));u.e!=u.i.gc();){for(f=(l=Q$(ymt(u),33)).g/2,h=l.f/2,w=new O_(l.i+f,l.j+h);cG(t.g,w);)PF(w,(e.Math.random()-.5)*hZt,(e.Math.random()-.5)*hZt);A=Q$(JIt(l,(cVt(),LTe)),142),g=new SZ(w,new KW(w.a-f-t.j/2-A.b,w.b-h-t.j/2-A.d,l.g+t.j+(A.b+A.c),l.f+t.j+(A.d+A.a))),G$(t.d.i,g),XV(t.g,w,new nS(g,l))}switch(v.g){case 0:if(null==b)t.d.d=Q$(Oj(t.d.i,0),65);else for(m=new Gd(t.d.i);m.a<m.c.c.length;)g=Q$(J1(m),65),null!=(d=Q$(Q$(FX(t.g,g.a),46).b,33).zg())&&mR(d,b)&&(t.d.d=g);break;case 1:for((r=new O_(t.c.g,t.c.f)).a*=.5,r.b*=.5,PF(r,t.c.i,t.c.j),i=Nqt,p=new Gd(t.d.i);p.a<p.c.c.length;)(c=G8((g=Q$(J1(p),65)).a,r))<i&&(i=c,t.d.d=g);break;default:throw Um(new Py(O4t+(null!=v.f?v.f:""+v.g)))}return t.d}function KXt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C;for(k=Q$(Xet((!t.a&&(t.a=new tG(PLe,t,6,6)),t.a),0),202),h=new vv,w=new Om,C=tUt(k),w_t(w.f,k,C),d=new Om,i=new Wx,g=MG(Xnt(Tst(Hw(Dte,1),$Vt,20,0,[(!n.d&&(n.d=new cR(NLe,n,8,5)),n.d),(!n.e&&(n.e=new cR(NLe,n,7,4)),n.e)])));AIt(g);){if(A=Q$(K5(g),79),1!=(!t.a&&(t.a=new tG(PLe,t,6,6)),t.a).i)throw Um(new Py(U5t+(!t.a&&(t.a=new tG(PLe,t,6,6)),t.a).i));A!=t&&(n5(i,m=Q$(Xet((!A.a&&(A.a=new tG(PLe,A,6,6)),A.a),0),202),i.c.b,i.c),(p=Q$($S(SY(w.f,m)),12))||(p=tUt(m),w_t(w.f,m,p)),f=r?zP(new fI(Q$(Oj(C,C.c.length-1),8)),Q$(Oj(p,p.c.length-1),8)):zP(new fI((u1(0,C.c.length),Q$(C.c[0],8))),(u1(0,p.c.length),Q$(p.c[0],8))),w_t(d.f,m,f))}if(0!=i.b)for(b=Q$(Oj(C,r?C.c.length-1:0),8),u=1;u<C.c.length;u++){for(v=Q$(Oj(C,r?C.c.length-1-u:u),8),a=cmt(i,0);a.b!=a.d.c;)m=Q$(h3(a),202),(p=Q$($S(SY(w.f,m)),12)).c.length<=u?bet(a):(y=KP(new fI(Q$(Oj(p,r?p.c.length-1-u:u),8)),Q$($S(SY(d.f,m)),8)),v.a==y.a&&v.b==y.b||(o=v.a-b.a,c=v.b-b.b,(s=y.a-b.a)*c==(l=y.b-b.b)*o&&(0==o||isNaN(o)?o:o<0?-1:1)==(0==s||isNaN(s)?s:s<0?-1:1)&&(0==c||isNaN(c)?c:c<0?-1:1)==(0==l||isNaN(l)?l:l<0?-1:1)?(e.Math.abs(o)<e.Math.abs(s)||e.Math.abs(c)<e.Math.abs(l))&&n5(h,v,h.c.b,h.c):u>1&&n5(h,b,h.c.b,h.c),bet(a)));b=v}return h}function zXt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S,L,I;for(Sxt(n,"Greedy cycle removal",1),I=(v=e.a).c.length,t.a=O8(_De,lqt,25,I,15,1),t.c=O8(_De,lqt,25,I,15,1),t.b=O8(_De,lqt,25,I,15,1),l=0,m=new Gd(v);m.a<m.c.c.length;){for((g=Q$(J1(m),10)).p=l,x=new Gd(g.j);x.a<x.c.c.length;){for(s=new Gd((w=Q$(J1(x),11)).e);s.a<s.c.c.length;)(r=Q$(J1(s),17)).c.i!=g&&(T=Q$(bEt(r,($Xt(),lme)),19).a,t.a[l]+=T>0?T+1:1);for(o=new Gd(w.g);o.a<o.c.c.length;)(r=Q$(J1(o),17)).d.i!=g&&(T=Q$(bEt(r,($Xt(),lme)),19).a,t.c[l]+=T>0?T+1:1)}0==t.c[l]?DH(t.e,g):0==t.a[l]&&DH(t.f,g),++l}for(A=-1,d=1,h=new Mm,t.d=Q$(bEt(e,(lVt(),xfe)),230);I>0;){for(;0!=t.e.b;)_=Q$(dH(t.e),10),t.b[_.p]=A--,WRt(t,_),--I;for(;0!=t.f.b;)S=Q$(dH(t.f),10),t.b[S.p]=d++,WRt(t,S),--I;if(I>0){for(f=RWt,b=new Gd(v);b.a<b.c.c.length;)g=Q$(J1(b),10),0==t.b[g.p]&&(y=t.c[g.p]-t.a[g.p])>=f&&(y>f&&(h.c=O8(Lte,$Vt,1,0,5,1),f=y),h.c[h.c.length]=g);u=t.Zf(h),t.b[u.p]=d++,WRt(t,u),--I}}for(B=v.c.length+1,l=0;l<v.c.length;l++)t.b[l]<0&&(t.b[l]+=B);for(p=new Gd(v);p.a<p.c.c.length;)for(C=0,E=(k=B2((g=Q$(J1(p),10)).j)).length;C<E;++C)for(a=0,c=(i=Y0((w=k[C]).g)).length;a<c;++a)L=(r=i[a]).d.i.p,t.b[g.p]>t.b[L]&&(t$t(r,!0),lct(e,$he,(cD(),!0)));t.a=null,t.c=null,t.b=null,bq(t.f),bq(t.e),$Tt(n)}function GXt(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m;for(r=new Mm,s=new Mm,p=e/2,d=t.gc(),i=Q$(t.Xb(0),8),m=Q$(t.Xb(1),8),G$(r,(u1(0,(A=WIt(i.a,i.b,m.a,m.b,p)).c.length),Q$(A.c[0],8))),G$(s,(u1(1,A.c.length),Q$(A.c[1],8))),l=2;l<d;l++)g=i,i=m,m=Q$(t.Xb(l),8),G$(r,(u1(1,(A=WIt(i.a,i.b,g.a,g.b,p)).c.length),Q$(A.c[1],8))),G$(s,(u1(0,A.c.length),Q$(A.c[0],8))),G$(r,(u1(0,(A=WIt(i.a,i.b,m.a,m.b,p)).c.length),Q$(A.c[0],8))),G$(s,(u1(1,A.c.length),Q$(A.c[1],8)));for(G$(r,(u1(1,(A=WIt(m.a,m.b,i.a,i.b,p)).c.length),Q$(A.c[1],8))),G$(s,(u1(0,A.c.length),Q$(A.c[0],8))),n=new vv,o=new Mm,DH(n,(u1(0,r.c.length),Q$(r.c[0],8))),u=1;u<r.c.length-2;u+=2)u1(u,r.c.length),a=Q$(r.c[u],8),f=HBt((u1(u-1,r.c.length),Q$(r.c[u-1],8)),a,(u1(u+1,r.c.length),Q$(r.c[u+1],8)),(u1(u+2,r.c.length),Q$(r.c[u+2],8))),isFinite(f.a)&&isFinite(f.b)?n5(n,f,n.c.b,n.c):n5(n,a,n.c.b,n.c);for(DH(n,Q$(Oj(r,r.c.length-1),8)),G$(o,(u1(0,s.c.length),Q$(s.c[0],8))),h=1;h<s.c.length-2;h+=2)u1(h,s.c.length),a=Q$(s.c[h],8),f=HBt((u1(h-1,s.c.length),Q$(s.c[h-1],8)),a,(u1(h+1,s.c.length),Q$(s.c[h+1],8)),(u1(h+2,s.c.length),Q$(s.c[h+2],8))),isFinite(f.a)&&isFinite(f.b)?o.c[o.c.length]=f:o.c[o.c.length]=a;for(G$(o,Q$(Oj(s,s.c.length-1),8)),c=o.c.length-1;c>=0;c--)DH(n,(u1(c,o.c.length),Q$(o.c[c],8)));return n}function XXt(t){var e,n,r,i,a,o,s,c,l,u,h,f,d;if(o=!0,h=null,r=null,i=null,e=!1,d=bIe,l=null,a=null,(c=Vpt(t,s=0,_Ie,SIe))<t.length&&(h1(c,t.length),58==t.charCodeAt(c))&&(h=t.substr(s,c-s),s=c+1),n=null!=h&&Ox(vIe,h.toLowerCase())){if(-1==(c=t.lastIndexOf("!/")))throw Um(new Py("no archive separator"));o=!0,r=lF(t,s,++c),s=c}else s>=0&&mR(t.substr(s,2),"//")?(c=Vpt(t,s+=2,LIe,IIe),r=t.substr(s,c-s),s=c):null==h||s!=t.length&&(h1(s,t.length),47==t.charCodeAt(s))||(o=!1,-1==(c=bD(t,qxt(35),s))&&(c=t.length),r=t.substr(s,c-s),s=c);if(!n&&s<t.length&&(h1(s,t.length),47==t.charCodeAt(s))&&(c=Vpt(t,s+1,LIe,IIe),(u=t.substr(s+1,c-(s+1))).length>0&&58==lW(u,u.length-1)&&(i=u,s=c)),s<t.length&&(h1(s,t.length),47==t.charCodeAt(s))&&(++s,e=!0),s<t.length&&(h1(s,t.length),63!=t.charCodeAt(s))&&(h1(s,t.length),35!=t.charCodeAt(s))){for(f=new Mm;s<t.length&&(h1(s,t.length),63!=t.charCodeAt(s))&&(h1(s,t.length),35!=t.charCodeAt(s));)c=Vpt(t,s,LIe,IIe),G$(f,t.substr(s,c-s)),(s=c)<t.length&&(h1(s,t.length),47==t.charCodeAt(s))&&(Wut(t,++s)||(f.c[f.c.length]=""));Wpt(f,d=O8(Wee,cWt,2,f.c.length,6,1))}return s<t.length&&(h1(s,t.length),63==t.charCodeAt(s))&&(-1==(c=uF(t,35,++s))&&(c=t.length),l=t.substr(s,c-s),s=c),s<t.length&&(a=JS(t,++s)),dKt(o,h,r,i,d,l),new rPt(o,h,r,i,e,d,l,a)}function VXt(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S,L,I,M;for(L=new Mm,A=new Gd(n.b);A.a<A.c.c.length;)for(w=new Gd(Q$(J1(A),29).a);w.a<w.c.c.length;){for((y=Q$(J1(w),10)).p=-1,f=RWt,x=RWt,T=new Gd(y.j);T.a<T.c.c.length;){for(a=new Gd((E=Q$(J1(T),11)).e);a.a<a.c.c.length;)r=Q$(J1(a),17),B=Q$(bEt(r,($Xt(),hme)),19).a,f=e.Math.max(f,B);for(i=new Gd(E.g);i.a<i.c.c.length;)r=Q$(J1(i),17),B=Q$(bEt(r,($Xt(),hme)),19).a,x=e.Math.max(x,B)}lct(y,zve,nft(f)),lct(y,Gve,nft(x))}for(m=0,d=new Gd(n.b);d.a<d.c.c.length;)for(w=new Gd(Q$(J1(d),29).a);w.a<w.c.c.length;)(y=Q$(J1(w),10)).p<0&&((S=new nv).b=m++,wPt(t,y,S),L.c[L.c.length]=S);for(C=sF(L.c.length),h=sF(L.c.length),s=0;s<L.c.length;s++)G$(C,new Mm),G$(h,nft(0));for(mzt(n,L,C,h),I=Q$(Wpt(L,O8(Wve,S3t,257,L.c.length,0,1)),840),k=Q$(Wpt(C,O8(Nte,ZJt,15,C.c.length,0,1)),192),u=O8(_De,lqt,25,h.c.length,15,1),c=0;c<u.length;c++)u[c]=(u1(c,h.c.length),Q$(h.c[c],19)).a;for(b=0,v=new Mm,l=0;l<I.length;l++)0==u[l]&&G$(v,I[l]);for(p=O8(_De,lqt,25,I.length,15,1);0!=v.c.length;)for(p[(S=Q$(s6(v,0),257)).b]=b++;!k[S.b].dc();)--u[(M=Q$(k[S.b].$c(0),257)).b],0==u[M.b]&&(v.c[v.c.length]=M);for(t.a=O8(Wve,S3t,257,I.length,0,1),o=0;o<I.length;o++)for(g=I[o],_=p[o],t.a[_]=g,g.b=_,w=new Gd(g.e);w.a<w.c.c.length;)(y=Q$(J1(w),10)).p=_;return t.a}function WXt(t){var e,n,r;if(t.d>=t.j)return t.a=-1,void(t.c=1);if(e=lW(t.i,t.d++),t.a=e,1!=t.b){switch(e){case 124:r=2;break;case 42:r=3;break;case 43:r=4;break;case 63:r=5;break;case 41:r=7;break;case 46:r=8;break;case 91:r=9;break;case 94:r=11;break;case 36:r=12;break;case 40:if(r=6,t.d>=t.j)break;if(63!=lW(t.i,t.d))break;if(++t.d>=t.j)throw Um(new iw(yVt((aM(),p8t))));switch(e=lW(t.i,t.d++)){case 58:r=13;break;case 61:r=14;break;case 33:r=15;break;case 91:r=19;break;case 62:r=18;break;case 60:if(t.d>=t.j)throw Um(new iw(yVt((aM(),p8t))));if(61==(e=lW(t.i,t.d++)))r=16;else{if(33!=e)throw Um(new iw(yVt((aM(),m8t))));r=17}break;case 35:for(;t.d<t.j&&41!=(e=lW(t.i,t.d++)););if(41!=e)throw Um(new iw(yVt((aM(),b8t))));r=21;break;default:if(45==e||97<=e&&e<=122||65<=e&&e<=90){--t.d,r=22;break}if(40==e){r=23;break}throw Um(new iw(yVt((aM(),p8t))))}break;case 92:if(r=10,t.d>=t.j)throw Um(new iw(yVt((aM(),g8t))));t.a=lW(t.i,t.d++);break;default:r=0}t.c=r}else{switch(e){case 92:if(r=10,t.d>=t.j)throw Um(new iw(yVt((aM(),g8t))));t.a=lW(t.i,t.d++);break;case 45:!(512&~t.e)&&t.d<t.j&&91==lW(t.i,t.d)?(++t.d,r=24):r=0;break;case 91:if(512&~t.e&&t.d<t.j&&58==lW(t.i,t.d)){++t.d,r=20;break}default:(64512&e)==$qt&&t.d<t.j&&56320==(64512&(n=lW(t.i,t.d)))&&(t.a=Uqt+(e-$qt<<10)+n-56320,++t.d),r=0}t.c=r}}function qXt(t){var e,n,r,i,a,o,s,c,l,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B;if((k=Q$(bEt(t,($Xt(),tme)),98))!=(WCt(),V_e)&&k!=W_e){for(l=new q6((hrt((d=(A=t.b).c.length)+2,OWt),Ztt(rdt(rdt(5,d+2),(d+2)/10|0)))),g=new q6((hrt(d+2,OWt),Ztt(rdt(rdt(5,d+2),(d+2)/10|0)))),G$(l,new Om),G$(l,new Om),G$(g,new Mm),G$(g,new Mm),w=new Mm,e=0;e<d;e++)for(u1(e,A.c.length),n=Q$(A.c[e],29),u1(e,l.c.length),C=Q$(l.c[e],83),p=new Om,l.c[l.c.length]=p,u1(e,g.c.length),E=Q$(g.c[e],15),b=new Mm,g.c[g.c.length]=b,i=new Gd(n.a);i.a<i.c.c.length;)if(ift(r=Q$(J1(i),10)))w.c[w.c.length]=r;else{for(c=new oz(YO(udt(r).a.Kc(),new u));AIt(c);)ift(T=(o=Q$(K5(c),17)).c.i)&&((x=Q$(C.xc(bEt(T,(lVt(),dfe))),10))||(x=sSt(t,T),C.zc(bEt(T,dfe),x),E.Fc(x)),xZ(o,Q$(Oj(x.j,1),11)));for(s=new oz(YO(hdt(r).a.Kc(),new u));AIt(s);)ift(B=(o=Q$(K5(s),17)).d.i)&&((m=Q$(FX(p,bEt(B,(lVt(),dfe))),10))||(m=sSt(t,B),XV(p,bEt(B,dfe),m),b.c[b.c.length]=m),CZ(o,Q$(Oj(m.j,0),11)))}for(h=0;h<g.c.length;h++)if(u1(h,g.c.length),!(v=Q$(g.c[h],15)).dc())for(f=null,0==h?(f=new UX(t),IZ(0,A.c.length),CT(A.c,0,f)):h==l.c.length-1?(f=new UX(t),A.c[A.c.length]=f):(u1(h-1,A.c.length),f=Q$(A.c[h-1],29)),a=v.Kc();a.Ob();)EZ(Q$(a.Pb(),10),f);for(y=new Gd(w);y.a<y.c.c.length;)EZ(Q$(J1(y),10),null);lct(t,(lVt(),Ghe),w)}}function YXt(t,e,n){var r,i,a,o,s,c,l,h,f,d,A,g,p,m,b,v,y,w,k;if(Sxt(n,"Coffman-Graham Layering",1),0!=e.a.c.length){for(k=Q$(bEt(e,($Xt(),mpe)),19).a,c=0,o=0,d=new Gd(e.a);d.a<d.c.c.length;)for((f=Q$(J1(d),10)).p=c++,a=new oz(YO(hdt(f).a.Kc(),new u));AIt(a);)(i=Q$(K5(a),17)).p=o++;for(t.d=O8(SDe,JYt,25,c,16,1),t.a=O8(SDe,JYt,25,o,16,1),t.b=O8(_De,lqt,25,c,15,1),t.e=O8(_De,lqt,25,c,15,1),t.f=O8(_De,lqt,25,c,15,1),drt(t.c),rCt(t,e),g=new zz(new Dg(t)),w=new Gd(e.a);w.a<w.c.c.length;){for(a=new oz(YO(udt(v=Q$(J1(w),10)).a.Kc(),new u));AIt(a);)i=Q$(K5(a),17),t.a[i.p]||++t.b[v.p];0==t.b[v.p]&&R8(eEt(g,v))}for(s=0;0!=g.b.c.length;)for(v=Q$(mtt(g),10),t.f[v.p]=s++,a=new oz(YO(hdt(v).a.Kc(),new u));AIt(a);)i=Q$(K5(a),17),t.a[i.p]||(m=i.d.i,--t.b[m.p],YSt(t.c,m,nft(t.f[v.p])),0==t.b[m.p]&&R8(eEt(g,m)));for(A=new zz(new Fg(t)),y=new Gd(e.a);y.a<y.c.c.length;){for(a=new oz(YO(hdt(v=Q$(J1(y),10)).a.Kc(),new u));AIt(a);)i=Q$(K5(a),17),t.a[i.p]||++t.e[v.p];0==t.e[v.p]&&R8(eEt(A,v))}for(r=n1(e,h=new Mm);0!=A.b.c.length;)for(b=Q$(mtt(A),10),(r.a.c.length>=k||!Ogt(b,r))&&(r=n1(e,h)),EZ(b,r),a=new oz(YO(udt(b).a.Kc(),new u));AIt(a);)i=Q$(K5(a),17),t.a[i.p]||(p=i.c.i,--t.e[p.p],0==t.e[p.p]&&R8(eEt(A,p)));for(l=h.c.length-1;l>=0;--l)G$(e.b,(u1(l,h.c.length),Q$(h.c[l],29)));e.a.c=O8(Lte,$Vt,1,0,5,1),$Tt(n)}else $Tt(n)}function JXt(t){var e,n,r,i,a,o,s,c;for(t.b=1,WXt(t),e=null,0==t.c&&94==t.a?(WXt(t),dVt(),dVt(),qFt(e=new C0(4),0,ote),o=new C0(4)):(dVt(),dVt(),o=new C0(4)),i=!0;1!=(c=t.c);){if(0==c&&93==t.a&&!i){e&&(XKt(e,o),o=e);break}if(n=t.a,r=!1,10==c)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:cHt(o,AQt(n)),r=!0;break;case 105:case 73:case 99:case 67:cHt(o,AQt(n)),(n=-1)<0&&(r=!0);break;case 112:case 80:if(!(s=FSt(t,n)))throw Um(new iw(yVt((aM(),S8t))));cHt(o,s),r=!0;break;default:n=HNt(t)}else if(24==c&&!i){if(e&&(XKt(e,o),o=e),XKt(o,JXt(t)),0!=t.c||93!=t.a)throw Um(new iw(yVt((aM(),O8t))));break}if(WXt(t),!r){if(0==c){if(91==n)throw Um(new iw(yVt((aM(),D8t))));if(93==n)throw Um(new iw(yVt((aM(),F8t))));if(45==n&&!i&&93!=t.a)throw Um(new iw(yVt((aM(),N8t))))}if(0!=t.c||45!=t.a||45==n&&i)qFt(o,n,n);else{if(WXt(t),1==(c=t.c))throw Um(new iw(yVt((aM(),I8t))));if(0==c&&93==t.a)qFt(o,n,n),qFt(o,45,45);else{if(0==c&&93==t.a||24==c)throw Um(new iw(yVt((aM(),N8t))));if(a=t.a,0==c){if(91==a)throw Um(new iw(yVt((aM(),D8t))));if(93==a)throw Um(new iw(yVt((aM(),F8t))));if(45==a)throw Um(new iw(yVt((aM(),N8t))))}else 10==c&&(a=HNt(t));if(WXt(t),n>a)throw Um(new iw(yVt((aM(),Q8t))));qFt(o,n,a)}}}i=!1}if(1==t.c)throw Um(new iw(yVt((aM(),I8t))));return CMt(o),HHt(o),t.b=0,WXt(t),o}function ZXt(t){VMt(t.c,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#decimal"])),VMt(t.d,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#integer"])),VMt(t.e,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#boolean"])),VMt(t.f,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"EBoolean",t8t,"EBoolean:Object"])),VMt(t.i,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#byte"])),VMt(t.g,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#hexBinary"])),VMt(t.j,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"EByte",t8t,"EByte:Object"])),VMt(t.n,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"EChar",t8t,"EChar:Object"])),VMt(t.t,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#double"])),VMt(t.u,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"EDouble",t8t,"EDouble:Object"])),VMt(t.F,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#float"])),VMt(t.G,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"EFloat",t8t,"EFloat:Object"])),VMt(t.I,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#int"])),VMt(t.J,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"EInt",t8t,"EInt:Object"])),VMt(t.N,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#long"])),VMt(t.O,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"ELong",t8t,"ELong:Object"])),VMt(t.Z,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#short"])),VMt(t.$,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"EShort",t8t,"EShort:Object"])),VMt(t._,R7t,Tst(Hw(Wee,1),cWt,2,6,[Y7t,"http://www.w3.org/2001/XMLSchema#string"]))}function tVt(t){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_;if(1==t.c.length)return u1(0,t.c.length),Q$(t.c[0],135);if(t.c.length<=0)return new E6;for(l=new Gd(t);l.a<l.c.c.length;){for(s=Q$(J1(l),135),v=0,g=FVt,p=FVt,d=RWt,A=RWt,b=cmt(s.b,0);b.b!=b.d.c;)m=Q$(h3(b),86),v+=Q$(bEt(m,(BIt(),Lwe)),19).a,g=e.Math.min(g,m.e.a),p=e.Math.min(p,m.e.b),d=e.Math.max(d,m.e.a+m.f.a),A=e.Math.max(A,m.e.b+m.f.b);lct(s,(BIt(),Lwe),nft(v)),lct(s,(Hjt(),Jye),new O_(g,p)),lct(s,Yye,new O_(d,A))}for(xq(),mM(t,new mo),Hot(w=new E6,(u1(0,t.c.length),Q$(t.c[0],94))),f=0,T=0,u=new Gd(t);u.a<u.c.c.length;)s=Q$(J1(u),135),k=zP(QM(Q$(bEt(s,(Hjt(),Yye)),8)),Q$(bEt(s,Jye),8)),f=e.Math.max(f,k.a),T+=k.a*k.b;for(f=e.Math.max(f,e.Math.sqrt(T)*Hy(CN(bEt(w,(BIt(),ywe))))),B=0,_=0,h=0,n=C=Hy(CN(bEt(w,Owe))),c=new Gd(t);c.a<c.c.c.length;)s=Q$(J1(c),135),B+(k=zP(QM(Q$(bEt(s,(Hjt(),Yye)),8)),Q$(bEt(s,Jye),8))).a>f&&(B=0,_+=h+C,h=0),kOt(w,s,B,_),n=e.Math.max(n,B+k.a),h=e.Math.max(h,k.b),B+=k.a+C;for(y=new Om,r=new Om,E=new Gd(t);E.a<E.c.c.length;)for(i=$y(kN(bEt(x=Q$(J1(E),135),(cVt(),uTe)))),o=(x.q?x.q:lne).vc().Kc();o.Ob();)cG(y,(a=Q$(o.Pb(),42)).cd())?HS(Q$(a.cd(),146).wg())!==HS(a.dd())&&(i&&cG(r,a.cd())?(Lx(),Q$(a.cd(),146).tg()):(XV(y,Q$(a.cd(),146),a.dd()),lct(w,Q$(a.cd(),146),a.dd()),i&&XV(r,Q$(a.cd(),146),a.dd()))):(XV(y,Q$(a.cd(),146),a.dd()),lct(w,Q$(a.cd(),146),a.dd()));return w}function eVt(){eVt=L,NXt(),YSt(gse=new gJ,(yGt(),dSe),fSe),YSt(gse,CSe,fSe),YSt(gse,ASe,fSe),YSt(gse,ySe,fSe),YSt(gse,vSe,fSe),YSt(gse,mSe,fSe),YSt(gse,ySe,dSe),YSt(gse,fSe,cSe),YSt(gse,dSe,cSe),YSt(gse,CSe,cSe),YSt(gse,ASe,cSe),YSt(gse,bSe,cSe),YSt(gse,ySe,cSe),YSt(gse,vSe,cSe),YSt(gse,mSe,cSe),YSt(gse,hSe,cSe),YSt(gse,fSe,wSe),YSt(gse,dSe,wSe),YSt(gse,cSe,wSe),YSt(gse,CSe,wSe),YSt(gse,ASe,wSe),YSt(gse,bSe,wSe),YSt(gse,ySe,wSe),YSt(gse,hSe,wSe),YSt(gse,kSe,wSe),YSt(gse,vSe,wSe),YSt(gse,gSe,wSe),YSt(gse,mSe,wSe),YSt(gse,dSe,CSe),YSt(gse,ASe,CSe),YSt(gse,ySe,CSe),YSt(gse,mSe,CSe),YSt(gse,dSe,ASe),YSt(gse,CSe,ASe),YSt(gse,ySe,ASe),YSt(gse,ASe,ASe),YSt(gse,vSe,ASe),YSt(gse,fSe,lSe),YSt(gse,dSe,lSe),YSt(gse,cSe,lSe),YSt(gse,wSe,lSe),YSt(gse,CSe,lSe),YSt(gse,ASe,lSe),YSt(gse,bSe,lSe),YSt(gse,ySe,lSe),YSt(gse,kSe,lSe),YSt(gse,hSe,lSe),YSt(gse,mSe,lSe),YSt(gse,vSe,lSe),YSt(gse,pSe,lSe),YSt(gse,fSe,kSe),YSt(gse,dSe,kSe),YSt(gse,cSe,kSe),YSt(gse,CSe,kSe),YSt(gse,ASe,kSe),YSt(gse,bSe,kSe),YSt(gse,ySe,kSe),YSt(gse,hSe,kSe),YSt(gse,mSe,kSe),YSt(gse,gSe,kSe),YSt(gse,pSe,kSe),YSt(gse,dSe,hSe),YSt(gse,CSe,hSe),YSt(gse,ASe,hSe),YSt(gse,ySe,hSe),YSt(gse,kSe,hSe),YSt(gse,mSe,hSe),YSt(gse,vSe,hSe),YSt(gse,fSe,uSe),YSt(gse,dSe,uSe),YSt(gse,cSe,uSe),YSt(gse,CSe,uSe),YSt(gse,ASe,uSe),YSt(gse,bSe,uSe),YSt(gse,ySe,uSe),YSt(gse,hSe,uSe),YSt(gse,mSe,uSe),YSt(gse,dSe,vSe),YSt(gse,cSe,vSe),YSt(gse,wSe,vSe),YSt(gse,ASe,vSe),YSt(gse,fSe,gSe),YSt(gse,dSe,gSe),YSt(gse,wSe,gSe),YSt(gse,CSe,gSe),YSt(gse,ASe,gSe),YSt(gse,bSe,gSe),YSt(gse,ySe,gSe),YSt(gse,ySe,pSe),YSt(gse,ASe,pSe),YSt(gse,hSe,fSe),YSt(gse,hSe,CSe),YSt(gse,hSe,cSe),YSt(gse,bSe,fSe),YSt(gse,bSe,dSe),YSt(gse,bSe,wSe)}function nVt(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 jq(t.b,t.a,e,t.c);case 1:return new IO(t.a,e,LAt(e.Tg(),t.c));case 43:return new OO(t.a,e,LAt(e.Tg(),t.c));case 3:return new LO(t.a,e,LAt(e.Tg(),t.c));case 45:return new MO(t.a,e,LAt(e.Tg(),t.c));case 41:return new b7(Q$(_wt(t.c),26),t.a,e,LAt(e.Tg(),t.c));case 50:return new vrt(Q$(_wt(t.c),26),t.a,e,LAt(e.Tg(),t.c));case 5:return new eR(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 47:return new nR(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 7:return new tG(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 49:return new tR(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 9:return new RO(t.a,e,LAt(e.Tg(),t.c));case 11:return new PO(t.a,e,LAt(e.Tg(),t.c));case 13:return new NO(t.a,e,LAt(e.Tg(),t.c));case 15:return new CH(t.a,e,LAt(e.Tg(),t.c));case 17:return new QO(t.a,e,LAt(e.Tg(),t.c));case 19:return new FO(t.a,e,LAt(e.Tg(),t.c));case 21:return new DO(t.a,e,LAt(e.Tg(),t.c));case 23:return new bH(t.a,e,LAt(e.Tg(),t.c));case 25:return new lR(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 27:return new cR(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 29:return new oR(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 31:return new rR(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 33:return new sR(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 35:return new aR(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 37:return new iR(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 39:return new eG(t.a,e,LAt(e.Tg(),t.c),t.d.n);case 40:return new kat(e,LAt(e.Tg(),t.c));default:throw Um(new dy("Unknown feature style: "+t.e))}}function rVt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;switch(Sxt(n,"Brandes & Koepf node placement",1),t.a=e,t.c=QUt(e),r=Q$(bEt(e,($Xt(),Mpe)),274),d=$y(kN(bEt(e,Ope))),t.d=r==(Ukt(),Vue)&&!d||r==zue,Yjt(t,e),y=null,w=null,p=null,m=null,hrt(4,LWt),g=new q6(4),Q$(bEt(e,Mpe),274).g){case 3:p=new HRt(e,t.c.d,(oZ(),nye),(AJ(),Jve)),g.c[g.c.length]=p;break;case 1:m=new HRt(e,t.c.d,(oZ(),rye),(AJ(),Jve)),g.c[g.c.length]=m;break;case 4:y=new HRt(e,t.c.d,(oZ(),nye),(AJ(),Zve)),g.c[g.c.length]=y;break;case 2:w=new HRt(e,t.c.d,(oZ(),rye),(AJ(),Zve)),g.c[g.c.length]=w;break;default:p=new HRt(e,t.c.d,(oZ(),nye),(AJ(),Jve)),m=new HRt(e,t.c.d,rye,Jve),y=new HRt(e,t.c.d,nye,Zve),w=new HRt(e,t.c.d,rye,Zve),g.c[g.c.length]=y,g.c[g.c.length]=w,g.c[g.c.length]=p,g.c[g.c.length]=m}for(i=new e_(e,t.c),s=new Gd(g);s.a<s.c.c.length;)TXt(i,a=Q$(J1(s),180),t.b),X$t(a);for(f=new Yyt(e,t.c),c=new Gd(g);c.a<c.c.c.length;)$zt(f,a=Q$(J1(c),180));if(n.n)for(l=new Gd(g);l.a<l.c.c.length;)_H(n,(a=Q$(J1(l),180))+" size is "+mMt(a));if(h=null,t.d&&_$t(e,u=QGt(t,g,t.c.d),n)&&(h=u),!h)for(l=new Gd(g);l.a<l.c.c.length;)_$t(e,a=Q$(J1(l),180),n)&&(!h||mMt(h)>mMt(a))&&(h=a);for(!h&&(u1(0,g.c.length),h=Q$(g.c[0],180)),A=new Gd(e.b);A.a<A.c.c.length;)for(v=new Gd(Q$(J1(A),29).a);v.a<v.c.c.length;)(b=Q$(J1(v),10)).n.b=Hy(h.p[b.p])+Hy(h.d[b.p]);for(n.n&&(_H(n,"Chosen node placement: "+h),_H(n,"Blocks: "+DLt(h)),_H(n,"Classes: "+zIt(h,n)),_H(n,"Marked edges: "+t.b)),o=new Gd(g);o.a<o.c.c.length;)(a=Q$(J1(o),180)).g=null,a.b=null,a.a=null,a.d=null,a.j=null,a.i=null,a.p=null;Kit(t.c),t.b.a.$b(),$Tt(n)}function iVt(t,e,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x;for(o=new Wx,b=Q$(bEt(n,($Xt(),Kge)),103),A=0,Qit(o,(!e.a&&(e.a=new tG(jLe,e,10,11)),e.a));0!=o.b;)l=Q$(0==o.b?null:(EF(0!=o.b),Let(o,o.a.a)),33),(HS(JIt(e,Ige))!==HS((bct(),Mbe))||HS(JIt(e,Hge))===HS((Vbt(),wue))||HS(JIt(e,Hge))===HS((Vbt(),vue))||$y(kN(JIt(e,Oge)))||HS(JIt(e,Tge))!==HS((Uht(),fse)))&&!$y(kN(JIt(l,Lge)))&&qmt(l,(lVt(),ffe),nft(A++)),!$y(kN(JIt(l,Hpe)))&&(h=0!=(!l.a&&(l.a=new tG(jLe,l,10,11)),l.a).i,d=yxt(l),f=HS(JIt(l,spe))===HS((oht(),g_e)),p=null,(x=!E8(l,(cVt(),tTe))||mR(xN(JIt(l,tTe)),d1t))&&f&&(h||d)&&(lct(p=yUt(l),Kge,b),IF(p,Ame)&&Cy(new oAt(Hy(CN(bEt(p,Ame)))),p),0!=Q$(JIt(l,Rpe),174).gc()&&(u=p,qx(new Fj(null,(!l.c&&(l.c=new tG(KLe,l,9,9)),new f1(l.c,16))),new zA(u)),bNt(l,p))),v=n,(y=Q$(FX(t.a,qJ(l)),10))&&(v=y.e),g=dzt(t,l,v),p&&(g.e=p,p.e=g,Qit(o,(!l.a&&(l.a=new tG(jLe,l,10,11)),l.a))));for(A=0,n5(o,e,o.c.b,o.c);0!=o.b;){for(c=new SO((!(a=Q$(0==o.b?null:(EF(0!=o.b),Let(o,o.a.a)),33)).b&&(a.b=new tG(NLe,a,12,3)),a.b));c.e!=c.i.gc();)tRt(s=Q$(ymt(c),79)),(HS(JIt(e,Ige))!==HS((bct(),Mbe))||HS(JIt(e,Hge))===HS((Vbt(),wue))||HS(JIt(e,Hge))===HS((Vbt(),vue))||$y(kN(JIt(e,Oge)))||HS(JIt(e,Tge))!==HS((Uht(),fse)))&&qmt(s,(lVt(),ffe),nft(A++)),k=Txt(Q$(Xet((!s.b&&(s.b=new cR(FLe,s,4,7)),s.b),0),82)),C=Txt(Q$(Xet((!s.c&&(s.c=new cR(FLe,s,5,8)),s.c),0),82)),$y(kN(JIt(s,Hpe)))||$y(kN(JIt(k,Hpe)))||$y(kN(JIt(C,Hpe)))||(m=a,WSt(s)&&$y(kN(JIt(k,fpe)))&&$y(kN(JIt(s,dpe)))||Bet(C,k)?m=k:Bet(k,C)&&(m=C),v=n,(y=Q$(FX(t.a,m),10))&&(v=y.e),lct(oVt(t,s,m,v),(lVt(),Rhe),MFt(t,s,e,n)));if(f=HS(JIt(a,spe))===HS((oht(),g_e)))for(i=new SO((!a.a&&(a.a=new tG(jLe,a,10,11)),a.a));i.e!=i.i.gc();)x=!E8(r=Q$(ymt(i),33),(cVt(),tTe))||mR(xN(JIt(r,tTe)),d1t),w=HS(JIt(r,spe))===HS(g_e),x&&w&&n5(o,r,o.c.b,o.c)}}function aVt(t,e,n,r,i,a){var o,s,c,l,u,h,f;switch(e){case 71:o=r.q.getFullYear()-cqt>=-1900?1:0,oL(t,n>=4?Tst(Hw(Wee,1),cWt,2,6,[uqt,hqt])[o]:Tst(Hw(Wee,1),cWt,2,6,["BC","AD"])[o]);break;case 121:smt(t,n,r);break;case 77:GRt(t,n,r);break;case 107:wtt(t,0==(s=i.q.getHours())?24:s,n);break;case 83:NOt(t,n,i);break;case 69:c=r.q.getDay(),oL(t,5==n?Tst(Hw(Wee,1),cWt,2,6,["S","M","T","W","T","F","S"])[c]:4==n?Tst(Hw(Wee,1),cWt,2,6,[fqt,dqt,Aqt,gqt,pqt,mqt,bqt])[c]:Tst(Hw(Wee,1),cWt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[c]);break;case 97:i.q.getHours()>=12&&i.q.getHours()<24?oL(t,Tst(Hw(Wee,1),cWt,2,6,["AM","PM"])[1]):oL(t,Tst(Hw(Wee,1),cWt,2,6,["AM","PM"])[0]);break;case 104:wtt(t,0==(l=i.q.getHours()%12)?12:l,n);break;case 75:wtt(t,i.q.getHours()%12,n);break;case 72:wtt(t,i.q.getHours(),n);break;case 99:u=r.q.getDay(),5==n?oL(t,Tst(Hw(Wee,1),cWt,2,6,["S","M","T","W","T","F","S"])[u]):4==n?oL(t,Tst(Hw(Wee,1),cWt,2,6,[fqt,dqt,Aqt,gqt,pqt,mqt,bqt])[u]):3==n?oL(t,Tst(Hw(Wee,1),cWt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[u]):wtt(t,u,1);break;case 76:h=r.q.getMonth(),5==n?oL(t,Tst(Hw(Wee,1),cWt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[h]):4==n?oL(t,Tst(Hw(Wee,1),cWt,2,6,[qWt,YWt,JWt,ZWt,tqt,eqt,nqt,rqt,iqt,aqt,oqt,sqt])[h]):3==n?oL(t,Tst(Hw(Wee,1),cWt,2,6,["Jan","Feb","Mar","Apr",tqt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[h]):wtt(t,h+1,n);break;case 81:f=r.q.getMonth()/3|0,oL(t,n<4?Tst(Hw(Wee,1),cWt,2,6,["Q1","Q2","Q3","Q4"])[f]:Tst(Hw(Wee,1),cWt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[f]);break;case 100:wtt(t,r.q.getDate(),n);break;case 109:wtt(t,i.q.getMinutes(),n);break;case 115:wtt(t,i.q.getSeconds(),n);break;case 122:oL(t,n<4?a.c[0]:a.c[1]);break;case 118:oL(t,a.b);break;case 90:oL(t,n<3?Z_t(a):3==n?dSt(a):ASt(a.a));break;default:return!1}return!0}function oVt(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_;if(tRt(e),c=Q$(Xet((!e.b&&(e.b=new cR(FLe,e,4,7)),e.b),0),82),u=Q$(Xet((!e.c&&(e.c=new cR(FLe,e,5,8)),e.c),0),82),s=Txt(c),l=Txt(u),o=0==(!e.a&&(e.a=new tG(PLe,e,6,6)),e.a).i?null:Q$(Xet((!e.a&&(e.a=new tG(PLe,e,6,6)),e.a),0),202),k=Q$(FX(t.a,s),10),T=Q$(FX(t.a,l),10),C=null,B=null,rO(c,186)&&(rO(w=Q$(FX(t.a,c),299),11)?C=Q$(w,11):rO(w,10)&&(k=Q$(w,10),C=Q$(Oj(k.j,0),11))),rO(u,186)&&(rO(E=Q$(FX(t.a,u),299),11)?B=Q$(E,11):rO(E,10)&&(T=Q$(E,10),B=Q$(Oj(T.j,0),11))),!k||!T)throw Um(new rw("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(Hot(g=new fY,e),lct(g,(lVt(),dfe),e),lct(g,($Xt(),ppe),null),d=Q$(bEt(r,Yhe),21),k==T&&d.Fc((fNt(),phe)),C||(art(),y=$be,x=null,o&&pI(Q$(bEt(k,tme),98))&&(W3(x=new O_(o.j,o.k),zJ(e)),Z4(x,n),Bet(l,s)&&(y=Ube,KP(x,k.n))),C=AHt(k,x,y,r)),B||(art(),y=Ube,_=null,o&&pI(Q$(bEt(T,tme),98))&&(W3(_=new O_(o.b,o.c),zJ(e)),Z4(_,n)),B=AHt(T,_,y,pV(T))),xZ(g,C),CZ(g,B),(C.e.c.length>1||C.g.c.length>1||B.e.c.length>1||B.g.c.length>1)&&d.Fc((fNt(),hhe)),f=new SO((!e.n&&(e.n=new tG(HLe,e,1,7)),e.n));f.e!=f.i.gc();)if(!$y(kN(JIt(h=Q$(ymt(f),137),Hpe)))&&h.a)switch(p=$ut(h),G$(g.b,p),Q$(bEt(p,Wge),272).g){case 1:case 2:d.Fc((fNt(),lhe));break;case 0:d.Fc((fNt(),she)),lct(p,Wge,(Net(),jBe))}if(a=Q$(bEt(r,$ge),314),m=Q$(bEt(r,Ppe),315),i=a==(Srt(),sue)||m==(Obt(),gbe),o&&0!=(!o.a&&(o.a=new LO(MLe,o,5)),o.a).i&&i){for(b=HTt(o),A=new vv,v=cmt(b,0);v.b!=v.d.c;)DH(A,new fI(Q$(h3(v),8)));lct(g,Afe,A)}return g}function sVt(t){t.gb||(t.gb=!0,t.b=yot(t,0),Nit(t.b,18),Pit(t.b,19),t.a=yot(t,1),Nit(t.a,1),Pit(t.a,2),Pit(t.a,3),Pit(t.a,4),Pit(t.a,5),t.o=yot(t,2),Nit(t.o,8),Nit(t.o,9),Pit(t.o,10),Pit(t.o,11),Pit(t.o,12),Pit(t.o,13),Pit(t.o,14),Pit(t.o,15),Pit(t.o,16),Pit(t.o,17),Pit(t.o,18),Pit(t.o,19),Pit(t.o,20),Pit(t.o,21),Pit(t.o,22),Pit(t.o,23),oet(t.o),oet(t.o),oet(t.o),oet(t.o),oet(t.o),oet(t.o),oet(t.o),oet(t.o),oet(t.o),oet(t.o),t.p=yot(t,3),Nit(t.p,2),Nit(t.p,3),Nit(t.p,4),Nit(t.p,5),Pit(t.p,6),Pit(t.p,7),oet(t.p),oet(t.p),t.q=yot(t,4),Nit(t.q,8),t.v=yot(t,5),Pit(t.v,9),oet(t.v),oet(t.v),oet(t.v),t.w=yot(t,6),Nit(t.w,2),Nit(t.w,3),Nit(t.w,4),Pit(t.w,5),t.B=yot(t,7),Pit(t.B,1),oet(t.B),oet(t.B),oet(t.B),t.Q=yot(t,8),Pit(t.Q,0),oet(t.Q),t.R=yot(t,9),Nit(t.R,1),t.S=yot(t,10),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),oet(t.S),t.T=yot(t,11),Pit(t.T,10),Pit(t.T,11),Pit(t.T,12),Pit(t.T,13),Pit(t.T,14),oet(t.T),oet(t.T),t.U=yot(t,12),Nit(t.U,2),Nit(t.U,3),Pit(t.U,4),Pit(t.U,5),Pit(t.U,6),Pit(t.U,7),oet(t.U),t.V=yot(t,13),Pit(t.V,10),t.W=yot(t,14),Nit(t.W,18),Nit(t.W,19),Nit(t.W,20),Pit(t.W,21),Pit(t.W,22),Pit(t.W,23),t.bb=yot(t,15),Nit(t.bb,10),Nit(t.bb,11),Nit(t.bb,12),Nit(t.bb,13),Nit(t.bb,14),Nit(t.bb,15),Nit(t.bb,16),Pit(t.bb,17),oet(t.bb),oet(t.bb),t.eb=yot(t,16),Nit(t.eb,2),Nit(t.eb,3),Nit(t.eb,4),Nit(t.eb,5),Nit(t.eb,6),Nit(t.eb,7),Pit(t.eb,8),Pit(t.eb,9),t.ab=yot(t,17),Nit(t.ab,0),Nit(t.ab,1),t.H=yot(t,18),Pit(t.H,0),Pit(t.H,1),Pit(t.H,2),Pit(t.H,3),Pit(t.H,4),Pit(t.H,5),oet(t.H),t.db=yot(t,19),Pit(t.db,2),t.c=wot(t,20),t.d=wot(t,21),t.e=wot(t,22),t.f=wot(t,23),t.i=wot(t,24),t.g=wot(t,25),t.j=wot(t,26),t.k=wot(t,27),t.n=wot(t,28),t.r=wot(t,29),t.s=wot(t,30),t.t=wot(t,31),t.u=wot(t,32),t.fb=wot(t,33),t.A=wot(t,34),t.C=wot(t,35),t.D=wot(t,36),t.F=wot(t,37),t.G=wot(t,38),t.I=wot(t,39),t.J=wot(t,40),t.L=wot(t,41),t.M=wot(t,42),t.N=wot(t,43),t.O=wot(t,44),t.P=wot(t,45),t.X=wot(t,46),t.Y=wot(t,47),t.Z=wot(t,48),t.$=wot(t,49),t._=wot(t,50),t.cb=wot(t,51),t.K=wot(t,52))}function cVt(){var t,e;cVt=L,tTe=new am(d5t),mBe=new am(A5t),dbt(),eTe=new LL(X2t,nTe=TEe),new Lm,rTe=new LL(VJt,null),iTe=new am(g5t),dCt(),lTe=wK(YEe,Tst(Hw($Be,1),IWt,291,0,[XEe])),cTe=new LL(o3t,lTe),uTe=new LL(G2t,(cD(),!1)),Qht(),hTe=new LL(Y2t,fTe=QBe),xdt(),pTe=new LL(v2t,mTe=YBe),yTe=new LL(L4t,!1),oht(),wTe=new LL(A2t,kTe=p_e),GTe=new GI(12),zTe=new LL(WJt,GTe),TTe=new LL(wZt,!1),BTe=new LL(b3t,!1),KTe=new LL(xZt,!1),WCt(),aBe=new LL(kZt,oBe=W_e),ABe=new am(g3t),gBe=new am(pZt),pBe=new am(vZt),vBe=new am(yZt),STe=new vv,_Te=new LL(s3t,STe),sTe=new LL(u3t,!1),CTe=new LL(h3t,!1),new am(p5t),ITe=new uv,LTe=new LL(p3t,ITe),jTe=new LL(K2t,!1),new Lm,bBe=new LL(m5t,1),new LL(b5t,!0),nft(0),new LL(v5t,nft(100)),new LL(y5t,!1),nft(0),new LL(w5t,nft(4e3)),nft(0),new LL(k5t,nft(400)),new LL(C5t,!1),new LL(x5t,!1),new LL(E5t,!0),new LL(T5t,!1),QAt(),aTe=new LL(f5t,oTe=tLe),yBe=new LL(M2t,10),wBe=new LL(O2t,10),kBe=new LL(GJt,20),CBe=new LL(D2t,10),xBe=new LL(bZt,2),EBe=new LL(F2t,10),BBe=new LL(N2t,0),_Be=new LL(Q2t,5),SBe=new LL(P2t,1),LBe=new LL(R2t,1),IBe=new LL(mZt,20),MBe=new LL(U2t,10),FBe=new LL($2t,10),TBe=new am(H2t),DBe=new uI,OBe=new LL(m3t,DBe),WTe=new am(A3t),XTe=new LL(d3t,VTe=!1),OTe=new GI(5),MTe=new LL(J2t,OTe),ZIt(),e=Q$(Xk(H_e),9),FTe=new WR(e,Q$(xP(e,e.length),9),0),DTe=new LL(BZt,FTe),imt(),YTe=new LL(e3t,JTe=Q_e),tBe=new am(n3t),eBe=new am(r3t),nBe=new am(i3t),ZTe=new am(a3t),t=Q$(Xk(WSe),9),PTe=new WR(t,Q$(xP(t,t.length),9),0),NTe=new LL(TZt,PTe),HTe=Zft((ZRt(),HSe)),$Te=new LL(EZt,HTe),UTe=new O_(0,0),QTe=new LL(UZt,UTe),RTe=new LL(q2t,!1),Net(),ATe=new LL(c3t,gTe=jBe),dTe=new LL(CZt,!1),new am(B5t),nft(1),new LL(_5t,null),rBe=new am(f3t),sBe=new am(l3t),yGt(),fBe=new LL(z2t,dBe=ESe),iBe=new am(j2t),hSt(),uBe=Zft(nSe),lBe=new LL(_Zt,uBe),cBe=new LL(Z2t,!1),hBe=new LL(t3t,!0),xTe=new LL(V2t,!1),ETe=new LL(W2t,!1),bTe=new LL(XJt,1),Zxt(),new LL(S5t,vTe=i_e),qTe=!0}function lVt(){var t,e;lVt=L,dfe=new am(SZt),Rhe=new am("coordinateOrigin"),Cfe=new am("processors"),Phe=new eP("compoundNode",(cD(),!1)),tfe=new eP("insideConnections",!1),Afe=new am("originalBendpoints"),gfe=new am("originalDummyNodePosition"),pfe=new am("originalLabelEdge"),Efe=new am("representedLabels"),jhe=new am("endLabels"),Khe=new am("endLabel.origin"),afe=new eP("labelSide",(Gyt(),C_e)),hfe=new eP("maxEdgeThickness",0),Tfe=new eP("reversed",!1),xfe=new am(LZt),cfe=new eP("longEdgeSource",null),lfe=new eP("longEdgeTarget",null),sfe=new eP("longEdgeHasLabelDummies",!1),ofe=new eP("longEdgeBeforeLabelDummy",!1),Hhe=new eP("edgeConstraint",(Yst(),Sue)),nfe=new am("inLayerLayoutUnit"),efe=new eP("inLayerConstraint",(j9(),Ehe)),rfe=new eP("inLayerSuccessorConstraint",new Mm),ife=new eP("inLayerSuccessorConstraintBetweenNonDummies",!1),wfe=new am("portDummy"),Qhe=new eP("crossingHint",nft(0)),Yhe=new eP("graphProperties",new WR(e=Q$(Xk(khe),9),Q$(xP(e,e.length),9),0)),Vhe=new eP("externalPortSide",(yGt(),ESe)),Whe=new eP("externalPortSize",new Hk),Ghe=new am("externalPortReplacedDummies"),Xhe=new am("externalPortReplacedDummy"),zhe=new eP("externalPortConnections",new WR(t=Q$(Xk(RSe),9),Q$(xP(t,t.length),9),0)),kfe=new eP(AJt,0),Ohe=new am("barycenterAssociates"),Nfe=new am("TopSideComments"),Dhe=new am("BottomSideComments"),Nhe=new am("CommentConnectionPort"),Zhe=new eP("inputCollect",!1),vfe=new eP("outputCollect",!1),$he=new eP("cyclic",!1),Uhe=new am("crossHierarchyMap"),Ffe=new am("targetOffset"),new eP("splineLabelSize",new Hk),Sfe=new am("spacings"),yfe=new eP("partitionConstraint",!1),Fhe=new am("breakingPoint.info"),Ofe=new am("splines.survivingEdge"),Mfe=new am("splines.route.start"),Lfe=new am("splines.edgeChain"),bfe=new am("originalPortConstraints"),_fe=new am("selfLoopHolder"),Ife=new am("splines.nsPortY"),ffe=new am("modelOrder"),ufe=new am("longEdgeTargetNode"),qhe=new eP(K1t,!1),Bfe=new eP(K1t,!1),Jhe=new am("layerConstraints.hiddenNodes"),mfe=new am("layerConstraints.opposidePort"),Dfe=new am("targetNode.modelOrder")}function uVt(){uVt=L,Ptt(),xde=new LL(z1t,Ede=xue),Hde=new LL(G1t,(cD(),!1)),j2(),Xde=new LL(X1t,Vde=She),fAe=new LL(V1t,!1),dAe=new LL(W1t,!0),Kfe=new LL(q1t,!1),K9(),MAe=new LL(Y1t,OAe=Nbe),nft(1),$Ae=new LL(J1t,nft(7)),HAe=new LL(Z1t,!1),jde=new LL(t0t,!1),Vbt(),kde=new LL(e0t,Cde=bue),Cxt(),uAe=new LL(n0t,hAe=Zme),Cdt(),tAe=new LL(r0t,eAe=$fe),nft(-1),Zde=new LL(i0t,nft(-1)),nft(-1),nAe=new LL(a0t,nft(-1)),nft(-1),rAe=new LL(o0t,nft(4)),nft(-1),aAe=new LL(s0t,nft(2)),cDt(),cAe=new LL(c0t,lAe=Bbe),nft(0),sAe=new LL(l0t,nft(0)),Yde=new LL(u0t,nft(FVt)),Srt(),yde=new LL(h0t,wde=cue),ade=new LL(f0t,!1),Ade=new LL(d0t,.1),bde=new LL(A0t,!1),nft(-1),pde=new LL(g0t,nft(-1)),nft(-1),mde=new LL(p0t,nft(-1)),nft(0),ode=new LL(m0t,nft(40)),Pot(),hde=new LL(b0t,fde=whe),sde=new LL(v0t,cde=vhe),Obt(),LAe=new LL(y0t,IAe=Abe),yAe=new am(w0t),A9(),AAe=new LL(k0t,gAe=$ue),Ukt(),mAe=new LL(C0t,bAe=Vue),new Lm,CAe=new LL(x0t,.3),EAe=new am(E0t),fbt(),TAe=new LL(T0t,BAe=ube),$at(),Mde=new LL(B0t,Ode=Gbe),S6(),Dde=new LL(_0t,Fde=Ybe),zlt(),Nde=new LL(S0t,Pde=nve),Qde=new LL(L0t,.2),Lde=new LL(I0t,2),PAe=new LL(M0t,null),QAe=new LL(O0t,10),RAe=new LL(D0t,10),UAe=new LL(F0t,20),nft(0),DAe=new LL(N0t,nft(0)),nft(0),FAe=new LL(P0t,nft(0)),nft(0),NAe=new LL(R0t,nft(0)),zfe=new LL(Q0t,!1),YEt(),Vfe=new LL(U0t,Wfe=rhe),X8(),Gfe=new LL($0t,Xfe=iue),zde=new LL(H0t,!1),nft(0),Kde=new LL(j0t,nft(16)),nft(0),Gde=new LL(K0t,nft(5)),Ist(),uge=new LL(z0t,hge=hve),jAe=new LL(G0t,10),GAe=new LL(X0t,1),ort(),tge=new LL(V0t,ege=Aue),WAe=new am(W0t),JAe=nft(1),nft(0),YAe=new LL(q0t,JAe),Aat(),gge=new LL(Y0t,pge=ave),fge=new am(J0t),oge=new LL(Z0t,!0),ige=new LL(t2t,2),cge=new LL(e2t,!0),gTt(),_de=new LL(n2t,Sde=Pue),IBt(),Tde=new LL(r2t,Bde=Yle),bct(),rde=new LL(i2t,ide=Mbe),nde=new LL(a2t,!1),Uht(),qfe=new LL(o2t,Yfe=fse),xut(),tde=new LL(s2t,ede=rbe),Jfe=new LL(c2t,0),Zfe=new LL(l2t,0),qde=yue,Wde=sue,iAe=Jme,oAe=Jme,Jde=Wme,oht(),gde=g_e,vde=cue,dde=cue,lde=cue,ude=g_e,wAe=mbe,kAe=Abe,pAe=Abe,vAe=Abe,xAe=pbe,SAe=mbe,_Ae=mbe,xdt(),Rde=qBe,Ude=qBe,$de=nve,Ide=WBe,KAe=fve,zAe=uve,XAe=fve,VAe=uve,nge=fve,rge=uve,qAe=due,ZAe=Aue,mge=fve,bge=uve,dge=fve,Age=uve,sge=uve,age=uve,lge=uve}function hVt(){hVt=L,nce=new JT("DIRECTION_PREPROCESSOR",0),Zse=new JT("COMMENT_PREPROCESSOR",1),rce=new JT("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),vce=new JT("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),Rce=new JT("PARTITION_PREPROCESSOR",4),Cce=new JT("LABEL_DUMMY_INSERTER",5),Kce=new JT("SELF_LOOP_PREPROCESSOR",6),_ce=new JT("LAYER_CONSTRAINT_PREPROCESSOR",7),Nce=new JT("PARTITION_MIDPROCESSOR",8),Ace=new JT("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),Mce=new JT("NODE_PROMOTION",10),Bce=new JT("LAYER_CONSTRAINT_POSTPROCESSOR",11),Pce=new JT("PARTITION_POSTPROCESSOR",12),uce=new JT("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),Gce=new JT("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),Xse=new JT("BREAKING_POINT_INSERTER",15),Ice=new JT("LONG_EDGE_SPLITTER",16),Uce=new JT("PORT_SIDE_PROCESSOR",17),yce=new JT("INVERTED_PORT_PROCESSOR",18),Qce=new JT("PORT_LIST_SORTER",19),Vce=new JT("SORT_BY_INPUT_ORDER_OF_MODEL",20),Dce=new JT("NORTH_SOUTH_PORT_PREPROCESSOR",21),Vse=new JT("BREAKING_POINT_PROCESSOR",22),Fce=new JT(k1t,23),Wce=new JT(C1t,24),Hce=new JT("SELF_LOOP_PORT_RESTORER",25),Xce=new JT("SINGLE_EDGE_GRAPH_WRAPPER",26),wce=new JT("IN_LAYER_CONSTRAINT_PROCESSOR",27),sce=new JT("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),kce=new JT("LABEL_AND_NODE_SIZE_PROCESSOR",29),bce=new JT("INNERMOST_NODE_MARGIN_CALCULATOR",30),zce=new JT("SELF_LOOP_ROUTER",31),Yse=new JT("COMMENT_NODE_MARGIN_CALCULATOR",32),ace=new JT("END_LABEL_PREPROCESSOR",33),Ece=new JT("LABEL_DUMMY_SWITCHER",34),qse=new JT("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),Tce=new JT("LABEL_SIDE_SELECTOR",36),pce=new JT("HYPEREDGE_DUMMY_MERGER",37),hce=new JT("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),Sce=new JT("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),dce=new JT("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),tce=new JT("CONSTRAINTS_POSTPROCESSOR",41),Jse=new JT("COMMENT_POSTPROCESSOR",42),mce=new JT("HYPERNODE_PROCESSOR",43),fce=new JT("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),Lce=new JT("LONG_EDGE_JOINER",45),jce=new JT("SELF_LOOP_POSTPROCESSOR",46),Wse=new JT("BREAKING_POINT_REMOVER",47),Oce=new JT("NORTH_SOUTH_PORT_POSTPROCESSOR",48),gce=new JT("HORIZONTAL_COMPACTOR",49),xce=new JT("LABEL_DUMMY_REMOVER",50),cce=new JT("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),oce=new JT("END_LABEL_SORTER",52),$ce=new JT("REVERSED_EDGE_RESTORER",53),ice=new JT("END_LABEL_POSTPROCESSOR",54),lce=new JT("HIERARCHICAL_NODE_RESIZER",55),ece=new JT("DIRECTION_POSTPROCESSOR",56)}function fVt(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x,E,T,B,_,S,L,I,M,O,D,F,N,P,R,Q,U,$,H,j,K,z,G,X,V,W,q,Y,J,Z,tt,et,nt,rt,it,at,ot,st;for(J=0,O=0,N=(L=n).length;O<N;++O)for(K=new Gd((_=L[O]).j);K.a<K.c.c.length;){for(G=0,c=new Gd((j=Q$(J1(K),11)).g);c.a<c.c.c.length;)s=Q$(J1(c),17),_.c!=s.d.i.c&&++G;G>0&&(t.a[j.p]=J++)}for(rt=0,D=0,P=(I=r).length;D<P;++D){for(R=0,K=new Gd((_=I[D]).j);K.a<K.c.c.length&&(j=Q$(J1(K),11)).j==(yGt(),sSe);)for(c=new Gd(j.e);c.a<c.c.c.length;)if(s=Q$(J1(c),17),_.c!=s.c.i.c){++R;break}for(U=0,X=new C2(_.j,_.j.c.length);X.b>0;){for(EF(X.b>0),G=0,c=new Gd((j=Q$(X.a.Xb(X.c=--X.b),11)).e);c.a<c.c.c.length;)s=Q$(J1(c),17),_.c!=s.c.i.c&&++G;G>0&&(j.j==(yGt(),sSe)?(t.a[j.p]=rt,++rt):(t.a[j.p]=rt+R+U,++U))}rt+=U}for(z=new Om,g=new lI,M=0,F=(S=n).length;M<F;++M)for(et=new Gd((_=S[M]).j);et.a<et.c.c.length;)for(c=new Gd((tt=Q$(J1(et),11)).g);c.a<c.c.c.length;)if(at=(s=Q$(J1(c),17)).d,_.c!=at.i.c)if(Z=Q$($S(SY(z.f,tt)),467),it=Q$($S(SY(z.f,at)),467),Z||it)if(Z)if(it)if(Z==it)G$(Z.a,s);else{for(G$(Z.a,s),H=new Gd(it.d);H.a<H.c.c.length;)$=Q$(J1(H),11),w_t(z.f,$,Z);gst(Z.a,it.a),gst(Z.d,it.d),g.a.Bc(it)}else G$(Z.a,s),G$(Z.d,at),w_t(z.f,at,Z);else G$(it.a,s),G$(it.d,tt),w_t(z.f,tt,it);else A=new DP,g.a.zc(A,g),G$(A.a,s),G$(A.d,tt),w_t(z.f,tt,A),G$(A.d,at),w_t(z.f,at,A);for(p=Q$(kvt(g,O8(Rve,{3:1,4:1,5:1,1946:1},467,g.a.gc(),0,1)),1946),B=n[0].c,Y=r[0].c,f=0,d=(h=p).length;f<d;++f)for((u=h[f]).e=J,u.f=rt,K=new Gd(u.d);K.a<K.c.c.length;)j=Q$(J1(K),11),V=t.a[j.p],j.i.c==B?(V<u.e&&(u.e=V),V>u.b&&(u.b=V)):j.i.c==Y&&(V<u.f&&(u.f=V),V>u.c&&(u.c=V));for(j7(p,0,p.length,null),nt=O8(_De,lqt,25,p.length,15,1),i=O8(_De,lqt,25,rt+1,15,1),b=0;b<p.length;b++)nt[b]=p[b].f,i[nt[b]]=1;for(o=0,v=0;v<i.length;v++)1==i[v]?i[v]=o:--o;for(W=0,y=0;y<nt.length;y++)nt[y]+=i[nt[y]],W=e.Math.max(W,nt[y]+1);for(l=1;l<W;)l*=2;for(st=2*l-1,l-=1,ot=O8(_De,lqt,25,st,15,1),a=0,E=0;E<nt.length;E++)for(++ot[x=nt[E]+l];x>0;)x%2>0&&(a+=ot[x+1]),++ot[x=(x-1)/2|0];for(T=O8($ve,$Vt,362,2*p.length,0,1),w=0;w<p.length;w++)T[2*w]=new $W(p[w],p[w].e,p[w].b,(V4(),Uve)),T[2*w+1]=new $W(p[w],p[w].b,p[w].e,Qve);for(j7(T,0,T.length,null),Q=0,k=0;k<T.length;k++)switch(T[k].d.g){case 0:++Q;break;case 1:a+=--Q}for(q=O8($ve,$Vt,362,2*p.length,0,1),C=0;C<p.length;C++)q[2*C]=new $W(p[C],p[C].f,p[C].c,(V4(),Uve)),q[2*C+1]=new $W(p[C],p[C].c,p[C].f,Qve);for(j7(q,0,q.length,null),Q=0,m=0;m<q.length;m++)switch(q[m].d.g){case 0:++Q;break;case 1:a+=--Q}return a}function dVt(){dVt=L,oDe=new Sm(7),sDe=new oK(8,94),new oK(8,64),cDe=new oK(8,36),ADe=new oK(8,65),gDe=new oK(8,122),pDe=new oK(8,90),vDe=new oK(8,98),fDe=new oK(8,66),mDe=new oK(8,60),yDe=new oK(8,62),aDe=new Sm(11),qFt(iDe=new C0(4),48,57),qFt(bDe=new C0(4),48,57),qFt(bDe,65,90),qFt(bDe,95,95),qFt(bDe,97,122),qFt(dDe=new C0(4),9,9),qFt(dDe,10,10),qFt(dDe,12,12),qFt(dDe,13,13),qFt(dDe,32,32),lDe=IUt(iDe),hDe=IUt(bDe),uDe=IUt(dDe),tDe=new Om,eDe=new Om,nDe=Tst(Hw(Wee,1),cWt,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"]),ZOe=Tst(Hw(Wee,1),cWt,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",gte,"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"]),rDe=Tst(Hw(_De,1),lqt,25,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function AVt(){AVt=L,Eie=new sat("OUT_T_L",0,(q7(),Wre),(H9(),eie),(Fet(),Hre),Hre,Tst(Hw(Fte,1),$Vt,21,0,[wK((ZIt(),I_e),Tst(Hw(H_e,1),IWt,93,0,[D_e,B_e]))])),xie=new sat("OUT_T_C",1,Vre,eie,Hre,jre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[D_e,T_e])),wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[D_e,T_e,__e]))])),Tie=new sat("OUT_T_R",2,qre,eie,Hre,Kre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[D_e,S_e]))])),pie=new sat("OUT_B_L",3,Wre,rie,Kre,Hre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[M_e,B_e]))])),gie=new sat("OUT_B_C",4,Vre,rie,Kre,jre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[M_e,T_e])),wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[M_e,T_e,__e]))])),mie=new sat("OUT_B_R",5,qre,rie,Kre,Kre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[M_e,S_e]))])),yie=new sat("OUT_L_T",6,qre,rie,Hre,Hre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[B_e,D_e,__e]))])),vie=new sat("OUT_L_C",7,qre,nie,jre,Hre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[B_e,O_e])),wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[B_e,O_e,__e]))])),bie=new sat("OUT_L_B",8,qre,eie,Kre,Hre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[B_e,M_e,__e]))])),Cie=new sat("OUT_R_T",9,Wre,rie,Hre,Kre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[S_e,D_e,__e]))])),kie=new sat("OUT_R_C",10,Wre,nie,jre,Kre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[S_e,O_e])),wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[S_e,O_e,__e]))])),wie=new sat("OUT_R_B",11,Wre,eie,Kre,Kre,Tst(Hw(Fte,1),$Vt,21,0,[wK(I_e,Tst(Hw(H_e,1),IWt,93,0,[S_e,M_e,__e]))])),die=new sat("IN_T_L",12,Wre,rie,Hre,Hre,Tst(Hw(Fte,1),$Vt,21,0,[wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[D_e,B_e])),wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[D_e,B_e,__e]))])),fie=new sat("IN_T_C",13,Vre,rie,Hre,jre,Tst(Hw(Fte,1),$Vt,21,0,[wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[D_e,T_e])),wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[D_e,T_e,__e]))])),Aie=new sat("IN_T_R",14,qre,rie,Hre,Kre,Tst(Hw(Fte,1),$Vt,21,0,[wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[D_e,S_e])),wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[D_e,S_e,__e]))])),uie=new sat("IN_C_L",15,Wre,nie,jre,Hre,Tst(Hw(Fte,1),$Vt,21,0,[wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[O_e,B_e])),wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[O_e,B_e,__e]))])),lie=new sat("IN_C_C",16,Vre,nie,jre,jre,Tst(Hw(Fte,1),$Vt,21,0,[wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[O_e,T_e])),wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[O_e,T_e,__e]))])),hie=new sat("IN_C_R",17,qre,nie,jre,Kre,Tst(Hw(Fte,1),$Vt,21,0,[wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[O_e,S_e])),wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[O_e,S_e,__e]))])),sie=new sat("IN_B_L",18,Wre,eie,Kre,Hre,Tst(Hw(Fte,1),$Vt,21,0,[wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[M_e,B_e])),wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[M_e,B_e,__e]))])),oie=new sat("IN_B_C",19,Vre,eie,Kre,jre,Tst(Hw(Fte,1),$Vt,21,0,[wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[M_e,T_e])),wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[M_e,T_e,__e]))])),cie=new sat("IN_B_R",20,qre,eie,Kre,Kre,Tst(Hw(Fte,1),$Vt,21,0,[wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[M_e,S_e])),wK(L_e,Tst(Hw(H_e,1),IWt,93,0,[M_e,S_e,__e]))])),Bie=new sat(lJt,21,null,null,null,null,Tst(Hw(Fte,1),$Vt,21,0,[]))}function gVt(){gVt=L,tMe=(VX(),JIe).b,Q$(Xet(Vq(JIe.b),0),34),Q$(Xet(Vq(JIe.b),1),18),ZIe=JIe.a,Q$(Xet(Vq(JIe.a),0),34),Q$(Xet(Vq(JIe.a),1),18),Q$(Xet(Vq(JIe.a),2),18),Q$(Xet(Vq(JIe.a),3),18),Q$(Xet(Vq(JIe.a),4),18),eMe=JIe.o,Q$(Xet(Vq(JIe.o),0),34),Q$(Xet(Vq(JIe.o),1),34),rMe=Q$(Xet(Vq(JIe.o),2),18),Q$(Xet(Vq(JIe.o),3),18),Q$(Xet(Vq(JIe.o),4),18),Q$(Xet(Vq(JIe.o),5),18),Q$(Xet(Vq(JIe.o),6),18),Q$(Xet(Vq(JIe.o),7),18),Q$(Xet(Vq(JIe.o),8),18),Q$(Xet(Vq(JIe.o),9),18),Q$(Xet(Vq(JIe.o),10),18),Q$(Xet(Vq(JIe.o),11),18),Q$(Xet(Vq(JIe.o),12),18),Q$(Xet(Vq(JIe.o),13),18),Q$(Xet(Vq(JIe.o),14),18),Q$(Xet(Vq(JIe.o),15),18),Q$(Xet(Xq(JIe.o),0),59),Q$(Xet(Xq(JIe.o),1),59),Q$(Xet(Xq(JIe.o),2),59),Q$(Xet(Xq(JIe.o),3),59),Q$(Xet(Xq(JIe.o),4),59),Q$(Xet(Xq(JIe.o),5),59),Q$(Xet(Xq(JIe.o),6),59),Q$(Xet(Xq(JIe.o),7),59),Q$(Xet(Xq(JIe.o),8),59),Q$(Xet(Xq(JIe.o),9),59),nMe=JIe.p,Q$(Xet(Vq(JIe.p),0),34),Q$(Xet(Vq(JIe.p),1),34),Q$(Xet(Vq(JIe.p),2),34),Q$(Xet(Vq(JIe.p),3),34),Q$(Xet(Vq(JIe.p),4),18),Q$(Xet(Vq(JIe.p),5),18),Q$(Xet(Xq(JIe.p),0),59),Q$(Xet(Xq(JIe.p),1),59),iMe=JIe.q,Q$(Xet(Vq(JIe.q),0),34),aMe=JIe.v,Q$(Xet(Vq(JIe.v),0),18),Q$(Xet(Xq(JIe.v),0),59),Q$(Xet(Xq(JIe.v),1),59),Q$(Xet(Xq(JIe.v),2),59),oMe=JIe.w,Q$(Xet(Vq(JIe.w),0),34),Q$(Xet(Vq(JIe.w),1),34),Q$(Xet(Vq(JIe.w),2),34),Q$(Xet(Vq(JIe.w),3),18),sMe=JIe.B,Q$(Xet(Vq(JIe.B),0),18),Q$(Xet(Xq(JIe.B),0),59),Q$(Xet(Xq(JIe.B),1),59),Q$(Xet(Xq(JIe.B),2),59),uMe=JIe.Q,Q$(Xet(Vq(JIe.Q),0),18),Q$(Xet(Xq(JIe.Q),0),59),hMe=JIe.R,Q$(Xet(Vq(JIe.R),0),34),fMe=JIe.S,Q$(Xet(Xq(JIe.S),0),59),Q$(Xet(Xq(JIe.S),1),59),Q$(Xet(Xq(JIe.S),2),59),Q$(Xet(Xq(JIe.S),3),59),Q$(Xet(Xq(JIe.S),4),59),Q$(Xet(Xq(JIe.S),5),59),Q$(Xet(Xq(JIe.S),6),59),Q$(Xet(Xq(JIe.S),7),59),Q$(Xet(Xq(JIe.S),8),59),Q$(Xet(Xq(JIe.S),9),59),Q$(Xet(Xq(JIe.S),10),59),Q$(Xet(Xq(JIe.S),11),59),Q$(Xet(Xq(JIe.S),12),59),Q$(Xet(Xq(JIe.S),13),59),Q$(Xet(Xq(JIe.S),14),59),dMe=JIe.T,Q$(Xet(Vq(JIe.T),0),18),Q$(Xet(Vq(JIe.T),2),18),AMe=Q$(Xet(Vq(JIe.T),3),18),Q$(Xet(Vq(JIe.T),4),18),Q$(Xet(Xq(JIe.T),0),59),Q$(Xet(Xq(JIe.T),1),59),Q$(Xet(Vq(JIe.T),1),18),gMe=JIe.U,Q$(Xet(Vq(JIe.U),0),34),Q$(Xet(Vq(JIe.U),1),34),Q$(Xet(Vq(JIe.U),2),18),Q$(Xet(Vq(JIe.U),3),18),Q$(Xet(Vq(JIe.U),4),18),Q$(Xet(Vq(JIe.U),5),18),Q$(Xet(Xq(JIe.U),0),59),pMe=JIe.V,Q$(Xet(Vq(JIe.V),0),18),mMe=JIe.W,Q$(Xet(Vq(JIe.W),0),34),Q$(Xet(Vq(JIe.W),1),34),Q$(Xet(Vq(JIe.W),2),34),Q$(Xet(Vq(JIe.W),3),18),Q$(Xet(Vq(JIe.W),4),18),Q$(Xet(Vq(JIe.W),5),18),vMe=JIe.bb,Q$(Xet(Vq(JIe.bb),0),34),Q$(Xet(Vq(JIe.bb),1),34),Q$(Xet(Vq(JIe.bb),2),34),Q$(Xet(Vq(JIe.bb),3),34),Q$(Xet(Vq(JIe.bb),4),34),Q$(Xet(Vq(JIe.bb),5),34),Q$(Xet(Vq(JIe.bb),6),34),Q$(Xet(Vq(JIe.bb),7),18),Q$(Xet(Xq(JIe.bb),0),59),Q$(Xet(Xq(JIe.bb),1),59),yMe=JIe.eb,Q$(Xet(Vq(JIe.eb),0),34),Q$(Xet(Vq(JIe.eb),1),34),Q$(Xet(Vq(JIe.eb),2),34),Q$(Xet(Vq(JIe.eb),3),34),Q$(Xet(Vq(JIe.eb),4),34),Q$(Xet(Vq(JIe.eb),5),34),Q$(Xet(Vq(JIe.eb),6),18),Q$(Xet(Vq(JIe.eb),7),18),bMe=JIe.ab,Q$(Xet(Vq(JIe.ab),0),34),Q$(Xet(Vq(JIe.ab),1),34),cMe=JIe.H,Q$(Xet(Vq(JIe.H),0),18),Q$(Xet(Vq(JIe.H),1),18),Q$(Xet(Vq(JIe.H),2),18),Q$(Xet(Vq(JIe.H),3),18),Q$(Xet(Vq(JIe.H),4),18),Q$(Xet(Vq(JIe.H),5),18),Q$(Xet(Xq(JIe.H),0),59),wMe=JIe.db,Q$(Xet(Vq(JIe.db),0),18),lMe=JIe.M}function pVt(t){var e;t.O||(t.O=!0,Oit(t,"type"),Dit(t,"ecore.xml.type"),Fit(t,E9t),e=Q$(IMt((GE(),HIe),E9t),1945),l7(vY(t.fb),t.b),j0(t.b,hOe,"AnyType",!1,!1,!0),oat(Q$(Xet(Vq(t.b),0),34),t.wb.D,P7t,null,0,-1,hOe,!1,!1,!0,!1,!1,!1),oat(Q$(Xet(Vq(t.b),1),34),t.wb.D,"any",null,0,-1,hOe,!0,!0,!0,!1,!1,!0),oat(Q$(Xet(Vq(t.b),2),34),t.wb.D,"anyAttribute",null,0,-1,hOe,!1,!1,!0,!1,!1,!1),j0(t.bb,HOe,L9t,!1,!1,!0),oat(Q$(Xet(Vq(t.bb),0),34),t.gb,"data",null,0,1,HOe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.bb),1),34),t.gb,q6t,null,1,1,HOe,!1,!1,!0,!1,!0,!1),j0(t.fb,jOe,I9t,!1,!1,!0),oat(Q$(Xet(Vq(t.fb),0),34),e.gb,"rawValue",null,0,1,jOe,!0,!0,!0,!1,!0,!0),oat(Q$(Xet(Vq(t.fb),1),34),e.a,k6t,null,0,1,jOe,!0,!0,!0,!1,!0,!0),xyt(Q$(Xet(Vq(t.fb),2),18),t.wb.q,null,"instanceType",1,1,jOe,!1,!1,!0,!1,!1,!1,!1),j0(t.qb,KOe,M9t,!1,!1,!0),oat(Q$(Xet(Vq(t.qb),0),34),t.wb.D,P7t,null,0,-1,null,!1,!1,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.qb),1),18),t.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.qb),2),18),t.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),oat(Q$(Xet(Vq(t.qb),3),34),t.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),oat(Q$(Xet(Vq(t.qb),4),34),t.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),xyt(Q$(Xet(Vq(t.qb),5),18),t.bb,null,ite,0,-2,null,!0,!0,!0,!0,!1,!1,!0),oat(Q$(Xet(Vq(t.qb),6),34),t.gb,S6t,null,0,-2,null,!0,!0,!0,!1,!1,!0),dW(t.a,Lte,"AnySimpleType",!0),dW(t.c,Wee,"AnyURI",!0),dW(t.d,Hw(IDe,1),"Base64Binary",!0),dW(t.e,SDe,"Boolean",!0),dW(t.f,yee,"BooleanObject",!0),dW(t.g,IDe,"Byte",!0),dW(t.i,Cee,"ByteObject",!0),dW(t.j,Wee,"Date",!0),dW(t.k,Wee,"DateTime",!0),dW(t.n,nne,"Decimal",!0),dW(t.o,MDe,"Double",!0),dW(t.p,Tee,"DoubleObject",!0),dW(t.q,Wee,"Duration",!0),dW(t.s,Nte,"ENTITIES",!0),dW(t.r,Nte,"ENTITIESBase",!0),dW(t.t,Wee,R9t,!0),dW(t.u,ODe,"Float",!0),dW(t.v,Bee,"FloatObject",!0),dW(t.w,Wee,"GDay",!0),dW(t.B,Wee,"GMonth",!0),dW(t.A,Wee,"GMonthDay",!0),dW(t.C,Wee,"GYear",!0),dW(t.D,Wee,"GYearMonth",!0),dW(t.F,Hw(IDe,1),"HexBinary",!0),dW(t.G,Wee,"ID",!0),dW(t.H,Wee,"IDREF",!0),dW(t.J,Nte,"IDREFS",!0),dW(t.I,Nte,"IDREFSBase",!0),dW(t.K,_De,"Int",!0),dW(t.M,sne,"Integer",!0),dW(t.L,Lee,"IntObject",!0),dW(t.P,Wee,"Language",!0),dW(t.Q,LDe,"Long",!0),dW(t.R,Nee,"LongObject",!0),dW(t.S,Wee,"Name",!0),dW(t.T,Wee,Q9t,!0),dW(t.U,sne,"NegativeInteger",!0),dW(t.V,Wee,W9t,!0),dW(t.X,Nte,"NMTOKENS",!0),dW(t.W,Nte,"NMTOKENSBase",!0),dW(t.Y,sne,"NonNegativeInteger",!0),dW(t.Z,sne,"NonPositiveInteger",!0),dW(t.$,Wee,"NormalizedString",!0),dW(t._,Wee,"NOTATION",!0),dW(t.ab,Wee,"PositiveInteger",!0),dW(t.cb,Wee,"QName",!0),dW(t.db,DDe,"Short",!0),dW(t.eb,Ree,"ShortObject",!0),dW(t.gb,Wee,HWt,!0),dW(t.hb,Wee,"Time",!0),dW(t.ib,Wee,"Token",!0),dW(t.jb,DDe,"UnsignedByte",!0),dW(t.kb,Ree,"UnsignedByteObject",!0),dW(t.lb,LDe,"UnsignedInt",!0),dW(t.mb,Nee,"UnsignedIntObject",!0),dW(t.nb,sne,"UnsignedLong",!0),dW(t.ob,_De,"UnsignedShort",!0),dW(t.pb,Lee,"UnsignedShortObject",!0),Mut(t,E9t),vVt(t))}function mVt(t){ME(t,new xxt(mk(dk(pk(fk(gk(Ak(new ps,d1t),"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 _a),d1t),wK((lIt(),tIe),Tst(Hw(rIe,1),IWt,237,0,[YLe,JLe,qLe,ZLe,VLe,XLe]))))),a2(t,d1t,M2t,bmt(gme)),a2(t,d1t,O2t,bmt(pme)),a2(t,d1t,GJt,bmt(mme)),a2(t,d1t,D2t,bmt(bme)),a2(t,d1t,bZt,bmt(yme)),a2(t,d1t,F2t,bmt(wme)),a2(t,d1t,N2t,bmt(xme)),a2(t,d1t,P2t,bmt(Tme)),a2(t,d1t,R2t,bmt(Bme)),a2(t,d1t,Q2t,bmt(Eme)),a2(t,d1t,mZt,bmt(_me)),a2(t,d1t,U2t,bmt(Lme)),a2(t,d1t,$2t,bmt(Mme)),a2(t,d1t,H2t,bmt(Cme)),a2(t,d1t,M0t,bmt(Ame)),a2(t,d1t,D0t,bmt(vme)),a2(t,d1t,O0t,bmt(kme)),a2(t,d1t,F0t,bmt(Sme)),a2(t,d1t,pZt,nft(0)),a2(t,d1t,N0t,bmt(lme)),a2(t,d1t,P0t,bmt(ume)),a2(t,d1t,R0t,bmt(hme)),a2(t,d1t,z0t,bmt(jme)),a2(t,d1t,G0t,bmt(Fme)),a2(t,d1t,X0t,bmt(Nme)),a2(t,d1t,V0t,bmt(Qme)),a2(t,d1t,W0t,bmt(Pme)),a2(t,d1t,q0t,bmt(Rme)),a2(t,d1t,Y0t,bmt(zme)),a2(t,d1t,J0t,bmt(Kme)),a2(t,d1t,Z0t,bmt($me)),a2(t,d1t,t2t,bmt(Ume)),a2(t,d1t,e2t,bmt(Hme)),a2(t,d1t,E0t,bmt(Fpe)),a2(t,d1t,T0t,bmt(Npe)),a2(t,d1t,S0t,bmt(npe)),a2(t,d1t,L0t,bmt(rpe)),a2(t,d1t,WJt,Kpe),a2(t,d1t,v2t,Jge),a2(t,d1t,j2t,0),a2(t,d1t,vZt,nft(1)),a2(t,d1t,VJt,AZt),a2(t,d1t,K2t,bmt(Hpe)),a2(t,d1t,kZt,bmt(tme)),a2(t,d1t,z2t,bmt(ame)),a2(t,d1t,G2t,bmt(jge)),a2(t,d1t,X2t,bmt(vge)),a2(t,d1t,A2t,bmt(spe)),a2(t,d1t,yZt,(cD(),!0)),a2(t,d1t,V2t,bmt(fpe)),a2(t,d1t,W2t,bmt(dpe)),a2(t,d1t,TZt,bmt(Rpe)),a2(t,d1t,EZt,bmt($pe)),a2(t,d1t,q2t,bmt(Qpe)),a2(t,d1t,Y2t,Gge),a2(t,d1t,BZt,bmt(Lpe)),a2(t,d1t,J2t,bmt(Spe)),a2(t,d1t,_Zt,bmt(rme)),a2(t,d1t,Z2t,bmt(nme)),a2(t,d1t,t3t,bmt(ime)),a2(t,d1t,e3t,Xpe),a2(t,d1t,n3t,bmt(Wpe)),a2(t,d1t,r3t,bmt(qpe)),a2(t,d1t,i3t,bmt(Ype)),a2(t,d1t,a3t,bmt(Vpe)),a2(t,d1t,Z1t,bmt(Dme)),a2(t,d1t,n0t,bmt(Epe)),a2(t,d1t,c0t,bmt(xpe)),a2(t,d1t,J1t,bmt(Ome)),a2(t,d1t,r0t,bmt(vpe)),a2(t,d1t,e0t,bmt(Hge)),a2(t,d1t,h0t,bmt($ge)),a2(t,d1t,f0t,bmt(Oge)),a2(t,d1t,m0t,bmt(Dge)),a2(t,d1t,b0t,bmt(Nge)),a2(t,d1t,v0t,bmt(Fge)),a2(t,d1t,A0t,bmt(Uge)),a2(t,d1t,V1t,bmt(Bpe)),a2(t,d1t,W1t,bmt(_pe)),a2(t,d1t,X1t,bmt(gpe)),a2(t,d1t,y0t,bmt(Ppe)),a2(t,d1t,C0t,bmt(Mpe)),a2(t,d1t,G1t,bmt(ape)),a2(t,d1t,x0t,bmt(Dpe)),a2(t,d1t,B0t,bmt(tpe)),a2(t,d1t,_0t,bmt(epe)),a2(t,d1t,o3t,bmt(Mge)),a2(t,d1t,k0t,bmt(Ipe)),a2(t,d1t,U0t,bmt(Ege)),a2(t,d1t,$0t,bmt(xge)),a2(t,d1t,Q0t,bmt(Cge)),a2(t,d1t,H0t,bmt(lpe)),a2(t,d1t,j0t,bmt(cpe)),a2(t,d1t,K0t,bmt(upe)),a2(t,d1t,UZt,bmt(Upe)),a2(t,d1t,s3t,bmt(ppe)),a2(t,d1t,XJt,bmt(ipe)),a2(t,d1t,c3t,bmt(Wge)),a2(t,d1t,CZt,bmt(Vge)),a2(t,d1t,d0t,bmt(Pge)),a2(t,d1t,l3t,bmt(eme)),a2(t,d1t,u3t,bmt(kge)),a2(t,d1t,h3t,bmt(hpe)),a2(t,d1t,f3t,bmt(Jpe)),a2(t,d1t,d3t,bmt(zpe)),a2(t,d1t,A3t,bmt(Gpe)),a2(t,d1t,o0t,bmt(wpe)),a2(t,d1t,s0t,bmt(kpe)),a2(t,d1t,g3t,bmt(sme)),a2(t,d1t,q1t,bmt(yge)),a2(t,d1t,l0t,bmt(Cpe)),a2(t,d1t,n2t,bmt(qge)),a2(t,d1t,r2t,bmt(Xge)),a2(t,d1t,p3t,bmt(Tpe)),a2(t,d1t,u0t,bmt(mpe)),a2(t,d1t,w0t,bmt(Ope)),a2(t,d1t,m3t,bmt(Ime)),a2(t,d1t,z1t,bmt(zge)),a2(t,d1t,Y1t,bmt(ome)),a2(t,d1t,I0t,bmt(Zge)),a2(t,d1t,i0t,bmt(bpe)),a2(t,d1t,g0t,bmt(Rge)),a2(t,d1t,b3t,bmt(Ape)),a2(t,d1t,a0t,bmt(ype)),a2(t,d1t,p0t,bmt(Qge)),a2(t,d1t,i2t,bmt(Ige)),a2(t,d1t,s2t,bmt(Sge)),a2(t,d1t,c2t,bmt(Bge)),a2(t,d1t,l2t,bmt(_ge)),a2(t,d1t,a2t,bmt(Lge)),a2(t,d1t,o2t,bmt(Tge)),a2(t,d1t,t0t,bmt(ope))}function bVt(t,e){var n;return YOe||(YOe=new Om,JOe=new Om,dVt(),dVt(),vgt(n=new C0(4),"\t\n\r\r "),mZ(YOe,ute,n),mZ(JOe,ute,IUt(n)),vgt(n=new C0(4),dte),mZ(YOe,cte,n),mZ(JOe,cte,IUt(n)),vgt(n=new C0(4),dte),mZ(YOe,cte,n),mZ(JOe,cte,IUt(n)),vgt(n=new C0(4),Ate),cHt(n,Q$(xJ(YOe,cte),117)),mZ(YOe,lte,n),mZ(JOe,lte,IUt(n)),vgt(n=new C0(4),"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),mZ(YOe,hte,n),mZ(JOe,hte,IUt(n)),vgt(n=new C0(4),Ate),qFt(n,95,95),qFt(n,58,58),mZ(YOe,fte,n),mZ(JOe,fte,IUt(n))),Q$(xJ(e?YOe:JOe,t),136)}function vVt(t){VMt(t.a,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"anySimpleType"])),VMt(t.b,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"anyType",Q7t,P7t])),VMt(Q$(Xet(Vq(t.b),0),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,b9t,t8t,":mixed"])),VMt(Q$(Xet(Vq(t.b),1),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,b9t,x9t,T9t,t8t,":1",F9t,"lax"])),VMt(Q$(Xet(Vq(t.b),2),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,p9t,x9t,T9t,t8t,":2",F9t,"lax"])),VMt(t.c,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"anyURI",C9t,v9t])),VMt(t.d,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"base64Binary",C9t,v9t])),VMt(t.e,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,IVt,C9t,v9t])),VMt(t.f,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"boolean:Object",Y7t,IVt])),VMt(t.g,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,E7t])),VMt(t.i,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"byte:Object",Y7t,E7t])),VMt(t.j,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"date",C9t,v9t])),VMt(t.k,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"dateTime",C9t,v9t])),VMt(t.n,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"decimal",C9t,v9t])),VMt(t.o,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,B7t,C9t,v9t])),VMt(t.p,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"double:Object",Y7t,B7t])),VMt(t.q,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"duration",C9t,v9t])),VMt(t.s,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"ENTITIES",Y7t,N9t,P9t,"1"])),VMt(t.r,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,N9t,y9t,R9t])),VMt(t.t,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,R9t,Y7t,Q9t])),VMt(t.u,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,_7t,C9t,v9t])),VMt(t.v,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"float:Object",Y7t,_7t])),VMt(t.w,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"gDay",C9t,v9t])),VMt(t.B,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"gMonth",C9t,v9t])),VMt(t.A,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"gMonthDay",C9t,v9t])),VMt(t.C,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"gYear",C9t,v9t])),VMt(t.D,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"gYearMonth",C9t,v9t])),VMt(t.F,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"hexBinary",C9t,v9t])),VMt(t.G,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"ID",Y7t,Q9t])),VMt(t.H,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"IDREF",Y7t,Q9t])),VMt(t.J,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"IDREFS",Y7t,U9t,P9t,"1"])),VMt(t.I,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,U9t,y9t,"IDREF"])),VMt(t.K,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,S7t])),VMt(t.M,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,$9t])),VMt(t.L,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"int:Object",Y7t,S7t])),VMt(t.P,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"language",Y7t,H9t,j9t,K9t])),VMt(t.Q,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,L7t])),VMt(t.R,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"long:Object",Y7t,L7t])),VMt(t.S,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"Name",Y7t,H9t,j9t,z9t])),VMt(t.T,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,Q9t,Y7t,"Name",j9t,G9t])),VMt(t.U,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"negativeInteger",Y7t,X9t,V9t,"-1"])),VMt(t.V,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,W9t,Y7t,H9t,j9t,"\\c+"])),VMt(t.X,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"NMTOKENS",Y7t,q9t,P9t,"1"])),VMt(t.W,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,q9t,y9t,W9t])),VMt(t.Y,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,Y9t,Y7t,$9t,J9t,"0"])),VMt(t.Z,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,X9t,Y7t,$9t,V9t,"0"])),VMt(t.$,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,Z9t,Y7t,OVt,C9t,"replace"])),VMt(t._,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"NOTATION",C9t,v9t])),VMt(t.ab,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"positiveInteger",Y7t,Y9t,J9t,"1"])),VMt(t.bb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"processingInstruction_._type",Q7t,"empty"])),VMt(Q$(Xet(Vq(t.bb),0),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,g9t,t8t,"data"])),VMt(Q$(Xet(Vq(t.bb),1),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,g9t,t8t,q6t])),VMt(t.cb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"QName",C9t,v9t])),VMt(t.db,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,I7t])),VMt(t.eb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"short:Object",Y7t,I7t])),VMt(t.fb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"simpleAnyType",Q7t,A9t])),VMt(Q$(Xet(Vq(t.fb),0),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,":3",Q7t,A9t])),VMt(Q$(Xet(Vq(t.fb),1),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,":4",Q7t,A9t])),VMt(Q$(Xet(Vq(t.fb),2),18),R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,":5",Q7t,A9t])),VMt(t.gb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,OVt,C9t,"preserve"])),VMt(t.hb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"time",C9t,v9t])),VMt(t.ib,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,H9t,Y7t,Z9t,C9t,v9t])),VMt(t.jb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,tte,V9t,"255",J9t,"0"])),VMt(t.kb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"unsignedByte:Object",Y7t,tte])),VMt(t.lb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,ete,V9t,"4294967295",J9t,"0"])),VMt(t.mb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"unsignedInt:Object",Y7t,ete])),VMt(t.nb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"unsignedLong",Y7t,Y9t,V9t,nte,J9t,"0"])),VMt(t.ob,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,rte,V9t,"65535",J9t,"0"])),VMt(t.pb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"unsignedShort:Object",Y7t,rte])),VMt(t.qb,R7t,Tst(Hw(Wee,1),cWt,2,6,[t8t,"",Q7t,P7t])),VMt(Q$(Xet(Vq(t.qb),0),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,b9t,t8t,":mixed"])),VMt(Q$(Xet(Vq(t.qb),1),18),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,g9t,t8t,"xmlns:prefix"])),VMt(Q$(Xet(Vq(t.qb),2),18),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,g9t,t8t,"xsi:schemaLocation"])),VMt(Q$(Xet(Vq(t.qb),3),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,m9t,t8t,"cDATA",w9t,k9t])),VMt(Q$(Xet(Vq(t.qb),4),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,m9t,t8t,"comment",w9t,k9t])),VMt(Q$(Xet(Vq(t.qb),5),18),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,m9t,t8t,ite,w9t,k9t])),VMt(Q$(Xet(Vq(t.qb),6),34),R7t,Tst(Hw(Wee,1),cWt,2,6,[Q7t,m9t,t8t,S6t,w9t,k9t]))}function yVt(t){return mR("_UI_EMFDiagnostic_marker",t)?"EMF Problem":mR("_UI_CircularContainment_diagnostic",t)?"An object may not circularly contain itself":mR(d8t,t)?"Wrong character.":mR(A8t,t)?"Invalid reference number.":mR(g8t,t)?"A character is required after \\.":mR(p8t,t)?"'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":mR(m8t,t)?"'(?<' or '(?<!' is expected.":mR(b8t,t)?"A comment is not terminated.":mR(v8t,t)?"')' is expected.":mR(y8t,t)?"Unexpected end of the pattern in a modifier group.":mR(w8t,t)?"':' is expected.":mR(k8t,t)?"Unexpected end of the pattern in a conditional group.":mR(C8t,t)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":mR(x8t,t)?"There are more than three choices in a conditional group.":mR(E8t,t)?"A character in U+0040-U+005f must follow \\c.":mR(T8t,t)?"A '{' is required before a character category.":mR(B8t,t)?"A property name is not closed by '}'.":mR(_8t,t)?"Unexpected meta character.":mR(S8t,t)?"Unknown property.":mR(L8t,t)?"A POSIX character class must be closed by ':]'.":mR(I8t,t)?"Unexpected end of the pattern in a character class.":mR(M8t,t)?"Unknown name for a POSIX character class.":mR("parser.cc.4",t)?"'-' is invalid here.":mR(O8t,t)?"']' is expected.":mR(D8t,t)?"'[' is invalid in a character class. Write '\\['.":mR(F8t,t)?"']' is invalid in a character class. Write '\\]'.":mR(N8t,t)?"'-' is an invalid character range. Write '\\-'.":mR(P8t,t)?"'[' is expected.":mR(R8t,t)?"')' or '-[' or '+[' or '&[' is expected.":mR(Q8t,t)?"The range end code point is less than the start code point.":mR(U8t,t)?"Invalid Unicode hex notation.":mR($8t,t)?"Overflow in a hex notation.":mR(H8t,t)?"'\\x{' must be closed by '}'.":mR(j8t,t)?"Invalid Unicode code point.":mR(K8t,t)?"An anchor must not be here.":mR(z8t,t)?"This expression is not supported in the current option setting.":mR(G8t,t)?"Invalid quantifier. A digit is expected.":mR(X8t,t)?"Invalid quantifier. Invalid quantity or a '}' is missing.":mR(V8t,t)?"Invalid quantifier. A digit or '}' is expected.":mR(W8t,t)?"Invalid quantifier. A min quantity must be <= a max quantity.":mR(q8t,t)?"Invalid quantifier. A quantity value overflow.":mR("_UI_PackageRegistry_extensionpoint",t)?"Ecore Package Registry for Generated Packages":mR("_UI_DynamicPackageRegistry_extensionpoint",t)?"Ecore Package Registry for Dynamic Packages":mR("_UI_FactoryRegistry_extensionpoint",t)?"Ecore Factory Override Registry":mR("_UI_URIExtensionParserRegistry_extensionpoint",t)?"URI Extension Parser Registry":mR("_UI_URIProtocolParserRegistry_extensionpoint",t)?"URI Protocol Parser Registry":mR("_UI_URIContentParserRegistry_extensionpoint",t)?"URI Content Parser Registry":mR("_UI_ContentHandlerRegistry_extensionpoint",t)?"Content Handler Registry":mR("_UI_URIMappingRegistry_extensionpoint",t)?"URI Converter Mapping Registry":mR("_UI_PackageRegistryImplementation_extensionpoint",t)?"Ecore Package Registry Implementation":mR("_UI_ValidationDelegateRegistry_extensionpoint",t)?"Validation Delegate Registry":mR("_UI_SettingDelegateRegistry_extensionpoint",t)?"Feature Setting Delegate Factory Registry":mR("_UI_InvocationDelegateRegistry_extensionpoint",t)?"Operation Invocation Delegate Factory Registry":mR("_UI_EClassInterfaceNotAbstract_diagnostic",t)?"A class that is an interface must also be abstract":mR("_UI_EClassNoCircularSuperTypes_diagnostic",t)?"A class may not be a super type of itself":mR("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",t)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":mR("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",t)?"The opposite of the opposite may not be a reference different from this one":mR("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",t)?"The opposite must be a feature of the reference's type":mR("_UI_EReferenceTransientOppositeNotTransient_diagnostic",t)?"The opposite of a transient reference must be transient if it is proxy resolving":mR("_UI_EReferenceOppositeBothContainment_diagnostic",t)?"The opposite of a containment reference must not be a containment reference":mR("_UI_EReferenceConsistentUnique_diagnostic",t)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":mR("_UI_ETypedElementNoType_diagnostic",t)?"The typed element must have a type":mR("_UI_EAttributeNoDataType_diagnostic",t)?"The generic attribute type must not refer to a class":mR("_UI_EReferenceNoClass_diagnostic",t)?"The generic reference type must not refer to a data type":mR("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",t)?"A generic type can't refer to both a type parameter and a classifier":mR("_UI_EGenericTypeNoClass_diagnostic",t)?"A generic super type must refer to a class":mR("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",t)?"A generic type in this context must refer to a classifier or a type parameter":mR("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",t)?"A generic type may have bounds only when used as a type argument":mR("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",t)?"A generic type must not have both a lower and an upper bound":mR("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",t)?"A generic type with bounds must not also refer to a type parameter or classifier":mR("_UI_EGenericTypeNoArguments_diagnostic",t)?"A generic type may have arguments only if it refers to a classifier":mR("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",t)?"A generic type may only refer to a type parameter that is in scope":t}function wVt(t){var e,n,r,i,a,o,s;t.r||(t.r=!0,Oit(t,"graph"),Dit(t,"graph"),Fit(t,v6t),ist(t.o,"T"),l7(vY(t.a),t.p),l7(vY(t.f),t.a),l7(vY(t.n),t.f),l7(vY(t.g),t.n),l7(vY(t.c),t.n),l7(vY(t.i),t.c),l7(vY(t.j),t.c),l7(vY(t.d),t.f),l7(vY(t.e),t.a),j0(t.p,zie,SJt,!0,!0,!1),s=Cst(o=blt(t.p,t.p,"setProperty")),e=YW(t.o),n=new Nm,l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),yCt(n,r=JW(s)),zkt(o,e,w6t),zkt(o,e=JW(s),k6t),s=Cst(o=blt(t.p,null,"getProperty")),e=YW(t.o),n=JW(s),l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),zkt(o,e,w6t),(a=$xt(o,e=JW(s),null))&&a.Fi(),o=blt(t.p,t.wb.e,"hasProperty"),e=YW(t.o),n=new Nm,l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),zkt(o,e,w6t),Iyt(o=blt(t.p,t.p,"copyProperties"),t.p,C6t),o=blt(t.p,null,"getAllProperties"),e=YW(t.wb.P),n=YW(t.o),l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),r=new Nm,l7((!n.d&&(n.d=new LO(GIe,n,1)),n.d),r),n=YW(t.wb.M),l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),(i=$xt(o,e,null))&&i.Fi(),j0(t.a,ILe,K5t,!0,!1,!0),xyt(Q$(Xet(Vq(t.a),0),18),t.k,null,x6t,0,-1,ILe,!1,!1,!0,!0,!1,!1,!1),j0(t.f,OLe,G5t,!0,!1,!0),xyt(Q$(Xet(Vq(t.f),0),18),t.g,Q$(Xet(Vq(t.g),0),18),"labels",0,-1,OLe,!1,!1,!0,!0,!1,!1,!1),oat(Q$(Xet(Vq(t.f),1),34),t.wb._,E6t,null,0,1,OLe,!1,!1,!0,!1,!0,!1),j0(t.n,DLe,"ElkShape",!0,!1,!0),oat(Q$(Xet(Vq(t.n),0),34),t.wb.t,T6t,Xqt,1,1,DLe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.n),1),34),t.wb.t,B6t,Xqt,1,1,DLe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.n),2),34),t.wb.t,"x",Xqt,1,1,DLe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.n),3),34),t.wb.t,"y",Xqt,1,1,DLe,!1,!1,!0,!1,!0,!1),Iyt(o=blt(t.n,null,"setDimensions"),t.wb.t,B6t),Iyt(o,t.wb.t,T6t),Iyt(o=blt(t.n,null,"setLocation"),t.wb.t,"x"),Iyt(o,t.wb.t,"y"),j0(t.g,HLe,J5t,!1,!1,!0),xyt(Q$(Xet(Vq(t.g),0),18),t.f,Q$(Xet(Vq(t.f),0),18),_6t,0,1,HLe,!1,!1,!0,!1,!1,!1,!1),oat(Q$(Xet(Vq(t.g),1),34),t.wb._,S6t,"",0,1,HLe,!1,!1,!0,!1,!0,!1),j0(t.c,FLe,X5t,!0,!1,!0),xyt(Q$(Xet(Vq(t.c),0),18),t.d,Q$(Xet(Vq(t.d),1),18),"outgoingEdges",0,-1,FLe,!1,!1,!0,!1,!0,!1,!1),xyt(Q$(Xet(Vq(t.c),1),18),t.d,Q$(Xet(Vq(t.d),2),18),"incomingEdges",0,-1,FLe,!1,!1,!0,!1,!0,!1,!1),j0(t.i,jLe,Z5t,!1,!1,!0),xyt(Q$(Xet(Vq(t.i),0),18),t.j,Q$(Xet(Vq(t.j),0),18),"ports",0,-1,jLe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.i),1),18),t.i,Q$(Xet(Vq(t.i),2),18),L6t,0,-1,jLe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.i),2),18),t.i,Q$(Xet(Vq(t.i),1),18),_6t,0,1,jLe,!1,!1,!0,!1,!1,!1,!1),xyt(Q$(Xet(Vq(t.i),3),18),t.d,Q$(Xet(Vq(t.d),0),18),"containedEdges",0,-1,jLe,!1,!1,!0,!0,!1,!1,!1),oat(Q$(Xet(Vq(t.i),4),34),t.wb.e,I6t,null,0,1,jLe,!0,!0,!1,!1,!0,!0),j0(t.j,KLe,t6t,!1,!1,!0),xyt(Q$(Xet(Vq(t.j),0),18),t.i,Q$(Xet(Vq(t.i),0),18),_6t,0,1,KLe,!1,!1,!0,!1,!1,!1,!1),j0(t.d,NLe,V5t,!1,!1,!0),xyt(Q$(Xet(Vq(t.d),0),18),t.i,Q$(Xet(Vq(t.i),3),18),"containingNode",0,1,NLe,!1,!1,!0,!1,!1,!1,!1),xyt(Q$(Xet(Vq(t.d),1),18),t.c,Q$(Xet(Vq(t.c),0),18),M6t,0,-1,NLe,!1,!1,!0,!1,!0,!1,!1),xyt(Q$(Xet(Vq(t.d),2),18),t.c,Q$(Xet(Vq(t.c),1),18),O6t,0,-1,NLe,!1,!1,!0,!1,!0,!1,!1),xyt(Q$(Xet(Vq(t.d),3),18),t.e,Q$(Xet(Vq(t.e),5),18),D6t,0,-1,NLe,!1,!1,!0,!0,!1,!1,!1),oat(Q$(Xet(Vq(t.d),4),34),t.wb.e,"hyperedge",null,0,1,NLe,!0,!0,!1,!1,!0,!0),oat(Q$(Xet(Vq(t.d),5),34),t.wb.e,I6t,null,0,1,NLe,!0,!0,!1,!1,!0,!0),oat(Q$(Xet(Vq(t.d),6),34),t.wb.e,"selfloop",null,0,1,NLe,!0,!0,!1,!1,!0,!0),oat(Q$(Xet(Vq(t.d),7),34),t.wb.e,"connected",null,0,1,NLe,!0,!0,!1,!1,!0,!0),j0(t.b,MLe,z5t,!1,!1,!0),oat(Q$(Xet(Vq(t.b),0),34),t.wb.t,"x",Xqt,1,1,MLe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.b),1),34),t.wb.t,"y",Xqt,1,1,MLe,!1,!1,!0,!1,!0,!1),Iyt(o=blt(t.b,null,"set"),t.wb.t,"x"),Iyt(o,t.wb.t,"y"),j0(t.e,PLe,W5t,!1,!1,!0),oat(Q$(Xet(Vq(t.e),0),34),t.wb.t,"startX",null,0,1,PLe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.e),1),34),t.wb.t,"startY",null,0,1,PLe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.e),2),34),t.wb.t,"endX",null,0,1,PLe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.e),3),34),t.wb.t,"endY",null,0,1,PLe,!1,!1,!0,!1,!0,!1),xyt(Q$(Xet(Vq(t.e),4),18),t.b,null,F6t,0,-1,PLe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.e),5),18),t.d,Q$(Xet(Vq(t.d),3),18),_6t,0,1,PLe,!1,!1,!0,!1,!1,!1,!1),xyt(Q$(Xet(Vq(t.e),6),18),t.c,null,N6t,0,1,PLe,!1,!1,!0,!1,!0,!1,!1),xyt(Q$(Xet(Vq(t.e),7),18),t.c,null,P6t,0,1,PLe,!1,!1,!0,!1,!0,!1,!1),xyt(Q$(Xet(Vq(t.e),8),18),t.e,Q$(Xet(Vq(t.e),9),18),R6t,0,-1,PLe,!1,!1,!0,!1,!0,!1,!1),xyt(Q$(Xet(Vq(t.e),9),18),t.e,Q$(Xet(Vq(t.e),8),18),Q6t,0,-1,PLe,!1,!1,!0,!1,!0,!1,!1),oat(Q$(Xet(Vq(t.e),10),34),t.wb._,E6t,null,0,1,PLe,!1,!1,!0,!1,!0,!1),Iyt(o=blt(t.e,null,"setStartLocation"),t.wb.t,"x"),Iyt(o,t.wb.t,"y"),Iyt(o=blt(t.e,null,"setEndLocation"),t.wb.t,"x"),Iyt(o,t.wb.t,"y"),j0(t.k,$te,"ElkPropertyToValueMapEntry",!1,!1,!1),e=YW(t.o),n=new Nm,l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),RLt(Q$(Xet(Vq(t.k),0),34),e,"key",$te,!1,!1,!0,!1),oat(Q$(Xet(Vq(t.k),1),34),t.s,k6t,null,0,1,$te,!1,!1,!0,!1,!0,!1),dW(t.o,uEe,"IProperty",!0),dW(t.s,Lte,"PropertyValue",!0),Mut(t,v6t))}function kVt(){kVt=L,(WOe=O8(IDe,m6t,25,Uqt,15,1))[9]=35,WOe[10]=19,WOe[13]=19,WOe[32]=51,WOe[33]=49,WOe[34]=33,bG(WOe,35,38,49),WOe[38]=1,bG(WOe,39,45,49),bG(WOe,45,47,-71),WOe[47]=49,bG(WOe,48,58,-71),WOe[58]=61,WOe[59]=49,WOe[60]=1,WOe[61]=49,WOe[62]=33,bG(WOe,63,65,49),bG(WOe,65,91,-3),bG(WOe,91,93,33),WOe[93]=1,WOe[94]=33,WOe[95]=-3,WOe[96]=33,bG(WOe,97,123,-3),bG(WOe,123,183,33),WOe[183]=-87,bG(WOe,184,192,33),bG(WOe,192,215,-19),WOe[215]=33,bG(WOe,216,247,-19),WOe[247]=33,bG(WOe,248,306,-19),bG(WOe,306,308,33),bG(WOe,308,319,-19),bG(WOe,319,321,33),bG(WOe,321,329,-19),WOe[329]=33,bG(WOe,330,383,-19),WOe[383]=33,bG(WOe,384,452,-19),bG(WOe,452,461,33),bG(WOe,461,497,-19),bG(WOe,497,500,33),bG(WOe,500,502,-19),bG(WOe,502,506,33),bG(WOe,506,536,-19),bG(WOe,536,592,33),bG(WOe,592,681,-19),bG(WOe,681,699,33),bG(WOe,699,706,-19),bG(WOe,706,720,33),bG(WOe,720,722,-87),bG(WOe,722,768,33),bG(WOe,768,838,-87),bG(WOe,838,864,33),bG(WOe,864,866,-87),bG(WOe,866,902,33),WOe[902]=-19,WOe[903]=-87,bG(WOe,904,907,-19),WOe[907]=33,WOe[908]=-19,WOe[909]=33,bG(WOe,910,930,-19),WOe[930]=33,bG(WOe,931,975,-19),WOe[975]=33,bG(WOe,976,983,-19),bG(WOe,983,986,33),WOe[986]=-19,WOe[987]=33,WOe[988]=-19,WOe[989]=33,WOe[990]=-19,WOe[991]=33,WOe[992]=-19,WOe[993]=33,bG(WOe,994,1012,-19),bG(WOe,1012,1025,33),bG(WOe,1025,1037,-19),WOe[1037]=33,bG(WOe,1038,1104,-19),WOe[1104]=33,bG(WOe,1105,1117,-19),WOe[1117]=33,bG(WOe,1118,1154,-19),WOe[1154]=33,bG(WOe,1155,1159,-87),bG(WOe,1159,1168,33),bG(WOe,1168,1221,-19),bG(WOe,1221,1223,33),bG(WOe,1223,1225,-19),bG(WOe,1225,1227,33),bG(WOe,1227,1229,-19),bG(WOe,1229,1232,33),bG(WOe,1232,1260,-19),bG(WOe,1260,1262,33),bG(WOe,1262,1270,-19),bG(WOe,1270,1272,33),bG(WOe,1272,1274,-19),bG(WOe,1274,1329,33),bG(WOe,1329,1367,-19),bG(WOe,1367,1369,33),WOe[1369]=-19,bG(WOe,1370,1377,33),bG(WOe,1377,1415,-19),bG(WOe,1415,1425,33),bG(WOe,1425,1442,-87),WOe[1442]=33,bG(WOe,1443,1466,-87),WOe[1466]=33,bG(WOe,1467,1470,-87),WOe[1470]=33,WOe[1471]=-87,WOe[1472]=33,bG(WOe,1473,1475,-87),WOe[1475]=33,WOe[1476]=-87,bG(WOe,1477,1488,33),bG(WOe,1488,1515,-19),bG(WOe,1515,1520,33),bG(WOe,1520,1523,-19),bG(WOe,1523,1569,33),bG(WOe,1569,1595,-19),bG(WOe,1595,1600,33),WOe[1600]=-87,bG(WOe,1601,1611,-19),bG(WOe,1611,1619,-87),bG(WOe,1619,1632,33),bG(WOe,1632,1642,-87),bG(WOe,1642,1648,33),WOe[1648]=-87,bG(WOe,1649,1720,-19),bG(WOe,1720,1722,33),bG(WOe,1722,1727,-19),WOe[1727]=33,bG(WOe,1728,1743,-19),WOe[1743]=33,bG(WOe,1744,1748,-19),WOe[1748]=33,WOe[1749]=-19,bG(WOe,1750,1765,-87),bG(WOe,1765,1767,-19),bG(WOe,1767,1769,-87),WOe[1769]=33,bG(WOe,1770,1774,-87),bG(WOe,1774,1776,33),bG(WOe,1776,1786,-87),bG(WOe,1786,2305,33),bG(WOe,2305,2308,-87),WOe[2308]=33,bG(WOe,2309,2362,-19),bG(WOe,2362,2364,33),WOe[2364]=-87,WOe[2365]=-19,bG(WOe,2366,2382,-87),bG(WOe,2382,2385,33),bG(WOe,2385,2389,-87),bG(WOe,2389,2392,33),bG(WOe,2392,2402,-19),bG(WOe,2402,2404,-87),bG(WOe,2404,2406,33),bG(WOe,2406,2416,-87),bG(WOe,2416,2433,33),bG(WOe,2433,2436,-87),WOe[2436]=33,bG(WOe,2437,2445,-19),bG(WOe,2445,2447,33),bG(WOe,2447,2449,-19),bG(WOe,2449,2451,33),bG(WOe,2451,2473,-19),WOe[2473]=33,bG(WOe,2474,2481,-19),WOe[2481]=33,WOe[2482]=-19,bG(WOe,2483,2486,33),bG(WOe,2486,2490,-19),bG(WOe,2490,2492,33),WOe[2492]=-87,WOe[2493]=33,bG(WOe,2494,2501,-87),bG(WOe,2501,2503,33),bG(WOe,2503,2505,-87),bG(WOe,2505,2507,33),bG(WOe,2507,2510,-87),bG(WOe,2510,2519,33),WOe[2519]=-87,bG(WOe,2520,2524,33),bG(WOe,2524,2526,-19),WOe[2526]=33,bG(WOe,2527,2530,-19),bG(WOe,2530,2532,-87),bG(WOe,2532,2534,33),bG(WOe,2534,2544,-87),bG(WOe,2544,2546,-19),bG(WOe,2546,2562,33),WOe[2562]=-87,bG(WOe,2563,2565,33),bG(WOe,2565,2571,-19),bG(WOe,2571,2575,33),bG(WOe,2575,2577,-19),bG(WOe,2577,2579,33),bG(WOe,2579,2601,-19),WOe[2601]=33,bG(WOe,2602,2609,-19),WOe[2609]=33,bG(WOe,2610,2612,-19),WOe[2612]=33,bG(WOe,2613,2615,-19),WOe[2615]=33,bG(WOe,2616,2618,-19),bG(WOe,2618,2620,33),WOe[2620]=-87,WOe[2621]=33,bG(WOe,2622,2627,-87),bG(WOe,2627,2631,33),bG(WOe,2631,2633,-87),bG(WOe,2633,2635,33),bG(WOe,2635,2638,-87),bG(WOe,2638,2649,33),bG(WOe,2649,2653,-19),WOe[2653]=33,WOe[2654]=-19,bG(WOe,2655,2662,33),bG(WOe,2662,2674,-87),bG(WOe,2674,2677,-19),bG(WOe,2677,2689,33),bG(WOe,2689,2692,-87),WOe[2692]=33,bG(WOe,2693,2700,-19),WOe[2700]=33,WOe[2701]=-19,WOe[2702]=33,bG(WOe,2703,2706,-19),WOe[2706]=33,bG(WOe,2707,2729,-19),WOe[2729]=33,bG(WOe,2730,2737,-19),WOe[2737]=33,bG(WOe,2738,2740,-19),WOe[2740]=33,bG(WOe,2741,2746,-19),bG(WOe,2746,2748,33),WOe[2748]=-87,WOe[2749]=-19,bG(WOe,2750,2758,-87),WOe[2758]=33,bG(WOe,2759,2762,-87),WOe[2762]=33,bG(WOe,2763,2766,-87),bG(WOe,2766,2784,33),WOe[2784]=-19,bG(WOe,2785,2790,33),bG(WOe,2790,2800,-87),bG(WOe,2800,2817,33),bG(WOe,2817,2820,-87),WOe[2820]=33,bG(WOe,2821,2829,-19),bG(WOe,2829,2831,33),bG(WOe,2831,2833,-19),bG(WOe,2833,2835,33),bG(WOe,2835,2857,-19),WOe[2857]=33,bG(WOe,2858,2865,-19),WOe[2865]=33,bG(WOe,2866,2868,-19),bG(WOe,2868,2870,33),bG(WOe,2870,2874,-19),bG(WOe,2874,2876,33),WOe[2876]=-87,WOe[2877]=-19,bG(WOe,2878,2884,-87),bG(WOe,2884,2887,33),bG(WOe,2887,2889,-87),bG(WOe,2889,2891,33),bG(WOe,2891,2894,-87),bG(WOe,2894,2902,33),bG(WOe,2902,2904,-87),bG(WOe,2904,2908,33),bG(WOe,2908,2910,-19),WOe[2910]=33,bG(WOe,2911,2914,-19),bG(WOe,2914,2918,33),bG(WOe,2918,2928,-87),bG(WOe,2928,2946,33),bG(WOe,2946,2948,-87),WOe[2948]=33,bG(WOe,2949,2955,-19),bG(WOe,2955,2958,33),bG(WOe,2958,2961,-19),WOe[2961]=33,bG(WOe,2962,2966,-19),bG(WOe,2966,2969,33),bG(WOe,2969,2971,-19),WOe[2971]=33,WOe[2972]=-19,WOe[2973]=33,bG(WOe,2974,2976,-19),bG(WOe,2976,2979,33),bG(WOe,2979,2981,-19),bG(WOe,2981,2984,33),bG(WOe,2984,2987,-19),bG(WOe,2987,2990,33),bG(WOe,2990,2998,-19),WOe[2998]=33,bG(WOe,2999,3002,-19),bG(WOe,3002,3006,33),bG(WOe,3006,3011,-87),bG(WOe,3011,3014,33),bG(WOe,3014,3017,-87),WOe[3017]=33,bG(WOe,3018,3022,-87),bG(WOe,3022,3031,33),WOe[3031]=-87,bG(WOe,3032,3047,33),bG(WOe,3047,3056,-87),bG(WOe,3056,3073,33),bG(WOe,3073,3076,-87),WOe[3076]=33,bG(WOe,3077,3085,-19),WOe[3085]=33,bG(WOe,3086,3089,-19),WOe[3089]=33,bG(WOe,3090,3113,-19),WOe[3113]=33,bG(WOe,3114,3124,-19),WOe[3124]=33,bG(WOe,3125,3130,-19),bG(WOe,3130,3134,33),bG(WOe,3134,3141,-87),WOe[3141]=33,bG(WOe,3142,3145,-87),WOe[3145]=33,bG(WOe,3146,3150,-87),bG(WOe,3150,3157,33),bG(WOe,3157,3159,-87),bG(WOe,3159,3168,33),bG(WOe,3168,3170,-19),bG(WOe,3170,3174,33),bG(WOe,3174,3184,-87),bG(WOe,3184,3202,33),bG(WOe,3202,3204,-87),WOe[3204]=33,bG(WOe,3205,3213,-19),WOe[3213]=33,bG(WOe,3214,3217,-19),WOe[3217]=33,bG(WOe,3218,3241,-19),WOe[3241]=33,bG(WOe,3242,3252,-19),WOe[3252]=33,bG(WOe,3253,3258,-19),bG(WOe,3258,3262,33),bG(WOe,3262,3269,-87),WOe[3269]=33,bG(WOe,3270,3273,-87),WOe[3273]=33,bG(WOe,3274,3278,-87),bG(WOe,3278,3285,33),bG(WOe,3285,3287,-87),bG(WOe,3287,3294,33),WOe[3294]=-19,WOe[3295]=33,bG(WOe,3296,3298,-19),bG(WOe,3298,3302,33),bG(WOe,3302,3312,-87),bG(WOe,3312,3330,33),bG(WOe,3330,3332,-87),WOe[3332]=33,bG(WOe,3333,3341,-19),WOe[3341]=33,bG(WOe,3342,3345,-19),WOe[3345]=33,bG(WOe,3346,3369,-19),WOe[3369]=33,bG(WOe,3370,3386,-19),bG(WOe,3386,3390,33),bG(WOe,3390,3396,-87),bG(WOe,3396,3398,33),bG(WOe,3398,3401,-87),WOe[3401]=33,bG(WOe,3402,3406,-87),bG(WOe,3406,3415,33),WOe[3415]=-87,bG(WOe,3416,3424,33),bG(WOe,3424,3426,-19),bG(WOe,3426,3430,33),bG(WOe,3430,3440,-87),bG(WOe,3440,3585,33),bG(WOe,3585,3631,-19),WOe[3631]=33,WOe[3632]=-19,WOe[3633]=-87,bG(WOe,3634,3636,-19),bG(WOe,3636,3643,-87),bG(WOe,3643,3648,33),bG(WOe,3648,3654,-19),bG(WOe,3654,3663,-87),WOe[3663]=33,bG(WOe,3664,3674,-87),bG(WOe,3674,3713,33),bG(WOe,3713,3715,-19),WOe[3715]=33,WOe[3716]=-19,bG(WOe,3717,3719,33),bG(WOe,3719,3721,-19),WOe[3721]=33,WOe[3722]=-19,bG(WOe,3723,3725,33),WOe[3725]=-19,bG(WOe,3726,3732,33),bG(WOe,3732,3736,-19),WOe[3736]=33,bG(WOe,3737,3744,-19),WOe[3744]=33,bG(WOe,3745,3748,-19),WOe[3748]=33,WOe[3749]=-19,WOe[3750]=33,WOe[3751]=-19,bG(WOe,3752,3754,33),bG(WOe,3754,3756,-19),WOe[3756]=33,bG(WOe,3757,3759,-19),WOe[3759]=33,WOe[3760]=-19,WOe[3761]=-87,bG(WOe,3762,3764,-19),bG(WOe,3764,3770,-87),WOe[3770]=33,bG(WOe,3771,3773,-87),WOe[3773]=-19,bG(WOe,3774,3776,33),bG(WOe,3776,3781,-19),WOe[3781]=33,WOe[3782]=-87,WOe[3783]=33,bG(WOe,3784,3790,-87),bG(WOe,3790,3792,33),bG(WOe,3792,3802,-87),bG(WOe,3802,3864,33),bG(WOe,3864,3866,-87),bG(WOe,3866,3872,33),bG(WOe,3872,3882,-87),bG(WOe,3882,3893,33),WOe[3893]=-87,WOe[3894]=33,WOe[3895]=-87,WOe[3896]=33,WOe[3897]=-87,bG(WOe,3898,3902,33),bG(WOe,3902,3904,-87),bG(WOe,3904,3912,-19),WOe[3912]=33,bG(WOe,3913,3946,-19),bG(WOe,3946,3953,33),bG(WOe,3953,3973,-87),WOe[3973]=33,bG(WOe,3974,3980,-87),bG(WOe,3980,3984,33),bG(WOe,3984,3990,-87),WOe[3990]=33,WOe[3991]=-87,WOe[3992]=33,bG(WOe,3993,4014,-87),bG(WOe,4014,4017,33),bG(WOe,4017,4024,-87),WOe[4024]=33,WOe[4025]=-87,bG(WOe,4026,4256,33),bG(WOe,4256,4294,-19),bG(WOe,4294,4304,33),bG(WOe,4304,4343,-19),bG(WOe,4343,4352,33),WOe[4352]=-19,WOe[4353]=33,bG(WOe,4354,4356,-19),WOe[4356]=33,bG(WOe,4357,4360,-19),WOe[4360]=33,WOe[4361]=-19,WOe[4362]=33,bG(WOe,4363,4365,-19),WOe[4365]=33,bG(WOe,4366,4371,-19),bG(WOe,4371,4412,33),WOe[4412]=-19,WOe[4413]=33,WOe[4414]=-19,WOe[4415]=33,WOe[4416]=-19,bG(WOe,4417,4428,33),WOe[4428]=-19,WOe[4429]=33,WOe[4430]=-19,WOe[4431]=33,WOe[4432]=-19,bG(WOe,4433,4436,33),bG(WOe,4436,4438,-19),bG(WOe,4438,4441,33),WOe[4441]=-19,bG(WOe,4442,4447,33),bG(WOe,4447,4450,-19),WOe[4450]=33,WOe[4451]=-19,WOe[4452]=33,WOe[4453]=-19,WOe[4454]=33,WOe[4455]=-19,WOe[4456]=33,WOe[4457]=-19,bG(WOe,4458,4461,33),bG(WOe,4461,4463,-19),bG(WOe,4463,4466,33),bG(WOe,4466,4468,-19),WOe[4468]=33,WOe[4469]=-19,bG(WOe,4470,4510,33),WOe[4510]=-19,bG(WOe,4511,4520,33),WOe[4520]=-19,bG(WOe,4521,4523,33),WOe[4523]=-19,bG(WOe,4524,4526,33),bG(WOe,4526,4528,-19),bG(WOe,4528,4535,33),bG(WOe,4535,4537,-19),WOe[4537]=33,WOe[4538]=-19,WOe[4539]=33,bG(WOe,4540,4547,-19),bG(WOe,4547,4587,33),WOe[4587]=-19,bG(WOe,4588,4592,33),WOe[4592]=-19,bG(WOe,4593,4601,33),WOe[4601]=-19,bG(WOe,4602,7680,33),bG(WOe,7680,7836,-19),bG(WOe,7836,7840,33),bG(WOe,7840,7930,-19),bG(WOe,7930,7936,33),bG(WOe,7936,7958,-19),bG(WOe,7958,7960,33),bG(WOe,7960,7966,-19),bG(WOe,7966,7968,33),bG(WOe,7968,8006,-19),bG(WOe,8006,8008,33),bG(WOe,8008,8014,-19),bG(WOe,8014,8016,33),bG(WOe,8016,8024,-19),WOe[8024]=33,WOe[8025]=-19,WOe[8026]=33,WOe[8027]=-19,WOe[8028]=33,WOe[8029]=-19,WOe[8030]=33,bG(WOe,8031,8062,-19),bG(WOe,8062,8064,33),bG(WOe,8064,8117,-19),WOe[8117]=33,bG(WOe,8118,8125,-19),WOe[8125]=33,WOe[8126]=-19,bG(WOe,8127,8130,33),bG(WOe,8130,8133,-19),WOe[8133]=33,bG(WOe,8134,8141,-19),bG(WOe,8141,8144,33),bG(WOe,8144,8148,-19),bG(WOe,8148,8150,33),bG(WOe,8150,8156,-19),bG(WOe,8156,8160,33),bG(WOe,8160,8173,-19),bG(WOe,8173,8178,33),bG(WOe,8178,8181,-19),WOe[8181]=33,bG(WOe,8182,8189,-19),bG(WOe,8189,8400,33),bG(WOe,8400,8413,-87),bG(WOe,8413,8417,33),WOe[8417]=-87,bG(WOe,8418,8486,33),WOe[8486]=-19,bG(WOe,8487,8490,33),bG(WOe,8490,8492,-19),bG(WOe,8492,8494,33),WOe[8494]=-19,bG(WOe,8495,8576,33),bG(WOe,8576,8579,-19),bG(WOe,8579,12293,33),WOe[12293]=-87,WOe[12294]=33,WOe[12295]=-19,bG(WOe,12296,12321,33),bG(WOe,12321,12330,-19),bG(WOe,12330,12336,-87),WOe[12336]=33,bG(WOe,12337,12342,-87),bG(WOe,12342,12353,33),bG(WOe,12353,12437,-19),bG(WOe,12437,12441,33),bG(WOe,12441,12443,-87),bG(WOe,12443,12445,33),bG(WOe,12445,12447,-87),bG(WOe,12447,12449,33),bG(WOe,12449,12539,-19),WOe[12539]=33,bG(WOe,12540,12543,-87),bG(WOe,12543,12549,33),bG(WOe,12549,12589,-19),bG(WOe,12589,19968,33),bG(WOe,19968,40870,-19),bG(WOe,40870,44032,33),bG(WOe,44032,55204,-19),bG(WOe,55204,$qt,33),bG(WOe,57344,65534,33)}function CVt(t){var e,n,r,i,a,o,s;t.hb||(t.hb=!0,Oit(t,"ecore"),Dit(t,"ecore"),Fit(t,V7t),ist(t.fb,"E"),ist(t.L,"T"),ist(t.P,"K"),ist(t.P,"V"),ist(t.cb,"E"),l7(vY(t.b),t.bb),l7(vY(t.a),t.Q),l7(vY(t.o),t.p),l7(vY(t.p),t.R),l7(vY(t.q),t.p),l7(vY(t.v),t.q),l7(vY(t.w),t.R),l7(vY(t.B),t.Q),l7(vY(t.R),t.Q),l7(vY(t.T),t.eb),l7(vY(t.U),t.R),l7(vY(t.V),t.eb),l7(vY(t.W),t.bb),l7(vY(t.bb),t.eb),l7(vY(t.eb),t.R),l7(vY(t.db),t.R),j0(t.b,RIe,h7t,!1,!1,!0),oat(Q$(Xet(Vq(t.b),0),34),t.e,"iD",null,0,1,RIe,!1,!1,!0,!1,!0,!1),xyt(Q$(Xet(Vq(t.b),1),18),t.q,null,"eAttributeType",1,1,RIe,!0,!0,!1,!1,!0,!1,!0),j0(t.a,FIe,c7t,!1,!1,!0),oat(Q$(Xet(Vq(t.a),0),34),t._,C6t,null,0,1,FIe,!1,!1,!0,!1,!0,!1),xyt(Q$(Xet(Vq(t.a),1),18),t.ab,null,"details",0,-1,FIe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.a),2),18),t.Q,Q$(Xet(Vq(t.Q),0),18),"eModelElement",0,1,FIe,!0,!1,!0,!1,!1,!1,!1),xyt(Q$(Xet(Vq(t.a),3),18),t.S,null,"contents",0,-1,FIe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.a),4),18),t.S,null,"references",0,-1,FIe,!1,!1,!0,!1,!0,!1,!1),j0(t.o,UIe,"EClass",!1,!1,!0),oat(Q$(Xet(Vq(t.o),0),34),t.e,"abstract",null,0,1,UIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.o),1),34),t.e,"interface",null,0,1,UIe,!1,!1,!0,!1,!0,!1),xyt(Q$(Xet(Vq(t.o),2),18),t.o,null,"eSuperTypes",0,-1,UIe,!1,!1,!0,!1,!0,!0,!1),xyt(Q$(Xet(Vq(t.o),3),18),t.T,Q$(Xet(Vq(t.T),0),18),"eOperations",0,-1,UIe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.o),4),18),t.b,null,"eAllAttributes",0,-1,UIe,!0,!0,!1,!1,!0,!1,!0),xyt(Q$(Xet(Vq(t.o),5),18),t.W,null,"eAllReferences",0,-1,UIe,!0,!0,!1,!1,!0,!1,!0),xyt(Q$(Xet(Vq(t.o),6),18),t.W,null,"eReferences",0,-1,UIe,!0,!0,!1,!1,!0,!1,!0),xyt(Q$(Xet(Vq(t.o),7),18),t.b,null,"eAttributes",0,-1,UIe,!0,!0,!1,!1,!0,!1,!0),xyt(Q$(Xet(Vq(t.o),8),18),t.W,null,"eAllContainments",0,-1,UIe,!0,!0,!1,!1,!0,!1,!0),xyt(Q$(Xet(Vq(t.o),9),18),t.T,null,"eAllOperations",0,-1,UIe,!0,!0,!1,!1,!0,!1,!0),xyt(Q$(Xet(Vq(t.o),10),18),t.bb,null,"eAllStructuralFeatures",0,-1,UIe,!0,!0,!1,!1,!0,!1,!0),xyt(Q$(Xet(Vq(t.o),11),18),t.o,null,"eAllSuperTypes",0,-1,UIe,!0,!0,!1,!1,!0,!1,!0),xyt(Q$(Xet(Vq(t.o),12),18),t.b,null,"eIDAttribute",0,1,UIe,!0,!0,!1,!1,!1,!1,!0),xyt(Q$(Xet(Vq(t.o),13),18),t.bb,Q$(Xet(Vq(t.bb),7),18),"eStructuralFeatures",0,-1,UIe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.o),14),18),t.H,null,"eGenericSuperTypes",0,-1,UIe,!1,!1,!0,!0,!1,!0,!1),xyt(Q$(Xet(Vq(t.o),15),18),t.H,null,"eAllGenericSuperTypes",0,-1,UIe,!0,!0,!1,!1,!0,!1,!0),Iyt(s=urt(Q$(Xet(Xq(t.o),0),59),t.e,"isSuperTypeOf"),t.o,"someClass"),urt(Q$(Xet(Xq(t.o),1),59),t.I,"getFeatureCount"),Iyt(s=urt(Q$(Xet(Xq(t.o),2),59),t.bb,J7t),t.I,"featureID"),Iyt(s=urt(Q$(Xet(Xq(t.o),3),59),t.I,Z7t),t.bb,t9t),Iyt(s=urt(Q$(Xet(Xq(t.o),4),59),t.bb,J7t),t._,"featureName"),urt(Q$(Xet(Xq(t.o),5),59),t.I,"getOperationCount"),Iyt(s=urt(Q$(Xet(Xq(t.o),6),59),t.T,"getEOperation"),t.I,"operationID"),Iyt(s=urt(Q$(Xet(Xq(t.o),7),59),t.I,e9t),t.T,n9t),Iyt(s=urt(Q$(Xet(Xq(t.o),8),59),t.T,"getOverride"),t.T,n9t),Iyt(s=urt(Q$(Xet(Xq(t.o),9),59),t.H,"getFeatureType"),t.bb,t9t),j0(t.p,QIe,f7t,!0,!1,!0),oat(Q$(Xet(Vq(t.p),0),34),t._,"instanceClassName",null,0,1,QIe,!1,!0,!0,!0,!0,!1),e=YW(t.L),n=s2(),l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),RLt(Q$(Xet(Vq(t.p),1),34),e,"instanceClass",QIe,!0,!0,!1,!0),oat(Q$(Xet(Vq(t.p),2),34),t.M,r9t,null,0,1,QIe,!0,!0,!1,!1,!0,!0),oat(Q$(Xet(Vq(t.p),3),34),t._,"instanceTypeName",null,0,1,QIe,!1,!0,!0,!0,!0,!1),xyt(Q$(Xet(Vq(t.p),4),18),t.U,Q$(Xet(Vq(t.U),3),18),"ePackage",0,1,QIe,!0,!1,!1,!1,!0,!1,!1),xyt(Q$(Xet(Vq(t.p),5),18),t.db,null,i9t,0,-1,QIe,!1,!1,!0,!0,!0,!1,!1),Iyt(s=urt(Q$(Xet(Xq(t.p),0),59),t.e,a9t),t.M,LVt),urt(Q$(Xet(Xq(t.p),1),59),t.I,"getClassifierID"),j0(t.q,$Ie,"EDataType",!1,!1,!0),oat(Q$(Xet(Vq(t.q),0),34),t.e,"serializable",a5t,0,1,$Ie,!1,!1,!0,!1,!0,!1),j0(t.v,KIe,"EEnum",!1,!1,!0),xyt(Q$(Xet(Vq(t.v),0),18),t.w,Q$(Xet(Vq(t.w),3),18),"eLiterals",0,-1,KIe,!1,!1,!0,!0,!1,!1,!1),Iyt(s=urt(Q$(Xet(Xq(t.v),0),59),t.w,o9t),t._,t8t),Iyt(s=urt(Q$(Xet(Xq(t.v),1),59),t.w,o9t),t.I,k6t),Iyt(s=urt(Q$(Xet(Xq(t.v),2),59),t.w,"getEEnumLiteralByLiteral"),t._,"literal"),j0(t.w,zIe,d7t,!1,!1,!0),oat(Q$(Xet(Vq(t.w),0),34),t.I,k6t,null,0,1,zIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.w),1),34),t.A,"instance",null,0,1,zIe,!0,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.w),2),34),t._,"literal",null,0,1,zIe,!1,!1,!0,!1,!0,!1),xyt(Q$(Xet(Vq(t.w),3),18),t.v,Q$(Xet(Vq(t.v),0),18),"eEnum",0,1,zIe,!0,!1,!1,!1,!1,!1,!1),j0(t.B,QLe,"EFactory",!1,!1,!0),xyt(Q$(Xet(Vq(t.B),0),18),t.U,Q$(Xet(Vq(t.U),2),18),"ePackage",1,1,QLe,!0,!1,!0,!1,!1,!1,!1),Iyt(s=urt(Q$(Xet(Xq(t.B),0),59),t.S,"create"),t.o,"eClass"),Iyt(s=urt(Q$(Xet(Xq(t.B),1),59),t.M,"createFromString"),t.q,"eDataType"),Iyt(s,t._,"literalValue"),Iyt(s=urt(Q$(Xet(Xq(t.B),2),59),t._,"convertToString"),t.q,"eDataType"),Iyt(s,t.M,"instanceValue"),j0(t.Q,RLe,q5t,!0,!1,!0),xyt(Q$(Xet(Vq(t.Q),0),18),t.a,Q$(Xet(Vq(t.a),2),18),"eAnnotations",0,-1,RLe,!1,!1,!0,!0,!1,!1,!1),Iyt(s=urt(Q$(Xet(Xq(t.Q),0),59),t.a,"getEAnnotation"),t._,C6t),j0(t.R,ULe,Y5t,!0,!1,!0),oat(Q$(Xet(Vq(t.R),0),34),t._,t8t,null,0,1,ULe,!1,!1,!0,!1,!0,!1),j0(t.S,LLe,"EObject",!1,!1,!0),urt(Q$(Xet(Xq(t.S),0),59),t.o,"eClass"),urt(Q$(Xet(Xq(t.S),1),59),t.e,"eIsProxy"),urt(Q$(Xet(Xq(t.S),2),59),t.X,"eResource"),urt(Q$(Xet(Xq(t.S),3),59),t.S,"eContainer"),urt(Q$(Xet(Xq(t.S),4),59),t.bb,"eContainingFeature"),urt(Q$(Xet(Xq(t.S),5),59),t.W,"eContainmentFeature"),s=urt(Q$(Xet(Xq(t.S),6),59),null,"eContents"),e=YW(t.fb),n=YW(t.S),l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),(i=$xt(s,e,null))&&i.Fi(),s=urt(Q$(Xet(Xq(t.S),7),59),null,"eAllContents"),e=YW(t.cb),n=YW(t.S),l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),(a=$xt(s,e,null))&&a.Fi(),s=urt(Q$(Xet(Xq(t.S),8),59),null,"eCrossReferences"),e=YW(t.fb),n=YW(t.S),l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),(o=$xt(s,e,null))&&o.Fi(),Iyt(s=urt(Q$(Xet(Xq(t.S),9),59),t.M,"eGet"),t.bb,t9t),Iyt(s=urt(Q$(Xet(Xq(t.S),10),59),t.M,"eGet"),t.bb,t9t),Iyt(s,t.e,"resolve"),Iyt(s=urt(Q$(Xet(Xq(t.S),11),59),null,"eSet"),t.bb,t9t),Iyt(s,t.M,"newValue"),Iyt(s=urt(Q$(Xet(Xq(t.S),12),59),t.e,"eIsSet"),t.bb,t9t),Iyt(s=urt(Q$(Xet(Xq(t.S),13),59),null,"eUnset"),t.bb,t9t),Iyt(s=urt(Q$(Xet(Xq(t.S),14),59),t.M,"eInvoke"),t.T,n9t),e=YW(t.fb),n=s2(),l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),zkt(s,e,"arguments"),PV(s,t.K),j0(t.T,XIe,g7t,!1,!1,!0),xyt(Q$(Xet(Vq(t.T),0),18),t.o,Q$(Xet(Vq(t.o),3),18),s9t,0,1,XIe,!0,!1,!1,!1,!1,!1,!1),xyt(Q$(Xet(Vq(t.T),1),18),t.db,null,i9t,0,-1,XIe,!1,!1,!0,!0,!0,!1,!1),xyt(Q$(Xet(Vq(t.T),2),18),t.V,Q$(Xet(Vq(t.V),0),18),"eParameters",0,-1,XIe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.T),3),18),t.p,null,"eExceptions",0,-1,XIe,!1,!1,!0,!1,!0,!0,!1),xyt(Q$(Xet(Vq(t.T),4),18),t.H,null,"eGenericExceptions",0,-1,XIe,!1,!1,!0,!0,!1,!0,!1),urt(Q$(Xet(Xq(t.T),0),59),t.I,e9t),Iyt(s=urt(Q$(Xet(Xq(t.T),1),59),t.e,"isOverrideOf"),t.T,"someOperation"),j0(t.U,$Le,"EPackage",!1,!1,!0),oat(Q$(Xet(Vq(t.U),0),34),t._,"nsURI",null,0,1,$Le,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.U),1),34),t._,"nsPrefix",null,0,1,$Le,!1,!1,!0,!1,!0,!1),xyt(Q$(Xet(Vq(t.U),2),18),t.B,Q$(Xet(Vq(t.B),0),18),"eFactoryInstance",1,1,$Le,!0,!1,!0,!1,!1,!1,!1),xyt(Q$(Xet(Vq(t.U),3),18),t.p,Q$(Xet(Vq(t.p),4),18),"eClassifiers",0,-1,$Le,!1,!1,!0,!0,!0,!1,!1),xyt(Q$(Xet(Vq(t.U),4),18),t.U,Q$(Xet(Vq(t.U),5),18),"eSubpackages",0,-1,$Le,!1,!1,!0,!0,!0,!1,!1),xyt(Q$(Xet(Vq(t.U),5),18),t.U,Q$(Xet(Vq(t.U),4),18),"eSuperPackage",0,1,$Le,!0,!1,!1,!1,!0,!1,!1),Iyt(s=urt(Q$(Xet(Xq(t.U),0),59),t.p,"getEClassifier"),t._,t8t),j0(t.V,VIe,p7t,!1,!1,!0),xyt(Q$(Xet(Vq(t.V),0),18),t.T,Q$(Xet(Vq(t.T),2),18),"eOperation",0,1,VIe,!0,!1,!1,!1,!1,!1,!1),j0(t.W,WIe,m7t,!1,!1,!0),oat(Q$(Xet(Vq(t.W),0),34),t.e,"containment",null,0,1,WIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.W),1),34),t.e,"container",null,0,1,WIe,!0,!0,!1,!1,!0,!0),oat(Q$(Xet(Vq(t.W),2),34),t.e,"resolveProxies",a5t,0,1,WIe,!1,!1,!0,!1,!0,!1),xyt(Q$(Xet(Vq(t.W),3),18),t.W,null,"eOpposite",0,1,WIe,!1,!1,!0,!1,!0,!1,!1),xyt(Q$(Xet(Vq(t.W),4),18),t.o,null,"eReferenceType",1,1,WIe,!0,!0,!1,!1,!0,!1,!0),xyt(Q$(Xet(Vq(t.W),5),18),t.b,null,"eKeys",0,-1,WIe,!1,!1,!0,!1,!0,!1,!1),j0(t.bb,PIe,u7t,!0,!1,!0),oat(Q$(Xet(Vq(t.bb),0),34),t.e,"changeable",a5t,0,1,PIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.bb),1),34),t.e,"volatile",null,0,1,PIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.bb),2),34),t.e,"transient",null,0,1,PIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.bb),3),34),t._,"defaultValueLiteral",null,0,1,PIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.bb),4),34),t.M,r9t,null,0,1,PIe,!0,!0,!1,!1,!0,!0),oat(Q$(Xet(Vq(t.bb),5),34),t.e,"unsettable",null,0,1,PIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.bb),6),34),t.e,"derived",null,0,1,PIe,!1,!1,!0,!1,!0,!1),xyt(Q$(Xet(Vq(t.bb),7),18),t.o,Q$(Xet(Vq(t.o),13),18),s9t,0,1,PIe,!0,!1,!1,!1,!1,!1,!1),urt(Q$(Xet(Xq(t.bb),0),59),t.I,Z7t),s=urt(Q$(Xet(Xq(t.bb),1),59),null,"getContainerClass"),e=YW(t.L),n=s2(),l7((!e.d&&(e.d=new LO(GIe,e,1)),e.d),n),(r=$xt(s,e,null))&&r.Fi(),j0(t.eb,NIe,l7t,!0,!1,!0),oat(Q$(Xet(Vq(t.eb),0),34),t.e,"ordered",a5t,0,1,NIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.eb),1),34),t.e,"unique",a5t,0,1,NIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.eb),2),34),t.I,"lowerBound",null,0,1,NIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.eb),3),34),t.I,"upperBound","1",0,1,NIe,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.eb),4),34),t.e,"many",null,0,1,NIe,!0,!0,!1,!1,!0,!0),oat(Q$(Xet(Vq(t.eb),5),34),t.e,"required",null,0,1,NIe,!0,!0,!1,!1,!0,!0),xyt(Q$(Xet(Vq(t.eb),6),18),t.p,null,"eType",0,1,NIe,!1,!0,!0,!1,!0,!0,!1),xyt(Q$(Xet(Vq(t.eb),7),18),t.H,null,"eGenericType",0,1,NIe,!1,!0,!0,!0,!1,!0,!1),j0(t.ab,$te,"EStringToStringMapEntry",!1,!1,!1),oat(Q$(Xet(Vq(t.ab),0),34),t._,"key",null,0,1,$te,!1,!1,!0,!1,!0,!1),oat(Q$(Xet(Vq(t.ab),1),34),t._,k6t,null,0,1,$te,!1,!1,!0,!1,!0,!1),j0(t.H,GIe,A7t,!1,!1,!0),xyt(Q$(Xet(Vq(t.H),0),18),t.H,null,"eUpperBound",0,1,GIe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.H),1),18),t.H,null,"eTypeArguments",0,-1,GIe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.H),2),18),t.p,null,"eRawType",1,1,GIe,!0,!1,!1,!1,!0,!1,!0),xyt(Q$(Xet(Vq(t.H),3),18),t.H,null,"eLowerBound",0,1,GIe,!1,!1,!0,!0,!1,!1,!1),xyt(Q$(Xet(Vq(t.H),4),18),t.db,null,"eTypeParameter",0,1,GIe,!1,!1,!0,!1,!1,!1,!1),xyt(Q$(Xet(Vq(t.H),5),18),t.p,null,"eClassifier",0,1,GIe,!1,!1,!0,!1,!0,!1,!1),Iyt(s=urt(Q$(Xet(Xq(t.H),0),59),t.e,a9t),t.M,LVt),j0(t.db,BMe,b7t,!1,!1,!0),xyt(Q$(Xet(Vq(t.db),0),18),t.H,null,"eBounds",0,-1,BMe,!1,!1,!0,!0,!1,!1,!1),dW(t.c,nne,"EBigDecimal",!0),dW(t.d,sne,"EBigInteger",!0),dW(t.e,SDe,"EBoolean",!0),dW(t.f,yee,"EBooleanObject",!0),dW(t.i,IDe,"EByte",!0),dW(t.g,Hw(IDe,1),"EByteArray",!0),dW(t.j,Cee,"EByteObject",!0),dW(t.k,BDe,"EChar",!0),dW(t.n,Eee,"ECharacterObject",!0),dW(t.r,bee,"EDate",!0),dW(t.s,NDe,"EDiagnosticChain",!1),dW(t.t,MDe,"EDouble",!0),dW(t.u,Tee,"EDoubleObject",!0),dW(t.fb,iIe,"EEList",!1),dW(t.A,mIe,"EEnumerator",!1),dW(t.C,uOe,"EFeatureMap",!1),dW(t.D,SMe,"EFeatureMapEntry",!1),dW(t.F,ODe,"EFloat",!0),dW(t.G,Bee,"EFloatObject",!0),dW(t.I,_De,"EInt",!0),dW(t.J,Lee,"EIntegerObject",!0),dW(t.L,Ite,"EJavaClass",!0),dW(t.M,Lte,"EJavaObject",!0),dW(t.N,LDe,"ELong",!0),dW(t.O,Nee,"ELongObject",!0),dW(t.P,Ote,"EMap",!1),dW(t.X,tOe,"EResource",!1),dW(t.Y,PDe,"EResourceSet",!1),dW(t.Z,DDe,"EShort",!0),dW(t.$,Ree,"EShortObject",!0),dW(t._,Wee,"EString",!0),dW(t.cb,cIe,"ETreeIterator",!1),dW(t.K,RDe,"EInvocationTargetException",!1),Mut(t,V7t))}"undefined"!=typeof window?e=window:void 0!==t?e=t:"undefined"!=typeof self&&(e=self);var xVt,EVt,TVt,BVt,_Vt,SVt,LVt="object",IVt="boolean",MVt="number",OVt="string",DVt="function",FVt=2147483647,NVt="java.lang",PVt={3:1},RVt="com.google.common.base",QVt=", ",UVt="%s (%s) must not be negative",$Vt={3:1,4:1,5:1},HVt="negative size: ",jVt="Optional.of(",KVt="null",zVt={198:1,47:1},GVt="com.google.common.collect",XVt={198:1,47:1,125:1},VVt={224:1,3:1},WVt={47:1},qVt="java.util",YVt={83:1},JVt={20:1,28:1,14:1},ZVt=1965,tWt={20:1,28:1,14:1,21:1},eWt={83:1,171:1,161:1},nWt={20:1,28:1,14:1,21:1,84:1},rWt={20:1,28:1,14:1,271:1,21:1,84:1},iWt={47:1,125:1},aWt={345:1,42:1},oWt="AbstractMapEntry",sWt="expectedValuesPerKey",cWt={3:1,6:1,4:1,5:1},lWt=16384,uWt={164:1},hWt={38:1},fWt={l:4194303,m:4194303,h:524287},dWt={196:1},AWt={245:1,3:1,35:1},gWt="range unbounded on this side",pWt={20:1},mWt={20:1,14:1},bWt={3:1,20:1,28:1,14:1},vWt={152:1,3:1,20:1,28:1,14:1,15:1,54:1},yWt={3:1,4:1,5:1,165:1},wWt={3:1,83:1},kWt={20:1,14:1,21:1},CWt={3:1,20:1,28:1,14:1,21:1},xWt={20:1,14:1,21:1,84:1},EWt=461845907,TWt=-862048943,BWt={3:1,6:1,4:1,5:1,165:1},_Wt="expectedSize",SWt=1073741824,LWt="initialArraySize",IWt={3:1,6:1,4:1,9:1,5:1},MWt={20:1,28:1,52:1,14:1,15:1},OWt="arraySize",DWt={20:1,28:1,52:1,14:1,15:1,54:1},FWt={45:1},NWt={365:1},PWt=1e-4,RWt=-2147483648,QWt="__noinit__",UWt={3:1,102:1,60:1,78:1},$Wt="com.google.gwt.core.client.impl",HWt="String",jWt="com.google.gwt.core.client",KWt="anonymous",zWt="fnStack",GWt="Unknown",XWt={195:1,3:1,4:1},VWt=1e3,WWt=65535,qWt="January",YWt="February",JWt="March",ZWt="April",tqt="May",eqt="June",nqt="July",rqt="August",iqt="September",aqt="October",oqt="November",sqt="December",cqt=1900,lqt={48:1,3:1,4:1},uqt="Before Christ",hqt="Anno Domini",fqt="Sunday",dqt="Monday",Aqt="Tuesday",gqt="Wednesday",pqt="Thursday",mqt="Friday",bqt="Saturday",vqt="com.google.gwt.i18n.shared",yqt="DateTimeFormat",wqt="com.google.gwt.i18n.client",kqt="DefaultDateTimeFormatInfo",Cqt={3:1,4:1,35:1,199:1},xqt="com.google.gwt.json.client",Eqt=4194303,Tqt=1048575,Bqt=524288,_qt=4194304,Sqt=17592186044416,Lqt=1e9,Iqt=-17592186044416,Mqt="java.io",Oqt={3:1,102:1,73:1,60:1,78:1},Dqt={3:1,289:1,78:1},Fqt='For input string: "',Nqt=1/0,Pqt=-1/0,Rqt=4096,Qqt={3:1,4:1,364:1},Uqt=65536,$qt=55296,Hqt={104:1,3:1,4:1},jqt=1e5,Kqt=.3010299956639812,zqt=4294967295,Gqt=4294967296,Xqt="0.0",Vqt={42:1},Wqt={3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1},qqt={3:1,20:1,28:1,52:1,14:1,15:1,54:1},Yqt={20:1,14:1,15:1},Jqt={3:1,62:1},Zqt={182:1},tYt={3:1,4:1,83:1},eYt={3:1,4:1,20:1,28:1,14:1,53:1,21:1},nYt="delete",rYt=1.4901161193847656e-8,iYt=11102230246251565e-32,aYt=15525485,oYt=5.960464477539063e-8,sYt=16777216,cYt=16777215,lYt=", length: ",uYt={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1},hYt={3:1,35:1,22:1,297:1},fYt="java.util.function",dYt="java.util.logging",AYt={3:1,4:1,5:1,842:1},gYt="undefined",pYt="java.util.stream",mYt={525:1,670:1},bYt="fromIndex: ",vYt=" > toIndex: ",yYt=", toIndex: ",wYt="Index: ",kYt=", Size: ",CYt="org.eclipse.elk.alg.common",xYt={62:1},EYt="org.eclipse.elk.alg.common.compaction",TYt="Scanline/EventHandler",BYt="org.eclipse.elk.alg.common.compaction.oned",_Yt="CNode belongs to another CGroup.",SYt="ISpacingsHandler/1",LYt="The ",IYt=" instance has been finished already.",MYt="The direction ",OYt=" is not supported by the CGraph instance.",DYt="OneDimensionalCompactor",FYt="OneDimensionalCompactor/lambda$0$Type",NYt="Quadruplet",PYt="ScanlineConstraintCalculator",RYt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",QYt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",UYt="ScanlineConstraintCalculator/Timestamp",$Yt="ScanlineConstraintCalculator/lambda$0$Type",HYt={169:1,45:1},jYt="org.eclipse.elk.alg.common.compaction.options",KYt="org.eclipse.elk.core.data",zYt="org.eclipse.elk.polyomino.traversalStrategy",GYt="org.eclipse.elk.polyomino.lowLevelSort",XYt="org.eclipse.elk.polyomino.highLevelSort",VYt="org.eclipse.elk.polyomino.fill",WYt={130:1},qYt="polyomino",YYt="org.eclipse.elk.alg.common.networksimplex",JYt={177:1,3:1,4:1},ZYt="org.eclipse.elk.alg.common.nodespacing",tJt="org.eclipse.elk.alg.common.nodespacing.cellsystem",eJt="CENTER",nJt={212:1,326:1},rJt={3:1,4:1,5:1,595:1},iJt="LEFT",aJt="RIGHT",oJt="Vertical alignment cannot be null",sJt="BOTTOM",cJt="org.eclipse.elk.alg.common.nodespacing.internal",lJt="UNDEFINED",uJt=.01,hJt="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",fJt="LabelPlacer/lambda$0$Type",dJt="LabelPlacer/lambda$1$Type",AJt="portRatioOrPosition",gJt="org.eclipse.elk.alg.common.overlaps",pJt="DOWN",mJt="org.eclipse.elk.alg.common.polyomino",bJt="NORTH",vJt="EAST",yJt="SOUTH",wJt="WEST",kJt="org.eclipse.elk.alg.common.polyomino.structures",CJt="Direction",xJt="Grid is only of size ",EJt=". Requested point (",TJt=") is out of bounds.",BJt=" Given center based coordinates were (",_Jt="org.eclipse.elk.graph.properties",SJt="IPropertyHolder",LJt={3:1,94:1,134:1},IJt="org.eclipse.elk.alg.common.spore",MJt="org.eclipse.elk.alg.common.utils",OJt={209:1},DJt="org.eclipse.elk.core",FJt="Connected Components Compaction",NJt="org.eclipse.elk.alg.disco",PJt="org.eclipse.elk.alg.disco.graph",RJt="org.eclipse.elk.alg.disco.options",QJt="CompactionStrategy",UJt="org.eclipse.elk.disco.componentCompaction.strategy",$Jt="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",HJt="org.eclipse.elk.disco.debug.discoGraph",jJt="org.eclipse.elk.disco.debug.discoPolys",KJt="componentCompaction",zJt="org.eclipse.elk.disco",GJt="org.eclipse.elk.spacing.componentComponent",XJt="org.eclipse.elk.edge.thickness",VJt="org.eclipse.elk.aspectRatio",WJt="org.eclipse.elk.padding",qJt="org.eclipse.elk.alg.disco.transform",YJt=1.5707963267948966,JJt=17976931348623157e292,ZJt={3:1,4:1,5:1,192:1},tZt={3:1,6:1,4:1,5:1,106:1,120:1},eZt="org.eclipse.elk.alg.force",nZt="ComponentsProcessor",rZt="ComponentsProcessor/1",iZt="org.eclipse.elk.alg.force.graph",aZt="Component Layout",oZt="org.eclipse.elk.alg.force.model",sZt="org.eclipse.elk.force.model",cZt="org.eclipse.elk.force.iterations",lZt="org.eclipse.elk.force.repulsivePower",uZt="org.eclipse.elk.force.temperature",hZt=.001,fZt="org.eclipse.elk.force.repulsion",dZt="org.eclipse.elk.alg.force.options",AZt=1.600000023841858,gZt="org.eclipse.elk.force",pZt="org.eclipse.elk.priority",mZt="org.eclipse.elk.spacing.nodeNode",bZt="org.eclipse.elk.spacing.edgeLabel",vZt="org.eclipse.elk.randomSeed",yZt="org.eclipse.elk.separateConnectedComponents",wZt="org.eclipse.elk.interactive",kZt="org.eclipse.elk.portConstraints",CZt="org.eclipse.elk.edgeLabels.inline",xZt="org.eclipse.elk.omitNodeMicroLayout",EZt="org.eclipse.elk.nodeSize.options",TZt="org.eclipse.elk.nodeSize.constraints",BZt="org.eclipse.elk.nodeLabels.placement",_Zt="org.eclipse.elk.portLabels.placement",SZt="origin",LZt="random",IZt="boundingBox.upLeft",MZt="boundingBox.lowRight",OZt="org.eclipse.elk.stress.fixed",DZt="org.eclipse.elk.stress.desiredEdgeLength",FZt="org.eclipse.elk.stress.dimension",NZt="org.eclipse.elk.stress.epsilon",PZt="org.eclipse.elk.stress.iterationLimit",RZt="org.eclipse.elk.stress",QZt="ELK Stress",UZt="org.eclipse.elk.nodeSize.minimum",$Zt="org.eclipse.elk.alg.force.stress",HZt="Layered layout",jZt="org.eclipse.elk.alg.layered",KZt="org.eclipse.elk.alg.layered.compaction.components",zZt="org.eclipse.elk.alg.layered.compaction.oned",GZt="org.eclipse.elk.alg.layered.compaction.oned.algs",XZt="org.eclipse.elk.alg.layered.compaction.recthull",VZt="org.eclipse.elk.alg.layered.components",WZt="NONE",qZt={3:1,6:1,4:1,9:1,5:1,122:1},YZt={3:1,6:1,4:1,5:1,141:1,106:1,120:1},JZt="org.eclipse.elk.alg.layered.compound",ZZt={51:1},t1t="org.eclipse.elk.alg.layered.graph",e1t=" -> ",n1t="Not supported by LGraph",r1t="Port side is undefined",i1t={3:1,6:1,4:1,5:1,474:1,141:1,106:1,120:1},a1t={3:1,6:1,4:1,5:1,141:1,193:1,203:1,106:1,120:1},o1t={3:1,6:1,4:1,5:1,141:1,1943:1,203:1,106:1,120:1},s1t="([{\"' \t\r\n",c1t=")]}\"' \t\r\n",l1t="The given string contains parts that cannot be parsed as numbers.",u1t="org.eclipse.elk.core.math",h1t={3:1,4:1,142:1,207:1,414:1},f1t={3:1,4:1,116:1,207:1,414:1},d1t="org.eclipse.elk.layered",A1t="org.eclipse.elk.alg.layered.graph.transform",g1t="ElkGraphImporter",p1t="ElkGraphImporter/lambda$0$Type",m1t="ElkGraphImporter/lambda$1$Type",b1t="ElkGraphImporter/lambda$2$Type",v1t="ElkGraphImporter/lambda$4$Type",y1t="Node margin calculation",w1t="org.eclipse.elk.alg.layered.intermediate",k1t="ONE_SIDED_GREEDY_SWITCH",C1t="TWO_SIDED_GREEDY_SWITCH",x1t="No implementation is available for the layout processor ",E1t="IntermediateProcessorStrategy",T1t="Node '",B1t="FIRST_SEPARATE",_1t="LAST_SEPARATE",S1t="Odd port side processing",L1t="org.eclipse.elk.alg.layered.intermediate.compaction",I1t="org.eclipse.elk.alg.layered.intermediate.greedyswitch",M1t="org.eclipse.elk.alg.layered.p3order.counting",O1t={225:1},D1t="org.eclipse.elk.alg.layered.intermediate.loops",F1t="org.eclipse.elk.alg.layered.intermediate.loops.ordering",N1t="org.eclipse.elk.alg.layered.intermediate.loops.routing",P1t="org.eclipse.elk.alg.layered.intermediate.preserveorder",R1t="org.eclipse.elk.alg.layered.intermediate.wrapping",Q1t="org.eclipse.elk.alg.layered.options",U1t="INTERACTIVE",$1t="DEPTH_FIRST",H1t="EDGE_LENGTH",j1t="SELF_LOOPS",K1t="firstTryWithInitialOrder",z1t="org.eclipse.elk.layered.directionCongruency",G1t="org.eclipse.elk.layered.feedbackEdges",X1t="org.eclipse.elk.layered.interactiveReferencePoint",V1t="org.eclipse.elk.layered.mergeEdges",W1t="org.eclipse.elk.layered.mergeHierarchyEdges",q1t="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Y1t="org.eclipse.elk.layered.portSortingStrategy",J1t="org.eclipse.elk.layered.thoroughness",Z1t="org.eclipse.elk.layered.unnecessaryBendpoints",t0t="org.eclipse.elk.layered.generatePositionAndLayerIds",e0t="org.eclipse.elk.layered.cycleBreaking.strategy",n0t="org.eclipse.elk.layered.layering.strategy",r0t="org.eclipse.elk.layered.layering.layerConstraint",i0t="org.eclipse.elk.layered.layering.layerChoiceConstraint",a0t="org.eclipse.elk.layered.layering.layerId",o0t="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",s0t="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",c0t="org.eclipse.elk.layered.layering.nodePromotion.strategy",l0t="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",u0t="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",h0t="org.eclipse.elk.layered.crossingMinimization.strategy",f0t="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",d0t="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",A0t="org.eclipse.elk.layered.crossingMinimization.semiInteractive",g0t="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",p0t="org.eclipse.elk.layered.crossingMinimization.positionId",m0t="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",b0t="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",v0t="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",y0t="org.eclipse.elk.layered.nodePlacement.strategy",w0t="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",k0t="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",C0t="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",x0t="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",E0t="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",T0t="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",B0t="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",_0t="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",S0t="org.eclipse.elk.layered.edgeRouting.splines.mode",L0t="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",I0t="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",M0t="org.eclipse.elk.layered.spacing.baseValue",O0t="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",D0t="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",F0t="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",N0t="org.eclipse.elk.layered.priority.direction",P0t="org.eclipse.elk.layered.priority.shortness",R0t="org.eclipse.elk.layered.priority.straightness",Q0t="org.eclipse.elk.layered.compaction.connectedComponents",U0t="org.eclipse.elk.layered.compaction.postCompaction.strategy",$0t="org.eclipse.elk.layered.compaction.postCompaction.constraints",H0t="org.eclipse.elk.layered.highDegreeNodes.treatment",j0t="org.eclipse.elk.layered.highDegreeNodes.threshold",K0t="org.eclipse.elk.layered.highDegreeNodes.treeHeight",z0t="org.eclipse.elk.layered.wrapping.strategy",G0t="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",X0t="org.eclipse.elk.layered.wrapping.correctionFactor",V0t="org.eclipse.elk.layered.wrapping.cutting.strategy",W0t="org.eclipse.elk.layered.wrapping.cutting.cuts",q0t="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",Y0t="org.eclipse.elk.layered.wrapping.validify.strategy",J0t="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",Z0t="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",t2t="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",e2t="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",n2t="org.eclipse.elk.layered.edgeLabels.sideSelection",r2t="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",i2t="org.eclipse.elk.layered.considerModelOrder.strategy",a2t="org.eclipse.elk.layered.considerModelOrder.noModelOrder",o2t="org.eclipse.elk.layered.considerModelOrder.components",s2t="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",c2t="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",l2t="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",u2t="layering",h2t="layering.minWidth",f2t="layering.nodePromotion",d2t="crossingMinimization",A2t="org.eclipse.elk.hierarchyHandling",g2t="crossingMinimization.greedySwitch",p2t="nodePlacement",m2t="nodePlacement.bk",b2t="edgeRouting",v2t="org.eclipse.elk.edgeRouting",y2t="spacing",w2t="priority",k2t="compaction",C2t="compaction.postCompaction",x2t="Specifies whether and how post-process compaction is applied.",E2t="highDegreeNodes",T2t="wrapping",B2t="wrapping.cutting",_2t="wrapping.validify",S2t="wrapping.multiEdge",L2t="edgeLabels",I2t="considerModelOrder",M2t="org.eclipse.elk.spacing.commentComment",O2t="org.eclipse.elk.spacing.commentNode",D2t="org.eclipse.elk.spacing.edgeEdge",F2t="org.eclipse.elk.spacing.edgeNode",N2t="org.eclipse.elk.spacing.labelLabel",P2t="org.eclipse.elk.spacing.labelPortHorizontal",R2t="org.eclipse.elk.spacing.labelPortVertical",Q2t="org.eclipse.elk.spacing.labelNode",U2t="org.eclipse.elk.spacing.nodeSelfLoop",$2t="org.eclipse.elk.spacing.portPort",H2t="org.eclipse.elk.spacing.individual",j2t="org.eclipse.elk.port.borderOffset",K2t="org.eclipse.elk.noLayout",z2t="org.eclipse.elk.port.side",G2t="org.eclipse.elk.debugMode",X2t="org.eclipse.elk.alignment",V2t="org.eclipse.elk.insideSelfLoops.activate",W2t="org.eclipse.elk.insideSelfLoops.yo",q2t="org.eclipse.elk.nodeSize.fixedGraphSize",Y2t="org.eclipse.elk.direction",J2t="org.eclipse.elk.nodeLabels.padding",Z2t="org.eclipse.elk.portLabels.nextToPortIfPossible",t3t="org.eclipse.elk.portLabels.treatAsGroup",e3t="org.eclipse.elk.portAlignment.default",n3t="org.eclipse.elk.portAlignment.north",r3t="org.eclipse.elk.portAlignment.south",i3t="org.eclipse.elk.portAlignment.west",a3t="org.eclipse.elk.portAlignment.east",o3t="org.eclipse.elk.contentAlignment",s3t="org.eclipse.elk.junctionPoints",c3t="org.eclipse.elk.edgeLabels.placement",l3t="org.eclipse.elk.port.index",u3t="org.eclipse.elk.commentBox",h3t="org.eclipse.elk.hypernode",f3t="org.eclipse.elk.port.anchor",d3t="org.eclipse.elk.partitioning.activate",A3t="org.eclipse.elk.partitioning.partition",g3t="org.eclipse.elk.position",p3t="org.eclipse.elk.margins",m3t="org.eclipse.elk.spacing.portsSurrounding",b3t="org.eclipse.elk.interactiveLayout",v3t="org.eclipse.elk.core.util",y3t={3:1,4:1,5:1,593:1},w3t="NETWORK_SIMPLEX",k3t={123:1,51:1},C3t="org.eclipse.elk.alg.layered.p1cycles",x3t="org.eclipse.elk.alg.layered.p2layers",E3t={402:1,225:1},T3t={832:1,3:1,4:1},B3t="org.eclipse.elk.alg.layered.p3order",_3t="org.eclipse.elk.alg.layered.p4nodes",S3t={3:1,4:1,5:1,840:1},L3t=1e-5,I3t="org.eclipse.elk.alg.layered.p4nodes.bk",M3t="org.eclipse.elk.alg.layered.p5edges",O3t="org.eclipse.elk.alg.layered.p5edges.orthogonal",D3t="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",F3t=1e-6,N3t="org.eclipse.elk.alg.layered.p5edges.splines",P3t=.09999999999999998,R3t=1e-8,Q3t=4.71238898038469,U3t=3.141592653589793,$3t="org.eclipse.elk.alg.mrtree",H3t="org.eclipse.elk.alg.mrtree.graph",j3t="org.eclipse.elk.alg.mrtree.intermediate",K3t="Set neighbors in level",z3t="DESCENDANTS",G3t="org.eclipse.elk.mrtree.weighting",X3t="org.eclipse.elk.mrtree.searchOrder",V3t="org.eclipse.elk.alg.mrtree.options",W3t="org.eclipse.elk.mrtree",q3t="org.eclipse.elk.tree",Y3t="org.eclipse.elk.alg.radial",J3t=6.283185307179586,Z3t=5e-324,t4t="org.eclipse.elk.alg.radial.intermediate",e4t="org.eclipse.elk.alg.radial.intermediate.compaction",n4t={3:1,4:1,5:1,106:1},r4t="org.eclipse.elk.alg.radial.intermediate.optimization",i4t="No implementation is available for the layout option ",a4t="org.eclipse.elk.alg.radial.options",o4t="org.eclipse.elk.radial.orderId",s4t="org.eclipse.elk.radial.radius",c4t="org.eclipse.elk.radial.compactor",l4t="org.eclipse.elk.radial.compactionStepSize",u4t="org.eclipse.elk.radial.sorter",h4t="org.eclipse.elk.radial.wedgeCriteria",f4t="org.eclipse.elk.radial.optimizationCriteria",d4t="org.eclipse.elk.radial",A4t="org.eclipse.elk.alg.radial.p1position.wedge",g4t="org.eclipse.elk.alg.radial.sorting",p4t=5.497787143782138,m4t=3.9269908169872414,b4t=2.356194490192345,v4t="org.eclipse.elk.alg.rectpacking",y4t="org.eclipse.elk.alg.rectpacking.firstiteration",w4t="org.eclipse.elk.alg.rectpacking.options",k4t="org.eclipse.elk.rectpacking.optimizationGoal",C4t="org.eclipse.elk.rectpacking.lastPlaceShift",x4t="org.eclipse.elk.rectpacking.currentPosition",E4t="org.eclipse.elk.rectpacking.desiredPosition",T4t="org.eclipse.elk.rectpacking.onlyFirstIteration",B4t="org.eclipse.elk.rectpacking.rowCompaction",_4t="org.eclipse.elk.rectpacking.expandToAspectRatio",S4t="org.eclipse.elk.rectpacking.targetWidth",L4t="org.eclipse.elk.expandNodes",I4t="org.eclipse.elk.rectpacking",M4t="org.eclipse.elk.alg.rectpacking.util",O4t="No implementation available for ",D4t="org.eclipse.elk.alg.spore",F4t="org.eclipse.elk.alg.spore.options",N4t="org.eclipse.elk.sporeCompaction",P4t="org.eclipse.elk.underlyingLayoutAlgorithm",R4t="org.eclipse.elk.processingOrder.treeConstruction",Q4t="org.eclipse.elk.processingOrder.spanningTreeCostFunction",U4t="org.eclipse.elk.processingOrder.preferredRoot",$4t="org.eclipse.elk.processingOrder.rootSelection",H4t="org.eclipse.elk.structure.structureExtractionStrategy",j4t="org.eclipse.elk.compaction.compactionStrategy",K4t="org.eclipse.elk.compaction.orthogonal",z4t="org.eclipse.elk.overlapRemoval.maxIterations",G4t="org.eclipse.elk.overlapRemoval.runScanline",X4t="processingOrder",V4t="overlapRemoval",W4t="org.eclipse.elk.sporeOverlap",q4t="org.eclipse.elk.alg.spore.p1structure",Y4t="org.eclipse.elk.alg.spore.p2processingorder",J4t="org.eclipse.elk.alg.spore.p3execution",Z4t="Invalid index: ",t5t="org.eclipse.elk.core.alg",e5t={331:1},n5t={288:1},r5t="Make sure its type is registered with the ",i5t=" utility class.",a5t="true",o5t="false",s5t="Couldn't clone property '",c5t=.05,l5t="org.eclipse.elk.core.options",u5t=1.2999999523162842,h5t="org.eclipse.elk.box",f5t="org.eclipse.elk.box.packingMode",d5t="org.eclipse.elk.algorithm",A5t="org.eclipse.elk.resolvedAlgorithm",g5t="org.eclipse.elk.bendPoints",p5t="org.eclipse.elk.labelManager",m5t="org.eclipse.elk.scaleFactor",b5t="org.eclipse.elk.animate",v5t="org.eclipse.elk.animTimeFactor",y5t="org.eclipse.elk.layoutAncestors",w5t="org.eclipse.elk.maxAnimTime",k5t="org.eclipse.elk.minAnimTime",C5t="org.eclipse.elk.progressBar",x5t="org.eclipse.elk.validateGraph",E5t="org.eclipse.elk.validateOptions",T5t="org.eclipse.elk.zoomToFit",B5t="org.eclipse.elk.font.name",_5t="org.eclipse.elk.font.size",S5t="org.eclipse.elk.edge.type",L5t="partitioning",I5t="nodeLabels",M5t="portAlignment",O5t="nodeSize",D5t="port",F5t="portLabels",N5t="insideSelfLoops",P5t="org.eclipse.elk.fixed",R5t="org.eclipse.elk.random",Q5t="port must have a parent node to calculate the port side",U5t="The edge needs to have exactly one edge section. Found: ",$5t="org.eclipse.elk.core.util.adapters",H5t="org.eclipse.emf.ecore",j5t="org.eclipse.elk.graph",K5t="EMapPropertyHolder",z5t="ElkBendPoint",G5t="ElkGraphElement",X5t="ElkConnectableShape",V5t="ElkEdge",W5t="ElkEdgeSection",q5t="EModelElement",Y5t="ENamedElement",J5t="ElkLabel",Z5t="ElkNode",t6t="ElkPort",e6t={92:1,90:1},n6t="org.eclipse.emf.common.notify.impl",r6t="The feature '",i6t="' is not a valid changeable feature",a6t="Expecting null",o6t="' is not a valid feature",s6t="The feature ID",c6t=" is not a valid feature ID",l6t=32768,u6t={105:1,92:1,90:1,56:1,49:1,97:1},h6t="org.eclipse.emf.ecore.impl",f6t="org.eclipse.elk.graph.impl",d6t="Recursive containment not allowed for ",A6t="The datatype '",g6t="' is not a valid classifier",p6t="The value '",m6t={190:1,3:1,4:1},b6t="The class '",v6t="http://www.eclipse.org/elk/ElkGraph",y6t=1024,w6t="property",k6t="value",C6t="source",x6t="properties",E6t="identifier",T6t="height",B6t="width",_6t="parent",S6t="text",L6t="children",I6t="hierarchical",M6t="sources",O6t="targets",D6t="sections",F6t="bendPoints",N6t="outgoingShape",P6t="incomingShape",R6t="outgoingSections",Q6t="incomingSections",U6t="org.eclipse.emf.common.util",$6t="Severe implementation error in the Json to ElkGraph importer.",H6t="id",j6t="org.eclipse.elk.graph.json",K6t="Unhandled parameter types: ",z6t="startPoint",G6t="An edge must have at least one source and one target (edge id: '",X6t="').",V6t="Referenced edge section does not exist: ",W6t=" (edge id: '",q6t="target",Y6t="sourcePoint",J6t="targetPoint",Z6t="group",t8t="name",e8t="connectableShape cannot be null",n8t="edge cannot be null",r8t="Passed edge is not 'simple'.",i8t="org.eclipse.elk.graph.util",a8t="The 'no duplicates' constraint is violated",o8t="targetIndex=",s8t=", size=",c8t="sourceIndex=",l8t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1},u8t={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},h8t="logging",f8t="measureExecutionTime",d8t="parser.parse.1",A8t="parser.parse.2",g8t="parser.next.1",p8t="parser.next.2",m8t="parser.next.3",b8t="parser.next.4",v8t="parser.factor.1",y8t="parser.factor.2",w8t="parser.factor.3",k8t="parser.factor.4",C8t="parser.factor.5",x8t="parser.factor.6",E8t="parser.atom.1",T8t="parser.atom.2",B8t="parser.atom.3",_8t="parser.atom.4",S8t="parser.atom.5",L8t="parser.cc.1",I8t="parser.cc.2",M8t="parser.cc.3",O8t="parser.cc.5",D8t="parser.cc.6",F8t="parser.cc.7",N8t="parser.cc.8",P8t="parser.ope.1",R8t="parser.ope.2",Q8t="parser.ope.3",U8t="parser.descape.1",$8t="parser.descape.2",H8t="parser.descape.3",j8t="parser.descape.4",K8t="parser.descape.5",z8t="parser.process.1",G8t="parser.quantifier.1",X8t="parser.quantifier.2",V8t="parser.quantifier.3",W8t="parser.quantifier.4",q8t="parser.quantifier.5",Y8t="org.eclipse.emf.common.notify",J8t={415:1,672:1},Z8t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1},t7t={366:1,143:1},e7t="index=",n7t={3:1,4:1,5:1,126:1},r7t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,58:1},i7t={3:1,6:1,4:1,5:1,192:1},a7t={3:1,4:1,5:1,165:1,367:1},o7t=";/?:@&=+$,",s7t="invalid authority: ",c7t="EAnnotation",l7t="ETypedElement",u7t="EStructuralFeature",h7t="EAttribute",f7t="EClassifier",d7t="EEnumLiteral",A7t="EGenericType",g7t="EOperation",p7t="EParameter",m7t="EReference",b7t="ETypeParameter",v7t="org.eclipse.emf.ecore.util",y7t={76:1},w7t={3:1,20:1,14:1,15:1,58:1,589:1,76:1,69:1,95:1},k7t="org.eclipse.emf.ecore.util.FeatureMap$Entry",C7t=8192,x7t=2048,E7t="byte",T7t="char",B7t="double",_7t="float",S7t="int",L7t="long",I7t="short",M7t="java.lang.Object",O7t={3:1,4:1,5:1,247:1},D7t={3:1,4:1,5:1,673:1},F7t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,69:1},N7t={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},P7t="mixed",R7t="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Q7t="kind",U7t={3:1,4:1,5:1,674:1},$7t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,76:1,69:1,95:1},H7t={20:1,28:1,52:1,14:1,15:1,58:1,69:1},j7t={47:1,125:1,279:1},K7t={72:1,332:1},z7t="The value of type '",G7t="' must be of type '",X7t=1316,V7t="http://www.eclipse.org/emf/2002/Ecore",W7t=-32768,q7t="constraints",Y7t="baseType",J7t="getEStructuralFeature",Z7t="getFeatureID",t9t="feature",e9t="getOperationID",n9t="operation",r9t="defaultValue",i9t="eTypeParameters",a9t="isInstance",o9t="getEEnumLiteral",s9t="eContainingClass",c9t={55:1},l9t={3:1,4:1,5:1,119:1},u9t="org.eclipse.emf.ecore.resource",h9t={92:1,90:1,591:1,1935:1},f9t="org.eclipse.emf.ecore.resource.impl",d9t="unspecified",A9t="simple",g9t="attribute",p9t="attributeWildcard",m9t="element",b9t="elementWildcard",v9t="collapse",y9t="itemType",w9t="namespace",k9t="##targetNamespace",C9t="whiteSpace",x9t="wildcards",E9t="http://www.eclipse.org/emf/2003/XMLType",T9t="##any",B9t="uninitialized",_9t="The multiplicity constraint is violated",S9t="org.eclipse.emf.ecore.xml.type",L9t="ProcessingInstruction",I9t="SimpleAnyType",M9t="XMLTypeDocumentRoot",O9t="org.eclipse.emf.ecore.xml.type.impl",D9t="INF",F9t="processing",N9t="ENTITIES_._base",P9t="minLength",R9t="ENTITY",Q9t="NCName",U9t="IDREFS_._base",$9t="integer",H9t="token",j9t="pattern",K9t="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",z9t="\\i\\c*",G9t="[\\i-[:]][\\c-[:]]*",X9t="nonPositiveInteger",V9t="maxInclusive",W9t="NMTOKEN",q9t="NMTOKENS_._base",Y9t="nonNegativeInteger",J9t="minInclusive",Z9t="normalizedString",tte="unsignedByte",ete="unsignedInt",nte="18446744073709551615",rte="unsignedShort",ite="processingInstruction",ate="org.eclipse.emf.ecore.xml.type.internal",ote=1114111,ste="Internal Error: shorthands: \\u",cte="xml:isDigit",lte="xml:isWord",ute="xml:isSpace",hte="xml:isNameChar",fte="xml:isInitialNameChar",dte="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",Ate="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",gte="Private Use",pte="ASSIGNED",mte="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\ufeff\ufeff＀￯",bte="UNASSIGNED",vte={3:1,117:1},yte="org.eclipse.emf.ecore.xml.type.util",wte={3:1,4:1,5:1,368:1},kte="org.eclipse.xtext.xbase.lib",Cte="Cannot add elements to a Range",xte="Cannot set elements in a Range",Ete="Cannot remove elements from a Range",Tte="locale",Bte="default",_te="user.agent";e.goog=e.goog||{},e.goog.global=e.goog.global||e,XEt(),dIt(1,null,{},i),xVt.Fb=function(t){return RL(this,t)},xVt.Gb=function(){return this.gm},xVt.Hb=function(){return ED(this)},xVt.Ib=function(){return Jk(tlt(this))+"@"+(Zct(this)>>>0).toString(16)},xVt.equals=function(t){return this.Fb(t)},xVt.hashCode=function(){return this.Hb()},xVt.toString=function(){return this.Ib()},dIt(290,1,{290:1,2026:1},pct),xVt.le=function(t){var e;return(e=new pct).i=4,e.c=t>1?AZ(this,t-1):this,e},xVt.me=function(){return wN(this),this.b},xVt.ne=function(){return Jk(this)},xVt.oe=function(){return wN(this),this.k},xVt.pe=function(){return!!(4&this.i)},xVt.qe=function(){return!!(1&this.i)},xVt.Ib=function(){return aet(this)},xVt.i=0;var Ste,Lte=pX(NVt,"Object",1),Ite=pX(NVt,"Class",290);dIt(1998,1,PVt),pX(RVt,"Optional",1998),dIt(1170,1998,PVt,a),xVt.Fb=function(t){return t===this},xVt.Hb=function(){return 2040732332},xVt.Ib=function(){return"Optional.absent()"},xVt.Jb=function(t){return bX(t),ey(),Ste},pX(RVt,"Absent",1170),dIt(628,1,{},mw),pX(RVt,"Joiner",628);var Mte=hj(RVt,"Predicate");dIt(582,1,{169:1,582:1,3:1,45:1},Qh),xVt.Mb=function(t){return Pct(this,t)},xVt.Lb=function(t){return Pct(this,t)},xVt.Fb=function(t){var e;return!!rO(t,582)&&(e=Q$(t,582),OIt(this.a,e.a))},xVt.Hb=function(){return Qct(this.a)+306654252},xVt.Ib=function(){return dBt(this.a)},pX(RVt,"Predicates/AndPredicate",582),dIt(408,1998,{408:1,3:1},Uh),xVt.Fb=function(t){var e;return!!rO(t,408)&&(e=Q$(t,408),Oht(this.a,e.a))},xVt.Hb=function(){return 1502476572+Zct(this.a)},xVt.Ib=function(){return jVt+this.a+")"},xVt.Jb=function(t){return new Uh(Gq(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},pX(RVt,"Present",408),dIt(198,1,zVt),xVt.Nb=function(t){lG(this,t)},xVt.Qb=function(){hw()},pX(GVt,"UnmodifiableIterator",198),dIt(1978,198,XVt),xVt.Qb=function(){hw()},xVt.Rb=function(t){throw Um(new gb)},xVt.Wb=function(t){throw Um(new gb)},pX(GVt,"UnmodifiableListIterator",1978),dIt(386,1978,XVt),xVt.Ob=function(){return this.c<this.d},xVt.Sb=function(){return this.c>0},xVt.Pb=function(){if(this.c>=this.d)throw Um(new bb);return this.Xb(this.c++)},xVt.Tb=function(){return this.c},xVt.Ub=function(){if(this.c<=0)throw Um(new bb);return this.Xb(--this.c)},xVt.Vb=function(){return this.c-1},xVt.c=0,xVt.d=0,pX(GVt,"AbstractIndexedListIterator",386),dIt(699,198,zVt),xVt.Ob=function(){return Jrt(this)},xVt.Pb=function(){return E9(this)},xVt.e=1,pX(GVt,"AbstractIterator",699),dIt(1986,1,{224:1}),xVt.Zb=function(){return this.f||(this.f=this.ac())},xVt.Fb=function(t){return wlt(this,t)},xVt.Hb=function(){return Zct(this.Zb())},xVt.dc=function(){return 0==this.gc()},xVt.ec=function(){return Az(this)},xVt.Ib=function(){return Udt(this.Zb())},pX(GVt,"AbstractMultimap",1986),dIt(726,1986,VVt),xVt.$b=function(){drt(this)},xVt._b=function(t){return Gk(this,t)},xVt.ac=function(){return new gx(this,this.c)},xVt.ic=function(t){return this.hc()},xVt.bc=function(){return new UO(this,this.c)},xVt.jc=function(){return this.mc(this.hc())},xVt.kc=function(){return new Uv(this)},xVt.lc=function(){return Hxt(this.c.vc().Nc(),new s,64,this.d)},xVt.cc=function(t){return c6(this,t)},xVt.fc=function(t){return Out(this,t)},xVt.gc=function(){return this.d},xVt.mc=function(t){return xq(),new Ud(t)},xVt.nc=function(){return new Qv(this)},xVt.oc=function(){return Hxt(this.c.Cc().Nc(),new o,64,this.d)},xVt.pc=function(t,e){return new G6(this,t,e,null)},xVt.d=0,pX(GVt,"AbstractMapBasedMultimap",726),dIt(1631,726,VVt),xVt.hc=function(){return new q6(this.a)},xVt.jc=function(){return xq(),xq(),cne},xVt.cc=function(t){return Q$(c6(this,t),15)},xVt.fc=function(t){return Q$(Out(this,t),15)},xVt.Zb=function(){return _q(this)},xVt.Fb=function(t){return wlt(this,t)},xVt.qc=function(t){return Q$(c6(this,t),15)},xVt.rc=function(t){return Q$(Out(this,t),15)},xVt.mc=function(t){return nY(Q$(t,15))},xVt.pc=function(t,e){return e3(this,t,Q$(e,15),null)},pX(GVt,"AbstractListMultimap",1631),dIt(732,1,WVt),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return this.c.Ob()||this.e.Ob()},xVt.Pb=function(){var t;return this.e.Ob()||(t=Q$(this.c.Pb(),42),this.b=t.cd(),this.a=Q$(t.dd(),14),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},xVt.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},pX(GVt,"AbstractMapBasedMultimap/Itr",732),dIt(1099,732,WVt,Qv),xVt.sc=function(t,e){return e},pX(GVt,"AbstractMapBasedMultimap/1",1099),dIt(1100,1,{},o),xVt.Kb=function(t){return Q$(t,14).Nc()},pX(GVt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100),dIt(1101,732,WVt,Uv),xVt.sc=function(t,e){return new px(t,e)},pX(GVt,"AbstractMapBasedMultimap/2",1101);var Ote=hj(qVt,"Map");dIt(1967,1,YVt),xVt.wc=function(t){Zat(this,t)},xVt.yc=function(t,e,n){return Jft(this,t,e,n)},xVt.$b=function(){this.vc().$b()},xVt.tc=function(t){return xvt(this,t)},xVt._b=function(t){return!!QCt(this,t,!1)},xVt.uc=function(t){var e,n;for(e=this.vc().Kc();e.Ob();)if(n=Q$(e.Pb(),42).dd(),HS(t)===HS(n)||null!=t&&Oht(t,n))return!0;return!1},xVt.Fb=function(t){var e,n,r;if(t===this)return!0;if(!rO(t,83))return!1;if(r=Q$(t,83),this.gc()!=r.gc())return!1;for(n=r.vc().Kc();n.Ob();)if(e=Q$(n.Pb(),42),!this.tc(e))return!1;return!0},xVt.xc=function(t){return $S(QCt(this,t,!1))},xVt.Hb=function(){return $st(this.vc())},xVt.dc=function(){return 0==this.gc()},xVt.ec=function(){return new Td(this)},xVt.zc=function(t,e){throw Um(new Zy("Put not supported on this map"))},xVt.Ac=function(t){Cat(this,t)},xVt.Bc=function(t){return $S(QCt(this,t,!0))},xVt.gc=function(){return this.vc().gc()},xVt.Ib=function(){return ZCt(this)},xVt.Cc=function(){return new _d(this)},pX(qVt,"AbstractMap",1967),dIt(1987,1967,YVt),xVt.bc=function(){return new xx(this)},xVt.vc=function(){return dz(this)},xVt.ec=function(){return this.g||(this.g=this.bc())},xVt.Cc=function(){return this.i||(this.i=new Ex(this))},pX(GVt,"Maps/ViewCachingAbstractMap",1987),dIt(389,1987,YVt,gx),xVt.xc=function(t){return yet(this,t)},xVt.Bc=function(t){return Jlt(this,t)},xVt.$b=function(){this.d==this.e.c?this.e.$b():Tj(new _j(this))},xVt._b=function(t){return ght(this.d,t)},xVt.Ec=function(){return new Kh(this)},xVt.Dc=function(){return this.Ec()},xVt.Fb=function(t){return this===t||Oht(this.d,t)},xVt.Hb=function(){return Zct(this.d)},xVt.ec=function(){return this.e.ec()},xVt.gc=function(){return this.d.gc()},xVt.Ib=function(){return Udt(this.d)},pX(GVt,"AbstractMapBasedMultimap/AsMap",389);var Dte=hj(NVt,"Iterable");dIt(28,1,JVt),xVt.Jc=function(t){t5(this,t)},xVt.Lc=function(){return this.Oc()},xVt.Nc=function(){return new f1(this,0)},xVt.Oc=function(){return new Fj(null,this.Nc())},xVt.Fc=function(t){throw Um(new Zy("Add not supported on this collection"))},xVt.Gc=function(t){return Qit(this,t)},xVt.$b=function(){kW(this)},xVt.Hc=function(t){return vAt(this,t,!1)},xVt.Ic=function(t){return sst(this,t)},xVt.dc=function(){return 0==this.gc()},xVt.Mc=function(t){return vAt(this,t,!0)},xVt.Pc=function(){return rz(this)},xVt.Qc=function(t){return kvt(this,t)},xVt.Ib=function(){return MEt(this)},pX(qVt,"AbstractCollection",28);var Fte=hj(qVt,"Set");dIt(ZVt,28,tWt),xVt.Nc=function(){return new f1(this,1)},xVt.Fb=function(t){return npt(this,t)},xVt.Hb=function(){return $st(this)},pX(qVt,"AbstractSet",ZVt),dIt(1970,ZVt,tWt),pX(GVt,"Sets/ImprovedAbstractSet",1970),dIt(1971,1970,tWt),xVt.$b=function(){this.Rc().$b()},xVt.Hc=function(t){return ngt(this,t)},xVt.dc=function(){return this.Rc().dc()},xVt.Mc=function(t){var e;return!!this.Hc(t)&&(e=Q$(t,42),this.Rc().ec().Mc(e.cd()))},xVt.gc=function(){return this.Rc().gc()},pX(GVt,"Maps/EntrySet",1971),dIt(1097,1971,tWt,Kh),xVt.Hc=function(t){return dht(this.a.d.vc(),t)},xVt.Kc=function(){return new _j(this.a)},xVt.Rc=function(){return this.a},xVt.Mc=function(t){var e;return!!dht(this.a.d.vc(),t)&&(e=Q$(t,42),U5(this.a.e,e.cd()),!0)},xVt.Nc=function(){return F$(this.a.d.vc().Nc(),new zh(this.a))},pX(GVt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097),dIt(1098,1,{},zh),xVt.Kb=function(t){return e5(this.a,Q$(t,42))},pX(GVt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098),dIt(730,1,WVt,_j),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){var t;return t=Q$(this.b.Pb(),42),this.a=Q$(t.dd(),14),e5(this.c,t)},xVt.Ob=function(){return this.b.Ob()},xVt.Qb=function(){lot(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},pX(GVt,"AbstractMapBasedMultimap/AsMap/AsMapIterator",730),dIt(532,1970,tWt,xx),xVt.$b=function(){this.b.$b()},xVt.Hc=function(t){return this.b._b(t)},xVt.Jc=function(t){bX(t),this.b.wc(new pf(t))},xVt.dc=function(){return this.b.dc()},xVt.Kc=function(){return new uy(this.b.vc().Kc())},xVt.Mc=function(t){return!!this.b._b(t)&&(this.b.Bc(t),!0)},xVt.gc=function(){return this.b.gc()},pX(GVt,"Maps/KeySet",532),dIt(318,532,tWt,UO),xVt.$b=function(){Tj(new tx(this,this.b.vc().Kc()))},xVt.Ic=function(t){return this.b.ec().Ic(t)},xVt.Fb=function(t){return this===t||Oht(this.b.ec(),t)},xVt.Hb=function(){return Zct(this.b.ec())},xVt.Kc=function(){return new tx(this,this.b.vc().Kc())},xVt.Mc=function(t){var e,n;return n=0,(e=Q$(this.b.Bc(t),14))&&(n=e.gc(),e.$b(),this.a.d-=n),n>0},xVt.Nc=function(){return this.b.ec().Nc()},pX(GVt,"AbstractMapBasedMultimap/KeySet",318),dIt(731,1,WVt,tx),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return this.c.Ob()},xVt.Pb=function(){return this.a=Q$(this.c.Pb(),42),this.a.cd()},xVt.Qb=function(){var t;lot(!!this.a),t=Q$(this.a.dd(),14),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},pX(GVt,"AbstractMapBasedMultimap/KeySet/1",731),dIt(491,389,{83:1,161:1},TN),xVt.bc=function(){return this.Sc()},xVt.ec=function(){return this.Tc()},xVt.Sc=function(){return new JC(this.c,this.Uc())},xVt.Tc=function(){return this.b||(this.b=this.Sc())},xVt.Uc=function(){return Q$(this.d,161)},pX(GVt,"AbstractMapBasedMultimap/SortedAsMap",491),dIt(542,491,eWt,BN),xVt.bc=function(){return new ZC(this.a,Q$(Q$(this.d,161),171))},xVt.Sc=function(){return new ZC(this.a,Q$(Q$(this.d,161),171))},xVt.ec=function(){return Q$(this.b||(this.b=new ZC(this.a,Q$(Q$(this.d,161),171))),271)},xVt.Tc=function(){return Q$(this.b||(this.b=new ZC(this.a,Q$(Q$(this.d,161),171))),271)},xVt.Uc=function(){return Q$(Q$(this.d,161),171)},pX(GVt,"AbstractMapBasedMultimap/NavigableAsMap",542),dIt(490,318,nWt,JC),xVt.Nc=function(){return this.b.ec().Nc()},pX(GVt,"AbstractMapBasedMultimap/SortedKeySet",490),dIt(388,490,rWt,ZC),pX(GVt,"AbstractMapBasedMultimap/NavigableKeySet",388),dIt(541,28,JVt,G6),xVt.Fc=function(t){var e,n;return Kdt(this),n=this.d.dc(),(e=this.d.Fc(t))&&(++this.f.d,n&&yP(this)),e},xVt.Gc=function(t){var e,n,r;return!t.dc()&&(Kdt(this),r=this.d.gc(),(e=this.d.Gc(t))&&(n=this.d.gc(),this.f.d+=n-r,0==r&&yP(this)),e)},xVt.$b=function(){var t;Kdt(this),0!=(t=this.d.gc())&&(this.d.$b(),this.f.d-=t,LK(this))},xVt.Hc=function(t){return Kdt(this),this.d.Hc(t)},xVt.Ic=function(t){return Kdt(this),this.d.Ic(t)},xVt.Fb=function(t){return t===this||(Kdt(this),Oht(this.d,t))},xVt.Hb=function(){return Kdt(this),Zct(this.d)},xVt.Kc=function(){return Kdt(this),new V$(this)},xVt.Mc=function(t){var e;return Kdt(this),(e=this.d.Mc(t))&&(--this.f.d,LK(this)),e},xVt.gc=function(){return ZS(this)},xVt.Nc=function(){return Kdt(this),this.d.Nc()},xVt.Ib=function(){return Kdt(this),Udt(this.d)},pX(GVt,"AbstractMapBasedMultimap/WrappedCollection",541);var Nte=hj(qVt,"List");dIt(728,541,{20:1,28:1,14:1,15:1},sz),xVt.ad=function(t){Rit(this,t)},xVt.Nc=function(){return Kdt(this),this.d.Nc()},xVt.Vc=function(t,e){var n;Kdt(this),n=this.d.dc(),Q$(this.d,15).Vc(t,e),++this.a.d,n&&yP(this)},xVt.Wc=function(t,e){var n,r,i;return!e.dc()&&(Kdt(this),i=this.d.gc(),(n=Q$(this.d,15).Wc(t,e))&&(r=this.d.gc(),this.a.d+=r-i,0==i&&yP(this)),n)},xVt.Xb=function(t){return Kdt(this),Q$(this.d,15).Xb(t)},xVt.Xc=function(t){return Kdt(this),Q$(this.d,15).Xc(t)},xVt.Yc=function(){return Kdt(this),new AM(this)},xVt.Zc=function(t){return Kdt(this),new Aq(this,t)},xVt.$c=function(t){var e;return Kdt(this),e=Q$(this.d,15).$c(t),--this.a.d,LK(this),e},xVt._c=function(t,e){return Kdt(this),Q$(this.d,15)._c(t,e)},xVt.bd=function(t,e){return Kdt(this),e3(this.a,this.e,Q$(this.d,15).bd(t,e),this.b?this.b:this)},pX(GVt,"AbstractMapBasedMultimap/WrappedList",728),dIt(1096,728,{20:1,28:1,14:1,15:1,54:1},_F),pX(GVt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096),dIt(620,1,WVt,V$),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return CW(this),this.b.Ob()},xVt.Pb=function(){return CW(this),this.b.Pb()},xVt.Qb=function(){tD(this)},pX(GVt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620),dIt(729,620,iWt,AM,Aq),xVt.Qb=function(){tD(this)},xVt.Rb=function(t){var e;e=0==ZS(this.a),(CW(this),Q$(this.b,125)).Rb(t),++this.a.a.d,e&&yP(this.a)},xVt.Sb=function(){return(CW(this),Q$(this.b,125)).Sb()},xVt.Tb=function(){return(CW(this),Q$(this.b,125)).Tb()},xVt.Ub=function(){return(CW(this),Q$(this.b,125)).Ub()},xVt.Vb=function(){return(CW(this),Q$(this.b,125)).Vb()},xVt.Wb=function(t){(CW(this),Q$(this.b,125)).Wb(t)},pX(GVt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",729),dIt(727,541,nWt,MN),xVt.Nc=function(){return Kdt(this),this.d.Nc()},pX(GVt,"AbstractMapBasedMultimap/WrappedSortedSet",727),dIt(1095,727,rWt,SI),pX(GVt,"AbstractMapBasedMultimap/WrappedNavigableSet",1095),dIt(1094,541,tWt,ON),xVt.Nc=function(){return Kdt(this),this.d.Nc()},pX(GVt,"AbstractMapBasedMultimap/WrappedSet",1094),dIt(1103,1,{},s),xVt.Kb=function(t){return R6(Q$(t,42))},pX(GVt,"AbstractMapBasedMultimap/lambda$1$Type",1103),dIt(1102,1,{},Gh),xVt.Kb=function(t){return new px(this.a,t)},pX(GVt,"AbstractMapBasedMultimap/lambda$2$Type",1102);var Pte,Rte,Qte,Ute,$te=hj(qVt,"Map/Entry");dIt(345,1,aWt),xVt.Fb=function(t){var e;return!!rO(t,42)&&(e=Q$(t,42),fV(this.cd(),e.cd())&&fV(this.dd(),e.dd()))},xVt.Hb=function(){var t,e;return t=this.cd(),e=this.dd(),(null==t?0:Zct(t))^(null==e?0:Zct(e))},xVt.ed=function(t){throw Um(new gb)},xVt.Ib=function(){return this.cd()+"="+this.dd()},pX(GVt,oWt,345),dIt(1988,28,JVt),xVt.$b=function(){this.fd().$b()},xVt.Hc=function(t){var e;return!!rO(t,42)&&(e=Q$(t,42),U0(this.fd(),e.cd(),e.dd()))},xVt.Mc=function(t){var e;return!!rO(t,42)&&(e=Q$(t,42),$0(this.fd(),e.cd(),e.dd()))},xVt.gc=function(){return this.fd().d},pX(GVt,"Multimaps/Entries",1988),dIt(733,1988,JVt,Xh),xVt.Kc=function(){return this.a.kc()},xVt.fd=function(){return this.a},xVt.Nc=function(){return this.a.lc()},pX(GVt,"AbstractMultimap/Entries",733),dIt(734,733,tWt,$v),xVt.Nc=function(){return this.a.lc()},xVt.Fb=function(t){return KTt(this,t)},xVt.Hb=function(){return Uit(this)},pX(GVt,"AbstractMultimap/EntrySet",734),dIt(735,28,JVt,Vh),xVt.$b=function(){this.a.$b()},xVt.Hc=function(t){return _lt(this.a,t)},xVt.Kc=function(){return this.a.nc()},xVt.gc=function(){return this.a.d},xVt.Nc=function(){return this.a.oc()},pX(GVt,"AbstractMultimap/Values",735),dIt(1989,28,{835:1,20:1,28:1,14:1}),xVt.Jc=function(t){bX(t),wW(this).Jc(new gf(t))},xVt.Nc=function(){var t;return Hxt(t=wW(this).Nc(),new y,64|1296&t.qd(),this.a.d)},xVt.Fc=function(t){return fw(),!0},xVt.Gc=function(t){return bX(this),bX(t),rO(t,543)?u2(Q$(t,835)):!t.dc()&&ltt(this,t.Kc())},xVt.Hc=function(t){var e;return((e=Q$(hht(_q(this.a),t),14))?e.gc():0)>0},xVt.Fb=function(t){return lMt(this,t)},xVt.Hb=function(){return Zct(wW(this))},xVt.dc=function(){return wW(this).dc()},xVt.Mc=function(t){return kSt(this,t,1)>0},xVt.Ib=function(){return Udt(wW(this))},pX(GVt,"AbstractMultiset",1989),dIt(1991,1970,tWt),xVt.$b=function(){drt(this.a.a)},xVt.Hc=function(t){var e;return!(!rO(t,492)||(e=Q$(t,416),Q$(e.a.dd(),14).gc()<=0||r1(this.a,e.a.cd())!=Q$(e.a.dd(),14).gc()))},xVt.Mc=function(t){var e,n,r;return!(!rO(t,492)||(e=(n=Q$(t,416)).a.cd(),0==(r=Q$(n.a.dd(),14).gc())))&&CSt(this.a,e,r)},pX(GVt,"Multisets/EntrySet",1991),dIt(1109,1991,tWt,Wh),xVt.Kc=function(){return new fy(dz(_q(this.a.a)).Kc())},xVt.gc=function(){return _q(this.a.a).gc()},pX(GVt,"AbstractMultiset/EntrySet",1109),dIt(619,726,VVt),xVt.hc=function(){return this.gd()},xVt.jc=function(){return this.hd()},xVt.cc=function(t){return this.jd(t)},xVt.fc=function(t){return this.kd(t)},xVt.Zb=function(){return this.f||(this.f=this.ac())},xVt.hd=function(){return xq(),xq(),une},xVt.Fb=function(t){return wlt(this,t)},xVt.jd=function(t){return Q$(c6(this,t),21)},xVt.kd=function(t){return Q$(Out(this,t),21)},xVt.mc=function(t){return xq(),new Sw(Q$(t,21))},xVt.pc=function(t,e){return new ON(this,t,Q$(e,21))},pX(GVt,"AbstractSetMultimap",619),dIt(1657,619,VVt),xVt.hc=function(){return new dC(this.b)},xVt.gd=function(){return new dC(this.b)},xVt.jc=function(){return BX(new dC(this.b))},xVt.hd=function(){return BX(new dC(this.b))},xVt.cc=function(t){return Q$(Q$(c6(this,t),21),84)},xVt.jd=function(t){return Q$(Q$(c6(this,t),21),84)},xVt.fc=function(t){return Q$(Q$(Out(this,t),21),84)},xVt.kd=function(t){return Q$(Q$(Out(this,t),21),84)},xVt.mc=function(t){return rO(t,271)?BX(Q$(t,271)):(xq(),new dD(Q$(t,84)))},xVt.Zb=function(){return this.f||(this.f=rO(this.c,171)?new BN(this,Q$(this.c,171)):rO(this.c,161)?new TN(this,Q$(this.c,161)):new gx(this,this.c))},xVt.pc=function(t,e){return rO(e,271)?new SI(this,t,Q$(e,271)):new MN(this,t,Q$(e,84))},pX(GVt,"AbstractSortedSetMultimap",1657),dIt(1658,1657,VVt),xVt.Zb=function(){return Q$(Q$(this.f||(this.f=rO(this.c,171)?new BN(this,Q$(this.c,171)):rO(this.c,161)?new TN(this,Q$(this.c,161)):new gx(this,this.c)),161),171)},xVt.ec=function(){return Q$(Q$(this.i||(this.i=rO(this.c,171)?new ZC(this,Q$(this.c,171)):rO(this.c,161)?new JC(this,Q$(this.c,161)):new UO(this,this.c)),84),271)},xVt.bc=function(){return rO(this.c,171)?new ZC(this,Q$(this.c,171)):rO(this.c,161)?new JC(this,Q$(this.c,161)):new UO(this,this.c)},pX(GVt,"AbstractSortedKeySortedSetMultimap",1658),dIt(2010,1,{1947:1}),xVt.Fb=function(t){return Bkt(this,t)},xVt.Hb=function(){return $st(this.g||(this.g=new qh(this)))},xVt.Ib=function(){return ZCt(this.f||(this.f=new KO(this)))},pX(GVt,"AbstractTable",2010),dIt(665,ZVt,tWt,qh),xVt.$b=function(){dw()},xVt.Hc=function(t){var e,n;return!!rO(t,468)&&(e=Q$(t,682),!!(n=Q$(hht(yX(this.a),GS(e.c.e,e.b)),83))&&dht(n.vc(),new px(GS(e.c.c,e.a),K6(e.c,e.b,e.a))))},xVt.Kc=function(){return Yq(this.a)},xVt.Mc=function(t){var e,n;return!!rO(t,468)&&(e=Q$(t,682),!!(n=Q$(hht(yX(this.a),GS(e.c.e,e.b)),83))&&Aht(n.vc(),new px(GS(e.c.c,e.a),K6(e.c,e.b,e.a))))},xVt.gc=function(){return jj(this.a)},xVt.Nc=function(){return E2(this.a)},pX(GVt,"AbstractTable/CellSet",665),dIt(1928,28,JVt,Yh),xVt.$b=function(){dw()},xVt.Hc=function(t){return lxt(this.a,t)},xVt.Kc=function(){return Jq(this.a)},xVt.gc=function(){return jj(this.a)},xVt.Nc=function(){return W0(this.a)},pX(GVt,"AbstractTable/Values",1928),dIt(1632,1631,VVt),pX(GVt,"ArrayListMultimapGwtSerializationDependencies",1632),dIt(513,1632,VVt,ow,o1),xVt.hc=function(){return new q6(this.a)},xVt.a=0,pX(GVt,"ArrayListMultimap",513),dIt(664,2010,{664:1,1947:1,3:1},mLt),pX(GVt,"ArrayTable",664),dIt(1924,386,XVt,$O),xVt.Xb=function(t){return new gct(this.a,t)},pX(GVt,"ArrayTable/1",1924),dIt(1925,1,{},$h),xVt.ld=function(t){return new gct(this.a,t)},pX(GVt,"ArrayTable/1methodref$getCell$Type",1925),dIt(2011,1,{682:1}),xVt.Fb=function(t){var e;return t===this||!!rO(t,468)&&(e=Q$(t,682),fV(GS(this.c.e,this.b),GS(e.c.e,e.b))&&fV(GS(this.c.c,this.a),GS(e.c.c,e.a))&&fV(K6(this.c,this.b,this.a),K6(e.c,e.b,e.a)))},xVt.Hb=function(){return uut(Tst(Hw(Lte,1),$Vt,1,5,[GS(this.c.e,this.b),GS(this.c.c,this.a),K6(this.c,this.b,this.a)]))},xVt.Ib=function(){return"("+GS(this.c.e,this.b)+","+GS(this.c.c,this.a)+")="+K6(this.c,this.b,this.a)},pX(GVt,"Tables/AbstractCell",2011),dIt(468,2011,{468:1,682:1},gct),xVt.a=0,xVt.b=0,xVt.d=0,pX(GVt,"ArrayTable/2",468),dIt(1927,1,{},Hh),xVt.ld=function(t){return W7(this.a,t)},pX(GVt,"ArrayTable/2methodref$getValue$Type",1927),dIt(1926,386,XVt,HO),xVt.Xb=function(t){return W7(this.a,t)},pX(GVt,"ArrayTable/3",1926),dIt(1979,1967,YVt),xVt.$b=function(){Tj(this.kc())},xVt.vc=function(){return new mf(this)},xVt.lc=function(){return new TW(this.kc(),this.gc())},pX(GVt,"Maps/IteratorBasedAbstractMap",1979),dIt(828,1979,YVt),xVt.$b=function(){throw Um(new gb)},xVt._b=function(t){return Wk(this.c,t)},xVt.kc=function(){return new jO(this,this.c.b.c.gc())},xVt.lc=function(){return bj(this.c.b.c.gc(),16,new jh(this))},xVt.xc=function(t){var e;return(e=Q$(KR(this.c,t),19))?this.nd(e.a):null},xVt.dc=function(){return this.c.b.c.dc()},xVt.ec=function(){return hz(this.c)},xVt.zc=function(t,e){var n;if(!(n=Q$(KR(this.c,t),19)))throw Um(new Py(this.md()+" "+t+" not in "+hz(this.c)));return this.od(n.a,e)},xVt.Bc=function(t){throw Um(new gb)},xVt.gc=function(){return this.c.b.c.gc()},pX(GVt,"ArrayTable/ArrayMap",828),dIt(1923,1,{},jh),xVt.ld=function(t){return _X(this.a,t)},pX(GVt,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1923),dIt(1921,345,aWt,sx),xVt.cd=function(){return WO(this.a,this.b)},xVt.dd=function(){return this.a.nd(this.b)},xVt.ed=function(t){return this.a.od(this.b,t)},xVt.b=0,pX(GVt,"ArrayTable/ArrayMap/1",1921),dIt(1922,386,XVt,jO),xVt.Xb=function(t){return _X(this.a,t)},pX(GVt,"ArrayTable/ArrayMap/2",1922),dIt(1920,828,YVt,rG),xVt.md=function(){return"Column"},xVt.nd=function(t){return K6(this.b,this.a,t)},xVt.od=function(t,e){return Est(this.b,this.a,t,e)},xVt.a=0,pX(GVt,"ArrayTable/Row",1920),dIt(829,828,YVt,KO),xVt.nd=function(t){return new rG(this.a,t)},xVt.zc=function(t,e){return Q$(e,83),Aw()},xVt.od=function(t,e){return Q$(e,83),gw()},xVt.md=function(){return"Row"},pX(GVt,"ArrayTable/RowMap",829),dIt(1120,1,uWt,cx),xVt.qd=function(){return-262&this.a.qd()},xVt.rd=function(){return this.a.rd()},xVt.Nb=function(t){this.a.Nb(new rx(t,this.b))},xVt.sd=function(t){return this.a.sd(new nx(t,this.b))},pX(GVt,"CollectSpliterators/1",1120),dIt(1121,1,hWt,nx),xVt.td=function(t){this.a.td(this.b.Kb(t))},pX(GVt,"CollectSpliterators/1/lambda$0$Type",1121),dIt(1122,1,hWt,rx),xVt.td=function(t){this.a.td(this.b.Kb(t))},pX(GVt,"CollectSpliterators/1/lambda$1$Type",1122),dIt(1123,1,uWt,$2),xVt.qd=function(){return this.a},xVt.rd=function(){return this.d&&(this.b=kM(this.b,this.d.rd())),kM(this.b,0)},xVt.Nb=function(t){this.d&&(this.d.Nb(t),this.d=null),this.c.Nb(new ex(this.e,t)),this.b=0},xVt.sd=function(t){for(;;){if(this.d&&this.d.sd(t))return qS(this.b,fWt)&&(this.b=ndt(this.b,1)),!0;if(this.d=null,!this.c.sd(new ix(this,this.e)))return!1}},xVt.a=0,xVt.b=0,pX(GVt,"CollectSpliterators/1FlatMapSpliterator",1123),dIt(1124,1,hWt,ix),xVt.td=function(t){dR(this.a,this.b,t)},pX(GVt,"CollectSpliterators/1FlatMapSpliterator/lambda$0$Type",1124),dIt(1125,1,hWt,ex),xVt.td=function(t){oO(this.b,this.a,t)},pX(GVt,"CollectSpliterators/1FlatMapSpliterator/lambda$1$Type",1125),dIt(1117,1,uWt,fR),xVt.qd=function(){return 16464|this.b},xVt.rd=function(){return this.a.rd()},xVt.Nb=function(t){this.a.xe(new ox(t,this.c))},xVt.sd=function(t){return this.a.ye(new ax(t,this.c))},xVt.b=0,pX(GVt,"CollectSpliterators/1WithCharacteristics",1117),dIt(1118,1,dWt,ax),xVt.ud=function(t){this.a.td(this.b.ld(t))},pX(GVt,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1118),dIt(1119,1,dWt,ox),xVt.ud=function(t){this.a.td(this.b.ld(t))},pX(GVt,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1119),dIt(245,1,AWt),xVt.wd=function(t){return this.vd(Q$(t,245))},xVt.vd=function(t){var e;return t==(Zv(),Rte)?1:t==(ty(),Pte)?-1:(JH(),0!=(e=Oat(this.a,t.a))?e:rO(this,519)==rO(t,519)?0:rO(this,519)?1:-1)},xVt.zd=function(){return this.a},xVt.Fb=function(t){return Dgt(this,t)},pX(GVt,"Cut",245),dIt(1761,245,AWt,Mw),xVt.vd=function(t){return t==this?0:1},xVt.xd=function(t){throw Um(new cb)},xVt.yd=function(t){t.a+="+∞)"},xVt.zd=function(){throw Um(new Ry(gWt))},xVt.Hb=function(){return Lx(),ebt(this)},xVt.Ad=function(t){return!1},xVt.Ib=function(){return"+∞"},pX(GVt,"Cut/AboveAll",1761),dIt(519,245,{245:1,519:1,3:1,35:1},eD),xVt.xd=function(t){aL((t.a+="(",t),this.a)},xVt.yd=function(t){OX(aL(t,this.a),93)},xVt.Hb=function(){return~Zct(this.a)},xVt.Ad=function(t){return JH(),Oat(this.a,t)<0},xVt.Ib=function(){return"/"+this.a+"\\"},pX(GVt,"Cut/AboveValue",519),dIt(1760,245,AWt,Ow),xVt.vd=function(t){return t==this?0:-1},xVt.xd=function(t){t.a+="(-∞"},xVt.yd=function(t){throw Um(new cb)},xVt.zd=function(){throw Um(new Ry(gWt))},xVt.Hb=function(){return Lx(),ebt(this)},xVt.Ad=function(t){return!0},xVt.Ib=function(){return"-∞"},pX(GVt,"Cut/BelowAll",1760),dIt(1762,245,AWt,nD),xVt.xd=function(t){aL((t.a+="[",t),this.a)},xVt.yd=function(t){OX(aL(t,this.a),41)},xVt.Hb=function(){return Zct(this.a)},xVt.Ad=function(t){return JH(),Oat(this.a,t)<=0},xVt.Ib=function(){return"\\"+this.a+"/"},pX(GVt,"Cut/BelowValue",1762),dIt(537,1,pWt),xVt.Jc=function(t){t5(this,t)},xVt.Ib=function(){return $ft(Q$(Gq(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},pX(GVt,"FluentIterable",537),dIt(433,537,pWt,_L),xVt.Kc=function(){return new oz(YO(this.a.Kc(),new u))},pX(GVt,"FluentIterable/2",433),dIt(1046,537,pWt,SL),xVt.Kc=function(){return MG(this)},pX(GVt,"FluentIterable/3",1046),dIt(708,386,XVt,GO),xVt.Xb=function(t){return this.a[t].Kc()},pX(GVt,"FluentIterable/3/1",708),dIt(1972,1,{}),xVt.Ib=function(){return Udt(this.Bd().b)},pX(GVt,"ForwardingObject",1972),dIt(1973,1972,mWt),xVt.Bd=function(){return this.Cd()},xVt.Jc=function(t){t5(this,t)},xVt.Lc=function(){return this.Oc()},xVt.Nc=function(){return new f1(this,0)},xVt.Oc=function(){return new Fj(null,this.Nc())},xVt.Fc=function(t){return this.Cd(),oC()},xVt.Gc=function(t){return this.Cd(),sC()},xVt.$b=function(){this.Cd(),cC()},xVt.Hc=function(t){return this.Cd().Hc(t)},xVt.Ic=function(t){return this.Cd().Ic(t)},xVt.dc=function(){return this.Cd().b.dc()},xVt.Kc=function(){return this.Cd().Kc()},xVt.Mc=function(t){return this.Cd(),lC()},xVt.gc=function(){return this.Cd().b.gc()},xVt.Pc=function(){return this.Cd().Pc()},xVt.Qc=function(t){return this.Cd().Qc(t)},pX(GVt,"ForwardingCollection",1973),dIt(1980,28,bWt),xVt.Kc=function(){return this.Ed()},xVt.Fc=function(t){throw Um(new gb)},xVt.Gc=function(t){throw Um(new gb)},xVt.$b=function(){throw Um(new gb)},xVt.Hc=function(t){return null!=t&&vAt(this,t,!1)},xVt.Dd=function(){switch(this.gc()){case 0:return GX(),GX(),Qte;case 1:return GX(),new Ej(bX(this.Ed().Pb()));default:return new iG(this,this.Pc())}},xVt.Mc=function(t){throw Um(new gb)},pX(GVt,"ImmutableCollection",1980),dIt(712,1980,bWt,nb),xVt.Kc=function(){return I7(this.a.Kc())},xVt.Hc=function(t){return null!=t&&this.a.Hc(t)},xVt.Ic=function(t){return this.a.Ic(t)},xVt.dc=function(){return this.a.dc()},xVt.Ed=function(){return I7(this.a.Kc())},xVt.gc=function(){return this.a.gc()},xVt.Pc=function(){return this.a.Pc()},xVt.Qc=function(t){return this.a.Qc(t)},xVt.Ib=function(){return Udt(this.a)},pX(GVt,"ForwardingImmutableCollection",712),dIt(152,1980,vWt),xVt.Kc=function(){return this.Ed()},xVt.Yc=function(){return this.Fd(0)},xVt.Zc=function(t){return this.Fd(t)},xVt.ad=function(t){Rit(this,t)},xVt.Nc=function(){return new f1(this,16)},xVt.bd=function(t,e){return this.Gd(t,e)},xVt.Vc=function(t,e){throw Um(new gb)},xVt.Wc=function(t,e){throw Um(new gb)},xVt.Fb=function(t){return HIt(this,t)},xVt.Hb=function(){return _ot(this)},xVt.Xc=function(t){return null==t?-1:Cvt(this,t)},xVt.Ed=function(){return this.Fd(0)},xVt.Fd=function(t){return eF(this,t)},xVt.$c=function(t){throw Um(new gb)},xVt._c=function(t,e){throw Um(new gb)},xVt.Gd=function(t,e){return cht(new s1(new Bx(this),t,e))},pX(GVt,"ImmutableList",152),dIt(2006,152,vWt),xVt.Kc=function(){return I7(this.Hd().Kc())},xVt.bd=function(t,e){return cht(this.Hd().bd(t,e))},xVt.Hc=function(t){return null!=t&&this.Hd().Hc(t)},xVt.Ic=function(t){return this.Hd().Ic(t)},xVt.Fb=function(t){return Oht(this.Hd(),t)},xVt.Xb=function(t){return GS(this,t)},xVt.Hb=function(){return Zct(this.Hd())},xVt.Xc=function(t){return this.Hd().Xc(t)},xVt.dc=function(){return this.Hd().dc()},xVt.Ed=function(){return I7(this.Hd().Kc())},xVt.gc=function(){return this.Hd().gc()},xVt.Gd=function(t,e){return cht(this.Hd().bd(t,e))},xVt.Pc=function(){return this.Hd().Qc(O8(Lte,$Vt,1,this.Hd().gc(),5,1))},xVt.Qc=function(t){return this.Hd().Qc(t)},xVt.Ib=function(){return Udt(this.Hd())},pX(GVt,"ForwardingImmutableList",2006),dIt(714,1,wWt),xVt.vc=function(){return uz(this)},xVt.wc=function(t){Zat(this,t)},xVt.ec=function(){return hz(this)},xVt.yc=function(t,e,n){return Jft(this,t,e,n)},xVt.Cc=function(){return this.Ld()},xVt.$b=function(){throw Um(new gb)},xVt._b=function(t){return null!=this.xc(t)},xVt.uc=function(t){return this.Ld().Hc(t)},xVt.Jd=function(){return new rb(this)},xVt.Kd=function(){return new ib(this)},xVt.Fb=function(t){return Ilt(this,t)},xVt.Hb=function(){return uz(this).Hb()},xVt.dc=function(){return 0==this.gc()},xVt.zc=function(t,e){return pw()},xVt.Bc=function(t){throw Um(new gb)},xVt.Ib=function(){return uTt(this)},xVt.Ld=function(){return this.e?this.e:this.e=this.Kd()},xVt.c=null,xVt.d=null,xVt.e=null,pX(GVt,"ImmutableMap",714),dIt(715,714,wWt),xVt._b=function(t){return Wk(this,t)},xVt.uc=function(t){return Px(this.b,t)},xVt.Id=function(){return lht(new Zh(this))},xVt.Jd=function(){return lht(eW(this.b))},xVt.Kd=function(){return sQ(),new nb(ZV(this.b))},xVt.Fb=function(t){return Qx(this.b,t)},xVt.xc=function(t){return KR(this,t)},xVt.Hb=function(){return Zct(this.b.c)},xVt.dc=function(){return this.b.c.dc()},xVt.gc=function(){return this.b.c.gc()},xVt.Ib=function(){return Udt(this.b.c)},pX(GVt,"ForwardingImmutableMap",715),dIt(1974,1973,kWt),xVt.Bd=function(){return this.Md()},xVt.Cd=function(){return this.Md()},xVt.Nc=function(){return new f1(this,1)},xVt.Fb=function(t){return t===this||this.Md().Fb(t)},xVt.Hb=function(){return this.Md().Hb()},pX(GVt,"ForwardingSet",1974),dIt(1069,1974,kWt,Zh),xVt.Bd=function(){return tW(this.a.b)},xVt.Cd=function(){return tW(this.a.b)},xVt.Hc=function(t){if(rO(t,42)&&null==Q$(t,42).cd())return!1;try{return Nx(tW(this.a.b),t)}catch(t){if(rO(t=hst(t),205))return!1;throw Um(t)}},xVt.Md=function(){return tW(this.a.b)},xVt.Qc=function(t){var e;return e=BY(tW(this.a.b),t),tW(this.a.b).b.gc()<e.length&&LX(e,tW(this.a.b).b.gc(),null),e},pX(GVt,"ForwardingImmutableMap/1",1069),dIt(1981,1980,CWt),xVt.Kc=function(){return this.Ed()},xVt.Nc=function(){return new f1(this,1)},xVt.Fb=function(t){return KTt(this,t)},xVt.Hb=function(){return Uit(this)},pX(GVt,"ImmutableSet",1981),dIt(703,1981,CWt),xVt.Kc=function(){return I7(new $d(this.a.b.Kc()))},xVt.Hc=function(t){return null!=t&&Ox(this.a,t)},xVt.Ic=function(t){return Dx(this.a,t)},xVt.Hb=function(){return Zct(this.a.b)},xVt.dc=function(){return this.a.b.dc()},xVt.Ed=function(){return I7(new $d(this.a.b.Kc()))},xVt.gc=function(){return this.a.b.gc()},xVt.Pc=function(){return this.a.b.Pc()},xVt.Qc=function(t){return Fx(this.a,t)},xVt.Ib=function(){return Udt(this.a.b)},pX(GVt,"ForwardingImmutableSet",703),dIt(1975,1974,xWt),xVt.Bd=function(){return this.b},xVt.Cd=function(){return this.b},xVt.Md=function(){return this.b},xVt.Nc=function(){return new fT(this)},pX(GVt,"ForwardingSortedSet",1975),dIt(533,1979,wWt,Lbt),xVt.Ac=function(t){Cat(this,t)},xVt.Cc=function(){return new gM(this.d||(this.d=new tf(this)))},xVt.$b=function(){d5(this)},xVt._b=function(t){return!!Yit(this,t,dK(idt(EWt,nW(dK(idt(null==t?0:Zct(t),TWt)),15))))},xVt.uc=function(t){return Met(this,t)},xVt.kc=function(){return new XO(this,this)},xVt.wc=function(t){QJ(this,t)},xVt.xc=function(t){return cnt(this,t)},xVt.ec=function(){return new pM(this)},xVt.zc=function(t,e){return dRt(this,t,e)},xVt.Bc=function(t){var e;return(e=Yit(this,t,dK(idt(EWt,nW(dK(idt(null==t?0:Zct(t),TWt)),15)))))?(MOt(this,e),e.e=null,e.c=null,e.i):null},xVt.gc=function(){return this.i},xVt.pd=function(){return new gM(this.d||(this.d=new tf(this)))},xVt.f=0,xVt.g=0,xVt.i=0,pX(GVt,"HashBiMap",533),dIt(534,1,WVt),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return u3(this)},xVt.Pb=function(){var t;if(!u3(this))throw Um(new bb);return t=this.c,this.c=t.c,this.f=t,--this.d,this.Nd(t)},xVt.Qb=function(){if(this.e.g!=this.b)throw Um(new pb);lot(!!this.f),MOt(this.e,this.f),this.b=this.e.g,this.f=null},xVt.b=0,xVt.d=0,xVt.f=null,pX(GVt,"HashBiMap/Itr",534),dIt(1011,534,WVt,XO),xVt.Nd=function(t){return new hx(this,t)},pX(GVt,"HashBiMap/1",1011),dIt(1012,345,aWt,hx),xVt.cd=function(){return this.a.g},xVt.dd=function(){return this.a.i},xVt.ed=function(t){var e,n,r;return n=this.a.i,(r=dK(idt(EWt,nW(dK(idt(null==t?0:Zct(t),TWt)),15))))==this.a.f&&(HS(t)===HS(n)||null!=t&&Oht(t,n))?t:(vst(!Jit(this.b.a,t,r),t),MOt(this.b.a,this.a),e=new $V(this.a.g,this.a.a,t,r),q_t(this.b.a,e,this.a),this.a.e=null,this.a.c=null,this.b.b=this.b.a.g,this.b.f==this.a&&(this.b.f=e),this.a=e,n)},pX(GVt,"HashBiMap/1/MapEntry",1012),dIt(238,345,{345:1,238:1,3:1,42:1},px),xVt.cd=function(){return this.g},xVt.dd=function(){return this.i},xVt.ed=function(t){throw Um(new gb)},pX(GVt,"ImmutableEntry",238),dIt(317,238,{345:1,317:1,238:1,3:1,42:1},$V),xVt.a=0,xVt.f=0;var Hte,jte=pX(GVt,"HashBiMap/BiEntry",317);dIt(610,1979,wWt,tf),xVt.Ac=function(t){Cat(this,t)},xVt.Cc=function(){return new pM(this.a)},xVt.$b=function(){d5(this.a)},xVt._b=function(t){return Met(this.a,t)},xVt.kc=function(){return new VO(this,this.a)},xVt.wc=function(t){bX(t),QJ(this.a,new ef(t))},xVt.xc=function(t){return zrt(this,t)},xVt.ec=function(){return new gM(this)},xVt.zc=function(t,e){return BQt(this.a,t,e,!1)},xVt.Bc=function(t){var e;return(e=Jit(this.a,t,dK(idt(EWt,nW(dK(idt(null==t?0:Zct(t),TWt)),15)))))?(MOt(this.a,e),e.e=null,e.c=null,e.g):null},xVt.gc=function(){return this.a.i},xVt.pd=function(){return new pM(this.a)},pX(GVt,"HashBiMap/Inverse",610),dIt(1008,534,WVt,VO),xVt.Nd=function(t){return new fx(this,t)},pX(GVt,"HashBiMap/Inverse/1",1008),dIt(1009,345,aWt,fx),xVt.cd=function(){return this.a.i},xVt.dd=function(){return this.a.g},xVt.ed=function(t){var e,n,r;return r=this.a.g,(e=dK(idt(EWt,nW(dK(idt(null==t?0:Zct(t),TWt)),15))))==this.a.a&&(HS(t)===HS(r)||null!=t&&Oht(t,r))?t:(vst(!Yit(this.b.a.a,t,e),t),MOt(this.b.a.a,this.a),n=new $V(t,e,this.a.i,this.a.f),this.a=n,q_t(this.b.a.a,n,null),this.b.b=this.b.a.a.g,r)},pX(GVt,"HashBiMap/Inverse/1/InverseEntry",1009),dIt(611,532,tWt,gM),xVt.Kc=function(){return new ay(this.a.a)},xVt.Mc=function(t){var e;return!!(e=Jit(this.a.a,t,dK(idt(EWt,nW(dK(idt(null==t?0:Zct(t),TWt)),15)))))&&(MOt(this.a.a,e),!0)},pX(GVt,"HashBiMap/Inverse/InverseKeySet",611),dIt(1007,534,WVt,ay),xVt.Nd=function(t){return t.i},pX(GVt,"HashBiMap/Inverse/InverseKeySet/1",1007),dIt(1010,1,{},ef),xVt.Od=function(t,e){tb(this.a,t,e)},pX(GVt,"HashBiMap/Inverse/lambda$0$Type",1010),dIt(609,532,tWt,pM),xVt.Kc=function(){return new oy(this.a)},xVt.Mc=function(t){var e;return!!(e=Yit(this.a,t,dK(idt(EWt,nW(dK(idt(null==t?0:Zct(t),TWt)),15)))))&&(MOt(this.a,e),e.e=null,e.c=null,!0)},pX(GVt,"HashBiMap/KeySet",609),dIt(1006,534,WVt,oy),xVt.Nd=function(t){return t.g},pX(GVt,"HashBiMap/KeySet/1",1006),dIt(1093,619,VVt),pX(GVt,"HashMultimapGwtSerializationDependencies",1093),dIt(265,1093,VVt,gJ),xVt.hc=function(){return new hC(tet(this.a))},xVt.gd=function(){return new hC(tet(this.a))},xVt.a=2,pX(GVt,"HashMultimap",265),dIt(1999,152,vWt),xVt.Hc=function(t){return this.Pd().Hc(t)},xVt.dc=function(){return this.Pd().dc()},xVt.gc=function(){return this.Pd().gc()},pX(GVt,"ImmutableAsList",1999),dIt(1931,715,wWt),xVt.Ld=function(){return sQ(),new bw(this.a)},xVt.Cc=function(){return sQ(),new bw(this.a)},xVt.pd=function(){return sQ(),new bw(this.a)},pX(GVt,"ImmutableBiMap",1931),dIt(1977,1,{}),pX(GVt,"ImmutableCollection/Builder",1977),dIt(1022,703,CWt,sy),pX(GVt,"ImmutableEnumSet",1022),dIt(969,386,XVt,hR),xVt.Xb=function(t){return this.a.Xb(t)},pX(GVt,"ImmutableList/1",969),dIt(968,1977,{},sP),pX(GVt,"ImmutableList/Builder",968),dIt(614,198,zVt,nf),xVt.Ob=function(){return this.a.Ob()},xVt.Pb=function(){return Q$(this.a.Pb(),42).cd()},pX(GVt,"ImmutableMap/1",614),dIt(1041,1,{},c),xVt.Kb=function(t){return Q$(t,42).cd()},pX(GVt,"ImmutableMap/2methodref$getKey$Type",1041),dIt(1040,1,{},cP),pX(GVt,"ImmutableMap/Builder",1040),dIt(2e3,1981,CWt),xVt.Kc=function(){return new nf(uz(this.a).Ed())},xVt.Dd=function(){return new ab(this)},xVt.Jc=function(t){var e,n;for(bX(t),n=this.gc(),e=0;e<n;e++)t.td(Q$(fz(uz(this.a)).Xb(e),42).cd())},xVt.Ed=function(){var t;return(t=this.c,t||(this.c=new ab(this))).Ed()},xVt.Nc=function(){return bj(this.gc(),1296,new af(this))},pX(GVt,"IndexedImmutableSet",2e3),dIt(1180,2e3,CWt,rb),xVt.Kc=function(){return new nf(uz(this.a).Ed())},xVt.Hc=function(t){return this.a._b(t)},xVt.Jc=function(t){bX(t),Zat(this.a,new rf(t))},xVt.Ed=function(){return new nf(uz(this.a).Ed())},xVt.gc=function(){return this.a.gc()},xVt.Nc=function(){return F$(uz(this.a).Nc(),new c)},pX(GVt,"ImmutableMapKeySet",1180),dIt(1181,1,{},rf),xVt.Od=function(t,e){sQ(),this.a.td(t)},pX(GVt,"ImmutableMapKeySet/lambda$0$Type",1181),dIt(1178,1980,bWt,ib),xVt.Kc=function(){return new NH(this)},xVt.Hc=function(t){return null!=t&&Tkt(new NH(this),t)},xVt.Ed=function(){return new NH(this)},xVt.gc=function(){return this.a.gc()},xVt.Nc=function(){return F$(uz(this.a).Nc(),new l)},pX(GVt,"ImmutableMapValues",1178),dIt(1179,1,{},l),xVt.Kb=function(t){return Q$(t,42).dd()},pX(GVt,"ImmutableMapValues/0methodref$getValue$Type",1179),dIt(626,198,zVt,NH),xVt.Ob=function(){return this.a.Ob()},xVt.Pb=function(){return Q$(this.a.Pb(),42).dd()},pX(GVt,"ImmutableMapValues/1",626),dIt(1182,1,{},af),xVt.ld=function(t){return UG(this.a,t)},pX(GVt,"IndexedImmutableSet/0methodref$get$Type",1182),dIt(752,1999,vWt,ab),xVt.Pd=function(){return this.a},xVt.Xb=function(t){return UG(this.a,t)},xVt.gc=function(){return this.a.a.gc()},pX(GVt,"IndexedImmutableSet/1",752),dIt(44,1,{},u),xVt.Kb=function(t){return Q$(t,20).Kc()},xVt.Fb=function(t){return this===t},pX(GVt,"Iterables/10",44),dIt(1042,537,pWt,PH),xVt.Jc=function(t){bX(t),this.b.Jc(new dx(this.a,t))},xVt.Kc=function(){return $I(this)},pX(GVt,"Iterables/4",1042),dIt(1043,1,hWt,dx),xVt.td=function(t){kT(this.b,this.a,t)},pX(GVt,"Iterables/4/lambda$0$Type",1043),dIt(1044,537,pWt,RH),xVt.Jc=function(t){bX(t),t5(this.a,new lx(t,this.b))},xVt.Kc=function(){return YO(new SO(this.a),this.b)},pX(GVt,"Iterables/5",1044),dIt(1045,1,hWt,lx),xVt.td=function(t){this.a.td(bI(t))},pX(GVt,"Iterables/5/lambda$0$Type",1045),dIt(1071,198,zVt,of),xVt.Ob=function(){return this.a.Ob()},xVt.Pb=function(){return this.a.Pb()},pX(GVt,"Iterators/1",1071),dIt(1072,699,zVt,ux),xVt.Yb=function(){for(var t;this.b.Ob();)if(t=this.b.Pb(),this.a.Lb(t))return t;return this.e=2,null},pX(GVt,"Iterators/5",1072),dIt(487,1,WVt),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return this.b.Ob()},xVt.Pb=function(){return this.Qd(this.b.Pb())},xVt.Qb=function(){this.b.Qb()},pX(GVt,"TransformedIterator",487),dIt(1073,487,WVt,JO),xVt.Qd=function(t){return this.a.Kb(t)},pX(GVt,"Iterators/6",1073),dIt(717,198,zVt,sf),xVt.Ob=function(){return!this.a},xVt.Pb=function(){if(this.a)throw Um(new bb);return this.a=!0,this.b},xVt.a=!1,pX(GVt,"Iterators/9",717),dIt(1070,386,XVt,lK),xVt.Xb=function(t){return this.a[this.b+t]},xVt.b=0,pX(GVt,"Iterators/ArrayItr",1070),dIt(39,1,{39:1,47:1},oz),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return AIt(this)},xVt.Pb=function(){return K5(this)},xVt.Qb=function(){lot(!!this.c),this.c.Qb(),this.c=null},pX(GVt,"Iterators/ConcatenatedIterator",39),dIt(22,1,{3:1,35:1,22:1}),xVt.wd=function(t){return Ey(this,Q$(t,22))},xVt.Fb=function(t){return this===t},xVt.Hb=function(){return ED(this)},xVt.Ib=function(){return dF(this)},xVt.g=0;var Kte,zte=pX(NVt,"Enum",22);dIt(538,22,{538:1,3:1,35:1,22:1,47:1},rD),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return!1},xVt.Pb=function(){throw Um(new bb)},xVt.Qb=function(){lot(!1)};var Gte,Xte=Unt(GVt,"Iterators/EmptyModifiableIterator",538,zte,oX,nF);dIt(1834,619,VVt),pX(GVt,"LinkedHashMultimapGwtSerializationDependencies",1834),dIt(1835,1834,VVt,Cut),xVt.hc=function(){return new ID(tet(this.b))},xVt.$b=function(){drt(this),eb(this.a,this.a)},xVt.gd=function(){return new ID(tet(this.b))},xVt.ic=function(t){return new Clt(this,t,this.b)},xVt.kc=function(){return new ZO(this)},xVt.lc=function(){return new f1(Q$(this.g||(this.g=new $v(this)),21),17)},xVt.ec=function(){return this.i||(this.i=new UO(this,this.c))},xVt.nc=function(){return new hy(new ZO(this))},xVt.oc=function(){return F$(new f1(Q$(this.g||(this.g=new $v(this)),21),17),new h)},xVt.b=2,pX(GVt,"LinkedHashMultimap",1835),dIt(1838,1,{},h),xVt.Kb=function(t){return Q$(t,42).dd()},pX(GVt,"LinkedHashMultimap/0methodref$getValue$Type",1838),dIt(824,1,WVt,ZO),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return met(this)},xVt.Ob=function(){return this.a!=this.b.a},xVt.Qb=function(){lot(!!this.c),$0(this.b,this.c.g,this.c.i),this.c=null},pX(GVt,"LinkedHashMultimap/1",824),dIt(330,238,{345:1,238:1,330:1,2020:1,3:1,42:1},UV),xVt.Rd=function(){return this.f},xVt.Sd=function(t){this.c=t},xVt.Td=function(t){this.f=t},xVt.d=0;var Vte,Wte=pX(GVt,"LinkedHashMultimap/ValueEntry",330);dIt(1836,1970,{2020:1,20:1,28:1,14:1,21:1},Clt),xVt.Fc=function(t){var e,n,r,i,a;for(e=(a=dK(idt(EWt,nW(dK(idt(null==t?0:Zct(t),TWt)),15))))&this.b.length-1,n=i=this.b[e];n;n=n.a)if(n.d==a&&fV(n.i,t))return!1;return r=new UV(this.c,t,a,i),vw(this.d,r),r.f=this,this.d=r,eb(this.g.a.b,r),eb(r,this.g.a),this.b[e]=r,++this.f,++this.e,vkt(this),!0},xVt.$b=function(){var t,e;for(bT(this.b,null),this.f=0,t=this.a;t!=this;t=t.Rd())eb((e=Q$(t,330)).b,e.e);this.a=this,this.d=this,++this.e},xVt.Hc=function(t){var e,n;for(n=dK(idt(EWt,nW(dK(idt(null==t?0:Zct(t),TWt)),15))),e=this.b[n&this.b.length-1];e;e=e.a)if(e.d==n&&fV(e.i,t))return!0;return!1},xVt.Jc=function(t){var e;for(bX(t),e=this.a;e!=this;e=e.Rd())t.td(Q$(e,330).i)},xVt.Rd=function(){return this.a},xVt.Kc=function(){return new sV(this)},xVt.Mc=function(t){return yIt(this,t)},xVt.Sd=function(t){this.d=t},xVt.Td=function(t){this.a=t},xVt.gc=function(){return this.f},xVt.e=0,xVt.f=0,pX(GVt,"LinkedHashMultimap/ValueSet",1836),dIt(1837,1,WVt,sV),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return fK(this),this.b!=this.c},xVt.Pb=function(){var t,e;if(fK(this),this.b==this.c)throw Um(new bb);return e=(t=Q$(this.b,330)).i,this.d=t,this.b=t.f,e},xVt.Qb=function(){fK(this),lot(!!this.d),yIt(this.c,this.d.i),this.a=this.c.e,this.d=null},xVt.a=0,pX(GVt,"LinkedHashMultimap/ValueSet/1",1837),dIt(766,1986,VVt,EL),xVt.Zb=function(){return this.f||(this.f=new nT(this))},xVt.Fb=function(t){return wlt(this,t)},xVt.cc=function(t){return new mx(this,t)},xVt.fc=function(t){return q3(this,t)},xVt.$b=function(){rX(this)},xVt._b=function(t){return Ux(this,t)},xVt.ac=function(){return new nT(this)},xVt.bc=function(){return new bf(this)},xVt.qc=function(t){return new mx(this,t)},xVt.dc=function(){return!this.a},xVt.rc=function(t){return q3(this,t)},xVt.gc=function(){return this.d},xVt.c=0,xVt.d=0,pX(GVt,"LinkedListMultimap",766),dIt(52,28,MWt),xVt.ad=function(t){Rit(this,t)},xVt.Nc=function(){return new f1(this,16)},xVt.Vc=function(t,e){throw Um(new Zy("Add not supported on this list"))},xVt.Fc=function(t){return this.Vc(this.gc(),t),!0},xVt.Wc=function(t,e){var n,r,i;for(vV(e),n=!1,i=e.Kc();i.Ob();)r=i.Pb(),this.Vc(t++,r),n=!0;return n},xVt.$b=function(){this.Ud(0,this.gc())},xVt.Fb=function(t){return OIt(this,t)},xVt.Hb=function(){return Qct(this)},xVt.Xc=function(t){return frt(this,t)},xVt.Kc=function(){return new xd(this)},xVt.Yc=function(){return this.Zc(0)},xVt.Zc=function(t){return new C2(this,t)},xVt.$c=function(t){throw Um(new Zy("Remove not supported on this list"))},xVt.Ud=function(t,e){var n,r;for(r=this.Zc(t),n=t;n<e;++n)r.Pb(),r.Qb()},xVt._c=function(t,e){throw Um(new Zy("Set not supported on this list"))},xVt.bd=function(t,e){return new s1(this,t,e)},xVt.j=0,pX(qVt,"AbstractList",52),dIt(1964,52,MWt),xVt.Vc=function(t,e){NF(this,t,e)},xVt.Wc=function(t,e){return Llt(this,t,e)},xVt.Xb=function(t){return Fmt(this,t)},xVt.Kc=function(){return this.Zc(0)},xVt.$c=function(t){return twt(this,t)},xVt._c=function(t,e){var n,r;n=this.Zc(t);try{return r=n.Pb(),n.Wb(e),r}catch(e){throw rO(e=hst(e),109)?Um(new Sy("Can't set element "+t)):Um(e)}},pX(qVt,"AbstractSequentialList",1964),dIt(636,1964,MWt,mx),xVt.Zc=function(t){return pD(this,t)},xVt.gc=function(){var t;return(t=Q$(FX(this.a.b,this.b),283))?t.a:0},pX(GVt,"LinkedListMultimap/1",636),dIt(1297,1970,tWt,bf),xVt.Hc=function(t){return Ux(this.a,t)},xVt.Kc=function(){return new mit(this.a)},xVt.Mc=function(t){return!q3(this.a,t).a.dc()},xVt.gc=function(){return Mx(this.a.b)},pX(GVt,"LinkedListMultimap/1KeySetImpl",1297),dIt(1296,1,WVt,mit),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return hK(this),!!this.c},xVt.Pb=function(){hK(this),oD(this.c),this.a=this.c,kG(this.d,this.a.a);do{this.c=this.c.b}while(this.c&&!kG(this.d,this.c.a));return this.a.a},xVt.Qb=function(){hK(this),lot(!!this.a),Tj(new T9(this.e,this.a.a)),this.a=null,this.b=this.e.c},xVt.b=0,pX(GVt,"LinkedListMultimap/DistinctKeyIterator",1296),dIt(283,1,{283:1},sY),xVt.a=0,pX(GVt,"LinkedListMultimap/KeyList",283),dIt(1295,345,aWt,bx),xVt.cd=function(){return this.a},xVt.dd=function(){return this.f},xVt.ed=function(t){var e;return e=this.f,this.f=t,e},pX(GVt,"LinkedListMultimap/Node",1295),dIt(560,1,iWt,T9,PBt),xVt.Nb=function(t){lG(this,t)},xVt.Rb=function(t){this.e=vRt(this.f,this.b,t,this.c),++this.d,this.a=null},xVt.Ob=function(){return!!this.c},xVt.Sb=function(){return!!this.e},xVt.Pb=function(){return wZ(this)},xVt.Tb=function(){return this.d},xVt.Ub=function(){return kZ(this)},xVt.Vb=function(){return this.d-1},xVt.Qb=function(){lot(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,J_t(this.f,this.a),this.a=null},xVt.Wb=function(t){aD(!!this.a),this.a.f=t},xVt.d=0,pX(GVt,"LinkedListMultimap/ValueForKeyIterator",560),dIt(1018,52,MWt),xVt.Vc=function(t,e){this.a.Vc(t,e)},xVt.Wc=function(t,e){return this.a.Wc(t,e)},xVt.Hc=function(t){return this.a.Hc(t)},xVt.Xb=function(t){return this.a.Xb(t)},xVt.$c=function(t){return this.a.$c(t)},xVt._c=function(t,e){return this.a._c(t,e)},xVt.gc=function(){return this.a.gc()},pX(GVt,"Lists/AbstractListWrapper",1018),dIt(1019,1018,DWt),pX(GVt,"Lists/RandomAccessListWrapper",1019),dIt(1021,1019,DWt,Bx),xVt.Zc=function(t){return this.a.Zc(t)},pX(GVt,"Lists/1",1021),dIt(131,52,{131:1,20:1,28:1,52:1,14:1,15:1},Tx),xVt.Vc=function(t,e){this.a.Vc(gG(this,t),e)},xVt.$b=function(){this.a.$b()},xVt.Xb=function(t){return this.a.Xb(IX(this,t))},xVt.Kc=function(){return G1(this,0)},xVt.Zc=function(t){return G1(this,t)},xVt.$c=function(t){return this.a.$c(IX(this,t))},xVt.Ud=function(t,e){(d2(t,e,this.a.gc()),eot(this.a.bd(gG(this,e),gG(this,t)))).$b()},xVt._c=function(t,e){return this.a._c(IX(this,t),e)},xVt.gc=function(){return this.a.gc()},xVt.bd=function(t,e){return d2(t,e,this.a.gc()),eot(this.a.bd(gG(this,e),gG(this,t)))},pX(GVt,"Lists/ReverseList",131),dIt(280,131,{131:1,20:1,28:1,52:1,14:1,15:1,54:1},ly),pX(GVt,"Lists/RandomAccessReverseList",280),dIt(1020,1,iWt,vx),xVt.Nb=function(t){lG(this,t)},xVt.Rb=function(t){this.c.Rb(t),this.c.Ub(),this.a=!1},xVt.Ob=function(){return this.c.Sb()},xVt.Sb=function(){return this.c.Ob()},xVt.Pb=function(){return f5(this)},xVt.Tb=function(){return gG(this.b,this.c.Tb())},xVt.Ub=function(){if(!this.c.Ob())throw Um(new bb);return this.a=!0,this.c.Pb()},xVt.Vb=function(){return gG(this.b,this.c.Tb())-1},xVt.Qb=function(){lot(this.a),this.c.Qb(),this.a=!1},xVt.Wb=function(t){aD(this.a),this.c.Wb(t)},xVt.a=!1,pX(GVt,"Lists/ReverseList/1",1020),dIt(432,487,WVt,uy),xVt.Qd=function(t){return rT(t)},pX(GVt,"Maps/1",432),dIt(698,487,WVt,hy),xVt.Qd=function(t){return Q$(t,42).dd()},pX(GVt,"Maps/2",698),dIt(962,487,WVt,gD),xVt.Qd=function(t){return new px(t,PL(this.a,t))},pX(GVt,"Maps/3",962),dIt(959,1971,tWt,mf),xVt.Jc=function(t){Ob(this.a,t)},xVt.Kc=function(){return this.a.kc()},xVt.Rc=function(){return this.a},xVt.Nc=function(){return this.a.lc()},pX(GVt,"Maps/IteratorBasedAbstractMap/1",959),dIt(960,1,{},pf),xVt.Od=function(t,e){this.a.td(t)},pX(GVt,"Maps/KeySet/lambda$0$Type",960),dIt(958,28,JVt,Ex),xVt.$b=function(){this.a.$b()},xVt.Hc=function(t){return this.a.uc(t)},xVt.Jc=function(t){bX(t),this.a.wc(new uf(t))},xVt.dc=function(){return this.a.dc()},xVt.Kc=function(){return new hy(this.a.vc().Kc())},xVt.Mc=function(t){var e,n;try{return vAt(this,t,!0)}catch(r){if(rO(r=hst(r),41)){for(n=this.a.vc().Kc();n.Ob();)if(fV(t,(e=Q$(n.Pb(),42)).dd()))return this.a.Bc(e.cd()),!0;return!1}throw Um(r)}},xVt.gc=function(){return this.a.gc()},pX(GVt,"Maps/Values",958),dIt(961,1,{},uf),xVt.Od=function(t,e){this.a.td(e)},pX(GVt,"Maps/Values/lambda$0$Type",961),dIt(736,1987,YVt,nT),xVt.xc=function(t){return this.a._b(t)?this.a.cc(t):null},xVt.Bc=function(t){return this.a._b(t)?this.a.fc(t):null},xVt.$b=function(){this.a.$b()},xVt._b=function(t){return this.a._b(t)},xVt.Ec=function(){return new lf(this)},xVt.Dc=function(){return this.Ec()},xVt.dc=function(){return this.a.dc()},xVt.ec=function(){return this.a.ec()},xVt.gc=function(){return this.a.ec().gc()},pX(GVt,"Multimaps/AsMap",736),dIt(1104,1971,tWt,lf),xVt.Kc=function(){return JM(this.a.a.ec(),new hf(this))},xVt.Rc=function(){return this.a},xVt.Mc=function(t){var e;return!!ngt(this,t)&&(e=Q$(t,42),yw(this.a,e.cd()),!0)},pX(GVt,"Multimaps/AsMap/EntrySet",1104),dIt(1108,1,{},hf),xVt.Kb=function(t){return PL(this,t)},xVt.Fb=function(t){return this===t},pX(GVt,"Multimaps/AsMap/EntrySet/1",1108),dIt(543,1989,{543:1,835:1,20:1,28:1,14:1},ff),xVt.$b=function(){drt(this.a)},xVt.Hc=function(t){return Gk(this.a,t)},xVt.Jc=function(t){bX(t),t5(CX(this.a),new Af(t))},xVt.Kc=function(){return new uy(CX(this.a).a.kc())},xVt.gc=function(){return this.a.d},xVt.Nc=function(){return F$(CX(this.a).Nc(),new f)},pX(GVt,"Multimaps/Keys",543),dIt(1106,1,{},f),xVt.Kb=function(t){return Q$(t,42).cd()},pX(GVt,"Multimaps/Keys/0methodref$getKey$Type",1106),dIt(1105,487,WVt,fy),xVt.Qd=function(t){return new df(Q$(t,42))},pX(GVt,"Multimaps/Keys/1",1105),dIt(1990,1,{416:1}),xVt.Fb=function(t){var e;return!!rO(t,492)&&(e=Q$(t,416),Q$(this.a.dd(),14).gc()==Q$(e.a.dd(),14).gc()&&fV(this.a.cd(),e.a.cd()))},xVt.Hb=function(){var t;return(null==(t=this.a.cd())?0:Zct(t))^Q$(this.a.dd(),14).gc()},xVt.Ib=function(){var t,e;return e=vD(this.a.cd()),1==(t=Q$(this.a.dd(),14).gc())?e:e+" x "+t},pX(GVt,"Multisets/AbstractEntry",1990),dIt(492,1990,{492:1,416:1},df),pX(GVt,"Multimaps/Keys/1/1",492),dIt(1107,1,hWt,Af),xVt.td=function(t){this.a.td(Q$(t,42).cd())},pX(GVt,"Multimaps/Keys/lambda$1$Type",1107),dIt(1110,1,hWt,d),xVt.td=function(t){Bj(Q$(t,416))},pX(GVt,"Multiset/lambda$0$Type",1110),dIt(737,1,hWt,gf),xVt.td=function(t){_et(this.a,Q$(t,416))},pX(GVt,"Multiset/lambda$1$Type",737),dIt(1111,1,{},v),pX(GVt,"Multisets/0methodref$add$Type",1111),dIt(738,1,{},y),xVt.Kb=function(t){return s3(Q$(t,416))},pX(GVt,"Multisets/lambda$3$Type",738),dIt(2008,1,PVt),pX(GVt,"RangeGwtSerializationDependencies",2008),dIt(514,2008,{169:1,514:1,3:1,45:1},cbt),xVt.Lb=function(t){return Cz(this,Q$(t,35))},xVt.Mb=function(t){return Cz(this,Q$(t,35))},xVt.Fb=function(t){var e;return!!rO(t,514)&&(e=Q$(t,514),Dgt(this.a,e.a)&&Dgt(this.b,e.b))},xVt.Hb=function(){return 31*this.a.Hb()+this.b.Hb()},xVt.Ib=function(){return Q3(this.a,this.b)},pX(GVt,"Range",514),dIt(778,1999,vWt,iG),xVt.Zc=function(t){return eF(this.b,t)},xVt.Pd=function(){return this.a},xVt.Xb=function(t){return GS(this.b,t)},xVt.Fd=function(t){return eF(this.b,t)},pX(GVt,"RegularImmutableAsList",778),dIt(646,2006,vWt,xY),xVt.Hd=function(){return this.a},pX(GVt,"RegularImmutableList",646),dIt(616,715,wWt,cy),pX(GVt,"RegularImmutableMap",616),dIt(716,703,CWt,pT),pX(GVt,"RegularImmutableSet",716),dIt(1976,ZVt,tWt),xVt.Kc=function(){return new xW(this.a,this.b)},xVt.Fc=function(t){throw Um(new gb)},xVt.Gc=function(t){throw Um(new gb)},xVt.$b=function(){throw Um(new gb)},xVt.Mc=function(t){throw Um(new gb)},pX(GVt,"Sets/SetView",1976),dIt(963,1976,tWt,wx),xVt.Kc=function(){return new xW(this.a,this.b)},xVt.Hc=function(t){return TK(this.a,t)&&this.b.Hc(t)},xVt.Ic=function(t){return sst(this.a,t)&&this.b.Ic(t)},xVt.dc=function(){return Pmt(this.b,this.a)},xVt.Lc=function(){return SW(new Fj(null,new f1(this.a,1)),new yf(this.b))},xVt.gc=function(){return Bot(this)},xVt.Oc=function(){return SW(new Fj(null,new f1(this.a,1)),new vf(this.b))},pX(GVt,"Sets/2",963),dIt(700,699,zVt,xW),xVt.Yb=function(){for(var t;vM(this.a);)if(t=a4(this.a),this.c.Hc(t))return t;return this.e=2,null},pX(GVt,"Sets/2/1",700),dIt(964,1,FWt,vf),xVt.Mb=function(t){return this.a.Hc(t)},pX(GVt,"Sets/2/4methodref$contains$Type",964),dIt(965,1,FWt,yf),xVt.Mb=function(t){return this.a.Hc(t)},pX(GVt,"Sets/2/5methodref$contains$Type",965),dIt(607,1975,{607:1,3:1,20:1,14:1,271:1,21:1,84:1},hJ),xVt.Bd=function(){return this.b},xVt.Cd=function(){return this.b},xVt.Md=function(){return this.b},xVt.Jc=function(t){this.a.Jc(t)},xVt.Lc=function(){return this.a.Lc()},xVt.Oc=function(){return this.a.Oc()},pX(GVt,"Sets/UnmodifiableNavigableSet",607),dIt(1932,1931,wWt,HV),xVt.Ld=function(){return sQ(),new bw(this.a)},xVt.Cc=function(){return sQ(),new bw(this.a)},xVt.pd=function(){return sQ(),new bw(this.a)},pX(GVt,"SingletonImmutableBiMap",1932),dIt(647,2006,vWt,Ej),xVt.Hd=function(){return this.a},pX(GVt,"SingletonImmutableList",647),dIt(350,1981,CWt,bw),xVt.Kc=function(){return new sf(this.a)},xVt.Hc=function(t){return Oht(this.a,t)},xVt.Ed=function(){return new sf(this.a)},xVt.gc=function(){return 1},pX(GVt,"SingletonImmutableSet",350),dIt(1115,1,{},w),xVt.Kb=function(t){return Q$(t,164)},pX(GVt,"Streams/lambda$0$Type",1115),dIt(1116,1,NWt,wf),xVt.Vd=function(){Q5(this.a)},pX(GVt,"Streams/lambda$1$Type",1116),dIt(1659,1658,VVt,gY),xVt.Zb=function(){return Q$(Q$(this.f||(this.f=rO(this.c,171)?new BN(this,Q$(this.c,171)):rO(this.c,161)?new TN(this,Q$(this.c,161)):new gx(this,this.c)),161),171)},xVt.hc=function(){return new dC(this.b)},xVt.gd=function(){return new dC(this.b)},xVt.ec=function(){return Q$(Q$(this.i||(this.i=rO(this.c,171)?new ZC(this,Q$(this.c,171)):rO(this.c,161)?new JC(this,Q$(this.c,161)):new UO(this,this.c)),84),271)},xVt.ac=function(){return rO(this.c,171)?new BN(this,Q$(this.c,171)):rO(this.c,161)?new TN(this,Q$(this.c,161)):new gx(this,this.c)},xVt.ic=function(t){return null==t&&this.a.ue(t,t),new dC(this.b)},pX(GVt,"TreeMultimap",1659),dIt(78,1,{3:1,78:1}),xVt.Wd=function(t){return new Error(t)},xVt.Xd=function(){return this.e},xVt.Yd=function(){return RAt(LW(IG((null==this.k&&(this.k=O8(Yte,cWt,78,0,0,1)),this.k)),new F))},xVt.Zd=function(){return this.f},xVt.$d=function(){return this.g},xVt._d=function(){by(this,h2(this.Wd(TY(this,this.g)))),ob(this)},xVt.Ib=function(){return TY(this,this.$d())},xVt.e=QWt,xVt.i=!1,xVt.n=!0;var qte,Yte=pX(NVt,"Throwable",78);dIt(102,78,{3:1,102:1,78:1}),pX(NVt,"Exception",102),dIt(60,102,UWt,sb,dy),pX(NVt,"RuntimeException",60),dIt(598,60,UWt),pX(NVt,"JsException",598),dIt(863,598,UWt),pX($Wt,"JavaScriptExceptionBase",863),dIt(477,863,{477:1,3:1,102:1,60:1,78:1},wut),xVt.$d=function(){return pCt(this),this.c},xVt.ae=function(){return HS(this.b)===HS(qte)?null:this.b},pX(jWt,"JavaScriptException",477);var Jte,Zte=pX(jWt,"JavaScriptObject$",0);dIt(1948,1,{}),pX(jWt,"Scheduler",1948);var tee,eee,nee,ree,iee=0,aee=0,oee=-1;dIt(890,1948,{},k),pX($Wt,"SchedulerImpl",890),dIt(1960,1,{}),pX($Wt,"StackTraceCreator/Collector",1960),dIt(864,1960,{},C),xVt.be=function(t){var e={},n=[];t[zWt]=n;for(var r=arguments.callee.caller;r;){var i=(EY(),r.name||(r.name=Vnt(r.toString())));n.push(i);var a,o,s=":"+i,c=e[s];if(c)for(a=0,o=c.length;a<o;a++)if(c[a]===r)return;(c||(e[s]=[])).push(r),r=r.caller}},xVt.ce=function(t){var e,n,r,i;for(EY(),n=(r=t&&t[zWt]?t[zWt]:[]).length,i=O8(Qee,cWt,310,n,0,1),e=0;e<n;e++)i[e]=new EW(r[e],null,-1);return i},pX($Wt,"StackTraceCreator/CollectorLegacy",864),dIt(1961,1960,{}),xVt.be=function(t){},xVt.de=function(t,e,n,r){return new EW(e,t+"@"+r,n<0?-1:n)},xVt.ce=function(t){var e,n,r,i,a,o;if(i=hyt(t),a=O8(Qee,cWt,310,0,0,1),e=0,0==(r=i.length))return a;for(mR((o=Sjt(this,i[0])).d,KWt)||(a[e++]=o),n=1;n<r;n++)a[e++]=Sjt(this,i[n]);return a},pX($Wt,"StackTraceCreator/CollectorModern",1961),dIt(865,1961,{},g),xVt.de=function(t,e,n,r){return new EW(e,t,-1)},pX($Wt,"StackTraceCreator/CollectorModernNoSourceMap",865),dIt(1050,1,{}),pX(vqt,yqt,1050),dIt(615,1050,{615:1},jX),pX(wqt,yqt,615),dIt(2001,1,{}),pX(vqt,kqt,2001),dIt(2002,2001,{}),pX(wqt,kqt,2002),dIt(1090,1,{},p),pX(wqt,"LocaleInfo",1090),dIt(1918,1,{},m),xVt.a=0,pX(wqt,"TimeZone",1918),dIt(1258,2002,{},A),pX("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1258),dIt(434,1,{434:1},X$),xVt.a=!1,xVt.b=0,pX(vqt,"DateTimeFormat/PatternPart",434),dIt(199,1,Cqt,Sx,mct,EN),xVt.wd=function(t){return q0(this,Q$(t,199))},xVt.Fb=function(t){return rO(t,199)&&VS(uot(this.q.getTime()),uot(Q$(t,199).q.getTime()))},xVt.Hb=function(){var t;return dK(n0(t=uot(this.q.getTime()),yz(t,32)))},xVt.Ib=function(){var t,n,r;return t=((r=-this.q.getTimezoneOffset())>=0?"+":"")+(r/60|0),n=KL(e.Math.abs(r)%60),(pEt(),gne)[this.q.getDay()]+" "+pne[this.q.getMonth()]+" "+KL(this.q.getDate())+" "+KL(this.q.getHours())+":"+KL(this.q.getMinutes())+":"+KL(this.q.getSeconds())+" GMT"+t+n+" "+this.q.getFullYear()};var see,cee,lee,uee,hee,fee,dee,Aee,gee,pee,mee,bee=pX(qVt,"Date",199);dIt(1915,199,Cqt,qwt),xVt.a=!1,xVt.b=0,xVt.c=0,xVt.d=0,xVt.e=0,xVt.f=0,xVt.g=!1,xVt.i=0,xVt.j=0,xVt.k=0,xVt.n=0,xVt.o=0,xVt.p=0,pX("com.google.gwt.i18n.shared.impl","DateRecord",1915),dIt(1966,1,{}),xVt.fe=function(){return null},xVt.ge=function(){return null},xVt.he=function(){return null},xVt.ie=function(){return null},xVt.je=function(){return null},pX(xqt,"JSONValue",1966),dIt(216,1966,{216:1},Tf,kf),xVt.Fb=function(t){return!!rO(t,216)&&p0(this.a,Q$(t,216).a)},xVt.ee=function(){return $m},xVt.Hb=function(){return Zq(this.a)},xVt.fe=function(){return this},xVt.Ib=function(){var t,e,n;for(n=new uD("["),e=0,t=this.a.length;e<t;e++)e>0&&(n.a+=","),aL(n,dtt(this,e));return n.a+="]",n.a},pX(xqt,"JSONArray",216),dIt(483,1966,{483:1},Cf),xVt.ee=function(){return Hm},xVt.ge=function(){return this},xVt.Ib=function(){return cD(),""+this.a},xVt.a=!1,pX(xqt,"JSONBoolean",483),dIt(985,60,UWt,Ay),pX(xqt,"JSONException",985),dIt(1023,1966,{},b),xVt.ee=function(){return Xm},xVt.Ib=function(){return KVt},pX(xqt,"JSONNull",1023),dIt(258,1966,{258:1},xf),xVt.Fb=function(t){return!!rO(t,258)&&this.a==Q$(t,258).a},xVt.ee=function(){return jm},xVt.Hb=function(){return XL(this.a)},xVt.he=function(){return this},xVt.Ib=function(){return this.a+""},xVt.a=0,pX(xqt,"JSONNumber",258),dIt(183,1966,{183:1},gy,Ef),xVt.Fb=function(t){return!!rO(t,183)&&p0(this.a,Q$(t,183).a)},xVt.ee=function(){return Km},xVt.Hb=function(){return Zq(this.a)},xVt.ie=function(){return this},xVt.Ib=function(){var t,e,n,r,i,a;for(a=new uD("{"),t=!0,r=0,i=(n=wit(this,O8(Wee,cWt,2,0,6,1))).length;r<i;++r)e=n[r],t?t=!1:a.a+=QVt,oL(a,bLt(e)),a.a+=":",aL(a,jJ(this,e));return a.a+="}",a.a},pX(xqt,"JSONObject",183),dIt(596,ZVt,tWt,kx),xVt.Hc=function(t){return zS(t)&&jw(this.a,xN(t))},xVt.Kc=function(){return new xd(new qy(this.b))},xVt.gc=function(){return this.b.length},pX(xqt,"JSONObject/1",596),dIt(204,1966,{204:1},HX),xVt.Fb=function(t){return!!rO(t,204)&&mR(this.a,Q$(t,204).a)},xVt.ee=function(){return zm},xVt.Hb=function(){return mbt(this.a)},xVt.je=function(){return this},xVt.Ib=function(){return bLt(this.a)},pX(xqt,"JSONString",204),dIt(1962,1,{525:1}),pX(Mqt,"OutputStream",1962),dIt(1963,1962,{525:1}),pX(Mqt,"FilterOutputStream",1963),dIt(866,1963,{525:1},I),pX(Mqt,"PrintStream",866),dIt(418,1,{475:1}),xVt.Ib=function(){return this.a},pX(NVt,"AbstractStringBuilder",418),dIt(529,60,UWt,_y),pX(NVt,"ArithmeticException",529),dIt(73,60,Oqt,lb,Sy),pX(NVt,"IndexOutOfBoundsException",73),dIt(320,73,{3:1,320:1,102:1,73:1,60:1,78:1},xb,kw),pX(NVt,"ArrayIndexOutOfBoundsException",320),dIt(528,60,UWt,ub,Ly),pX(NVt,"ArrayStoreException",528),dIt(289,78,Dqt,Iy),pX(NVt,"Error",289),dIt(194,289,Dqt,cb,A5),pX(NVt,"AssertionError",194),BVt={3:1,476:1,35:1};var vee,yee=pX(NVt,"Boolean",476);dIt(236,1,{3:1,236:1}),pX(NVt,"Number",236),dIt(217,236,{3:1,217:1,35:1,236:1},Ld),xVt.wd=function(t){return Rw(this,Q$(t,217))},xVt.ke=function(){return this.a},xVt.Fb=function(t){return rO(t,217)&&Q$(t,217).a==this.a},xVt.Hb=function(){return this.a},xVt.Ib=function(){return""+this.a},xVt.a=0;var wee,kee,Cee=pX(NVt,"Byte",217);dIt(172,1,{3:1,172:1,35:1},Id),xVt.wd=function(t){return Qw(this,Q$(t,172))},xVt.Fb=function(t){return rO(t,172)&&Q$(t,172).a==this.a},xVt.Hb=function(){return this.a},xVt.Ib=function(){return String.fromCharCode(this.a)},xVt.a=0;var xee,Eee=pX(NVt,"Character",172);dIt(205,60,{3:1,205:1,102:1,60:1,78:1},hb,Ny),pX(NVt,"ClassCastException",205),_Vt={3:1,35:1,333:1,236:1};var Tee=pX(NVt,"Double",333);dIt(155,236,{3:1,35:1,155:1,236:1},Md,Db),xVt.wd=function(t){return QL(this,Q$(t,155))},xVt.ke=function(){return this.a},xVt.Fb=function(t){return rO(t,155)&&pR(this.a,Q$(t,155).a)},xVt.Hb=function(){return TJ(this.a)},xVt.Ib=function(){return""+this.a},xVt.a=0;var Bee=pX(NVt,"Float",155);dIt(32,60,{3:1,102:1,32:1,60:1,78:1},fb,Py,Qlt),pX(NVt,"IllegalArgumentException",32),dIt(71,60,UWt,db,Ry),pX(NVt,"IllegalStateException",71),dIt(19,236,{3:1,35:1,19:1,236:1},Od),xVt.wd=function(t){return UL(this,Q$(t,19))},xVt.ke=function(){return this.a},xVt.Fb=function(t){return rO(t,19)&&Q$(t,19).a==this.a},xVt.Hb=function(){return this.a},xVt.Ib=function(){return""+this.a},xVt.a=0;var _ee,See,Lee=pX(NVt,"Integer",19);dIt(162,236,{3:1,35:1,162:1,236:1},Dd),xVt.wd=function(t){return $L(this,Q$(t,162))},xVt.ke=function(){return y2(this.a)},xVt.Fb=function(t){return rO(t,162)&&VS(Q$(t,162).a,this.a)},xVt.Hb=function(){return dK(this.a)},xVt.Ib=function(){return""+pz(this.a)},xVt.a=0;var Iee,Mee,Oee,Dee,Fee,Nee=pX(NVt,"Long",162);dIt(2039,1,{}),dIt(1831,60,UWt,Qy),pX(NVt,"NegativeArraySizeException",1831),dIt(173,598,{3:1,102:1,173:1,60:1,78:1},Ab,Uy),xVt.Wd=function(t){return new TypeError(t)},pX(NVt,"NullPointerException",173),dIt(127,32,{3:1,102:1,32:1,127:1,60:1,78:1},Cw),pX(NVt,"NumberFormatException",127),dIt(184,236,{3:1,35:1,236:1,184:1},Fd),xVt.wd=function(t){return Uw(this,Q$(t,184))},xVt.ke=function(){return this.a},xVt.Fb=function(t){return rO(t,184)&&Q$(t,184).a==this.a},xVt.Hb=function(){return this.a},xVt.Ib=function(){return""+this.a},xVt.a=0;var Pee,Ree=pX(NVt,"Short",184);dIt(310,1,{3:1,310:1},EW),xVt.Fb=function(t){var e;return!!rO(t,310)&&(e=Q$(t,310),this.c==e.c&&this.d==e.d&&this.a==e.a&&this.b==e.b)},xVt.Hb=function(){return uut(Tst(Hw(Lte,1),$Vt,1,5,[nft(this.c),this.a,this.d,this.b]))},xVt.Ib=function(){return this.a+"."+this.d+"("+(null!=this.b?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},xVt.c=0;var Qee=pX(NVt,"StackTraceElement",310);SVt={3:1,475:1,35:1,2:1};var Uee,$ee,Hee,jee,Kee,zee,Gee,Xee,Vee,Wee=pX(NVt,HWt,2);dIt(107,418,{475:1},xw,Ew,lD),pX(NVt,"StringBuffer",107),dIt(100,418,{475:1},Tw,Bw,uD),pX(NVt,"StringBuilder",100),dIt(687,73,Oqt,_w),pX(NVt,"StringIndexOutOfBoundsException",687),dIt(2043,1,{}),dIt(844,1,{},F),xVt.Kb=function(t){return Q$(t,78).e},pX(NVt,"Throwable/lambda$0$Type",844),dIt(41,60,{3:1,102:1,60:1,78:1,41:1},gb,Zy),pX(NVt,"UnsupportedOperationException",41),dIt(240,236,{3:1,35:1,236:1,240:1},vtt,fC),xVt.wd=function(t){return YQt(this,Q$(t,240))},xVt.ke=function(){return fTt(ejt(this))},xVt.Fb=function(t){var e;return this===t||!!rO(t,240)&&(e=Q$(t,240),this.e==e.e&&0==YQt(this,e))},xVt.Hb=function(){var t;return 0!=this.b?this.b:this.a<54?(t=uot(this.f),this.b=dK(t0(t,-1)),this.b=33*this.b+dK(t0(vz(t,32),-1)),this.b=17*this.b+TJ(this.e),this.b):(this.b=17*Put(this.c)+TJ(this.e),this.b)},xVt.Ib=function(){return ejt(this)},xVt.a=0,xVt.b=0,xVt.d=0,xVt.e=0,xVt.f=0;var qee,Yee,Jee,Zee,tne,ene,nne=pX("java.math","BigDecimal",240);dIt(91,236,{3:1,35:1,236:1,91:1},Nmt,z6,uG,mCt,Bpt,LI),xVt.wd=function(t){return tpt(this,Q$(t,91))},xVt.ke=function(){return fTt(HXt(this,0))},xVt.Fb=function(t){return cAt(this,t)},xVt.Hb=function(){return Put(this)},xVt.Ib=function(){return HXt(this,0)},xVt.b=-2,xVt.c=0,xVt.d=0,xVt.e=0;var rne,ine,ane,one,sne=pX("java.math","BigInteger",91);dIt(488,1967,YVt),xVt.$b=function(){LG(this)},xVt._b=function(t){return cG(this,t)},xVt.uc=function(t){return Mlt(this,t,this.g)||Mlt(this,t,this.f)},xVt.vc=function(){return new Ed(this)},xVt.xc=function(t){return FX(this,t)},xVt.zc=function(t,e){return XV(this,t,e)},xVt.Bc=function(t){return p6(this,t)},xVt.gc=function(){return Mx(this)},pX(qVt,"AbstractHashMap",488),dIt(261,ZVt,tWt,Ed),xVt.$b=function(){this.a.$b()},xVt.Hc=function(t){return m2(this,t)},xVt.Kc=function(){return new olt(this.a)},xVt.Mc=function(t){var e;return!!m2(this,t)&&(e=Q$(t,42).cd(),this.a.Bc(e),!0)},xVt.gc=function(){return this.a.gc()},pX(qVt,"AbstractHashMap/EntrySet",261),dIt(262,1,WVt,olt),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return tnt(this)},xVt.Ob=function(){return this.b},xVt.Qb=function(){o7(this)},xVt.b=!1,pX(qVt,"AbstractHashMap/EntrySetIterator",262),dIt(417,1,WVt,xd),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return iT(this)},xVt.Pb=function(){return mq(this)},xVt.Qb=function(){lV(this)},xVt.b=0,xVt.c=-1,pX(qVt,"AbstractList/IteratorImpl",417),dIt(96,417,iWt,C2),xVt.Qb=function(){lV(this)},xVt.Rb=function(t){bP(this,t)},xVt.Sb=function(){return this.b>0},xVt.Tb=function(){return this.b},xVt.Ub=function(){return EF(this.b>0),this.a.Xb(this.c=--this.b)},xVt.Vb=function(){return this.b-1},xVt.Wb=function(t){CF(-1!=this.c),this.a._c(this.c,t)},pX(qVt,"AbstractList/ListIteratorImpl",96),dIt(219,52,MWt,s1),xVt.Vc=function(t,e){IZ(t,this.b),this.c.Vc(this.a+t,e),++this.b},xVt.Xb=function(t){return u1(t,this.b),this.c.Xb(this.a+t)},xVt.$c=function(t){var e;return u1(t,this.b),e=this.c.$c(this.a+t),--this.b,e},xVt._c=function(t,e){return u1(t,this.b),this.c._c(this.a+t,e)},xVt.gc=function(){return this.b},xVt.a=0,xVt.b=0,pX(qVt,"AbstractList/SubList",219),dIt(384,ZVt,tWt,Td),xVt.$b=function(){this.a.$b()},xVt.Hc=function(t){return this.a._b(t)},xVt.Kc=function(){return new Bd(this.a.vc().Kc())},xVt.Mc=function(t){return!!this.a._b(t)&&(this.a.Bc(t),!0)},xVt.gc=function(){return this.a.gc()},pX(qVt,"AbstractMap/1",384),dIt(691,1,WVt,Bd),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return this.a.Ob()},xVt.Pb=function(){return Q$(this.a.Pb(),42).cd()},xVt.Qb=function(){this.a.Qb()},pX(qVt,"AbstractMap/1/1",691),dIt(226,28,JVt,_d),xVt.$b=function(){this.a.$b()},xVt.Hc=function(t){return this.a.uc(t)},xVt.Kc=function(){return new Nd(this.a.vc().Kc())},xVt.gc=function(){return this.a.gc()},pX(qVt,"AbstractMap/2",226),dIt(294,1,WVt,Nd),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return this.a.Ob()},xVt.Pb=function(){return Q$(this.a.Pb(),42).dd()},xVt.Qb=function(){this.a.Qb()},pX(qVt,"AbstractMap/2/1",294),dIt(484,1,{484:1,42:1}),xVt.Fb=function(t){var e;return!!rO(t,42)&&(e=Q$(t,42),rW(this.d,e.cd())&&rW(this.e,e.dd()))},xVt.cd=function(){return this.d},xVt.dd=function(){return this.e},xVt.Hb=function(){return NI(this.d)^NI(this.e)},xVt.ed=function(t){return gP(this,t)},xVt.Ib=function(){return this.d+"="+this.e},pX(qVt,"AbstractMap/AbstractEntry",484),dIt(383,484,{484:1,383:1,42:1},ET),pX(qVt,"AbstractMap/SimpleEntry",383),dIt(1984,1,Vqt),xVt.Fb=function(t){var e;return!!rO(t,42)&&(e=Q$(t,42),rW(this.cd(),e.cd())&&rW(this.dd(),e.dd()))},xVt.Hb=function(){return NI(this.cd())^NI(this.dd())},xVt.Ib=function(){return this.cd()+"="+this.dd()},pX(qVt,oWt,1984),dIt(1992,1967,eWt),xVt.tc=function(t){return $5(this,t)},xVt._b=function(t){return DR(this,t)},xVt.vc=function(){return new Qd(this)},xVt.xc=function(t){return $S(hlt(this,t))},xVt.ec=function(){return new Pd(this)},pX(qVt,"AbstractNavigableMap",1992),dIt(739,ZVt,tWt,Qd),xVt.Hc=function(t){return rO(t,42)&&$5(this.b,Q$(t,42))},xVt.Kc=function(){return new QP(this.b)},xVt.Mc=function(t){var e;return!!rO(t,42)&&(e=Q$(t,42),j8(this.b,e))},xVt.gc=function(){return this.b.c},pX(qVt,"AbstractNavigableMap/EntrySet",739),dIt(493,ZVt,rWt,Pd),xVt.Nc=function(){return new fT(this)},xVt.$b=function(){my(this.a)},xVt.Hc=function(t){return DR(this.a,t)},xVt.Kc=function(){return new Rd(new QP(new OD(this.a).b))},xVt.Mc=function(t){return!!DR(this.a,t)&&(LJ(this.a,t),!0)},xVt.gc=function(){return this.a.c},pX(qVt,"AbstractNavigableMap/NavigableKeySet",493),dIt(494,1,WVt,Rd),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return iT(this.a.a)},xVt.Pb=function(){return mF(this.a).cd()},xVt.Qb=function(){tQ(this.a)},pX(qVt,"AbstractNavigableMap/NavigableKeySet/1",494),dIt(2004,28,JVt),xVt.Fc=function(t){return R8(eEt(this,t)),!0},xVt.Gc=function(t){return vV(t),pH(t!=this,"Can't add a queue to itself"),Qit(this,t)},xVt.$b=function(){for(;null!=mtt(this););},pX(qVt,"AbstractQueue",2004),dIt(302,28,{4:1,20:1,28:1,14:1},Im,d1),xVt.Fc=function(t){return f3(this,t),!0},xVt.$b=function(){o4(this)},xVt.Hc=function(t){return dst(new hW(this),t)},xVt.dc=function(){return Gy(this)},xVt.Kc=function(){return new hW(this)},xVt.Mc=function(t){return HJ(new hW(this),t)},xVt.gc=function(){return this.c-this.b&this.a.length-1},xVt.Nc=function(){return new f1(this,272)},xVt.Qc=function(t){var e;return e=this.c-this.b&this.a.length-1,t.length<e&&(t=$w(new Array(e),t)),oit(this,t,e),t.length>e&&LX(t,e,null),t},xVt.b=0,xVt.c=0,pX(qVt,"ArrayDeque",302),dIt(446,1,WVt,hW),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return this.a!=this.b},xVt.Pb=function(){return Rut(this)},xVt.Qb=function(){ert(this)},xVt.a=0,xVt.b=0,xVt.c=-1,pX(qVt,"ArrayDeque/IteratorImpl",446),dIt(12,52,Wqt,Mm,q6,ZR),xVt.Vc=function(t,e){vK(this,t,e)},xVt.Fc=function(t){return G$(this,t)},xVt.Wc=function(t,e){return sut(this,t,e)},xVt.Gc=function(t){return gst(this,t)},xVt.$b=function(){this.c=O8(Lte,$Vt,1,0,5,1)},xVt.Hc=function(t){return-1!=w9(this,t,0)},xVt.Jc=function(t){Set(this,t)},xVt.Xb=function(t){return Oj(this,t)},xVt.Xc=function(t){return w9(this,t,0)},xVt.dc=function(){return 0==this.c.length},xVt.Kc=function(){return new Gd(this)},xVt.$c=function(t){return s6(this,t)},xVt.Mc=function(t){return b9(this,t)},xVt.Ud=function(t,e){c1(this,t,e)},xVt._c=function(t,e){return r5(this,t,e)},xVt.gc=function(){return this.c.length},xVt.ad=function(t){mM(this,t)},xVt.Pc=function(){return hF(this)},xVt.Qc=function(t){return Wpt(this,t)};var cne,lne,une,hne,fne,dne,Ane,gne,pne,mne=pX(qVt,"ArrayList",12);dIt(7,1,WVt,Gd),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return bM(this)},xVt.Pb=function(){return J1(this)},xVt.Qb=function(){SG(this)},xVt.a=0,xVt.b=-1,pX(qVt,"ArrayList/1",7),dIt(2013,e.Function,{},x),xVt.te=function(t,e){return Tft(t,e)},dIt(154,52,qqt,qy),xVt.Hc=function(t){return-1!=frt(this,t)},xVt.Jc=function(t){var e,n,r,i;for(vV(t),r=0,i=(n=this.a).length;r<i;++r)e=n[r],t.td(e)},xVt.Xb=function(t){return Dj(this,t)},xVt._c=function(t,e){var n;return u1(t,this.a.length),n=this.a[t],LX(this.a,t,e),n},xVt.gc=function(){return this.a.length},xVt.ad=function(t){bK(this.a,this.a.length,t)},xVt.Pc=function(){return qpt(this,O8(Lte,$Vt,1,this.a.length,5,1))},xVt.Qc=function(t){return qpt(this,t)},pX(qVt,"Arrays/ArrayList",154),dIt(940,52,qqt,T),xVt.Hc=function(t){return!1},xVt.Xb=function(t){return bL(t)},xVt.Kc=function(){return xq(),Ix(),hne},xVt.Yc=function(){return xq(),Ix(),hne},xVt.gc=function(){return 0},pX(qVt,"Collections/EmptyList",940),dIt(941,1,iWt,B),xVt.Nb=function(t){lG(this,t)},xVt.Rb=function(t){throw Um(new gb)},xVt.Ob=function(){return!1},xVt.Sb=function(){return!1},xVt.Pb=function(){throw Um(new bb)},xVt.Tb=function(){return 0},xVt.Ub=function(){throw Um(new bb)},xVt.Vb=function(){return-1},xVt.Qb=function(){throw Um(new db)},xVt.Wb=function(t){throw Um(new db)},pX(qVt,"Collections/EmptyListIterator",941),dIt(943,1967,wWt,_),xVt._b=function(t){return!1},xVt.uc=function(t){return!1},xVt.vc=function(){return xq(),une},xVt.xc=function(t){return null},xVt.ec=function(){return xq(),une},xVt.gc=function(){return 0},xVt.Cc=function(){return xq(),cne},pX(qVt,"Collections/EmptyMap",943),dIt(942,ZVt,CWt,E),xVt.Hc=function(t){return!1},xVt.Kc=function(){return xq(),Ix(),hne},xVt.gc=function(){return 0},pX(qVt,"Collections/EmptySet",942),dIt(599,52,{3:1,20:1,28:1,52:1,14:1,15:1},Hd),xVt.Hc=function(t){return rW(this.a,t)},xVt.Xb=function(t){return u1(t,1),this.a},xVt.gc=function(){return 1},pX(qVt,"Collections/SingletonList",599),dIt(372,1,mWt,Ud),xVt.Jc=function(t){t5(this,t)},xVt.Lc=function(){return new Fj(null,this.Nc())},xVt.Nc=function(){return new f1(this,0)},xVt.Oc=function(){return new Fj(null,this.Nc())},xVt.Fc=function(t){return oC()},xVt.Gc=function(t){return sC()},xVt.$b=function(){cC()},xVt.Hc=function(t){return Ox(this,t)},xVt.Ic=function(t){return Dx(this,t)},xVt.dc=function(){return this.b.dc()},xVt.Kc=function(){return new $d(this.b.Kc())},xVt.Mc=function(t){return lC()},xVt.gc=function(){return this.b.gc()},xVt.Pc=function(){return this.b.Pc()},xVt.Qc=function(t){return Fx(this,t)},xVt.Ib=function(){return Udt(this.b)},pX(qVt,"Collections/UnmodifiableCollection",372),dIt(371,1,WVt,$d),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return this.b.Ob()},xVt.Pb=function(){return this.b.Pb()},xVt.Qb=function(){uC()},pX(qVt,"Collections/UnmodifiableCollectionIterator",371),dIt(531,372,Yqt,hD),xVt.Nc=function(){return new f1(this,16)},xVt.Vc=function(t,e){throw Um(new gb)},xVt.Wc=function(t,e){throw Um(new gb)},xVt.Fb=function(t){return Oht(this.a,t)},xVt.Xb=function(t){return this.a.Xb(t)},xVt.Hb=function(){return Zct(this.a)},xVt.Xc=function(t){return this.a.Xc(t)},xVt.dc=function(){return this.a.dc()},xVt.Yc=function(){return new fD(this.a.Zc(0))},xVt.Zc=function(t){return new fD(this.a.Zc(t))},xVt.$c=function(t){throw Um(new gb)},xVt._c=function(t,e){throw Um(new gb)},xVt.ad=function(t){throw Um(new gb)},xVt.bd=function(t,e){return new hD(this.a.bd(t,e))},pX(qVt,"Collections/UnmodifiableList",531),dIt(690,371,iWt,fD),xVt.Qb=function(){uC()},xVt.Rb=function(t){throw Um(new gb)},xVt.Sb=function(){return this.a.Sb()},xVt.Tb=function(){return this.a.Tb()},xVt.Ub=function(){return this.a.Ub()},xVt.Vb=function(){return this.a.Vb()},xVt.Wb=function(t){throw Um(new gb)},pX(qVt,"Collections/UnmodifiableListIterator",690),dIt(600,1,YVt,zd),xVt.wc=function(t){Zat(this,t)},xVt.yc=function(t,e,n){return Jft(this,t,e,n)},xVt.$b=function(){throw Um(new gb)},xVt._b=function(t){return this.c._b(t)},xVt.uc=function(t){return Px(this,t)},xVt.vc=function(){return tW(this)},xVt.Fb=function(t){return Qx(this,t)},xVt.xc=function(t){return this.c.xc(t)},xVt.Hb=function(){return Zct(this.c)},xVt.dc=function(){return this.c.dc()},xVt.ec=function(){return eW(this)},xVt.zc=function(t,e){throw Um(new gb)},xVt.Bc=function(t){throw Um(new gb)},xVt.gc=function(){return this.c.gc()},xVt.Ib=function(){return Udt(this.c)},xVt.Cc=function(){return ZV(this)},pX(qVt,"Collections/UnmodifiableMap",600),dIt(382,372,kWt,Sw),xVt.Nc=function(){return new f1(this,1)},xVt.Fb=function(t){return Oht(this.b,t)},xVt.Hb=function(){return Zct(this.b)},pX(qVt,"Collections/UnmodifiableSet",382),dIt(944,382,kWt,Iw),xVt.Hc=function(t){return Nx(this,t)},xVt.Ic=function(t){return this.b.Ic(t)},xVt.Kc=function(){return new jd(this.b.Kc())},xVt.Pc=function(){var t;return y4(t=this.b.Pc(),t.length),t},xVt.Qc=function(t){return BY(this,t)},pX(qVt,"Collections/UnmodifiableMap/UnmodifiableEntrySet",944),dIt(945,1,WVt,jd),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return new Kd(Q$(this.a.Pb(),42))},xVt.Ob=function(){return this.a.Ob()},xVt.Qb=function(){throw Um(new gb)},pX(qVt,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",945),dIt(688,1,Vqt,Kd),xVt.Fb=function(t){return this.a.Fb(t)},xVt.cd=function(){return this.a.cd()},xVt.dd=function(){return this.a.dd()},xVt.Hb=function(){return this.a.Hb()},xVt.ed=function(t){throw Um(new gb)},xVt.Ib=function(){return Udt(this.a)},pX(qVt,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",688),dIt(601,531,{20:1,14:1,15:1,54:1},Lw),pX(qVt,"Collections/UnmodifiableRandomAccessList",601),dIt(689,382,xWt,dD),xVt.Nc=function(){return new fT(this)},xVt.Fb=function(t){return Oht(this.a,t)},xVt.Hb=function(){return Zct(this.a)},pX(qVt,"Collections/UnmodifiableSortedSet",689),dIt(847,1,Jqt,N),xVt.ue=function(t,e){var n;return 0!=(n=k4(Q$(t,11),Q$(e,11)))?n:ZQt(Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(qVt,"Comparator/lambda$0$Type",847),dIt(751,1,Jqt,P),xVt.ue=function(t,e){return Pj(Q$(t,35),Q$(e,35))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return Eq(),Ane},pX(qVt,"Comparators/NaturalOrderComparator",751),dIt(1177,1,Jqt,R),xVt.ue=function(t,e){return Rj(Q$(t,35),Q$(e,35))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return Eq(),dne},pX(qVt,"Comparators/ReverseNaturalOrderComparator",1177),dIt(64,1,Jqt,Jd),xVt.Fb=function(t){return this===t},xVt.ue=function(t,e){return this.a.ue(e,t)},xVt.ve=function(){return this.a},pX(qVt,"Comparators/ReversedComparator",64),dIt(166,60,UWt,pb),pX(qVt,"ConcurrentModificationException",166),dIt(1904,1,Zqt,Q),xVt.we=function(t){lgt(this,t)},xVt.Ib=function(){return"DoubleSummaryStatistics[count = "+pz(this.a)+", avg = "+(oT(this.a,0)?u6(this)/y2(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+u6(this)+"]"},xVt.a=0,xVt.b=Pqt,xVt.c=Nqt,xVt.d=0,xVt.e=0,xVt.f=0,pX(qVt,"DoubleSummaryStatistics",1904),dIt(1805,60,UWt,mb),pX(qVt,"EmptyStackException",1805),dIt(451,1967,YVt,$dt),xVt.zc=function(t,e){return fP(this,t,e)},xVt.$b=function(){kV(this)},xVt._b=function(t){return aT(this,t)},xVt.uc=function(t){var e,n;for(n=new Vx(this.a);n.a<n.c.a.length;)if(e=a4(n),rW(t,this.b[e.g]))return!0;return!1},xVt.vc=function(){return new Zd(this)},xVt.xc=function(t){return oW(this,t)},xVt.Bc=function(t){return MZ(this,t)},xVt.gc=function(){return this.a.c},pX(qVt,"EnumMap",451),dIt(1352,ZVt,tWt,Zd),xVt.$b=function(){kV(this.a)},xVt.Hc=function(t){return p2(this,t)},xVt.Kc=function(){return new Sj(this.a)},xVt.Mc=function(t){var e;return!!p2(this,t)&&(e=Q$(t,42).cd(),MZ(this.a,e),!0)},xVt.gc=function(){return this.a.a.c},pX(qVt,"EnumMap/EntrySet",1352),dIt(1353,1,WVt,Sj),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return this.b=a4(this.a),new TT(this.c,this.b)},xVt.Ob=function(){return vM(this.a)},xVt.Qb=function(){CF(!!this.b),MZ(this.c,this.b),this.b=null},pX(qVt,"EnumMap/EntrySetIterator",1353),dIt(1354,1984,Vqt,TT),xVt.cd=function(){return this.a},xVt.dd=function(){return this.b.b[this.a.g]},xVt.ed=function(t){return wG(this.b,this.a.g,t)},pX(qVt,"EnumMap/MapEntry",1354),dIt(174,ZVt,{20:1,28:1,14:1,174:1,21:1});var bne=pX(qVt,"EnumSet",174);dIt(156,174,{20:1,28:1,14:1,174:1,156:1,21:1},WR),xVt.Fc=function(t){return sit(this,Q$(t,22))},xVt.Hc=function(t){return TK(this,t)},xVt.Kc=function(){return new Vx(this)},xVt.Mc=function(t){return BK(this,t)},xVt.gc=function(){return this.c},xVt.c=0,pX(qVt,"EnumSet/EnumSetImpl",156),dIt(343,1,WVt,Vx),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return a4(this)},xVt.Ob=function(){return vM(this)},xVt.Qb=function(){CF(-1!=this.b),LX(this.c.b,this.b,null),--this.c.c,this.b=-1},xVt.a=-1,xVt.b=-1,pX(qVt,"EnumSet/EnumSetImpl/IteratorImpl",343),dIt(43,488,tYt,Om,zx,mL),xVt.re=function(t,e){return HS(t)===HS(e)||null!=t&&Oht(t,e)},xVt.se=function(t){return 0|Zct(t)},pX(qVt,"HashMap",43),dIt(53,ZVt,eYt,Fb,hC,Lj),xVt.Fc=function(t){return kG(this,t)},xVt.$b=function(){this.a.$b()},xVt.Hc=function(t){return Rx(this,t)},xVt.dc=function(){return 0==this.a.gc()},xVt.Kc=function(){return this.a.ec().Kc()},xVt.Mc=function(t){return tO(this,t)},xVt.gc=function(){return this.a.gc()};var vne,yne=pX(qVt,"HashSet",53);dIt(1781,1,dWt,U),xVt.ud=function(t){rot(this,t)},xVt.Ib=function(){return"IntSummaryStatistics[count = "+pz(this.a)+", avg = "+(oT(this.a,0)?y2(this.d)/y2(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+pz(this.d)+"]"},xVt.a=0,xVt.b=RWt,xVt.c=FVt,xVt.d=0,pX(qVt,"IntSummaryStatistics",1781),dIt(1049,1,pWt,tI),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return new x2(this)},xVt.c=0,pX(qVt,"InternalHashCodeMap",1049),dIt(711,1,WVt,x2),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return this.d=this.a[this.c++],this.d},xVt.Ob=function(){var t;return this.c<this.a.length||!(t=this.b.next()).done&&(this.a=t.value[1],this.c=0,!0)},xVt.Qb=function(){gIt(this.e,this.d.cd()),0!=this.c&&--this.c},xVt.c=0,xVt.d=null,pX(qVt,"InternalHashCodeMap/1",711),dIt(1047,1,pWt,eI),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return new g4(this)},xVt.c=0,xVt.d=0,pX(qVt,"InternalStringMap",1047),dIt(710,1,WVt,g4),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return this.c=this.a,this.a=this.b.next(),new qR(this.d,this.c,this.d.d)},xVt.Ob=function(){return!this.a.done},xVt.Qb=function(){jot(this.d,this.c.value[0])},pX(qVt,"InternalStringMap/1",710),dIt(1048,1984,Vqt,qR),xVt.cd=function(){return this.b.value[0]},xVt.dd=function(){return this.a.d!=this.c?cT(this.a,this.b.value[0]):this.b.value[1]},xVt.ed=function(t){return odt(this.a,this.b.value[0],t)},xVt.c=0,pX(qVt,"InternalStringMap/2",1048),dIt(228,43,tYt,p4,$8),xVt.$b=function(){vP(this)},xVt._b=function(t){return uT(this,t)},xVt.uc=function(t){var e;for(e=this.d.a;e!=this.d;){if(rW(e.e,t))return!0;e=e.a}return!1},xVt.vc=function(){return new eA(this)},xVt.xc=function(t){return utt(this,t)},xVt.zc=function(t,e){return Ypt(this,t,e)},xVt.Bc=function(t){return v9(this,t)},xVt.gc=function(){return Mx(this.e)},xVt.c=!1,pX(qVt,"LinkedHashMap",228),dIt(387,383,{484:1,383:1,387:1,42:1},TF,J$),pX(qVt,"LinkedHashMap/ChainEntry",387),dIt(701,ZVt,tWt,eA),xVt.$b=function(){vP(this.a)},xVt.Hc=function(t){return b2(this,t)},xVt.Kc=function(){return new cV(this)},xVt.Mc=function(t){var e;return!!b2(this,t)&&(e=Q$(t,42).cd(),v9(this.a,e),!0)},xVt.gc=function(){return Mx(this.a.e)},pX(qVt,"LinkedHashMap/EntrySet",701),dIt(702,1,WVt,cV),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return s7(this)},xVt.Ob=function(){return this.b!=this.c.a.d},xVt.Qb=function(){CF(!!this.a),g2(this.c.a.e,this),FH(this.a),p6(this.c.a.e,this.a.d),hN(this.c.a.e,this),this.a=null},pX(qVt,"LinkedHashMap/EntrySet/EntryIterator",702),dIt(178,53,eYt,lI,ID,Ij);var wne=pX(qVt,"LinkedHashSet",178);dIt(68,1964,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1},Wx,JR),xVt.Fc=function(t){return DH(this,t)},xVt.$b=function(){bq(this)},xVt.Zc=function(t){return cmt(this,t)},xVt.gc=function(){return this.b},xVt.b=0;var kne,Cne,xne,Ene,Tne,Bne=pX(qVt,"LinkedList",68);dIt(970,1,iWt,YR),xVt.Nb=function(t){lG(this,t)},xVt.Rb=function(t){JG(this,t)},xVt.Ob=function(){return wC(this)},xVt.Sb=function(){return this.b.b!=this.d.a},xVt.Pb=function(){return h3(this)},xVt.Tb=function(){return this.a},xVt.Ub=function(){return K0(this)},xVt.Vb=function(){return this.a-1},xVt.Qb=function(){bet(this)},xVt.Wb=function(t){CF(!!this.c),this.c.c=t},xVt.a=0,xVt.c=null,pX(qVt,"LinkedList/ListIteratorImpl",970),dIt(608,1,{},M),pX(qVt,"LinkedList/Node",608),dIt(1959,1,{}),pX(qVt,"Locale",1959),dIt(861,1959,{},O),xVt.Ib=function(){return""},pX(qVt,"Locale/1",861),dIt(862,1959,{},D),xVt.Ib=function(){return"unknown"},pX(qVt,"Locale/4",862),dIt(109,60,{3:1,102:1,60:1,78:1,109:1},bb,uW),pX(qVt,"NoSuchElementException",109),dIt(404,1,{404:1},py),xVt.Fb=function(t){var e;return t===this||!!rO(t,404)&&(e=Q$(t,404),rW(this.a,e.a))},xVt.Hb=function(){return NI(this.a)},xVt.Ib=function(){return null!=this.a?jVt+vD(this.a)+")":"Optional.empty()"},pX(qVt,"Optional",404),dIt(463,1,{463:1},TL,bF),xVt.Fb=function(t){var e;return t===this||!!rO(t,463)&&(e=Q$(t,463),this.a==e.a&&0==Tft(this.b,e.b))},xVt.Hb=function(){return this.a?TJ(this.b):0},xVt.Ib=function(){return this.a?"OptionalDouble.of("+this.b+")":"OptionalDouble.empty()"},xVt.a=!1,xVt.b=0,pX(qVt,"OptionalDouble",463),dIt(517,1,{517:1},BL,vF),xVt.Fb=function(t){var e;return t===this||!!rO(t,517)&&(e=Q$(t,517),this.a==e.a&&0==wM(this.b,e.b))},xVt.Hb=function(){return this.a?this.b:0},xVt.Ib=function(){return this.a?"OptionalInt.of("+this.b+")":"OptionalInt.empty()"},xVt.a=!1,xVt.b=0,pX(qVt,"OptionalInt",517),dIt(503,2004,JVt,zz),xVt.Gc=function(t){return nwt(this,t)},xVt.$b=function(){this.b.c=O8(Lte,$Vt,1,0,5,1)},xVt.Hc=function(t){return-1!=(null==t?-1:w9(this.b,t,0))},xVt.Kc=function(){return new Xd(this)},xVt.Mc=function(t){return cit(this,t)},xVt.gc=function(){return this.b.c.length},xVt.Nc=function(){return new f1(this,256)},xVt.Pc=function(){return hF(this.b)},xVt.Qc=function(t){return Wpt(this.b,t)},pX(qVt,"PriorityQueue",503),dIt(1277,1,WVt,Xd),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return this.a<this.c.b.c.length},xVt.Pb=function(){return EF(this.a<this.c.b.c.length),this.b=this.a++,Oj(this.c.b,this.b)},xVt.Qb=function(){CF(-1!=this.b),lit(this.c,this.a=this.b),this.b=-1},xVt.a=0,xVt.b=-1,pX(qVt,"PriorityQueue/1",1277),dIt(230,1,{230:1},cdt,T4),xVt.a=0,xVt.b=0;var _ne,Sne,Lne,Ine=0;pX(qVt,"Random",230),dIt(27,1,uWt,f1,jG,TW),xVt.qd=function(){return this.a},xVt.rd=function(){return Dz(this),this.c},xVt.Nb=function(t){Dz(this),this.d.Nb(t)},xVt.sd=function(t){return Jtt(this,t)},xVt.a=0,xVt.c=0,pX(qVt,"Spliterators/IteratorSpliterator",27),dIt(485,27,uWt,fT),pX(qVt,"SortedSet/1",485),dIt(602,1,Zqt,Vd),xVt.we=function(t){this.a.td(t)},pX(qVt,"Spliterator/OfDouble/0methodref$accept$Type",602),dIt(603,1,Zqt,Wd),xVt.we=function(t){this.a.td(t)},pX(qVt,"Spliterator/OfDouble/1methodref$accept$Type",603),dIt(604,1,dWt,qd),xVt.ud=function(t){this.a.td(nft(t))},pX(qVt,"Spliterator/OfInt/2methodref$accept$Type",604),dIt(605,1,dWt,Yd),xVt.ud=function(t){this.a.td(nft(t))},pX(qVt,"Spliterator/OfInt/3methodref$accept$Type",605),dIt(617,1,uWt),xVt.Nb=function(t){gC(this,t)},xVt.qd=function(){return this.d},xVt.rd=function(){return this.e},xVt.d=0,xVt.e=0,pX(qVt,"Spliterators/BaseSpliterator",617),dIt(721,617,uWt),xVt.xe=function(t){AC(this,t)},xVt.Nb=function(t){rO(t,182)?AC(this,Q$(t,182)):AC(this,new Wd(t))},xVt.sd=function(t){return rO(t,182)?this.ye(Q$(t,182)):this.ye(new Vd(t))},pX(qVt,"Spliterators/AbstractDoubleSpliterator",721),dIt(720,617,uWt),xVt.xe=function(t){AC(this,t)},xVt.Nb=function(t){rO(t,196)?AC(this,Q$(t,196)):AC(this,new Yd(t))},xVt.sd=function(t){return rO(t,196)?this.ye(Q$(t,196)):this.ye(new qd(t))},pX(qVt,"Spliterators/AbstractIntSpliterator",720),dIt(540,617,uWt),pX(qVt,"Spliterators/AbstractSpliterator",540),dIt(692,1,uWt),xVt.Nb=function(t){gC(this,t)},xVt.qd=function(){return this.b},xVt.rd=function(){return this.d-this.c},xVt.b=0,xVt.c=0,xVt.d=0,pX(qVt,"Spliterators/BaseArraySpliterator",692),dIt(947,692,uWt,QH),xVt.ze=function(t,e){rk(this,Q$(t,38),e)},xVt.Nb=function(t){DX(this,t)},xVt.sd=function(t){return N6(this,t)},pX(qVt,"Spliterators/ArraySpliterator",947),dIt(693,692,uWt,PR),xVt.ze=function(t,e){ik(this,Q$(t,182),e)},xVt.xe=function(t){DX(this,t)},xVt.Nb=function(t){rO(t,182)?DX(this,Q$(t,182)):DX(this,new Wd(t))},xVt.ye=function(t){return N6(this,t)},xVt.sd=function(t){return rO(t,182)?N6(this,Q$(t,182)):N6(this,new Vd(t))},pX(qVt,"Spliterators/DoubleArraySpliterator",693),dIt(1968,1,uWt),xVt.Nb=function(t){gC(this,t)},xVt.qd=function(){return 16448},xVt.rd=function(){return 0},pX(qVt,"Spliterators/EmptySpliterator",1968),dIt(946,1968,uWt,z),xVt.xe=function(t){Rh(t)},xVt.Nb=function(t){rO(t,196)?Rh(Q$(t,196)):Rh(new Yd(t))},xVt.ye=function(t){return hT(t)},xVt.sd=function(t){return rO(t,196)?hT(Q$(t,196)):hT(new qd(t))},pX(qVt,"Spliterators/EmptySpliterator/OfInt",946),dIt(580,52,uYt,Pb),xVt.Vc=function(t,e){Nz(t,this.a.c.length+1),vK(this.a,t,e)},xVt.Fc=function(t){return G$(this.a,t)},xVt.Wc=function(t,e){return Nz(t,this.a.c.length+1),sut(this.a,t,e)},xVt.Gc=function(t){return gst(this.a,t)},xVt.$b=function(){this.a.c=O8(Lte,$Vt,1,0,5,1)},xVt.Hc=function(t){return-1!=w9(this.a,t,0)},xVt.Ic=function(t){return sst(this.a,t)},xVt.Jc=function(t){Set(this.a,t)},xVt.Xb=function(t){return Nz(t,this.a.c.length),Oj(this.a,t)},xVt.Xc=function(t){return w9(this.a,t,0)},xVt.dc=function(){return 0==this.a.c.length},xVt.Kc=function(){return new Gd(this.a)},xVt.$c=function(t){return Nz(t,this.a.c.length),s6(this.a,t)},xVt.Ud=function(t,e){c1(this.a,t,e)},xVt._c=function(t,e){return Nz(t,this.a.c.length),r5(this.a,t,e)},xVt.gc=function(){return this.a.c.length},xVt.ad=function(t){mM(this.a,t)},xVt.bd=function(t,e){return new s1(this.a,t,e)},xVt.Pc=function(){return hF(this.a)},xVt.Qc=function(t){return Wpt(this.a,t)},xVt.Ib=function(){return MEt(this.a)},pX(qVt,"Vector",580),dIt(809,580,uYt,ov),pX(qVt,"Stack",809),dIt(206,1,{206:1},Iot),xVt.Ib=function(){return G0(this)},pX(qVt,"StringJoiner",206),dIt(544,1992,{3:1,83:1,171:1,161:1},Gx,Gz),xVt.$b=function(){my(this)},xVt.vc=function(){return new OD(this)},xVt.zc=function(t,e){return xct(this,t,e)},xVt.Bc=function(t){return LJ(this,t)},xVt.gc=function(){return this.c},xVt.c=0,pX(qVt,"TreeMap",544),dIt(390,1,WVt,QP),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return mF(this)},xVt.Ob=function(){return iT(this.a)},xVt.Qb=function(){tQ(this)},pX(qVt,"TreeMap/EntryIterator",390),dIt(435,739,tWt,OD),xVt.$b=function(){my(this.a)},pX(qVt,"TreeMap/EntrySet",435),dIt(436,383,{484:1,383:1,42:1,436:1},U8),xVt.b=!1;var Mne,One,Dne,Fne,Nne=pX(qVt,"TreeMap/Node",436);dIt(621,1,{},j),xVt.Ib=function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},xVt.a=!1,xVt.b=!1,xVt.c=!1,pX(qVt,"TreeMap/State",621),dIt(297,22,hYt,AT),xVt.Ae=function(){return!1},xVt.Be=function(){return!1};var Pne,Rne=Unt(qVt,"TreeMap/SubMapType",297,zte,q2,cQ);dIt(1112,297,hYt,II),xVt.Be=function(){return!0},Unt(qVt,"TreeMap/SubMapType/1",1112,Rne,null,null),dIt(1113,297,hYt,SM),xVt.Ae=function(){return!0},xVt.Be=function(){return!0},Unt(qVt,"TreeMap/SubMapType/2",1113,Rne,null,null),dIt(1114,297,hYt,MI),xVt.Ae=function(){return!0},Unt(qVt,"TreeMap/SubMapType/3",1114,Rne,null,null),dIt(208,ZVt,{3:1,20:1,28:1,14:1,271:1,21:1,84:1,208:1},jb,dC),xVt.Nc=function(){return new fT(this)},xVt.Fc=function(t){return YG(this,t)},xVt.$b=function(){my(this.a)},xVt.Hc=function(t){return DR(this.a,t)},xVt.Kc=function(){return new Rd(new QP(new OD(new Pd(this.a).a).b))},xVt.Mc=function(t){return CD(this,t)},xVt.gc=function(){return this.a.c};var Qne=pX(qVt,"TreeSet",208);dIt(966,1,{},nA),xVt.Ce=function(t,e){return DN(this.a,t,e)},pX(fYt,"BinaryOperator/lambda$0$Type",966),dIt(967,1,{},rA),xVt.Ce=function(t,e){return FN(this.a,t,e)},pX(fYt,"BinaryOperator/lambda$1$Type",967),dIt(846,1,{},K),xVt.Kb=function(t){return t},pX(fYt,"Function/lambda$0$Type",846),dIt(431,1,FWt,iA),xVt.Mb=function(t){return!this.a.Mb(t)},pX(fYt,"Predicate/lambda$2$Type",431),dIt(572,1,{572:1});var Une,$ne,Hne=pX(dYt,"Handler",572);dIt(2007,1,PVt),xVt.ne=function(){return"DUMMY"},xVt.Ib=function(){return this.ne()},pX(dYt,"Level",2007),dIt(1621,2007,PVt,G),xVt.ne=function(){return"INFO"},pX(dYt,"Level/LevelInfo",1621),dIt(1640,1,{},Nb),pX(dYt,"LogManager",1640),dIt(1780,1,PVt,eQ),xVt.b=null,pX(dYt,"LogRecord",1780),dIt(512,1,{512:1},b5),xVt.e=!1;var jne,Kne,zne,Gne=!1,Xne=!1,Vne=!1,Wne=!1,qne=!1;pX(dYt,"Logger",512),dIt(819,572,{572:1},X),pX(dYt,"SimpleConsoleLogHandler",819),dIt(132,22,{3:1,35:1,22:1,132:1},gT);var Yne,Jne=Unt(pYt,"Collector/Characteristics",132,zte,g1,lQ);dIt(744,1,{},yG),pX(pYt,"CollectorImpl",744),dIt(1060,1,{},V),xVt.Ce=function(t,e){return Sht(Q$(t,206),Q$(e,206))},pX(pYt,"Collectors/10methodref$merge$Type",1060),dIt(1061,1,{},W),xVt.Kb=function(t){return G0(Q$(t,206))},pX(pYt,"Collectors/11methodref$toString$Type",1061),dIt(1062,1,{},aA),xVt.Kb=function(t){return cD(),!!kL(t)},pX(pYt,"Collectors/12methodref$test$Type",1062),dIt(251,1,{},$),xVt.Od=function(t,e){Q$(t,14).Fc(e)},pX(pYt,"Collectors/20methodref$add$Type",251),dIt(253,1,{},H),xVt.Ee=function(){return new Mm},pX(pYt,"Collectors/21methodref$ctor$Type",253),dIt(346,1,{},q),xVt.Ee=function(){return new Fb},pX(pYt,"Collectors/23methodref$ctor$Type",346),dIt(347,1,{},Y),xVt.Od=function(t,e){kG(Q$(t,53),e)},pX(pYt,"Collectors/24methodref$add$Type",347),dIt(1055,1,{},J),xVt.Ce=function(t,e){return Yx(Q$(t,15),Q$(e,14))},pX(pYt,"Collectors/4methodref$addAll$Type",1055),dIt(1059,1,{},Z),xVt.Od=function(t,e){h6(Q$(t,206),Q$(e,475))},pX(pYt,"Collectors/9methodref$add$Type",1059),dIt(1058,1,{},W$),xVt.Ee=function(){return new Iot(this.a,this.b,this.c)},pX(pYt,"Collectors/lambda$15$Type",1058),dIt(1063,1,{},tt),xVt.Ee=function(){var t;return Ypt(t=new p4,(cD(),!1),new Mm),Ypt(t,!0,new Mm),t},pX(pYt,"Collectors/lambda$22$Type",1063),dIt(1064,1,{},oA),xVt.Ee=function(){return Tst(Hw(Lte,1),$Vt,1,5,[this.a])},pX(pYt,"Collectors/lambda$25$Type",1064),dIt(1065,1,{},sA),xVt.Od=function(t,e){Qj(this.a,ent(t))},pX(pYt,"Collectors/lambda$26$Type",1065),dIt(1066,1,{},cA),xVt.Ce=function(t,e){return Pz(this.a,ent(t),ent(e))},pX(pYt,"Collectors/lambda$27$Type",1066),dIt(1067,1,{},et),xVt.Kb=function(t){return ent(t)[0]},pX(pYt,"Collectors/lambda$28$Type",1067),dIt(713,1,{},nt),xVt.Ce=function(t,e){return Uj(t,e)},pX(pYt,"Collectors/lambda$4$Type",713),dIt(252,1,{},rt),xVt.Ce=function(t,e){return Hx(Q$(t,14),Q$(e,14))},pX(pYt,"Collectors/lambda$42$Type",252),dIt(348,1,{},it),xVt.Ce=function(t,e){return jx(Q$(t,53),Q$(e,53))},pX(pYt,"Collectors/lambda$50$Type",348),dIt(349,1,{},at),xVt.Kb=function(t){return Q$(t,53)},pX(pYt,"Collectors/lambda$51$Type",349),dIt(1054,1,{},lA),xVt.Od=function(t,e){flt(this.a,Q$(t,83),e)},pX(pYt,"Collectors/lambda$7$Type",1054),dIt(1056,1,{},ot),xVt.Ce=function(t,e){return pst(Q$(t,83),Q$(e,83),new J)},pX(pYt,"Collectors/lambda$8$Type",1056),dIt(1057,1,{},uA),xVt.Kb=function(t){return bdt(this.a,Q$(t,83))},pX(pYt,"Collectors/lambda$9$Type",1057),dIt(539,1,{}),xVt.He=function(){yV(this)},xVt.d=!1,pX(pYt,"TerminatableStream",539),dIt(812,539,mYt,SN),xVt.He=function(){yV(this)},pX(pYt,"DoubleStreamImpl",812),dIt(1784,721,uWt,Y$),xVt.ye=function(t){return pvt(this,Q$(t,182))},xVt.a=null,pX(pYt,"DoubleStreamImpl/2",1784),dIt(1785,1,Zqt,hA),xVt.we=function(t){UI(this.a,t)},pX(pYt,"DoubleStreamImpl/2/lambda$0$Type",1785),dIt(1782,1,Zqt,fA),xVt.we=function(t){QI(this.a,t)},pX(pYt,"DoubleStreamImpl/lambda$0$Type",1782),dIt(1783,1,Zqt,dA),xVt.we=function(t){lgt(this.a,t)},pX(pYt,"DoubleStreamImpl/lambda$2$Type",1783),dIt(1358,720,uWt,m5),xVt.ye=function(t){return v2(this,Q$(t,196))},xVt.a=0,xVt.b=0,xVt.c=0,pX(pYt,"IntStream/5",1358),dIt(787,539,mYt,LN),xVt.He=function(){yV(this)},xVt.Ie=function(){return wV(this),this.a},pX(pYt,"IntStreamImpl",787),dIt(788,539,mYt,Xx),xVt.He=function(){yV(this)},xVt.Ie=function(){return wV(this),BO(),Lne},pX(pYt,"IntStreamImpl/Empty",788),dIt(1463,1,dWt,AA),xVt.ud=function(t){rot(this.a,t)},pX(pYt,"IntStreamImpl/lambda$4$Type",1463);var Zne,tre=hj(pYt,"Stream");dIt(30,539,{525:1,670:1,833:1},Fj),xVt.He=function(){yV(this)},pX(pYt,"StreamImpl",30),dIt(845,1,{},st),xVt.ld=function(t){return uH(t)},pX(pYt,"StreamImpl/0methodref$lambda$2$Type",845),dIt(1084,540,uWt,NR),xVt.sd=function(t){for(;L7(this);){if(this.a.sd(t))return!0;yV(this.b),this.b=null,this.a=null}return!1},pX(pYt,"StreamImpl/1",1084),dIt(1085,1,hWt,gA),xVt.td=function(t){eH(this.a,Q$(t,833))},pX(pYt,"StreamImpl/1/lambda$0$Type",1085),dIt(1086,1,FWt,pA),xVt.Mb=function(t){return kG(this.a,t)},pX(pYt,"StreamImpl/1methodref$add$Type",1086),dIt(1087,540,uWt,pq),xVt.sd=function(t){var e;return this.a||(e=new Mm,this.b.a.Nb(new mA(e)),xq(),mM(e,this.c),this.a=new f1(e,16)),Jtt(this.a,t)},xVt.a=null,pX(pYt,"StreamImpl/5",1087),dIt(1088,1,hWt,mA),xVt.td=function(t){G$(this.a,t)},pX(pYt,"StreamImpl/5/2methodref$add$Type",1088),dIt(722,540,uWt,V7),xVt.sd=function(t){for(this.b=!1;!this.b&&this.c.sd(new ST(this,t)););return this.b},xVt.b=!1,pX(pYt,"StreamImpl/FilterSpliterator",722),dIt(1079,1,hWt,ST),xVt.td=function(t){Fz(this.a,this.b,t)},pX(pYt,"StreamImpl/FilterSpliterator/lambda$0$Type",1079),dIt(1075,721,uWt,w6),xVt.ye=function(t){return yR(this,Q$(t,182))},pX(pYt,"StreamImpl/MapToDoubleSpliterator",1075),dIt(1078,1,hWt,LT),xVt.td=function(t){yT(this.a,this.b,t)},pX(pYt,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1078),dIt(1074,720,uWt,k6),xVt.ye=function(t){return wR(this,Q$(t,196))},pX(pYt,"StreamImpl/MapToIntSpliterator",1074),dIt(1077,1,hWt,IT),xVt.td=function(t){vT(this.a,this.b,t)},pX(pYt,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1077),dIt(719,540,uWt,C6),xVt.sd=function(t){return kR(this,t)},pX(pYt,"StreamImpl/MapToObjSpliterator",719),dIt(1076,1,hWt,MT),xVt.td=function(t){wT(this.a,this.b,t)},pX(pYt,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1076),dIt(618,1,hWt,ct),xVt.td=function(t){Bf(this,t)},pX(pYt,"StreamImpl/ValueConsumer",618),dIt(1080,1,hWt,lt),xVt.td=function(t){dE()},pX(pYt,"StreamImpl/lambda$0$Type",1080),dIt(1081,1,hWt,ut),xVt.td=function(t){dE()},pX(pYt,"StreamImpl/lambda$1$Type",1081),dIt(1082,1,{},bA),xVt.Ce=function(t,e){return RQ(this.a,t,e)},pX(pYt,"StreamImpl/lambda$4$Type",1082),dIt(1083,1,hWt,BT),xVt.td=function(t){wP(this.b,this.a,t)},pX(pYt,"StreamImpl/lambda$5$Type",1083),dIt(1089,1,hWt,vA),xVt.td=function(t){$ct(this.a,Q$(t,365))},pX(pYt,"TerminatableStream/lambda$0$Type",1089),dIt(2041,1,{}),dIt(1914,1,{},ht),pX("javaemul.internal","ConsoleLogger",1914),dIt(2038,1,{});var ere,nre,rre=0,ire=0;dIt(1768,1,hWt,ft),xVt.td=function(t){Q$(t,308)},pX(CYt,"BowyerWatsonTriangulation/lambda$0$Type",1768),dIt(1769,1,hWt,yA),xVt.td=function(t){Qit(this.a,Q$(t,308).e)},pX(CYt,"BowyerWatsonTriangulation/lambda$1$Type",1769),dIt(1770,1,hWt,dt),xVt.td=function(t){Q$(t,168)},pX(CYt,"BowyerWatsonTriangulation/lambda$2$Type",1770),dIt(1765,1,xYt,wA),xVt.ue=function(t,e){return $3(this.a,Q$(t,168),Q$(e,168))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(CYt,"NaiveMinST/lambda$0$Type",1765),dIt(499,1,{},kA),pX(CYt,"NodeMicroLayout",499),dIt(168,1,{168:1},OT),xVt.Fb=function(t){var e;return!!rO(t,168)&&(e=Q$(t,168),rW(this.a,e.a)&&rW(this.b,e.b)||rW(this.a,e.b)&&rW(this.b,e.a))},xVt.Hb=function(){return NI(this.a)+NI(this.b)};var are=pX(CYt,"TEdge",168);dIt(308,1,{308:1},JUt),xVt.Fb=function(t){var e;return!!rO(t,308)&&N9(this,(e=Q$(t,308)).a)&&N9(this,e.b)&&N9(this,e.c)},xVt.Hb=function(){return NI(this.a)+NI(this.b)+NI(this.c)},pX(CYt,"TTriangle",308),dIt(221,1,{221:1},TM),pX(CYt,"Tree",221),dIt(1254,1,{},BZ),pX(EYt,"Scanline",1254);var ore=hj(EYt,TYt);dIt(1692,1,{},het),pX(BYt,"CGraph",1692),dIt(307,1,{307:1},rZ),xVt.b=0,xVt.c=0,xVt.d=0,xVt.g=0,xVt.i=0,xVt.k=Pqt,pX(BYt,"CGroup",307),dIt(815,1,{},zb),pX(BYt,"CGroup/CGroupBuilder",815),dIt(57,1,{57:1},SP),xVt.Ib=function(){return this.j?xN(this.j.Kb(this)):(wN(hre),hre.o+"@"+(ED(this)>>>0).toString(16))},xVt.f=0,xVt.i=Pqt;var sre,cre,lre,ure,hre=pX(BYt,"CNode",57);dIt(814,1,{},Gb),pX(BYt,"CNode/CNodeBuilder",814),dIt(1525,1,{},At),xVt.Oe=function(t,e){return 0},xVt.Pe=function(t,e){return 0},pX(BYt,SYt,1525),dIt(1790,1,{},gt),xVt.Le=function(t){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p;for(u=Nqt,i=new Gd(t.a.b);i.a<i.c.c.length;)n=Q$(J1(i),57),u=e.Math.min(u,n.a.j.d.c+n.b.a);for(A=new Wx,s=new Gd(t.a.a);s.a<s.c.c.length;)(o=Q$(J1(s),307)).k=u,0==o.g&&n5(A,o,A.c.b,A.c);for(;0!=A.b;){for(a=(o=Q$(0==A.b?null:(EF(0!=A.b),Let(A,A.a.a)),307)).j.d.c,d=o.a.a.ec().Kc();d.Ob();)h=Q$(d.Pb(),57),p=o.k+h.b.a,!jut(t,o,t.d)||h.d.c<p?h.i=p:h.i=h.d.c;for(a-=o.j.i,o.b+=a,t.d==(Qht(),RBe)||t.d==NBe?o.c+=a:o.c-=a,f=o.a.a.ec().Kc();f.Ob();)for(l=(h=Q$(f.Pb(),57)).c.Kc();l.Ob();)c=Q$(l.Pb(),57),g=dI(t.d)?t.g.Oe(h,c):t.g.Pe(h,c),c.a.k=e.Math.max(c.a.k,h.i+h.d.b+g-c.b.a),rY(t,c,t.d)&&(c.a.k=e.Math.max(c.a.k,c.d.c-c.b.a)),--c.a.g,0==c.a.g&&DH(A,c.a)}for(r=new Gd(t.a.b);r.a<r.c.c.length;)(n=Q$(J1(r),57)).d.c=n.i},pX(BYt,"LongestPathCompaction",1790),dIt(1690,1,{},vLt),xVt.e=!1;var fre,dre,Are=pX(BYt,DYt,1690);dIt(1691,1,hWt,CA),xVt.td=function(t){nst(this.a,Q$(t,46))},pX(BYt,FYt,1691),dIt(1791,1,{},pt),xVt.Me=function(t){var e,n,r,i,a,o;for(e=new Gd(t.a.b);e.a<e.c.c.length;)Q$(J1(e),57).c.$b();for(r=new Gd(t.a.b);r.a<r.c.c.length;)for(n=Q$(J1(r),57),a=new Gd(t.a.b);a.a<a.c.c.length;)n!=(i=Q$(J1(a),57))&&(n.a&&n.a==i.a||(o=dI(t.d)?t.g.Pe(n,i):t.g.Oe(n,i),(i.d.c>n.d.c||n.d.c==i.d.c&&n.d.b<i.d.b)&&Ngt(i.d.d+i.d.a+o,n.d.d)&&Pgt(i.d.d,n.d.d+n.d.a+o)&&n.c.Fc(i)))},pX(BYt,"QuadraticConstraintCalculation",1791),dIt(522,1,{522:1},Dm),xVt.a=!1,xVt.b=!1,xVt.c=!1,xVt.d=!1,pX(BYt,NYt,522),dIt(803,1,{},FK),xVt.Me=function(t){this.c=t,p_t(this,new vt)},pX(BYt,PYt,803),dIt(1718,1,{679:1},lY),xVt.Ke=function(t){RBt(this,Q$(t,464))},pX(BYt,RYt,1718),dIt(1719,1,xYt,mt),xVt.ue=function(t,e){return aq(Q$(t,57),Q$(e,57))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(BYt,QYt,1719),dIt(464,1,{464:1},_T),xVt.a=!1,pX(BYt,UYt,464),dIt(1720,1,xYt,bt),xVt.ue=function(t,e){return Ywt(Q$(t,464),Q$(e,464))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(BYt,$Yt,1720),dIt(1721,1,HYt,vt),xVt.Lb=function(t){return Q$(t,57),!0},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return Q$(t,57),!0},pX(BYt,"ScanlineConstraintCalculator/lambda$1$Type",1721),dIt(428,22,{3:1,35:1,22:1,428:1},RT);var gre,pre,mre,bre=Unt(jYt,"HighLevelSortingCriterion",428,zte,nJ,uQ);dIt(427,22,{3:1,35:1,22:1,427:1},QT);var vre,yre,wre,kre,Cre,xre,Ere,Tre,Bre,_re,Sre,Lre,Ire,Mre,Ore,Dre,Fre,Nre=Unt(jYt,"LowLevelSortingCriterion",427,zte,rJ,hQ),Pre=hj(KYt,"ILayoutMetaDataProvider");dIt(853,1,WYt,Hu),xVt.Qe=function(t){Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,zYt),qYt),"Polyomino Traversal Strategy"),"Traversal strategy for trying different candidate positions for polyominoes."),Tre),(TBt(),AEe)),Qre),Zft((rmt(),cEe))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,GYt),qYt),"Polyomino Secondary Sorting Criterion"),"Possible secondary sorting criteria for the processing order of polyominoes. They are used when polyominoes are equal according to the primary sorting criterion HighLevelSortingCriterion."),xre),AEe),Nre),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,XYt),qYt),"Polyomino Primary Sorting Criterion"),"Possible primary sorting criteria for the processing order of polyominoes."),kre),AEe),bre),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,VYt),qYt),"Fill Polyominoes"),"Use the Profile Fill algorithm to fill polyominoes to prevent small polyominoes from being placed inside of big polyominoes with large holes. Might increase packing area."),(cD(),!0)),fEe),yee),Zft(cEe))))},pX(jYt,"PolyominoOptions",853),dIt(250,22,{3:1,35:1,22:1,250:1},UT);var Rre,Qre=Unt(jYt,"TraversalStrategy",250,zte,Crt,fQ);dIt(213,1,{213:1},yt),xVt.Ib=function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},xVt.a=1,xVt.b=0,xVt.c=0,xVt.f=!1,xVt.g=0;var Ure=pX(YYt,"NEdge",213);dIt(176,1,{},Ub),pX(YYt,"NEdge/NEdgeBuilder",176),dIt(653,1,{},Rb),pX(YYt,"NGraph",653),dIt(121,1,{121:1},v6),xVt.c=-1,xVt.d=0,xVt.e=0,xVt.i=-1,xVt.j=!1;var $re=pX(YYt,"NNode",121);dIt(795,1,Yqt,Qb),xVt.Jc=function(t){t5(this,t)},xVt.Lc=function(){return new Fj(null,new f1(this,16))},xVt.ad=function(t){Rit(this,t)},xVt.Nc=function(){return new f1(this,16)},xVt.Oc=function(){return new Fj(null,new f1(this,16))},xVt.Vc=function(t,e){++this.b,vK(this.a,t,e)},xVt.Fc=function(t){return FD(this,t)},xVt.Wc=function(t,e){return++this.b,sut(this.a,t,e)},xVt.Gc=function(t){return++this.b,gst(this.a,t)},xVt.$b=function(){++this.b,this.a.c=O8(Lte,$Vt,1,0,5,1)},xVt.Hc=function(t){return-1!=w9(this.a,t,0)},xVt.Ic=function(t){return sst(this.a,t)},xVt.Xb=function(t){return Oj(this.a,t)},xVt.Xc=function(t){return w9(this.a,t,0)},xVt.dc=function(){return 0==this.a.c.length},xVt.Kc=function(){return I7(new Gd(this.a))},xVt.Yc=function(){throw Um(new gb)},xVt.Zc=function(t){throw Um(new gb)},xVt.$c=function(t){return++this.b,s6(this.a,t)},xVt.Mc=function(t){return ND(this,t)},xVt._c=function(t,e){return++this.b,r5(this.a,t,e)},xVt.gc=function(){return this.a.c.length},xVt.bd=function(t,e){return new s1(this.a,t,e)},xVt.Pc=function(){return hF(this.a)},xVt.Qc=function(t){return Wpt(this.a,t)},xVt.b=0,pX(YYt,"NNode/ChangeAwareArrayList",795),dIt(269,1,{},$b),pX(YYt,"NNode/NNodeBuilder",269),dIt(1630,1,{},wt),xVt.a=!1,xVt.f=FVt,xVt.j=0,pX(YYt,"NetworkSimplex",1630),dIt(1294,1,hWt,xA),xVt.td=function(t){Hzt(this.a,Q$(t,680),!0,!1)},pX(ZYt,"NodeLabelAndSizeCalculator/lambda$0$Type",1294),dIt(558,1,{},EA),xVt.b=!0,xVt.c=!0,xVt.d=!0,xVt.e=!0,pX(ZYt,"NodeMarginCalculator",558),dIt(212,1,{212:1}),xVt.j=!1,xVt.k=!1;var Hre,jre,Kre,zre=pX(tJt,"Cell",212);dIt(124,212,{124:1,212:1},RP),xVt.Re=function(){return zH(this)},xVt.Se=function(){var t;return t=this.n,this.a.a+t.b+t.c},pX(tJt,"AtomicCell",124),dIt(232,22,{3:1,35:1,22:1,232:1},$T);var Gre,Xre=Unt(tJt,"ContainerArea",232,zte,p1,dQ);dIt(326,212,nJt),pX(tJt,"ContainerCell",326),dIt(1473,326,nJt,$At),xVt.Re=function(){var t;return t=0,this.e?this.b?t=this.b.b:this.a[1][1]&&(t=this.a[1][1].Re()):t=qdt(this,zvt(this,!0)),t>0?t+this.n.d+this.n.a:0},xVt.Se=function(){var t,n,r,i,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=qdt(this,Swt(this,null,!0));else for(Fet(),r=0,i=(n=Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])).length;r<i;++r)t=n[r],a=e.Math.max(a,qdt(this,Swt(this,t,!0)));return a>0?a+this.n.b+this.n.c:0},xVt.Te=function(){var t,e,n,r,i;if(this.g)for(t=Swt(this,null,!1),Fet(),r=0,i=(n=Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])).length;r<i;++r)VFt(this,e=n[r],t);else for(Fet(),r=0,i=(n=Tst(Hw(Xre,1),IWt,232,0,[Hre,jre,Kre])).length;r<i;++r)VFt(this,e=n[r],t=Swt(this,e,!1))},xVt.Ue=function(){var t,n,r,i;n=this.i,t=this.n,i=zvt(this,!1),V5(this,(Fet(),Hre),n.d+t.d,i),V5(this,Kre,n.d+n.a-t.a-i[2],i),r=n.a-t.d-t.a,i[0]>0&&(i[0]+=this.d,r-=i[0]),i[2]>0&&(i[2]+=this.d,r-=i[2]),this.c.a=e.Math.max(0,r),this.c.d=n.d+t.d+(this.c.a-r)/2,i[1]=e.Math.max(i[1],r),V5(this,jre,n.d+t.d+i[0]-(i[1]-r)/2,i)},xVt.b=null,xVt.d=0,xVt.e=!1,xVt.f=!1,xVt.g=!1;var Vre,Wre,qre,Yre=0,Jre=0;pX(tJt,"GridContainerCell",1473),dIt(461,22,{3:1,35:1,22:1,461:1},HT);var Zre,tie=Unt(tJt,"HorizontalLabelAlignment",461,zte,m1,AQ);dIt(306,212,{212:1,306:1},bJ,det,NY),xVt.Re=function(){return GH(this)},xVt.Se=function(){return XH(this)},xVt.a=0,xVt.c=!1;var eie,nie,rie,iie=pX(tJt,"LabelCell",306);dIt(244,326,{212:1,326:1,244:1},_pt),xVt.Re=function(){return xSt(this)},xVt.Se=function(){return ESt(this)},xVt.Te=function(){RUt(this)},xVt.Ue=function(){jUt(this)},xVt.b=0,xVt.c=0,xVt.d=!1,pX(tJt,"StripContainerCell",244),dIt(1626,1,FWt,kt),xVt.Mb=function(t){return Vy(Q$(t,212))},pX(tJt,"StripContainerCell/lambda$0$Type",1626),dIt(1627,1,{},Ct),xVt.Fe=function(t){return Q$(t,212).Se()},pX(tJt,"StripContainerCell/lambda$1$Type",1627),dIt(1628,1,FWt,xt),xVt.Mb=function(t){return Wy(Q$(t,212))},pX(tJt,"StripContainerCell/lambda$2$Type",1628),dIt(1629,1,{},Et),xVt.Fe=function(t){return Q$(t,212).Re()},pX(tJt,"StripContainerCell/lambda$3$Type",1629),dIt(462,22,{3:1,35:1,22:1,462:1},jT);var aie,oie,sie,cie,lie,uie,hie,fie,die,Aie,gie,pie,mie,bie,vie,yie,wie,kie,Cie,xie,Eie,Tie,Bie,_ie=Unt(tJt,"VerticalLabelAlignment",462,zte,b1,gQ);dIt(789,1,{},eGt),xVt.c=0,xVt.d=0,xVt.k=0,xVt.s=0,xVt.t=0,xVt.v=!1,xVt.w=0,xVt.D=!1,pX(cJt,"NodeContext",789),dIt(1471,1,xYt,Tt),xVt.ue=function(t,e){return WL(Q$(t,61),Q$(e,61))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(cJt,"NodeContext/0methodref$comparePortSides$Type",1471),dIt(1472,1,xYt,Bt),xVt.ue=function(t,e){return zxt(Q$(t,111),Q$(e,111))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(cJt,"NodeContext/1methodref$comparePortContexts$Type",1472),dIt(159,22,{3:1,35:1,22:1,159:1},sat);var Sie,Lie,Iie,Mie,Oie,Die,Fie,Nie=Unt(cJt,"NodeLabelLocation",159,zte,tmt,pQ);dIt(111,1,{111:1},xLt),xVt.a=!1,pX(cJt,"PortContext",111),dIt(1476,1,hWt,_t),xVt.td=function(t){TC(Q$(t,306))},pX(hJt,fJt,1476),dIt(1477,1,FWt,St),xVt.Mb=function(t){return!!Q$(t,111).c},pX(hJt,dJt,1477),dIt(1478,1,hWt,Lt),xVt.td=function(t){TC(Q$(t,111).c)},pX(hJt,"LabelPlacer/lambda$2$Type",1478),dIt(1475,1,hWt,Mt),xVt.td=function(t){$N(),Wm(Q$(t,111))},pX(hJt,"NodeLabelAndSizeUtilities/lambda$0$Type",1475),dIt(790,1,hWt,LQ),xVt.td=function(t){FE(this.b,this.c,this.a,Q$(t,181))},xVt.a=!1,xVt.c=!1,pX(hJt,"NodeLabelCellCreator/lambda$0$Type",790),dIt(1474,1,hWt,TA),xVt.td=function(t){Bb(this.a,Q$(t,181))},pX(hJt,"PortContextCreator/lambda$0$Type",1474),dIt(1829,1,{},Ot),pX(gJt,"GreedyRectangleStripOverlapRemover",1829),dIt(1830,1,xYt,It),xVt.ue=function(t,e){return RD(Q$(t,222),Q$(e,222))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(gJt,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1830),dIt(1786,1,{},Yb),xVt.a=5,xVt.e=0,pX(gJt,"RectangleStripOverlapRemover",1786),dIt(1787,1,xYt,Ft),xVt.ue=function(t,e){return QD(Q$(t,222),Q$(e,222))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(gJt,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1787),dIt(1789,1,xYt,Nt),xVt.ue=function(t,e){return qG(Q$(t,222),Q$(e,222))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(gJt,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1789),dIt(406,22,{3:1,35:1,22:1,406:1},KT);var Pie,Rie,Qie,Uie,$ie,Hie=Unt(gJt,"RectangleStripOverlapRemover/OverlapRemovalDirection",406,zte,W2,mQ);dIt(222,1,{222:1},OK),pX(gJt,"RectangleStripOverlapRemover/RectangleNode",222),dIt(1788,1,hWt,BA),xVt.td=function(t){Bvt(this.a,Q$(t,222))},pX(gJt,"RectangleStripOverlapRemover/lambda$1$Type",1788),dIt(1304,1,xYt,Pt),xVt.ue=function(t,e){return KHt(Q$(t,167),Q$(e,167))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(mJt,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1304),dIt(1307,1,{},Rt),xVt.Kb=function(t){return Q$(t,324).a},pX(mJt,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1307),dIt(1308,1,FWt,Qt),xVt.Mb=function(t){return Q$(t,323).a},pX(mJt,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1308),dIt(1309,1,FWt,Ut),xVt.Mb=function(t){return Q$(t,323).a},pX(mJt,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1309),dIt(1302,1,xYt,$t),xVt.ue=function(t,e){return XPt(Q$(t,167),Q$(e,167))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(mJt,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1302),dIt(1305,1,{},Dt),xVt.Kb=function(t){return Q$(t,324).a},pX(mJt,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1305),dIt(767,1,xYt,Ht),xVt.ue=function(t,e){return zot(Q$(t,167),Q$(e,167))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(mJt,"PolyominoCompactor/MinNumOfExtensionsComparator",767),dIt(1300,1,xYt,jt),xVt.ue=function(t,e){return Wrt(Q$(t,321),Q$(e,321))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(mJt,"PolyominoCompactor/MinPerimeterComparator",1300),dIt(1301,1,xYt,Kt),xVt.ue=function(t,e){return abt(Q$(t,321),Q$(e,321))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(mJt,"PolyominoCompactor/MinPerimeterComparatorWithShape",1301),dIt(1303,1,xYt,zt),xVt.ue=function(t,e){return URt(Q$(t,167),Q$(e,167))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(mJt,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1303),dIt(1306,1,{},Gt),xVt.Kb=function(t){return Q$(t,324).a},pX(mJt,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1306),dIt(777,1,{},DT),xVt.Ce=function(t,e){return _2(this,Q$(t,46),Q$(e,167))},pX(mJt,"SuccessorCombination",777),dIt(644,1,{},Xt),xVt.Ce=function(t,e){var n;return GSt((n=Q$(t,46),Q$(e,167),n))},pX(mJt,"SuccessorJitter",644),dIt(643,1,{},Vt),xVt.Ce=function(t,e){var n;return fFt((n=Q$(t,46),Q$(e,167),n))},pX(mJt,"SuccessorLineByLine",643),dIt(568,1,{},Wt),xVt.Ce=function(t,e){var n;return uMt((n=Q$(t,46),Q$(e,167),n))},pX(mJt,"SuccessorManhattan",568),dIt(1356,1,{},qt),xVt.Ce=function(t,e){var n;return wDt((n=Q$(t,46),Q$(e,167),n))},pX(mJt,"SuccessorMaxNormWindingInMathPosSense",1356),dIt(400,1,{},_A),xVt.Ce=function(t,e){return QG(this,t,e)},xVt.c=!1,xVt.d=!1,xVt.e=!1,xVt.f=!1,pX(mJt,"SuccessorQuadrantsGeneric",400),dIt(1357,1,{},Yt),xVt.Kb=function(t){return Q$(t,324).a},pX(mJt,"SuccessorQuadrantsGeneric/lambda$0$Type",1357),dIt(323,22,{3:1,35:1,22:1,323:1},PT),xVt.a=!1;var jie,Kie=Unt(kJt,CJt,323,zte,J2,bQ);dIt(1298,1,{}),xVt.Ib=function(){var t,e,n,r,i,a;for(n=" ",t=nft(0),i=0;i<this.o;i++)n+=""+t.a,t=nft(uP(t.a));for(n+="\n",t=nft(0),a=0;a<this.p;a++){for(n+=""+t.a,t=nft(uP(t.a)),r=0;r<this.o;r++)0==Vut(e=tit(this,r,a),0)?n+="_":0==Vut(e,1)?n+="X":n+="0";n+="\n"}return lF(n,0,n.length-1)},xVt.o=0,xVt.p=0,pX(kJt,"TwoBitGrid",1298),dIt(321,1298,{321:1},HAt),xVt.j=0,xVt.k=0,pX(kJt,"PlanarGrid",321),dIt(167,321,{321:1,167:1}),xVt.g=0,xVt.i=0,pX(kJt,"Polyomino",167);var zie=hj(_Jt,SJt);dIt(134,1,LJt,Jt),xVt.Ye=function(t,e){return cct(this,t,e)},xVt.Ve=function(){return Hj(this)},xVt.We=function(t){return bEt(this,t)},xVt.Xe=function(t){return IF(this,t)},pX(_Jt,"MapPropertyHolder",134),dIt(1299,134,LJt,vFt),pX(kJt,"Polyominoes",1299);var Gie,Xie,Vie,Wie,qie,Yie,Jie,Zie,tae=!1;dIt(1766,1,hWt,Zt),xVt.td=function(t){ojt(Q$(t,221))},pX(IJt,"DepthFirstCompaction/0methodref$compactTree$Type",1766),dIt(810,1,hWt,SA),xVt.td=function(t){NV(this.a,Q$(t,221))},pX(IJt,"DepthFirstCompaction/lambda$1$Type",810),dIt(1767,1,hWt,MQ),xVt.td=function(t){Apt(this.a,this.b,this.c,Q$(t,221))},pX(IJt,"DepthFirstCompaction/lambda$2$Type",1767),dIt(65,1,{65:1},SZ),pX(IJt,"Node",65),dIt(1250,1,{},BM),pX(IJt,"ScanlineOverlapCheck",1250),dIt(1251,1,{679:1},cY),xVt.Ke=function(t){HN(this,Q$(t,440))},pX(IJt,"ScanlineOverlapCheck/OverlapsScanlineHandler",1251),dIt(1252,1,xYt,te),xVt.ue=function(t,e){return Dft(Q$(t,65),Q$(e,65))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(IJt,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1252),dIt(440,1,{440:1},FT),xVt.a=!1,pX(IJt,"ScanlineOverlapCheck/Timestamp",440),dIt(1253,1,xYt,ee),xVt.ue=function(t,e){return Jwt(Q$(t,440),Q$(e,440))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(IJt,"ScanlineOverlapCheck/lambda$0$Type",1253),dIt(550,1,{},ne),pX(MJt,"SVGImage",550),dIt(324,1,{324:1},OQ),xVt.Ib=function(){return"("+this.a+QVt+this.b+QVt+this.c+")"},pX(MJt,"UniqueTriple",324),dIt(209,1,OJt),pX(DJt,"AbstractLayoutProvider",209),dIt(1132,209,OJt,re),xVt.Ze=function(t,e){var n,r,i;Sxt(e,FJt,1),this.a=Hy(CN(JIt(t,(kmt(),wae)))),E8(t,hae)&&(r=xN(JIt(t,hae)),(n=GPt(irt(),r))&&Q$(sJ(n.f),209).Ze(t,bat(e,1))),i=new s4(this.a),this.b=Nzt(i,t),0===Q$(JIt(t,(jlt(),oae)),481).g?(ULt(new ie,this.b),qmt(t,Aae,bEt(this.b,Aae))):Lx(),zzt(i),qmt(t,dae,this.b),$Tt(e)},xVt.a=0,pX(NJt,"DisCoLayoutProvider",1132),dIt(1244,1,{},ie),xVt.c=!1,xVt.e=0,xVt.f=0,pX(NJt,"DisCoPolyominoCompactor",1244),dIt(561,1,{561:1},cK),xVt.b=!0,pX(PJt,"DCComponent",561),dIt(394,22,{3:1,35:1,22:1,394:1},NT),xVt.a=!1;var eae,nae,rae=Unt(PJt,"DCDirection",394,zte,Y2,vQ);dIt(266,134,{3:1,266:1,94:1,134:1},kIt),pX(PJt,"DCElement",266),dIt(395,1,{395:1},_vt),xVt.c=0,pX(PJt,"DCExtension",395),dIt(755,134,LJt,Pk),pX(PJt,"DCGraph",755),dIt(481,22,{3:1,35:1,22:1,481:1},BF);var iae,aae,oae,sae,cae,lae,uae,hae,fae,dae,Aae,gae,pae,mae,bae,vae,yae,wae,kae,Cae,xae,Eae=Unt(RJt,QJt,481,zte,FW,yQ);dIt(854,1,WYt,Uu),xVt.Qe=function(t){Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,UJt),KJt),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),sae),(TBt(),AEe)),Eae),Zft((rmt(),cEe))))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,$Jt),KJt),"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."),bEe),Wee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,HJt),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),mEe),Lte),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,jJt),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),mEe),Lte),Zft(cEe)))),U$t((new $u,t))},pX(RJt,"DisCoMetaDataProvider",854),dIt(998,1,WYt,$u),xVt.Qe=function(t){U$t(t)},pX(RJt,"DisCoOptions",998),dIt(999,1,{},ae),xVt.$e=function(){return new re},xVt._e=function(t){},pX(RJt,"DisCoOptions/DiscoFactory",999),dIt(562,167,{321:1,167:1,562:1},WMt),xVt.a=0,xVt.b=0,xVt.c=0,xVt.d=0,pX("org.eclipse.elk.alg.disco.structures","DCPolyomino",562),dIt(1268,1,FWt,oe),xVt.Mb=function(t){return kL(t)},pX(qJt,"ElkGraphComponentsProcessor/lambda$0$Type",1268),dIt(1269,1,{},se),xVt.Kb=function(t){return Cq(),TEt(Q$(t,79))},pX(qJt,"ElkGraphComponentsProcessor/lambda$1$Type",1269),dIt(1270,1,FWt,ce),xVt.Mb=function(t){return $H(Q$(t,79))},pX(qJt,"ElkGraphComponentsProcessor/lambda$2$Type",1270),dIt(1271,1,{},le),xVt.Kb=function(t){return Cq(),SEt(Q$(t,79))},pX(qJt,"ElkGraphComponentsProcessor/lambda$3$Type",1271),dIt(1272,1,FWt,ue),xVt.Mb=function(t){return HH(Q$(t,79))},pX(qJt,"ElkGraphComponentsProcessor/lambda$4$Type",1272),dIt(1273,1,FWt,LA),xVt.Mb=function(t){return CJ(this.a,Q$(t,79))},pX(qJt,"ElkGraphComponentsProcessor/lambda$5$Type",1273),dIt(1274,1,{},IA),xVt.Kb=function(t){return NX(this.a,Q$(t,79))},pX(qJt,"ElkGraphComponentsProcessor/lambda$6$Type",1274),dIt(1241,1,{},s4),xVt.a=0,pX(qJt,"ElkGraphTransformer",1241),dIt(1242,1,{},he),xVt.Od=function(t,e){tLt(this,Q$(t,160),Q$(e,266))},pX(qJt,"ElkGraphTransformer/OffsetApplier",1242),dIt(1243,1,hWt,MA),xVt.td=function(t){kO(this,Q$(t,8))},pX(qJt,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1243),dIt(753,1,{},fe),pX(eZt,nZt,753),dIt(1232,1,xYt,de),xVt.ue=function(t,e){return BSt(Q$(t,231),Q$(e,231))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(eZt,rZt,1232),dIt(740,209,OJt,Hb),xVt.Ze=function(t,e){mOt(this,t,e)},pX(eZt,"ForceLayoutProvider",740),dIt(357,134,{3:1,357:1,94:1,134:1}),pX(iZt,"FParticle",357),dIt(559,357,{3:1,559:1,357:1,94:1,134:1},cX),xVt.Ib=function(){var t;return this.a?(t=w9(this.a.a,this,0))>=0?"b"+t+"["+a5(this.a)+"]":"b["+a5(this.a)+"]":"b_"+ED(this)},pX(iZt,"FBendpoint",559),dIt(282,134,{3:1,282:1,94:1,134:1},BP),xVt.Ib=function(){return a5(this)},pX(iZt,"FEdge",282),dIt(231,134,{3:1,231:1,94:1,134:1},b6);var Tae,Bae,_ae,Sae,Lae,Iae,Mae,Oae,Dae,Fae,Nae=pX(iZt,"FGraph",231);dIt(447,357,{3:1,447:1,357:1,94:1,134:1},m4),xVt.Ib=function(){return null==this.b||0==this.b.length?"l["+a5(this.a)+"]":"l_"+this.b},pX(iZt,"FLabel",447),dIt(144,357,{3:1,144:1,357:1,94:1,134:1},$X),xVt.Ib=function(){return g0(this)},xVt.b=0,pX(iZt,"FNode",144),dIt(2003,1,{}),xVt.bf=function(t){cUt(this,t)},xVt.cf=function(){Hvt(this)},xVt.d=0,pX(oZt,"AbstractForceModel",2003),dIt(631,2003,{631:1},Mot),xVt.af=function(t,n){var r,i,a,o;return tSt(this.f,t,n),a=zP(QM(n.d),t.d),o=e.Math.sqrt(a.a*a.a+a.b*a.b),i=e.Math.max(0,o-uV(t.e)/2-uV(n.e)/2),vO(a,((r=Hct(this.e,t,n))>0?-PG(i,this.c)*r:OF(i,this.b)*Q$(bEt(t,(uPt(),Yae)),19).a)/o),a},xVt.bf=function(t){cUt(this,t),this.a=Q$(bEt(t,(uPt(),$ae)),19).a,this.c=Hy(CN(bEt(t,roe))),this.b=Hy(CN(bEt(t,Zae)))},xVt.df=function(t){return t<this.a},xVt.a=0,xVt.b=0,xVt.c=0,pX(oZt,"EadesModel",631),dIt(632,2003,{632:1},lH),xVt.af=function(t,n){var r,i,a,o,s;return tSt(this.f,t,n),a=zP(QM(n.d),t.d),s=e.Math.sqrt(a.a*a.a+a.b*a.b),o=MF(i=e.Math.max(0,s-uV(t.e)/2-uV(n.e)/2),this.a)*Q$(bEt(t,(uPt(),Yae)),19).a,(r=Hct(this.e,t,n))>0&&(o-=xy(i,this.a)*r),vO(a,o*this.b/s),a},xVt.bf=function(t){var n,r,i,a,o,s,c;for(cUt(this,t),this.b=Hy(CN(bEt(t,(uPt(),ioe)))),this.c=this.b/Q$(bEt(t,$ae),19).a,i=t.e.c.length,o=0,a=0,c=new Gd(t.e);c.a<c.c.c.length;)o+=(s=Q$(J1(c),144)).e.a,a+=s.e.b;n=o*a,r=Hy(CN(bEt(t,roe)))*uJt,this.a=e.Math.sqrt(n/(2*i))*r},xVt.cf=function(){Hvt(this),this.b-=this.c},xVt.df=function(t){return this.b>0},xVt.a=0,xVt.b=0,xVt.c=0,pX(oZt,"FruchtermanReingoldModel",632),dIt(849,1,WYt,ju),xVt.Qe=function(t){Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,sZt),""),"Force Model"),"Determines the model for force calculation."),_ae),(TBt(),AEe)),Loe),Zft((rmt(),cEe))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,cZt),""),"Iterations"),"The number of iterations on the force model."),nft(300)),pEe),Lee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,lZt),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),nft(0)),pEe),Lee),Zft(aEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,uZt),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),hZt),dEe),Tee),Zft(cEe)))),i2(t,uZt,sZt,Oae),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,fZt),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),dEe),Tee),Zft(cEe)))),i2(t,fZt,sZt,Lae),pGt((new Ku,t))},pX(dZt,"ForceMetaDataProvider",849),dIt(424,22,{3:1,35:1,22:1,424:1},zT);var Pae,Rae,Qae,Uae,$ae,Hae,jae,Kae,zae,Gae,Xae,Vae,Wae,qae,Yae,Jae,Zae,toe,eoe,noe,roe,ioe,aoe,ooe,soe,coe,loe,uoe,hoe,foe,doe,Aoe,goe,poe,moe,boe,voe,yoe,woe,koe,Coe,xoe,Eoe,Toe,Boe,_oe,Soe,Loe=Unt(dZt,"ForceModelStrategy",424,zte,iJ,wQ);dIt(988,1,WYt,Ku),xVt.Qe=function(t){pGt(t)},pX(dZt,"ForceOptions",988),dIt(989,1,{},Ae),xVt.$e=function(){return new Hb},xVt._e=function(t){},pX(dZt,"ForceOptions/ForceFactory",989),dIt(850,1,WYt,zu),xVt.Qe=function(t){Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,OZt),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(cD(),!1)),(TBt(),fEe)),yee),Zft((rmt(),sEe))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,DZt),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),dEe),Tee),wK(cEe,Tst(Hw(yEe,1),IWt,175,0,[aEe]))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,FZt),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),hoe),AEe),Uoe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,NZt),""),"Stress Epsilon"),"Termination criterion for the iterative process."),hZt),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,PZt),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),nft(FVt)),pEe),Lee),Zft(cEe)))),zKt((new Gu,t))},pX(dZt,"StressMetaDataProvider",850),dIt(992,1,WYt,Gu),xVt.Qe=function(t){zKt(t)},pX(dZt,"StressOptions",992),dIt(993,1,{},ge),xVt.$e=function(){return new _P},xVt._e=function(t){},pX(dZt,"StressOptions/StressFactory",993),dIt(1128,209,OJt,_P),xVt.Ze=function(t,e){var n,r,i,a;for(Sxt(e,QZt,1),$y(kN(JIt(t,(rwt(),voe))))?$y(kN(JIt(t,Eoe)))||yJ(new kA((HE(),new Dy(t)))):mOt(new Hb,t,bat(e,1)),r=uct(t),a=(n=$Ut(this.a,r)).Kc();a.Ob();)(i=Q$(a.Pb(),231)).e.c.length<=1||($Ht(this.b,i),nMt(this.b),Set(i.d,new pe));EGt(r=jGt(n)),$Tt(e)},pX($Zt,"StressLayoutProvider",1128),dIt(1129,1,hWt,pe),xVt.td=function(t){R$t(Q$(t,447))},pX($Zt,"StressLayoutProvider/lambda$0$Type",1129),dIt(990,1,{},kb),xVt.c=0,xVt.e=0,xVt.g=0,pX($Zt,"StressMajorization",990),dIt(379,22,{3:1,35:1,22:1,379:1},GT);var Ioe,Moe,Ooe,Doe,Foe,Noe,Poe,Roe,Qoe,Uoe=Unt($Zt,"StressMajorization/Dimension",379,zte,y1,kQ);dIt(991,1,xYt,OA),xVt.ue=function(t,e){return xR(this.a,Q$(t,144),Q$(e,144))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX($Zt,"StressMajorization/lambda$0$Type",991),dIt(1229,1,{},D0),pX(jZt,"ElkLayered",1229),dIt(1230,1,hWt,me),xVt.td=function(t){NSt(Q$(t,37))},pX(jZt,"ElkLayered/lambda$0$Type",1230),dIt(1231,1,hWt,DA),xVt.td=function(t){ER(this.a,Q$(t,37))},pX(jZt,"ElkLayered/lambda$1$Type",1231),dIt(1263,1,{},LM),pX(jZt,"GraphConfigurator",1263),dIt(759,1,hWt,FA),xVt.td=function(t){VEt(this.a,Q$(t,10))},pX(jZt,"GraphConfigurator/lambda$0$Type",759),dIt(760,1,{},be),xVt.Kb=function(t){return tkt(),new Fj(null,new f1(Q$(t,29).a,16))},pX(jZt,"GraphConfigurator/lambda$1$Type",760),dIt(761,1,hWt,NA),xVt.td=function(t){VEt(this.a,Q$(t,10))},pX(jZt,"GraphConfigurator/lambda$2$Type",761),dIt(1127,209,OJt,Kb),xVt.Ze=function(t,e){var n;n=E$t(new Zb,t),HS(JIt(t,($Xt(),spe)))===HS((oht(),g_e))?rAt(this.a,n,e):dLt(this.a,n,e),gGt(new Vu,n)},pX(jZt,"LayeredLayoutProvider",1127),dIt(356,22,{3:1,35:1,22:1,356:1},XT);var $oe,Hoe,joe,Koe=Unt(jZt,"LayeredPhases",356,zte,s5,CQ);dIt(1651,1,{},mrt),xVt.i=0,pX(KZt,"ComponentsToCGraphTransformer",1651),dIt(1652,1,{},ve),xVt.ef=function(t,n){return e.Math.min(null!=t.a?Hy(t.a):t.c.i,null!=n.a?Hy(n.a):n.c.i)},xVt.ff=function(t,n){return e.Math.min(null!=t.a?Hy(t.a):t.c.i,null!=n.a?Hy(n.a):n.c.i)},pX(KZt,"ComponentsToCGraphTransformer/1",1652),dIt(81,1,{81:1}),xVt.i=0,xVt.k=!0,xVt.o=Pqt;var zoe,Goe,Xoe,Voe=pX(zZt,"CNode",81);dIt(460,81,{460:1,81:1},MD,Ept),xVt.Ib=function(){return""},pX(KZt,"ComponentsToCGraphTransformer/CRectNode",460),dIt(1623,1,{},ye),pX(KZt,"OneDimensionalComponentsCompaction",1623),dIt(1624,1,{},we),xVt.Kb=function(t){return OZ(Q$(t,46))},xVt.Fb=function(t){return this===t},pX(KZt,"OneDimensionalComponentsCompaction/lambda$0$Type",1624),dIt(1625,1,{},ke),xVt.Kb=function(t){return kAt(Q$(t,46))},xVt.Fb=function(t){return this===t},pX(KZt,"OneDimensionalComponentsCompaction/lambda$1$Type",1625),dIt(1654,1,{},QX),pX(zZt,"CGraph",1654),dIt(189,1,{189:1},Tpt),xVt.b=0,xVt.c=0,xVt.e=0,xVt.g=!0,xVt.i=Pqt,pX(zZt,"CGroup",189),dIt(1653,1,{},Te),xVt.ef=function(t,n){return e.Math.max(null!=t.a?Hy(t.a):t.c.i,null!=n.a?Hy(n.a):n.c.i)},xVt.ff=function(t,n){return e.Math.max(null!=t.a?Hy(t.a):t.c.i,null!=n.a?Hy(n.a):n.c.i)},pX(zZt,SYt,1653),dIt(1655,1,{},cLt),xVt.d=!1;var Woe=pX(zZt,DYt,1655);dIt(1656,1,{},Be),xVt.Kb=function(t){return vE(),cD(),0!=Q$(Q$(t,46).a,81).d.e},xVt.Fb=function(t){return this===t},pX(zZt,FYt,1656),dIt(823,1,{},xj),xVt.a=!1,xVt.b=!1,xVt.c=!1,xVt.d=!1,pX(zZt,NYt,823),dIt(1825,1,{},DK),pX(GZt,PYt,1825);var qoe=hj(XZt,TYt);dIt(1826,1,{369:1},uY),xVt.Ke=function(t){jFt(this,Q$(t,466))},pX(GZt,RYt,1826),dIt(1827,1,xYt,_e),xVt.ue=function(t,e){return oq(Q$(t,81),Q$(e,81))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(GZt,QYt,1827),dIt(466,1,{466:1},lB),xVt.a=!1,pX(GZt,UYt,466),dIt(1828,1,xYt,Se),xVt.ue=function(t,e){return Zwt(Q$(t,466),Q$(e,466))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(GZt,$Yt,1828),dIt(140,1,{140:1},dB,mH),xVt.Fb=function(t){var e;return null!=t&&ese==tlt(t)&&(e=Q$(t,140),rW(this.c,e.c)&&rW(this.d,e.d))},xVt.Hb=function(){return uut(Tst(Hw(Lte,1),$Vt,1,5,[this.c,this.d]))},xVt.Ib=function(){return"("+this.c+QVt+this.d+(this.a?"cx":"")+this.b+")"},xVt.a=!0,xVt.c=0,xVt.d=0;var Yoe,Joe,Zoe,tse,ese=pX(XZt,"Point",140);dIt(405,22,{3:1,35:1,22:1,405:1},VT);var nse,rse,ise,ase,ose,sse,cse,lse,use,hse,fse,dse=Unt(XZt,"Point/Quadrant",405,zte,Z2,xQ);dIt(1642,1,{},Xb),xVt.b=null,xVt.c=null,xVt.d=null,xVt.e=null,xVt.f=null,pX(XZt,"RectilinearConvexHull",1642),dIt(574,1,{369:1},Cmt),xVt.Ke=function(t){P7(this,Q$(t,140))},xVt.b=0,pX(XZt,"RectilinearConvexHull/MaximalElementsEventHandler",574),dIt(1644,1,xYt,xe),xVt.ue=function(t,e){return DW(CN(t),CN(e))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(XZt,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1644),dIt(1643,1,{369:1},uet),xVt.Ke=function(t){TDt(this,Q$(t,140))},xVt.a=0,xVt.b=null,xVt.c=null,xVt.d=null,xVt.e=null,pX(XZt,"RectilinearConvexHull/RectangleEventHandler",1643),dIt(1645,1,xYt,Ee),xVt.ue=function(t,e){return a0(Q$(t,140),Q$(e,140))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(XZt,"RectilinearConvexHull/lambda$0$Type",1645),dIt(1646,1,xYt,Ce),xVt.ue=function(t,e){return o0(Q$(t,140),Q$(e,140))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(XZt,"RectilinearConvexHull/lambda$1$Type",1646),dIt(1647,1,xYt,Le),xVt.ue=function(t,e){return c0(Q$(t,140),Q$(e,140))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(XZt,"RectilinearConvexHull/lambda$2$Type",1647),dIt(1648,1,xYt,Ie),xVt.ue=function(t,e){return s0(Q$(t,140),Q$(e,140))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(XZt,"RectilinearConvexHull/lambda$3$Type",1648),dIt(1649,1,xYt,Me),xVt.ue=function(t,e){return wEt(Q$(t,140),Q$(e,140))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(XZt,"RectilinearConvexHull/lambda$4$Type",1649),dIt(1650,1,{},_Z),pX(XZt,"Scanline",1650),dIt(2005,1,{}),pX(VZt,"AbstractGraphPlacer",2005),dIt(325,1,{325:1},zF),xVt.mf=function(t){return!!this.nf(t)&&(YSt(this.b,Q$(bEt(t,(lVt(),zhe)),21),t),!0)},xVt.nf=function(t){var e,n,r;for(e=Q$(bEt(t,(lVt(),zhe)),21),r=Q$(c6(lse,e),21).Kc();r.Ob();)if(n=Q$(r.Pb(),21),!Q$(c6(this.b,n),15).dc())return!1;return!0},pX(VZt,"ComponentGroup",325),dIt(765,2005,{},Vb),xVt.of=function(t){var e;for(e=new Gd(this.a);e.a<e.c.c.length;)if(Q$(J1(e),325).mf(t))return;G$(this.a,new zF(t))},xVt.lf=function(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A;if(this.a.c=O8(Lte,$Vt,1,0,5,1),e.a.c=O8(Lte,$Vt,1,0,5,1),t.dc())return e.f.a=0,void(e.f.b=0);for(Hot(e,o=Q$(t.Xb(0),37)),i=t.Kc();i.Ob();)r=Q$(i.Pb(),37),this.of(r);for(A=new Hk,a=Hy(CN(bEt(o,($Xt(),mme)))),l=new Gd(this.a);l.a<l.c.c.length;)u=CXt(s=Q$(J1(l),325),a),f7(kX(s.b),A.a,A.b),A.a+=u.a,A.b+=u.b;if(e.f.a=A.a-a,e.f.b=A.b-a,$y(kN(bEt(o,Cge)))&&HS(bEt(o,Yge))===HS((xdt(),VBe))){for(d=t.Kc();d.Ob();)JPt(h=Q$(d.Pb(),37),h.c.a,h.c.b);for(PXt(n=new Oe,t,a),f=t.Kc();f.Ob();)KP(vL((h=Q$(f.Pb(),37)).c),n.e);KP(vL(e.f),n.a)}for(c=new Gd(this.a);c.a<c.c.c.length;)d7(e,kX((s=Q$(J1(c),325)).b))},pX(VZt,"ComponentGroupGraphPlacer",765),dIt(1293,765,{},cv),xVt.of=function(t){pht(this,t)},xVt.lf=function(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b;if(this.a.c=O8(Lte,$Vt,1,0,5,1),n.a.c=O8(Lte,$Vt,1,0,5,1),t.dc())return n.f.a=0,void(n.f.b=0);for(Hot(n,o=Q$(t.Xb(0),37)),i=t.Kc();i.Ob();)pht(this,Q$(i.Pb(),37));for(b=new Hk,m=new Hk,g=new Hk,A=new Hk,a=Hy(CN(bEt(o,($Xt(),mme)))),l=new Gd(this.a);l.a<l.c.c.length;){if(s=Q$(J1(l),325),dI(Q$(bEt(n,(cVt(),hTe)),103))){for(g.a=b.a,p=new uy(CX(vX(s.b).a).a.kc());p.b.Ob();)if(Q$(rT(p.b.Pb()),21).Hc((yGt(),sSe))){g.a=m.a;break}}else if(AI(Q$(bEt(n,hTe),103)))for(g.b=b.b,p=new uy(CX(vX(s.b).a).a.kc());p.b.Ob();)if(Q$(rT(p.b.Pb()),21).Hc((yGt(),TSe))){g.b=m.b;break}if(u=CXt(Q$(s,570),a),f7(kX(s.b),g.a,g.b),dI(Q$(bEt(n,hTe),103))){for(m.a=g.a+u.a,A.a=e.Math.max(A.a,m.a),p=new uy(CX(vX(s.b).a).a.kc());p.b.Ob();)if(Q$(rT(p.b.Pb()),21).Hc((yGt(),xSe))){b.a=g.a+u.a;break}m.b=g.b+u.b,g.b=m.b,A.b=e.Math.max(A.b,g.b)}else if(AI(Q$(bEt(n,hTe),103))){for(m.b=g.b+u.b,A.b=e.Math.max(A.b,m.b),p=new uy(CX(vX(s.b).a).a.kc());p.b.Ob();)if(Q$(rT(p.b.Pb()),21).Hc((yGt(),oSe))){b.b=g.b+u.b;break}m.a=g.a+u.a,g.a=m.a,A.a=e.Math.max(A.a,g.a)}}if(n.f.a=A.a-a,n.f.b=A.b-a,$y(kN(bEt(o,Cge)))&&HS(bEt(o,Yge))===HS((xdt(),VBe))){for(d=t.Kc();d.Ob();)JPt(h=Q$(d.Pb(),37),h.c.a,h.c.b);for(PXt(r=new Oe,t,a),f=t.Kc();f.Ob();)KP(vL((h=Q$(f.Pb(),37)).c),r.e);KP(vL(n.f),r.a)}for(c=new Gd(this.a);c.a<c.c.c.length;)d7(n,kX((s=Q$(J1(c),325)).b))},pX(VZt,"ComponentGroupModelOrderGraphPlacer",1293),dIt(423,22,{3:1,35:1,22:1,423:1},WT);var Ase,gse,pse,mse=Unt(VZt,"ComponentOrderingStrategy",423,zte,v1,EQ);dIt(650,1,{},Oe),pX(VZt,"ComponentsCompactor",650),dIt(1468,12,Wqt,p5),xVt.Fc=function(t){return qkt(this,Q$(t,140))},pX(VZt,"ComponentsCompactor/Hullpoints",1468),dIt(1465,1,{841:1},lbt),xVt.a=!1,pX(VZt,"ComponentsCompactor/InternalComponent",1465),dIt(1464,1,pWt,Wb),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return new Gd(this.a)},pX(VZt,"ComponentsCompactor/InternalConnectedComponents",1464),dIt(1467,1,{594:1},ALt),xVt.hf=function(){return null},xVt.jf=function(){return this.a},xVt.gf=function(){return omt(this.d)},xVt.kf=function(){return this.b},pX(VZt,"ComponentsCompactor/InternalExternalExtension",1467),dIt(1466,1,{594:1},Jb),xVt.jf=function(){return this.a},xVt.gf=function(){return omt(this.d)},xVt.hf=function(){return this.c},xVt.kf=function(){return this.b},pX(VZt,"ComponentsCompactor/InternalUnionExternalExtension",1466),dIt(1470,1,{},WFt),pX(VZt,"ComponentsCompactor/OuterSegments",1470),dIt(1469,1,{},qb),pX(VZt,"ComponentsCompactor/Segments",1469),dIt(1264,1,{},hY),pX(VZt,nZt,1264),dIt(1265,1,xYt,De),xVt.ue=function(t,e){return h0(Q$(t,37),Q$(e,37))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(VZt,"ComponentsProcessor/lambda$0$Type",1265),dIt(570,325,{325:1,570:1},g5),xVt.mf=function(t){return Alt(this,t)},xVt.nf=function(t){return fDt(this,t)},pX(VZt,"ModelOrderComponentGroup",570),dIt(1291,2005,{},Fe),xVt.lf=function(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k;if(1!=t.gc()){if(t.dc())return n.a.c=O8(Lte,$Vt,1,0,5,1),n.f.a=0,void(n.f.b=0);if(HS(bEt(n,($Xt(),Tge)))===HS((Uht(),fse))){for(l=t.Kc();l.Ob();){for(m=0,g=new Gd((s=Q$(l.Pb(),37)).a);g.a<g.c.c.length;)A=Q$(J1(g),10),m+=Q$(bEt(A,cme),19).a;s.p=m}xq(),t.ad(new Ne)}for(o=Q$(t.Xb(0),37),n.a.c=O8(Lte,$Vt,1,0,5,1),Hot(n,o),d=0,y=0,u=t.Kc();u.Ob();)b=(s=Q$(u.Pb(),37)).f,d=e.Math.max(d,b.a),y+=b.a*b.b;for(d=e.Math.max(d,e.Math.sqrt(y)*Hy(CN(bEt(n,wge)))),w=0,k=0,f=0,r=a=Hy(CN(bEt(n,mme))),c=t.Kc();c.Ob();)w+(b=(s=Q$(c.Pb(),37)).f).a>d&&(w=0,k+=f+a,f=0),JPt(s,w+(p=s.c).a,k+p.b),vL(p),r=e.Math.max(r,w+b.a),f=e.Math.max(f,b.b),w+=b.a+a;if(n.f.a=r,n.f.b=k+f,$y(kN(bEt(o,Cge)))){for(PXt(i=new Oe,t,a),h=t.Kc();h.Ob();)KP(vL(Q$(h.Pb(),37).c),i.e);KP(vL(n.f),i.a)}d7(n,t)}else(v=Q$(t.Xb(0),37))!=n&&(n.a.c=O8(Lte,$Vt,1,0,5,1),IRt(n,v,0,0),Hot(n,v),vq(n.d,v.d),n.f.a=v.f.a,n.f.b=v.f.b)},pX(VZt,"SimpleRowGraphPlacer",1291),dIt(1292,1,xYt,Ne),xVt.ue=function(t,e){return Kot(Q$(t,37),Q$(e,37))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(VZt,"SimpleRowGraphPlacer/1",1292),dIt(1262,1,HYt,Pe),xVt.Lb=function(t){var e;return!!(e=Q$(bEt(Q$(t,243).b,($Xt(),ppe)),74))&&0!=e.b},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){var e;return!!(e=Q$(bEt(Q$(t,243).b,($Xt(),ppe)),74))&&0!=e.b},pX(JZt,"CompoundGraphPostprocessor/1",1262),dIt(1261,1,ZZt,tv),xVt.pf=function(t,e){bbt(this,Q$(t,37),e)},pX(JZt,"CompoundGraphPreprocessor",1261),dIt(441,1,{441:1},Kht),xVt.c=!1,pX(JZt,"CompoundGraphPreprocessor/ExternalPort",441),dIt(243,1,{243:1},IQ),xVt.Ib=function(){return dF(this.c)+":"+SSt(this.b)},pX(JZt,"CrossHierarchyEdge",243),dIt(763,1,xYt,PA),xVt.ue=function(t,e){return Vyt(this,Q$(t,243),Q$(e,243))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(JZt,"CrossHierarchyEdgeComparator",763),dIt(299,134,{3:1,299:1,94:1,134:1}),xVt.p=0,pX(t1t,"LGraphElement",299),dIt(17,299,{3:1,17:1,299:1,94:1,134:1},fY),xVt.Ib=function(){return SSt(this)};var bse=pX(t1t,"LEdge",17);dIt(37,299,{3:1,20:1,37:1,299:1,94:1,134:1},brt),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return new Gd(this.b)},xVt.Ib=function(){return 0==this.b.c.length?"G-unlayered"+MEt(this.a):0==this.a.c.length?"G-layered"+MEt(this.b):"G[layerless"+MEt(this.a)+", layers"+MEt(this.b)+"]"};var vse,yse=pX(t1t,"LGraph",37);dIt(657,1,{}),xVt.qf=function(){return this.e.n},xVt.We=function(t){return bEt(this.e,t)},xVt.rf=function(){return this.e.o},xVt.sf=function(){return this.e.p},xVt.Xe=function(t){return IF(this.e,t)},xVt.tf=function(t){this.e.n.a=t.a,this.e.n.b=t.b},xVt.uf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},xVt.vf=function(t){this.e.p=t},pX(t1t,"LGraphAdapters/AbstractLShapeAdapter",657),dIt(577,1,{839:1},RA),xVt.wf=function(){var t,e;if(!this.b)for(this.b=sF(this.a.b.c.length),e=new Gd(this.a.b);e.a<e.c.c.length;)t=Q$(J1(e),70),G$(this.b,new QA(t));return this.b},xVt.b=null,pX(t1t,"LGraphAdapters/LEdgeAdapter",577),dIt(656,1,{},UW),xVt.xf=function(){var t,e,n,r,i;if(!this.b)for(this.b=new Mm,n=new Gd(this.a.b);n.a<n.c.c.length;)for(i=new Gd(Q$(J1(n),29).a);i.a<i.c.c.length;)if(r=Q$(J1(i),10),this.c.Mb(r)&&(G$(this.b,new PQ(this,r,this.e)),this.d)){if(IF(r,(lVt(),Nfe)))for(e=Q$(bEt(r,Nfe),15).Kc();e.Ob();)t=Q$(e.Pb(),10),G$(this.b,new PQ(this,t,!1));if(IF(r,Dhe))for(e=Q$(bEt(r,Dhe),15).Kc();e.Ob();)t=Q$(e.Pb(),10),G$(this.b,new PQ(this,t,!1))}return this.b},xVt.qf=function(){throw Um(new Zy(n1t))},xVt.We=function(t){return bEt(this.a,t)},xVt.rf=function(){return this.a.f},xVt.sf=function(){return this.a.p},xVt.Xe=function(t){return IF(this.a,t)},xVt.tf=function(t){throw Um(new Zy(n1t))},xVt.uf=function(t){this.a.f.a=t.a,this.a.f.b=t.b},xVt.vf=function(t){this.a.p=t},xVt.b=null,xVt.d=!1,xVt.e=!1,pX(t1t,"LGraphAdapters/LGraphAdapter",656),dIt(576,657,{181:1},QA),pX(t1t,"LGraphAdapters/LLabelAdapter",576),dIt(575,657,{680:1},PQ),xVt.yf=function(){return this.b},xVt.zf=function(){return xq(),xq(),cne},xVt.wf=function(){var t,e;if(!this.a)for(this.a=sF(Q$(this.e,10).b.c.length),e=new Gd(Q$(this.e,10).b);e.a<e.c.c.length;)t=Q$(J1(e),70),G$(this.a,new QA(t));return this.a},xVt.Af=function(){var t;return new UP((t=Q$(this.e,10).d).d,t.c,t.a,t.b)},xVt.Bf=function(){return xq(),xq(),cne},xVt.Cf=function(){var t,e;if(!this.c)for(this.c=sF(Q$(this.e,10).j.c.length),e=new Gd(Q$(this.e,10).j);e.a<e.c.c.length;)t=Q$(J1(e),11),G$(this.c,new AB(t,this.d));return this.c},xVt.Df=function(){return $y(kN(bEt(Q$(this.e,10),(lVt(),Phe))))},xVt.Ef=function(t){Q$(this.e,10).d.b=t.b,Q$(this.e,10).d.d=t.d,Q$(this.e,10).d.c=t.c,Q$(this.e,10).d.a=t.a},xVt.Ff=function(t){Q$(this.e,10).f.b=t.b,Q$(this.e,10).f.d=t.d,Q$(this.e,10).f.c=t.c,Q$(this.e,10).f.a=t.a},xVt.Gf=function(){Oet(this,(AE(),vse))},xVt.a=null,xVt.b=null,xVt.c=null,xVt.d=!1,pX(t1t,"LGraphAdapters/LNodeAdapter",575),dIt(1722,657,{838:1},AB),xVt.zf=function(){var t,e,n,r;if(this.d&&Q$(this.e,11).i.k==(oTt(),Bse))return xq(),xq(),cne;if(!this.a){for(this.a=new Mm,n=new Gd(Q$(this.e,11).e);n.a<n.c.c.length;)t=Q$(J1(n),17),G$(this.a,new RA(t));if(this.d&&(r=Q$(bEt(Q$(this.e,11),(lVt(),wfe)),10)))for(e=new oz(YO(udt(r).a.Kc(),new u));AIt(e);)t=Q$(K5(e),17),G$(this.a,new RA(t))}return this.a},xVt.wf=function(){var t,e;if(!this.b)for(this.b=sF(Q$(this.e,11).f.c.length),e=new Gd(Q$(this.e,11).f);e.a<e.c.c.length;)t=Q$(J1(e),70),G$(this.b,new QA(t));return this.b},xVt.Bf=function(){var t,e,n,r;if(this.d&&Q$(this.e,11).i.k==(oTt(),Bse))return xq(),xq(),cne;if(!this.c){for(this.c=new Mm,n=new Gd(Q$(this.e,11).g);n.a<n.c.c.length;)t=Q$(J1(n),17),G$(this.c,new RA(t));if(this.d&&(r=Q$(bEt(Q$(this.e,11),(lVt(),wfe)),10)))for(e=new oz(YO(hdt(r).a.Kc(),new u));AIt(e);)t=Q$(K5(e),17),G$(this.c,new RA(t))}return this.c},xVt.Hf=function(){return Q$(this.e,11).j},xVt.If=function(){return $y(kN(bEt(Q$(this.e,11),(lVt(),tfe))))},xVt.a=null,xVt.b=null,xVt.c=null,xVt.d=!1,pX(t1t,"LGraphAdapters/LPortAdapter",1722),dIt(1723,1,xYt,Re),xVt.ue=function(t,e){return XNt(Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(t1t,"LGraphAdapters/PortComparator",1723),dIt(804,1,FWt,Qe),xVt.Mb=function(t){return Q$(t,10),AE(),!0},pX(t1t,"LGraphAdapters/lambda$0$Type",804),dIt(392,299,{3:1,299:1,392:1,94:1,134:1}),pX(t1t,"LShape",392),dIt(70,392,{3:1,299:1,70:1,392:1,94:1,134:1},$k,_M),xVt.Ib=function(){var t;return null==(t=WH(this))?"label":"l_"+t},pX(t1t,"LLabel",70),dIt(207,1,{3:1,4:1,207:1,414:1}),xVt.Fb=function(t){var e;return!!rO(t,207)&&(e=Q$(t,207),this.d==e.d&&this.a==e.a&&this.b==e.b&&this.c==e.c)},xVt.Hb=function(){var t,e;return t=XL(this.b)<<16,t|=XL(this.a)&WWt,e=XL(this.c)<<16,t^(e|=XL(this.d)&WWt)},xVt.Jf=function(t){var e,n,r,i,a,o,s,c,l;for(i=0;i<t.length&&Fut((h1(i,t.length),t.charCodeAt(i)),s1t);)++i;for(e=t.length;e>0&&Fut((h1(e-1,t.length),t.charCodeAt(e-1)),c1t);)--e;if(i<e){c=yRt(t.substr(i,e-i),",|;");try{for(o=0,s=(a=c).length;o<s;++o){if(2!=(r=yRt(a[o],"=")).length)throw Um(new Py("Expecting a list of key-value pairs."));n=NEt(r[0]),l=fTt(NEt(r[1])),mR(n,"top")?this.d=l:mR(n,"left")?this.b=l:mR(n,"bottom")?this.a=l:mR(n,"right")&&(this.c=l)}}catch(t){throw rO(t=hst(t),127)?Um(new Py(l1t+t)):Um(t)}}},xVt.Ib=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},xVt.a=0,xVt.b=0,xVt.c=0,xVt.d=0,pX(u1t,"Spacing",207),dIt(142,207,h1t,uv,uI,UP,SQ);var wse=pX(u1t,"ElkMargin",142);dIt(651,142,h1t,lv),pX(t1t,"LMargin",651),dIt(10,392,{3:1,299:1,10:1,392:1,94:1,134:1},Ibt),xVt.Ib=function(){return Imt(this)},xVt.i=!1;var kse,Cse,xse,Ese,Tse,Bse,_se=pX(t1t,"LNode",10);dIt(267,22,{3:1,35:1,22:1,267:1},qT);var Sse,Lse=Unt(t1t,"LNode/NodeType",267,zte,a7,BQ);dIt(116,207,f1t,hv,GI,_Q);var Ise,Mse,Ose,Dse,Fse,Nse,Pse=pX(u1t,"ElkPadding",116);dIt(764,116,f1t,fv),pX(t1t,"LPadding",764),dIt(11,392,{3:1,299:1,11:1,392:1,94:1,134:1},BTt),xVt.Ib=function(){var t,e,n;return oL(((t=new Tw).a+="p_",t),pyt(this)),this.i&&oL(aL((t.a+="[",t),this.i),"]"),1==this.e.c.length&&0==this.g.c.length&&Q$(Oj(this.e,0),17).c!=this&&(e=Q$(Oj(this.e,0),17).c,oL((t.a+=" << ",t),pyt(e)),oL(aL((t.a+="[",t),e.i),"]")),0==this.e.c.length&&1==this.g.c.length&&Q$(Oj(this.g,0),17).d!=this&&(n=Q$(Oj(this.g,0),17).d,oL((t.a+=" >> ",t),pyt(n)),oL(aL((t.a+="[",t),n.i),"]")),t.a},xVt.c=!0,xVt.d=!1;var Rse,Qse,Use,$se,Hse=pX(t1t,"LPort",11);dIt(397,1,pWt,UA),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return new $A(new Gd(this.a.e))},pX(t1t,"LPort/1",397),dIt(1290,1,WVt,$A),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return Q$(J1(this.a),17).c},xVt.Ob=function(){return bM(this.a)},xVt.Qb=function(){SG(this.a)},pX(t1t,"LPort/1/1",1290),dIt(359,1,pWt,HA),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return new jA(new Gd(this.a.g))},pX(t1t,"LPort/2",359),dIt(762,1,WVt,jA),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return Q$(J1(this.a),17).d},xVt.Ob=function(){return bM(this.a)},xVt.Qb=function(){SG(this.a)},pX(t1t,"LPort/2/1",762),dIt(1283,1,pWt,cB),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return new m6(this)},pX(t1t,"LPort/CombineIter",1283),dIt(201,1,WVt,m6),xVt.Nb=function(t){lG(this,t)},xVt.Qb=function(){aC()},xVt.Ob=function(){return jD(this)},xVt.Pb=function(){return bM(this.a)?J1(this.a):J1(this.b)},pX(t1t,"LPort/CombineIter/1",201),dIt(1285,1,HYt,Ue),xVt.Lb=function(t){return Sz(t)},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return gat(),0!=Q$(t,11).e.c.length},pX(t1t,"LPort/lambda$0$Type",1285),dIt(1284,1,HYt,$e),xVt.Lb=function(t){return Lz(t)},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return gat(),0!=Q$(t,11).g.c.length},pX(t1t,"LPort/lambda$1$Type",1284),dIt(1286,1,HYt,He),xVt.Lb=function(t){return gat(),Q$(t,11).j==(yGt(),sSe)},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return gat(),Q$(t,11).j==(yGt(),sSe)},pX(t1t,"LPort/lambda$2$Type",1286),dIt(1287,1,HYt,je),xVt.Lb=function(t){return gat(),Q$(t,11).j==(yGt(),oSe)},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return gat(),Q$(t,11).j==(yGt(),oSe)},pX(t1t,"LPort/lambda$3$Type",1287),dIt(1288,1,HYt,Ke),xVt.Lb=function(t){return gat(),Q$(t,11).j==(yGt(),xSe)},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return gat(),Q$(t,11).j==(yGt(),xSe)},pX(t1t,"LPort/lambda$4$Type",1288),dIt(1289,1,HYt,ze),xVt.Lb=function(t){return gat(),Q$(t,11).j==(yGt(),TSe)},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return gat(),Q$(t,11).j==(yGt(),TSe)},pX(t1t,"LPort/lambda$5$Type",1289),dIt(29,299,{3:1,20:1,299:1,29:1,94:1,134:1},UX),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return new Gd(this.a)},xVt.Ib=function(){return"L_"+w9(this.b.b,this,0)+MEt(this.a)},pX(t1t,"Layer",29),dIt(1342,1,{},Zb),pX(A1t,g1t,1342),dIt(1346,1,{},Ge),xVt.Kb=function(t){return Txt(Q$(t,82))},pX(A1t,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1346),dIt(1349,1,{},Xe),xVt.Kb=function(t){return Txt(Q$(t,82))},pX(A1t,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1349),dIt(1343,1,hWt,KA),xVt.td=function(t){TLt(this.a,Q$(t,118))},pX(A1t,p1t,1343),dIt(1344,1,hWt,zA),xVt.td=function(t){TLt(this.a,Q$(t,118))},pX(A1t,m1t,1344),dIt(1345,1,{},Ve),xVt.Kb=function(t){return new Fj(null,new f1(gW(Q$(t,79)),16))},pX(A1t,b1t,1345),dIt(1347,1,FWt,GA),xVt.Mb=function(t){return PI(this.a,Q$(t,33))},pX(A1t,v1t,1347),dIt(1348,1,{},We),xVt.Kb=function(t){return new Fj(null,new f1(pW(Q$(t,79)),16))},pX(A1t,"ElkGraphImporter/lambda$5$Type",1348),dIt(1350,1,FWt,XA),xVt.Mb=function(t){return RI(this.a,Q$(t,33))},pX(A1t,"ElkGraphImporter/lambda$7$Type",1350),dIt(1351,1,FWt,qe),xVt.Mb=function(t){return Sq(Q$(t,79))},pX(A1t,"ElkGraphImporter/lambda$8$Type",1351),dIt(1278,1,{},Vu),pX(A1t,"ElkGraphLayoutTransferrer",1278),dIt(1279,1,FWt,VA),xVt.Mb=function(t){return qP(this.a,Q$(t,17))},pX(A1t,"ElkGraphLayoutTransferrer/lambda$0$Type",1279),dIt(1280,1,hWt,WA),xVt.td=function(t){mE(),G$(this.a,Q$(t,17))},pX(A1t,"ElkGraphLayoutTransferrer/lambda$1$Type",1280),dIt(1281,1,FWt,qA),xVt.Mb=function(t){return KN(this.a,Q$(t,17))},pX(A1t,"ElkGraphLayoutTransferrer/lambda$2$Type",1281),dIt(1282,1,hWt,YA),xVt.td=function(t){mE(),G$(this.a,Q$(t,17))},pX(A1t,"ElkGraphLayoutTransferrer/lambda$3$Type",1282),dIt(1485,1,ZZt,Ye),xVt.pf=function(t,e){Vit(Q$(t,37),e)},pX(w1t,"CommentNodeMarginCalculator",1485),dIt(1486,1,{},Je),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,29).a,16))},pX(w1t,"CommentNodeMarginCalculator/lambda$0$Type",1486),dIt(1487,1,hWt,Ze),xVt.td=function(t){tHt(Q$(t,10))},pX(w1t,"CommentNodeMarginCalculator/lambda$1$Type",1487),dIt(1488,1,ZZt,tn),xVt.pf=function(t,e){aNt(Q$(t,37),e)},pX(w1t,"CommentPostprocessor",1488),dIt(1489,1,ZZt,en),xVt.pf=function(t,e){oGt(Q$(t,37),e)},pX(w1t,"CommentPreprocessor",1489),dIt(1490,1,ZZt,nn),xVt.pf=function(t,e){wOt(Q$(t,37),e)},pX(w1t,"ConstraintsPostprocessor",1490),dIt(1491,1,ZZt,rn),xVt.pf=function(t,e){iot(Q$(t,37),e)},pX(w1t,"EdgeAndLayerConstraintEdgeReverser",1491),dIt(1492,1,ZZt,an),xVt.pf=function(t,e){jAt(Q$(t,37),e)},pX(w1t,"EndLabelPostprocessor",1492),dIt(1493,1,{},on),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,29).a,16))},pX(w1t,"EndLabelPostprocessor/lambda$0$Type",1493),dIt(1494,1,FWt,sn),xVt.Mb=function(t){return CY(Q$(t,10))},pX(w1t,"EndLabelPostprocessor/lambda$1$Type",1494),dIt(1495,1,hWt,cn),xVt.td=function(t){ekt(Q$(t,10))},pX(w1t,"EndLabelPostprocessor/lambda$2$Type",1495),dIt(1496,1,ZZt,ln),xVt.pf=function(t,e){JBt(Q$(t,37),e)},pX(w1t,"EndLabelPreprocessor",1496),dIt(1497,1,{},un),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,29).a,16))},pX(w1t,"EndLabelPreprocessor/lambda$0$Type",1497),dIt(1498,1,hWt,DQ),xVt.td=function(t){NE(this.a,this.b,this.c,Q$(t,10))},xVt.a=0,xVt.b=0,xVt.c=!1,pX(w1t,"EndLabelPreprocessor/lambda$1$Type",1498),dIt(1499,1,FWt,hn),xVt.Mb=function(t){return HS(bEt(Q$(t,70),($Xt(),Wge)))===HS((Net(),zBe))},pX(w1t,"EndLabelPreprocessor/lambda$2$Type",1499),dIt(1500,1,hWt,JA),xVt.td=function(t){DH(this.a,Q$(t,70))},pX(w1t,"EndLabelPreprocessor/lambda$3$Type",1500),dIt(1501,1,FWt,fn),xVt.Mb=function(t){return HS(bEt(Q$(t,70),($Xt(),Wge)))===HS((Net(),KBe))},pX(w1t,"EndLabelPreprocessor/lambda$4$Type",1501),dIt(1502,1,hWt,ZA),xVt.td=function(t){DH(this.a,Q$(t,70))},pX(w1t,"EndLabelPreprocessor/lambda$5$Type",1502),dIt(1551,1,ZZt,Xu),xVt.pf=function(t,e){Bft(Q$(t,37),e)},pX(w1t,"EndLabelSorter",1551),dIt(1552,1,xYt,dn),xVt.ue=function(t,e){return $pt(Q$(t,456),Q$(e,456))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(w1t,"EndLabelSorter/1",1552),dIt(456,1,{456:1},kq),pX(w1t,"EndLabelSorter/LabelGroup",456),dIt(1553,1,{},An),xVt.Kb=function(t){return wE(),new Fj(null,new f1(Q$(t,29).a,16))},pX(w1t,"EndLabelSorter/lambda$0$Type",1553),dIt(1554,1,FWt,gn),xVt.Mb=function(t){return wE(),Q$(t,10).k==(oTt(),Tse)},pX(w1t,"EndLabelSorter/lambda$1$Type",1554),dIt(1555,1,hWt,pn),xVt.td=function(t){sTt(Q$(t,10))},pX(w1t,"EndLabelSorter/lambda$2$Type",1555),dIt(1556,1,FWt,mn),xVt.Mb=function(t){return wE(),HS(bEt(Q$(t,70),($Xt(),Wge)))===HS((Net(),KBe))},pX(w1t,"EndLabelSorter/lambda$3$Type",1556),dIt(1557,1,FWt,bn),xVt.Mb=function(t){return wE(),HS(bEt(Q$(t,70),($Xt(),Wge)))===HS((Net(),zBe))},pX(w1t,"EndLabelSorter/lambda$4$Type",1557),dIt(1503,1,ZZt,vn),xVt.pf=function(t,e){_Ht(this,Q$(t,37))},xVt.b=0,xVt.c=0,pX(w1t,"FinalSplineBendpointsCalculator",1503),dIt(1504,1,{},yn),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,29).a,16))},pX(w1t,"FinalSplineBendpointsCalculator/lambda$0$Type",1504),dIt(1505,1,{},wn),xVt.Kb=function(t){return new Fj(null,new jG(new oz(YO(hdt(Q$(t,10)).a.Kc(),new u))))},pX(w1t,"FinalSplineBendpointsCalculator/lambda$1$Type",1505),dIt(1506,1,FWt,kn),xVt.Mb=function(t){return!h5(Q$(t,17))},pX(w1t,"FinalSplineBendpointsCalculator/lambda$2$Type",1506),dIt(1507,1,FWt,Cn),xVt.Mb=function(t){return IF(Q$(t,17),(lVt(),Mfe))},pX(w1t,"FinalSplineBendpointsCalculator/lambda$3$Type",1507),dIt(1508,1,hWt,tg),xVt.td=function(t){KRt(this.a,Q$(t,128))},pX(w1t,"FinalSplineBendpointsCalculator/lambda$4$Type",1508),dIt(1509,1,hWt,xn),xVt.td=function(t){YBt(Q$(t,17).a)},pX(w1t,"FinalSplineBendpointsCalculator/lambda$5$Type",1509),dIt(792,1,ZZt,eg),xVt.pf=function(t,e){Vjt(this,Q$(t,37),e)},pX(w1t,"GraphTransformer",792),dIt(511,22,{3:1,35:1,22:1,511:1},YT);var jse,Kse,zse,Gse=Unt(w1t,"GraphTransformer/Mode",511,zte,aJ,ZU);dIt(1510,1,ZZt,En),xVt.pf=function(t,e){eFt(Q$(t,37),e)},pX(w1t,"HierarchicalNodeResizingProcessor",1510),dIt(1511,1,ZZt,Tn),xVt.pf=function(t,e){hit(Q$(t,37),e)},pX(w1t,"HierarchicalPortConstraintProcessor",1511),dIt(1512,1,xYt,Bn),xVt.ue=function(t,e){return _mt(Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(w1t,"HierarchicalPortConstraintProcessor/NodeComparator",1512),dIt(1513,1,ZZt,_n),xVt.pf=function(t,e){w$t(Q$(t,37),e)},pX(w1t,"HierarchicalPortDummySizeProcessor",1513),dIt(1514,1,ZZt,Sn),xVt.pf=function(t,e){YNt(this,Q$(t,37),e)},xVt.a=0,pX(w1t,"HierarchicalPortOrthogonalEdgeRouter",1514),dIt(1515,1,xYt,Ln),xVt.ue=function(t,e){return PD(Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(w1t,"HierarchicalPortOrthogonalEdgeRouter/1",1515),dIt(1516,1,xYt,In),xVt.ue=function(t,e){return E7(Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(w1t,"HierarchicalPortOrthogonalEdgeRouter/2",1516),dIt(1517,1,ZZt,Mn),xVt.pf=function(t,e){kEt(Q$(t,37),e)},pX(w1t,"HierarchicalPortPositionProcessor",1517),dIt(1518,1,ZZt,Wu),xVt.pf=function(t,e){rXt(this,Q$(t,37))},xVt.a=0,xVt.c=0,pX(w1t,"HighDegreeNodeLayeringProcessor",1518),dIt(571,1,{571:1},On),xVt.b=-1,xVt.d=-1,pX(w1t,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",571),dIt(1519,1,{},Dn),xVt.Kb=function(t){return $Q(),udt(Q$(t,10))},xVt.Fb=function(t){return this===t},pX(w1t,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1519),dIt(1520,1,{},Fn),xVt.Kb=function(t){return $Q(),hdt(Q$(t,10))},xVt.Fb=function(t){return this===t},pX(w1t,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1520),dIt(1526,1,ZZt,Nn),xVt.pf=function(t,e){AUt(this,Q$(t,37),e)},pX(w1t,"HyperedgeDummyMerger",1526),dIt(793,1,{},FQ),xVt.a=!1,xVt.b=!1,xVt.c=!1,pX(w1t,"HyperedgeDummyMerger/MergeState",793),dIt(1527,1,{},Pn),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,29).a,16))},pX(w1t,"HyperedgeDummyMerger/lambda$0$Type",1527),dIt(1528,1,{},Rn),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,10).j,16))},pX(w1t,"HyperedgeDummyMerger/lambda$1$Type",1528),dIt(1529,1,hWt,Qn),xVt.td=function(t){Q$(t,11).p=-1},pX(w1t,"HyperedgeDummyMerger/lambda$2$Type",1529),dIt(1530,1,ZZt,Un),xVt.pf=function(t,e){fUt(Q$(t,37),e)},pX(w1t,"HypernodesProcessor",1530),dIt(1531,1,ZZt,$n),xVt.pf=function(t,e){dUt(Q$(t,37),e)},pX(w1t,"InLayerConstraintProcessor",1531),dIt(1532,1,ZZt,Hn),xVt.pf=function(t,e){Mat(Q$(t,37),e)},pX(w1t,"InnermostNodeMarginCalculator",1532),dIt(1533,1,ZZt,jn),xVt.pf=function(t,e){Vzt(this,Q$(t,37))},xVt.a=Pqt,xVt.b=Pqt,xVt.c=Nqt,xVt.d=Nqt;var Xse,Vse,Wse,qse,Yse,Jse,Zse,tce,ece,nce,rce,ice,ace,oce,sce,cce,lce,uce,hce,fce,dce,Ace,gce,pce,mce,bce,vce,yce,wce,kce,Cce,xce,Ece,Tce,Bce,_ce,Sce,Lce,Ice,Mce,Oce,Dce,Fce,Nce,Pce,Rce,Qce,Uce,$ce,Hce,jce,Kce,zce,Gce,Xce,Vce,Wce,qce=pX(w1t,"InteractiveExternalPortPositioner",1533);dIt(1534,1,{},Kn),xVt.Kb=function(t){return Q$(t,17).d.i},xVt.Fb=function(t){return this===t},pX(w1t,"InteractiveExternalPortPositioner/lambda$0$Type",1534),dIt(1535,1,{},ng),xVt.Kb=function(t){return $D(this.a,CN(t))},xVt.Fb=function(t){return this===t},pX(w1t,"InteractiveExternalPortPositioner/lambda$1$Type",1535),dIt(1536,1,{},zn),xVt.Kb=function(t){return Q$(t,17).c.i},xVt.Fb=function(t){return this===t},pX(w1t,"InteractiveExternalPortPositioner/lambda$2$Type",1536),dIt(1537,1,{},rg),xVt.Kb=function(t){return HD(this.a,CN(t))},xVt.Fb=function(t){return this===t},pX(w1t,"InteractiveExternalPortPositioner/lambda$3$Type",1537),dIt(1538,1,{},ig),xVt.Kb=function(t){return GP(this.a,CN(t))},xVt.Fb=function(t){return this===t},pX(w1t,"InteractiveExternalPortPositioner/lambda$4$Type",1538),dIt(1539,1,{},ag),xVt.Kb=function(t){return XP(this.a,CN(t))},xVt.Fb=function(t){return this===t},pX(w1t,"InteractiveExternalPortPositioner/lambda$5$Type",1539),dIt(77,22,{3:1,35:1,22:1,77:1,234:1},JT),xVt.Kf=function(){switch(this.g){case 15:return new ga;case 22:return new pa;case 47:return new va;case 28:case 35:return new nr;case 32:return new Ye;case 42:return new tn;case 1:return new en;case 41:return new nn;case 56:return new eg((Eit(),$se));case 0:return new eg((Eit(),Use));case 2:return new rn;case 54:return new an;case 33:return new ln;case 51:return new vn;case 55:return new En;case 13:return new Tn;case 38:return new _n;case 44:return new Sn;case 40:return new Mn;case 9:return new Wu;case 49:return new oF;case 37:return new Nn;case 43:return new Un;case 27:return new $n;case 30:return new Hn;case 3:return new jn;case 18:return new Xn;case 29:return new Vn;case 5:return new qu;case 50:return new Gn;case 34:return new Yu;case 36:return new rr;case 52:return new Xu;case 11:return new ar;case 7:return new Zu;case 39:return new or;case 45:return new sr;case 16:return new cr;case 10:return new lr;case 48:return new hr;case 21:return new fr;case 23:return new My((srt(),Sve));case 8:return new Ar;case 12:return new pr;case 4:return new mr;case 19:return new rh;case 17:return new Br;case 53:return new _r;case 6:return new $r;case 25:return new iv;case 46:return new Dr;case 31:return new OP;case 14:return new Wr;case 26:return new Ta;case 20:return new ti;case 24:return new My((srt(),Lve));default:throw Um(new Py(x1t+(null!=this.f?this.f:""+this.g)))}};var Yce,Jce,Zce,tle,ele,nle,rle,ile,ale=Unt(w1t,E1t,77,zte,kDt,JU);dIt(1540,1,ZZt,Xn),xVt.pf=function(t,e){Yzt(Q$(t,37),e)},pX(w1t,"InvertedPortProcessor",1540),dIt(1541,1,ZZt,Vn),xVt.pf=function(t,e){MRt(Q$(t,37),e)},pX(w1t,"LabelAndNodeSizeProcessor",1541),dIt(1542,1,FWt,Wn),xVt.Mb=function(t){return Q$(t,10).k==(oTt(),Tse)},pX(w1t,"LabelAndNodeSizeProcessor/lambda$0$Type",1542),dIt(1543,1,FWt,qn),xVt.Mb=function(t){return Q$(t,10).k==(oTt(),Cse)},pX(w1t,"LabelAndNodeSizeProcessor/lambda$1$Type",1543),dIt(1544,1,hWt,NQ),xVt.td=function(t){PE(this.b,this.a,this.c,Q$(t,10))},xVt.a=!1,xVt.c=!1,pX(w1t,"LabelAndNodeSizeProcessor/lambda$2$Type",1544),dIt(1545,1,ZZt,qu),xVt.pf=function(t,e){uzt(Q$(t,37),e)},pX(w1t,"LabelDummyInserter",1545),dIt(1546,1,HYt,Yn),xVt.Lb=function(t){return HS(bEt(Q$(t,70),($Xt(),Wge)))===HS((Net(),jBe))},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return HS(bEt(Q$(t,70),($Xt(),Wge)))===HS((Net(),jBe))},pX(w1t,"LabelDummyInserter/1",1546),dIt(1547,1,ZZt,Gn),xVt.pf=function(t,e){Tjt(Q$(t,37),e)},pX(w1t,"LabelDummyRemover",1547),dIt(1548,1,FWt,Jn),xVt.Mb=function(t){return $y(kN(bEt(Q$(t,70),($Xt(),Vge))))},pX(w1t,"LabelDummyRemover/lambda$0$Type",1548),dIt(1359,1,ZZt,Yu),xVt.pf=function(t,e){CKt(this,Q$(t,37),e)},xVt.a=null,pX(w1t,"LabelDummySwitcher",1359),dIt(286,1,{286:1},iRt),xVt.c=0,xVt.d=null,xVt.f=0,pX(w1t,"LabelDummySwitcher/LabelDummyInfo",286),dIt(1360,1,{},Zn),xVt.Kb=function(t){return _it(),new Fj(null,new f1(Q$(t,29).a,16))},pX(w1t,"LabelDummySwitcher/lambda$0$Type",1360),dIt(1361,1,FWt,tr),xVt.Mb=function(t){return _it(),Q$(t,10).k==(oTt(),xse)},pX(w1t,"LabelDummySwitcher/lambda$1$Type",1361),dIt(1362,1,{},cg),xVt.Kb=function(t){return zN(this.a,Q$(t,10))},pX(w1t,"LabelDummySwitcher/lambda$2$Type",1362),dIt(1363,1,hWt,lg),xVt.td=function(t){WX(this.a,Q$(t,286))},pX(w1t,"LabelDummySwitcher/lambda$3$Type",1363),dIt(1364,1,xYt,er),xVt.ue=function(t,e){return Iz(Q$(t,286),Q$(e,286))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(w1t,"LabelDummySwitcher/lambda$4$Type",1364),dIt(791,1,ZZt,nr),xVt.pf=function(t,e){W6(Q$(t,37),e)},pX(w1t,"LabelManagementProcessor",791),dIt(1549,1,ZZt,rr),xVt.pf=function(t,e){OFt(Q$(t,37),e)},pX(w1t,"LabelSideSelector",1549),dIt(1550,1,FWt,ir),xVt.Mb=function(t){return $y(kN(bEt(Q$(t,70),($Xt(),Vge))))},pX(w1t,"LabelSideSelector/lambda$0$Type",1550),dIt(1558,1,ZZt,ar),xVt.pf=function(t,e){k$t(Q$(t,37),e)},pX(w1t,"LayerConstraintPostprocessor",1558),dIt(1559,1,ZZt,Zu),xVt.pf=function(t,e){rMt(Q$(t,37),e)},pX(w1t,"LayerConstraintPreprocessor",1559),dIt(360,22,{3:1,35:1,22:1,360:1},ZT);var ole,sle,cle,lle,ule,hle,fle,dle,Ale,gle=Unt(w1t,"LayerConstraintPreprocessor/HiddenNodeConnections",360,zte,t3,jQ);dIt(1560,1,ZZt,or),xVt.pf=function(t,e){kjt(Q$(t,37),e)},pX(w1t,"LayerSizeAndGraphHeightCalculator",1560),dIt(1561,1,ZZt,sr),xVt.pf=function(t,e){LOt(Q$(t,37),e)},pX(w1t,"LongEdgeJoiner",1561),dIt(1562,1,ZZt,cr),xVt.pf=function(t,e){XHt(Q$(t,37),e)},pX(w1t,"LongEdgeSplitter",1562),dIt(1563,1,ZZt,lr),xVt.pf=function(t,e){TKt(this,Q$(t,37),e)},xVt.d=0,xVt.e=0,xVt.i=0,xVt.j=0,xVt.k=0,xVt.n=0,pX(w1t,"NodePromotion",1563),dIt(1564,1,{},ur),xVt.Kb=function(t){return Q$(t,46),cD(),!0},xVt.Fb=function(t){return this===t},pX(w1t,"NodePromotion/lambda$0$Type",1564),dIt(1565,1,{},og),xVt.Kb=function(t){return iW(this.a,Q$(t,46))},xVt.Fb=function(t){return this===t},xVt.a=0,pX(w1t,"NodePromotion/lambda$1$Type",1565),dIt(1566,1,{},sg),xVt.Kb=function(t){return aW(this.a,Q$(t,46))},xVt.Fb=function(t){return this===t},xVt.a=0,pX(w1t,"NodePromotion/lambda$2$Type",1566),dIt(1567,1,ZZt,hr),xVt.pf=function(t,e){GGt(Q$(t,37),e)},pX(w1t,"NorthSouthPortPostprocessor",1567),dIt(1568,1,ZZt,fr),xVt.pf=function(t,e){xGt(Q$(t,37),e)},pX(w1t,"NorthSouthPortPreprocessor",1568),dIt(1569,1,xYt,dr),xVt.ue=function(t,e){return Jot(Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(w1t,"NorthSouthPortPreprocessor/lambda$0$Type",1569),dIt(1570,1,ZZt,Ar),xVt.pf=function(t,e){IQt(Q$(t,37),e)},pX(w1t,"PartitionMidprocessor",1570),dIt(1571,1,FWt,gr),xVt.Mb=function(t){return IF(Q$(t,10),($Xt(),Gpe))},pX(w1t,"PartitionMidprocessor/lambda$0$Type",1571),dIt(1572,1,hWt,ug),xVt.td=function(t){Lq(this.a,Q$(t,10))},pX(w1t,"PartitionMidprocessor/lambda$1$Type",1572),dIt(1573,1,ZZt,pr),xVt.pf=function(t,e){dDt(Q$(t,37),e)},pX(w1t,"PartitionPostprocessor",1573),dIt(1574,1,ZZt,mr),xVt.pf=function(t,e){OLt(Q$(t,37),e)},pX(w1t,"PartitionPreprocessor",1574),dIt(1575,1,FWt,br),xVt.Mb=function(t){return IF(Q$(t,10),($Xt(),Gpe))},pX(w1t,"PartitionPreprocessor/lambda$0$Type",1575),dIt(1576,1,{},vr),xVt.Kb=function(t){return new Fj(null,new jG(new oz(YO(hdt(Q$(t,10)).a.Kc(),new u))))},pX(w1t,"PartitionPreprocessor/lambda$1$Type",1576),dIt(1577,1,FWt,yr),xVt.Mb=function(t){return Mpt(Q$(t,17))},pX(w1t,"PartitionPreprocessor/lambda$2$Type",1577),dIt(1578,1,hWt,wr),xVt.td=function(t){Nst(Q$(t,17))},pX(w1t,"PartitionPreprocessor/lambda$3$Type",1578),dIt(1579,1,ZZt,rh),xVt.pf=function(t,e){oQt(Q$(t,37),e)},pX(w1t,"PortListSorter",1579),dIt(1580,1,{},kr),xVt.Kb=function(t){return Klt(),Q$(t,11).e},pX(w1t,"PortListSorter/lambda$0$Type",1580),dIt(1581,1,{},Cr),xVt.Kb=function(t){return Klt(),Q$(t,11).g},pX(w1t,"PortListSorter/lambda$1$Type",1581),dIt(1582,1,xYt,xr),xVt.ue=function(t,e){return k4(Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(w1t,"PortListSorter/lambda$2$Type",1582),dIt(1583,1,xYt,Er),xVt.ue=function(t,e){return Syt(Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(w1t,"PortListSorter/lambda$3$Type",1583),dIt(1584,1,xYt,Tr),xVt.ue=function(t,e){return ZQt(Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(w1t,"PortListSorter/lambda$4$Type",1584),dIt(1585,1,ZZt,Br),xVt.pf=function(t,e){XIt(Q$(t,37),e)},pX(w1t,"PortSideProcessor",1585),dIt(1586,1,ZZt,_r),xVt.pf=function(t,e){_Pt(Q$(t,37),e)},pX(w1t,"ReversedEdgeRestorer",1586),dIt(1591,1,ZZt,iv),xVt.pf=function(t,e){qvt(this,Q$(t,37),e)},pX(w1t,"SelfLoopPortRestorer",1591),dIt(1592,1,{},Sr),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,29).a,16))},pX(w1t,"SelfLoopPortRestorer/lambda$0$Type",1592),dIt(1593,1,FWt,Lr),xVt.Mb=function(t){return Q$(t,10).k==(oTt(),Tse)},pX(w1t,"SelfLoopPortRestorer/lambda$1$Type",1593),dIt(1594,1,FWt,Ir),xVt.Mb=function(t){return IF(Q$(t,10),(lVt(),_fe))},pX(w1t,"SelfLoopPortRestorer/lambda$2$Type",1594),dIt(1595,1,{},Mr),xVt.Kb=function(t){return Q$(bEt(Q$(t,10),(lVt(),_fe)),403)},pX(w1t,"SelfLoopPortRestorer/lambda$3$Type",1595),dIt(1596,1,hWt,hg),xVt.td=function(t){ETt(this.a,Q$(t,403))},pX(w1t,"SelfLoopPortRestorer/lambda$4$Type",1596),dIt(794,1,hWt,Or),xVt.td=function(t){ZTt(Q$(t,101))},pX(w1t,"SelfLoopPortRestorer/lambda$5$Type",794),dIt(1597,1,ZZt,Dr),xVt.pf=function(t,e){Mmt(Q$(t,37),e)},pX(w1t,"SelfLoopPostProcessor",1597),dIt(1598,1,{},Fr),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,29).a,16))},pX(w1t,"SelfLoopPostProcessor/lambda$0$Type",1598),dIt(1599,1,FWt,Nr),xVt.Mb=function(t){return Q$(t,10).k==(oTt(),Tse)},pX(w1t,"SelfLoopPostProcessor/lambda$1$Type",1599),dIt(1600,1,FWt,Pr),xVt.Mb=function(t){return IF(Q$(t,10),(lVt(),_fe))},pX(w1t,"SelfLoopPostProcessor/lambda$2$Type",1600),dIt(1601,1,hWt,Rr),xVt.td=function(t){Mkt(Q$(t,10))},pX(w1t,"SelfLoopPostProcessor/lambda$3$Type",1601),dIt(1602,1,{},Qr),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,101).f,1))},pX(w1t,"SelfLoopPostProcessor/lambda$4$Type",1602),dIt(1603,1,hWt,fg),xVt.td=function(t){i3(this.a,Q$(t,409))},pX(w1t,"SelfLoopPostProcessor/lambda$5$Type",1603),dIt(1604,1,FWt,Ur),xVt.Mb=function(t){return!!Q$(t,101).i},pX(w1t,"SelfLoopPostProcessor/lambda$6$Type",1604),dIt(1605,1,hWt,dg),xVt.td=function(t){ky(this.a,Q$(t,101))},pX(w1t,"SelfLoopPostProcessor/lambda$7$Type",1605),dIt(1587,1,ZZt,$r),xVt.pf=function(t,e){JMt(Q$(t,37),e)},pX(w1t,"SelfLoopPreProcessor",1587),dIt(1588,1,{},Hr),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,101).f,1))},pX(w1t,"SelfLoopPreProcessor/lambda$0$Type",1588),dIt(1589,1,{},jr),xVt.Kb=function(t){return Q$(t,409).a},pX(w1t,"SelfLoopPreProcessor/lambda$1$Type",1589),dIt(1590,1,hWt,Kr),xVt.td=function(t){$M(Q$(t,17))},pX(w1t,"SelfLoopPreProcessor/lambda$2$Type",1590),dIt(1606,1,ZZt,OP),xVt.pf=function(t,e){cTt(this,Q$(t,37),e)},pX(w1t,"SelfLoopRouter",1606),dIt(1607,1,{},zr),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,29).a,16))},pX(w1t,"SelfLoopRouter/lambda$0$Type",1607),dIt(1608,1,FWt,Gr),xVt.Mb=function(t){return Q$(t,10).k==(oTt(),Tse)},pX(w1t,"SelfLoopRouter/lambda$1$Type",1608),dIt(1609,1,FWt,Xr),xVt.Mb=function(t){return IF(Q$(t,10),(lVt(),_fe))},pX(w1t,"SelfLoopRouter/lambda$2$Type",1609),dIt(1610,1,{},Vr),xVt.Kb=function(t){return Q$(bEt(Q$(t,10),(lVt(),_fe)),403)},pX(w1t,"SelfLoopRouter/lambda$3$Type",1610),dIt(1611,1,hWt,tB),xVt.td=function(t){VW(this.a,this.b,Q$(t,403))},pX(w1t,"SelfLoopRouter/lambda$4$Type",1611),dIt(1612,1,ZZt,Wr),xVt.pf=function(t,e){uFt(Q$(t,37),e)},pX(w1t,"SemiInteractiveCrossMinProcessor",1612),dIt(1613,1,FWt,qr),xVt.Mb=function(t){return Q$(t,10).k==(oTt(),Tse)},pX(w1t,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1613),dIt(1614,1,FWt,Yr),xVt.Mb=function(t){return Hj(Q$(t,10))._b(($Xt(),sme))},pX(w1t,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1614),dIt(1615,1,xYt,Jr),xVt.ue=function(t,e){return Ait(Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(w1t,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1615),dIt(1616,1,{},Zr),xVt.Ce=function(t,e){return zq(Q$(t,10),Q$(e,10))},pX(w1t,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1616),dIt(1618,1,ZZt,ti),xVt.pf=function(t,e){x$t(Q$(t,37),e)},pX(w1t,"SortByInputModelProcessor",1618),dIt(1619,1,FWt,ei),xVt.Mb=function(t){return 0!=Q$(t,11).g.c.length},pX(w1t,"SortByInputModelProcessor/lambda$0$Type",1619),dIt(1620,1,hWt,Ag),xVt.td=function(t){uBt(this.a,Q$(t,11))},pX(w1t,"SortByInputModelProcessor/lambda$1$Type",1620),dIt(1693,803,{},git),xVt.Me=function(t){var e,n,r,i;switch(this.c=t,this.a.g){case 2:e=new Mm,qx(SW(new Fj(null,new f1(this.c.a.b,16)),new gi),new aB(this,e)),p_t(this,new ii),Set(e,new ai),e.c=O8(Lte,$Vt,1,0,5,1),qx(SW(new Fj(null,new f1(this.c.a.b,16)),new oi),new pg(e)),p_t(this,new si),Set(e,new ci),e.c=O8(Lte,$Vt,1,0,5,1),n=yM(nat(IW(new Fj(null,new f1(this.c.a.b,16)),new mg(this))),new li),qx(new Fj(null,new f1(this.c.a.a,16)),new nB(n,e)),p_t(this,new hi),Set(e,new ni),e.c=O8(Lte,$Vt,1,0,5,1);break;case 3:r=new Mm,p_t(this,new ri),i=yM(nat(IW(new Fj(null,new f1(this.c.a.b,16)),new gg(this))),new ui),qx(SW(new Fj(null,new f1(this.c.a.b,16)),new fi),new iB(i,r)),p_t(this,new di),Set(r,new Ai),r.c=O8(Lte,$Vt,1,0,5,1);break;default:throw Um(new vb)}},xVt.b=0,pX(L1t,"EdgeAwareScanlineConstraintCalculation",1693),dIt(1694,1,HYt,ri),xVt.Lb=function(t){return rO(Q$(t,57).g,145)},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return rO(Q$(t,57).g,145)},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1694),dIt(1695,1,{},gg),xVt.Fe=function(t){return j_t(this.a,Q$(t,57))},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1695),dIt(1703,1,NWt,eB),xVt.Vd=function(){Qwt(this.a,this.b,-1)},xVt.b=0,pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1703),dIt(1705,1,HYt,ii),xVt.Lb=function(t){return rO(Q$(t,57).g,145)},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return rO(Q$(t,57).g,145)},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1705),dIt(1706,1,hWt,ai),xVt.td=function(t){Q$(t,365).Vd()},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1706),dIt(1707,1,FWt,oi),xVt.Mb=function(t){return rO(Q$(t,57).g,10)},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1707),dIt(1709,1,hWt,pg),xVt.td=function(t){kdt(this.a,Q$(t,57))},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1709),dIt(1708,1,NWt,uB),xVt.Vd=function(){Qwt(this.b,this.a,-1)},xVt.a=0,pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1708),dIt(1710,1,HYt,si),xVt.Lb=function(t){return rO(Q$(t,57).g,10)},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return rO(Q$(t,57).g,10)},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1710),dIt(1711,1,hWt,ci),xVt.td=function(t){Q$(t,365).Vd()},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1711),dIt(1712,1,{},mg),xVt.Fe=function(t){return K_t(this.a,Q$(t,57))},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1712),dIt(1713,1,{},li),xVt.De=function(){return 0},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1713),dIt(1696,1,{},ui),xVt.De=function(){return 0},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1696),dIt(1715,1,hWt,nB),xVt.td=function(t){UK(this.a,this.b,Q$(t,307))},xVt.a=0,pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1715),dIt(1714,1,NWt,rB),xVt.Vd=function(){VIt(this.a,this.b,-1)},xVt.b=0,pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1714),dIt(1716,1,HYt,hi),xVt.Lb=function(t){return Q$(t,57),!0},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return Q$(t,57),!0},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1716),dIt(1717,1,hWt,ni),xVt.td=function(t){Q$(t,365).Vd()},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1717),dIt(1697,1,FWt,fi),xVt.Mb=function(t){return rO(Q$(t,57).g,10)},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1697),dIt(1699,1,hWt,iB),xVt.td=function(t){$K(this.a,this.b,Q$(t,57))},xVt.a=0,pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1699),dIt(1698,1,NWt,hB),xVt.Vd=function(){Qwt(this.b,this.a,-1)},xVt.a=0,pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1698),dIt(1700,1,HYt,di),xVt.Lb=function(t){return Q$(t,57),!0},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return Q$(t,57),!0},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1700),dIt(1701,1,hWt,Ai),xVt.td=function(t){Q$(t,365).Vd()},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1701),dIt(1702,1,FWt,gi),xVt.Mb=function(t){return rO(Q$(t,57).g,145)},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1702),dIt(1704,1,hWt,aB),xVt.td=function(t){Cet(this.a,this.b,Q$(t,57))},pX(L1t,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1704),dIt(1521,1,ZZt,oF),xVt.pf=function(t,e){ijt(this,Q$(t,37),e)},pX(L1t,"HorizontalGraphCompactor",1521),dIt(1522,1,{},bg),xVt.Oe=function(t,e){var n,r;return Y9(t,e)?0:(n=l2(t),r=l2(e),n&&n.k==(oTt(),Cse)||r&&r.k==(oTt(),Cse)?0:KD(Q$(bEt(this.a.a,(lVt(),Sfe)),304),n?n.k:(oTt(),Ese),r?r.k:(oTt(),Ese)))},xVt.Pe=function(t,e){var n,r;return Y9(t,e)?1:(n=l2(t),r=l2(e),zD(Q$(bEt(this.a.a,(lVt(),Sfe)),304),n?n.k:(oTt(),Ese),r?r.k:(oTt(),Ese)))},pX(L1t,"HorizontalGraphCompactor/1",1522),dIt(1523,1,{},pi),xVt.Ne=function(t,e){return CE(),0==t.a.i},pX(L1t,"HorizontalGraphCompactor/lambda$0$Type",1523),dIt(1524,1,{},vg),xVt.Ne=function(t,e){return Pq(this.a,t,e)},pX(L1t,"HorizontalGraphCompactor/lambda$1$Type",1524),dIt(1664,1,{},B9),pX(L1t,"LGraphToCGraphTransformer",1664),dIt(1672,1,FWt,mi),xVt.Mb=function(t){return null!=t},pX(L1t,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1672),dIt(1665,1,{},bi),xVt.Kb=function(t){return HQ(),Udt(bEt(Q$(Q$(t,57).g,10),(lVt(),dfe)))},pX(L1t,"LGraphToCGraphTransformer/lambda$0$Type",1665),dIt(1666,1,{},vi),xVt.Kb=function(t){return HQ(),bht(Q$(Q$(t,57).g,145))},pX(L1t,"LGraphToCGraphTransformer/lambda$1$Type",1666),dIt(1675,1,FWt,yi),xVt.Mb=function(t){return HQ(),rO(Q$(t,57).g,10)},pX(L1t,"LGraphToCGraphTransformer/lambda$10$Type",1675),dIt(1676,1,hWt,wi),xVt.td=function(t){Nq(Q$(t,57))},pX(L1t,"LGraphToCGraphTransformer/lambda$11$Type",1676),dIt(1677,1,FWt,ki),xVt.Mb=function(t){return HQ(),rO(Q$(t,57).g,145)},pX(L1t,"LGraphToCGraphTransformer/lambda$12$Type",1677),dIt(1681,1,hWt,Ci),xVt.td=function(t){mht(Q$(t,57))},pX(L1t,"LGraphToCGraphTransformer/lambda$13$Type",1681),dIt(1678,1,hWt,yg),xVt.td=function(t){aI(this.a,Q$(t,8))},xVt.a=0,pX(L1t,"LGraphToCGraphTransformer/lambda$14$Type",1678),dIt(1679,1,hWt,wg),xVt.td=function(t){sI(this.a,Q$(t,110))},xVt.a=0,pX(L1t,"LGraphToCGraphTransformer/lambda$15$Type",1679),dIt(1680,1,hWt,kg),xVt.td=function(t){oI(this.a,Q$(t,8))},xVt.a=0,pX(L1t,"LGraphToCGraphTransformer/lambda$16$Type",1680),dIt(1682,1,{},xi),xVt.Kb=function(t){return HQ(),new Fj(null,new jG(new oz(YO(hdt(Q$(t,10)).a.Kc(),new u))))},pX(L1t,"LGraphToCGraphTransformer/lambda$17$Type",1682),dIt(1683,1,FWt,Ei),xVt.Mb=function(t){return HQ(),h5(Q$(t,17))},pX(L1t,"LGraphToCGraphTransformer/lambda$18$Type",1683),dIt(1684,1,hWt,Cg),xVt.td=function(t){xtt(this.a,Q$(t,17))},pX(L1t,"LGraphToCGraphTransformer/lambda$19$Type",1684),dIt(1668,1,hWt,xg),xVt.td=function(t){u0(this.a,Q$(t,145))},pX(L1t,"LGraphToCGraphTransformer/lambda$2$Type",1668),dIt(1685,1,{},Ti),xVt.Kb=function(t){return HQ(),new Fj(null,new f1(Q$(t,29).a,16))},pX(L1t,"LGraphToCGraphTransformer/lambda$20$Type",1685),dIt(1686,1,{},Bi),xVt.Kb=function(t){return HQ(),new Fj(null,new jG(new oz(YO(hdt(Q$(t,10)).a.Kc(),new u))))},pX(L1t,"LGraphToCGraphTransformer/lambda$21$Type",1686),dIt(1687,1,{},_i),xVt.Kb=function(t){return HQ(),Q$(bEt(Q$(t,17),(lVt(),Mfe)),15)},pX(L1t,"LGraphToCGraphTransformer/lambda$22$Type",1687),dIt(1688,1,FWt,Si),xVt.Mb=function(t){return ZD(Q$(t,15))},pX(L1t,"LGraphToCGraphTransformer/lambda$23$Type",1688),dIt(1689,1,hWt,Eg),xVt.td=function(t){T_t(this.a,Q$(t,15))},pX(L1t,"LGraphToCGraphTransformer/lambda$24$Type",1689),dIt(1667,1,hWt,oB),xVt.td=function(t){U3(this.a,this.b,Q$(t,145))},pX(L1t,"LGraphToCGraphTransformer/lambda$3$Type",1667),dIt(1669,1,{},Li),xVt.Kb=function(t){return HQ(),new Fj(null,new f1(Q$(t,29).a,16))},pX(L1t,"LGraphToCGraphTransformer/lambda$4$Type",1669),dIt(1670,1,{},Ii),xVt.Kb=function(t){return HQ(),new Fj(null,new jG(new oz(YO(hdt(Q$(t,10)).a.Kc(),new u))))},pX(L1t,"LGraphToCGraphTransformer/lambda$5$Type",1670),dIt(1671,1,{},Mi),xVt.Kb=function(t){return HQ(),Q$(bEt(Q$(t,17),(lVt(),Mfe)),15)},pX(L1t,"LGraphToCGraphTransformer/lambda$6$Type",1671),dIt(1673,1,hWt,Tg),xVt.td=function(t){PSt(this.a,Q$(t,15))},pX(L1t,"LGraphToCGraphTransformer/lambda$8$Type",1673),dIt(1674,1,hWt,sB),xVt.td=function(t){OM(this.a,this.b,Q$(t,145))},pX(L1t,"LGraphToCGraphTransformer/lambda$9$Type",1674),dIt(1663,1,{},Oi),xVt.Le=function(t){var e,n,r,i,a;for(this.a=t,this.d=new Rb,this.c=O8($re,$Vt,121,this.a.a.a.c.length,0,1),this.b=0,n=new Gd(this.a.a.a);n.a<n.c.c.length;)(e=Q$(J1(n),307)).d=this.b,a=SD(oE(new $b,e),this.d),this.c[this.b]=a,++this.b;for(YKt(this),LGt(this),JOt(this),XRt(QQ(this.d),new zv),i=new Gd(this.a.a.b);i.a<i.c.c.length;)(r=Q$(J1(i),57)).d.c=this.c[r.a.d].e+r.b.a},xVt.b=0,pX(L1t,"NetworkSimplexCompaction",1663),dIt(145,1,{35:1,145:1},T$t),xVt.wd=function(t){return Itt(this,Q$(t,145))},xVt.Ib=function(){return bht(this)},pX(L1t,"VerticalSegment",145),dIt(827,1,{},KCt),xVt.c=0,xVt.e=0,xVt.i=0,pX(I1t,"BetweenLayerEdgeTwoNodeCrossingsCounter",827),dIt(663,1,{663:1},yat),xVt.Ib=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},xVt.b=0,xVt.c=0,xVt.f=0,pX(I1t,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",663),dIt(287,1,{35:1,287:1},HF),xVt.wd=function(t){return ij(this,Q$(t,287))},xVt.Ib=function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},xVt.a=0,xVt.b=0,xVt.c=0,pX(I1t,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",287),dIt(1929,1,{},JTt),xVt.b=0,xVt.e=!1,pX(I1t,"CrossingMatrixFiller",1929);var ple,mle,ble,vle,yle=hj(M1t,"IInitializable");dIt(1804,1,O1t,pB),xVt.Nf=function(t,e,n,r,i,a){},xVt.Pf=function(t,e,n){},xVt.Lf=function(){return this.c!=(srt(),Sve)},xVt.Mf=function(){this.e=O8(_De,lqt,25,this.d,15,1)},xVt.Of=function(t,e){e[t][0].c.p=t},xVt.Qf=function(t,e,n,r){++this.d},xVt.Rf=function(){return!0},xVt.Sf=function(t,e,n,r){return qut(this,t,e,n),Y4(this,e)},xVt.Tf=function(t,e){var n;return qut(this,t,n=ck(e,t.length),e),fct(this,n)},xVt.d=0,pX(I1t,"GreedySwitchHeuristic",1804),dIt(1930,1,{},uK),xVt.b=0,xVt.d=0,pX(I1t,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",1930),dIt(1917,1,{},oPt),xVt.a=!1,pX(I1t,"SwitchDecider",1917),dIt(101,1,{101:1},pBt),xVt.a=null,xVt.c=null,xVt.i=null,pX(D1t,"SelfHyperLoop",101),dIt(1916,1,{},emt),xVt.c=0,xVt.e=0,pX(D1t,"SelfHyperLoopLabels",1916),dIt(411,22,{3:1,35:1,22:1,411:1},mB);var wle,kle,Cle,xle,Ele,Tle,Ble=Unt(D1t,"SelfHyperLoopLabels/Alignment",411,zte,n3,KQ);dIt(409,1,{409:1},y6),pX(D1t,"SelfLoopEdge",409),dIt(403,1,{403:1},Spt),xVt.a=!1,pX(D1t,"SelfLoopHolder",403),dIt(1724,1,FWt,ji),xVt.Mb=function(t){return h5(Q$(t,17))},pX(D1t,"SelfLoopHolder/lambda$0$Type",1724),dIt(113,1,{113:1},nmt),xVt.a=!1,xVt.c=!1,pX(D1t,"SelfLoopPort",113),dIt(1792,1,FWt,Ki),xVt.Mb=function(t){return h5(Q$(t,17))},pX(D1t,"SelfLoopPort/lambda$0$Type",1792),dIt(363,22,{3:1,35:1,22:1,363:1},bB);var _le,Sle,Lle,Ile,Mle,Ole,Dle,Fle,Nle=Unt(D1t,"SelfLoopType",363,zte,O5,WQ);dIt(1732,1,{},ih),pX(F1t,"PortRestorer",1732),dIt(361,22,{3:1,35:1,22:1,361:1},vB);var Ple,Rle,Qle,Ule,$le,Hle,jle,Kle,zle,Gle=Unt(F1t,"PortRestorer/PortSideArea",361,zte,E1,qQ);dIt(1733,1,{},Vi),xVt.Kb=function(t){return REt(),Q$(t,15).Oc()},pX(F1t,"PortRestorer/lambda$0$Type",1733),dIt(1734,1,hWt,Wi),xVt.td=function(t){REt(),Q$(t,113).c=!1},pX(F1t,"PortRestorer/lambda$1$Type",1734),dIt(1743,1,FWt,qi),xVt.Mb=function(t){return REt(),Q$(t,11).j==(yGt(),TSe)},pX(F1t,"PortRestorer/lambda$10$Type",1743),dIt(1744,1,{},Yi),xVt.Kb=function(t){return REt(),Q$(t,113).d},pX(F1t,"PortRestorer/lambda$11$Type",1744),dIt(1745,1,hWt,Bg),xVt.td=function(t){Mk(this.a,Q$(t,11))},pX(F1t,"PortRestorer/lambda$12$Type",1745),dIt(1735,1,hWt,_g),xVt.td=function(t){SF(this.a,Q$(t,101))},pX(F1t,"PortRestorer/lambda$2$Type",1735),dIt(1736,1,xYt,Ji),xVt.ue=function(t,e){return snt(Q$(t,113),Q$(e,113))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(F1t,"PortRestorer/lambda$3$Type",1736),dIt(1737,1,FWt,Zi),xVt.Mb=function(t){return REt(),Q$(t,113).c},pX(F1t,"PortRestorer/lambda$4$Type",1737),dIt(1738,1,FWt,Fi),xVt.Mb=function(t){return Lat(Q$(t,11))},pX(F1t,"PortRestorer/lambda$5$Type",1738),dIt(1739,1,FWt,Di),xVt.Mb=function(t){return REt(),Q$(t,11).j==(yGt(),sSe)},pX(F1t,"PortRestorer/lambda$6$Type",1739),dIt(1740,1,FWt,Ni),xVt.Mb=function(t){return REt(),Q$(t,11).j==(yGt(),oSe)},pX(F1t,"PortRestorer/lambda$7$Type",1740),dIt(1741,1,FWt,Pi),xVt.Mb=function(t){return r3(Q$(t,11))},pX(F1t,"PortRestorer/lambda$8$Type",1741),dIt(1742,1,FWt,Ri),xVt.Mb=function(t){return REt(),Q$(t,11).j==(yGt(),xSe)},pX(F1t,"PortRestorer/lambda$9$Type",1742),dIt(270,22,{3:1,35:1,22:1,270:1},GW);var Xle,Vle,Wle,qle,Yle,Jle,Zle,tue,eue=Unt(F1t,"PortSideAssigner/Target",270,zte,Qet,zQ);dIt(1725,1,{},Qi),xVt.Kb=function(t){return SW(new Fj(null,new f1(Q$(t,101).j,16)),new Xi)},pX(F1t,"PortSideAssigner/lambda$1$Type",1725),dIt(1726,1,{},Ui),xVt.Kb=function(t){return Q$(t,113).d},pX(F1t,"PortSideAssigner/lambda$2$Type",1726),dIt(1727,1,hWt,$i),xVt.td=function(t){H_t(Q$(t,11),(yGt(),sSe))},pX(F1t,"PortSideAssigner/lambda$3$Type",1727),dIt(1728,1,{},Hi),xVt.Kb=function(t){return Q$(t,113).d},pX(F1t,"PortSideAssigner/lambda$4$Type",1728),dIt(1729,1,hWt,Sg),xVt.td=function(t){Zm(this.a,Q$(t,11))},pX(F1t,"PortSideAssigner/lambda$5$Type",1729),dIt(1730,1,xYt,zi),xVt.ue=function(t,e){return CV(Q$(t,101),Q$(e,101))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(F1t,"PortSideAssigner/lambda$6$Type",1730),dIt(1731,1,xYt,Gi),xVt.ue=function(t,e){return oH(Q$(t,113),Q$(e,113))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(F1t,"PortSideAssigner/lambda$7$Type",1731),dIt(805,1,FWt,Xi),xVt.Mb=function(t){return Q$(t,113).c},pX(F1t,"PortSideAssigner/lambda$8$Type",805),dIt(2009,1,{}),pX(N1t,"AbstractSelfLoopRouter",2009),dIt(1750,1,xYt,ta),xVt.ue=function(t,e){return BR(Q$(t,101),Q$(e,101))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(N1t,fJt,1750),dIt(1751,1,xYt,ea),xVt.ue=function(t,e){return TR(Q$(t,101),Q$(e,101))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(N1t,dJt,1751),dIt(1793,2009,{},na),xVt.Uf=function(t,e,n){return n},pX(N1t,"OrthogonalSelfLoopRouter",1793),dIt(1795,1,hWt,fB),xVt.td=function(t){ppt(this.b,this.a,Q$(t,8))},pX(N1t,"OrthogonalSelfLoopRouter/lambda$0$Type",1795),dIt(1794,1793,{},ra),xVt.Uf=function(t,e,n){var r,i;return NF(n,0,KP(QM((r=t.c.d).n),r.a)),DH(n,KP(QM((i=t.d.d).n),i.a)),kQt(n)},pX(N1t,"PolylineSelfLoopRouter",1794),dIt(1746,1,{},Ju),xVt.a=null,pX(N1t,"RoutingDirector",1746),dIt(1747,1,xYt,ia),xVt.ue=function(t,e){return fH(Q$(t,113),Q$(e,113))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(N1t,"RoutingDirector/lambda$0$Type",1747),dIt(1748,1,{},aa),xVt.Kb=function(t){return xE(),Q$(t,101).j},pX(N1t,"RoutingDirector/lambda$1$Type",1748),dIt(1749,1,hWt,oa),xVt.td=function(t){xE(),Q$(t,15).ad(Vle)},pX(N1t,"RoutingDirector/lambda$2$Type",1749),dIt(1752,1,{},sa),pX(N1t,"RoutingSlotAssigner",1752),dIt(1753,1,FWt,Lg),xVt.Mb=function(t){return T_(this.a,Q$(t,101))},pX(N1t,"RoutingSlotAssigner/lambda$0$Type",1753),dIt(1754,1,xYt,Ig),xVt.ue=function(t,e){return Kj(this.a,Q$(t,101),Q$(e,101))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(N1t,"RoutingSlotAssigner/lambda$1$Type",1754),dIt(1796,1793,{},ca),xVt.Uf=function(t,e,n){var r,i,a,o;return r=Hy(CN(gmt(t.b.g.b,($Xt(),yme)))),ZMt(t,e,n,o=new KF(Tst(Hw(EEe,1),cWt,8,0,[(a=t.c.d,KP(new fI(a.n),a.a))])),r),DH(o,KP(new fI((i=t.d.d).n),i.a)),Qbt(new s$t(o))},pX(N1t,"SplineSelfLoopRouter",1796),dIt(578,1,xYt,jit,vH),xVt.ue=function(t,e){return uXt(this,Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(P1t,"ModelOrderNodeComparator",578),dIt(1755,1,FWt,la),xVt.Mb=function(t){return 0!=Q$(t,11).e.c.length},pX(P1t,"ModelOrderNodeComparator/lambda$0$Type",1755),dIt(1756,1,{},ua),xVt.Kb=function(t){return Q$(Oj(Q$(t,11).e,0),17).c},pX(P1t,"ModelOrderNodeComparator/lambda$1$Type",1756),dIt(1757,1,FWt,ha),xVt.Mb=function(t){return 0!=Q$(t,11).e.c.length},pX(P1t,"ModelOrderNodeComparator/lambda$2$Type",1757),dIt(1758,1,{},fa),xVt.Kb=function(t){return Q$(Oj(Q$(t,11).e,0),17).c},pX(P1t,"ModelOrderNodeComparator/lambda$3$Type",1758),dIt(1759,1,FWt,da),xVt.Mb=function(t){return 0!=Q$(t,11).e.c.length},pX(P1t,"ModelOrderNodeComparator/lambda$4$Type",1759),dIt(806,1,xYt,_9,gB),xVt.ue=function(t,e){return Mz(this,t,e)},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(P1t,"ModelOrderPortComparator",806),dIt(801,1,{},Aa),xVt.Vf=function(t,n){var r,i,a,o;for(a=TTt(n),r=new Mm,o=n.f/a,i=1;i<a;++i)G$(r,nft(dK(uot(e.Math.round(i*o)))));return r},xVt.Wf=function(){return!1},pX(R1t,"ARDCutIndexHeuristic",801),dIt(1479,1,ZZt,ga),xVt.pf=function(t,e){sRt(Q$(t,37),e)},pX(R1t,"BreakingPointInserter",1479),dIt(305,1,{305:1},p3),xVt.Ib=function(){var t;return(t=new Tw).a+="BPInfo[",t.a+="\n\tstart=",aL(t,this.i),t.a+="\n\tend=",aL(t,this.a),t.a+="\n\tnodeStartEdge=",aL(t,this.e),t.a+="\n\tstartEndEdge=",aL(t,this.j),t.a+="\n\toriginalEdge=",aL(t,this.f),t.a+="\n\tstartInLayerDummy=",aL(t,this.k),t.a+="\n\tstartInLayerEdge=",aL(t,this.n),t.a+="\n\tendInLayerDummy=",aL(t,this.b),t.a+="\n\tendInLayerEdge=",aL(t,this.c),t.a},pX(R1t,"BreakingPointInserter/BPInfo",305),dIt(652,1,{652:1},Ug),xVt.a=!1,xVt.b=0,xVt.c=0,pX(R1t,"BreakingPointInserter/Cut",652),dIt(1480,1,ZZt,pa),xVt.pf=function(t,e){bOt(Q$(t,37),e)},pX(R1t,"BreakingPointProcessor",1480),dIt(1481,1,FWt,ma),xVt.Mb=function(t){return qtt(Q$(t,10))},pX(R1t,"BreakingPointProcessor/0methodref$isEnd$Type",1481),dIt(1482,1,FWt,ba),xVt.Mb=function(t){return Ytt(Q$(t,10))},pX(R1t,"BreakingPointProcessor/1methodref$isStart$Type",1482),dIt(1483,1,ZZt,va),xVt.pf=function(t,e){rDt(this,Q$(t,37),e)},pX(R1t,"BreakingPointRemover",1483),dIt(1484,1,hWt,ya),xVt.td=function(t){Q$(t,128).k=!0},pX(R1t,"BreakingPointRemover/lambda$0$Type",1484),dIt(797,1,{},xIt),xVt.b=0,xVt.e=0,xVt.f=0,xVt.j=0,pX(R1t,"GraphStats",797),dIt(798,1,{},wa),xVt.Ce=function(t,n){return e.Math.max(Hy(CN(t)),Hy(CN(n)))},pX(R1t,"GraphStats/0methodref$max$Type",798),dIt(799,1,{},ka),xVt.Ce=function(t,n){return e.Math.max(Hy(CN(t)),Hy(CN(n)))},pX(R1t,"GraphStats/2methodref$max$Type",799),dIt(1660,1,{},Ca),xVt.Ce=function(t,e){return p$(CN(t),CN(e))},pX(R1t,"GraphStats/lambda$1$Type",1660),dIt(1661,1,{},Mg),xVt.Kb=function(t){return dmt(this.a,Q$(t,29))},pX(R1t,"GraphStats/lambda$2$Type",1661),dIt(1662,1,{},Og),xVt.Kb=function(t){return VOt(this.a,Q$(t,29))},pX(R1t,"GraphStats/lambda$6$Type",1662),dIt(800,1,{},xa),xVt.Vf=function(t,e){return Q$(bEt(t,($Xt(),Pme)),15)||(xq(),xq(),cne)},xVt.Wf=function(){return!1},pX(R1t,"ICutIndexCalculator/ManualCutIndexCalculator",800),dIt(802,1,{},Ea),xVt.Vf=function(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;for(null==n.n&&Fvt(n),w=n.n,null==n.d&&Fvt(n),l=n.d,(y=O8(MDe,Hqt,25,w.length,15,1))[0]=w[0],b=w[0],u=1;u<w.length;u++)y[u]=y[u-1]+w[u],b+=w[u];for(a=TTt(n)-1,s=Q$(bEt(t,($Xt(),Rme)),19).a,i=Pqt,r=new Mm,d=e.Math.max(0,a-s);d<=e.Math.min(n.f-1,a+s);d++){if(p=b/(d+1),m=0,h=1,o=new Mm,v=Pqt,f=0,c=0,g=l[0],0==d)v=b,null==n.g&&(n.g=Git(n,new ka)),c=Hy(n.g);else{for(;h<n.f;)y[h-1]-m>=p&&(G$(o,nft(h)),v=e.Math.max(v,y[h-1]-f),c+=g,m+=y[h-1]-m,f=y[h-1],g=l[h]),g=e.Math.max(g,l[h]),++h;c+=g}(A=e.Math.min(1/v,1/n.b/c))>i&&(i=A,r=o)}return r},xVt.Wf=function(){return!1},pX(R1t,"MSDCutIndexHeuristic",802),dIt(1617,1,ZZt,Ta),xVt.pf=function(t,e){f$t(Q$(t,37),e)},pX(R1t,"SingleEdgeGraphWrapper",1617),dIt(227,22,{3:1,35:1,22:1,227:1},yB);var nue,rue,iue,aue=Unt(Q1t,"CenterEdgeLabelPlacementStrategy",227,zte,Y8,GQ);dIt(422,22,{3:1,35:1,22:1,422:1},wB);var oue,sue,cue,lue,uue=Unt(Q1t,"ConstraintCalculationStrategy",422,zte,HY,XQ);dIt(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},kB),xVt.Kf=function(){return cSt(this)},xVt.Xf=function(){return cSt(this)};var hue,fue,due,Aue,gue=Unt(Q1t,"CrossingMinimizationStrategy",314,zte,k1,VQ);dIt(337,22,{3:1,35:1,22:1,337:1},CB);var pue,mue,bue,vue,yue,wue,kue=Unt(Q1t,"CuttingStrategy",337,zte,C1,YQ);dIt(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},xB),xVt.Kf=function(){return NIt(this)},xVt.Xf=function(){return NIt(this)};var Cue,xue,Eue,Tue=Unt(Q1t,"CycleBreakingStrategy",335,zte,I5,JQ);dIt(419,22,{3:1,35:1,22:1,419:1},EB);var Bue,_ue,Sue,Lue,Iue=Unt(Q1t,"DirectionCongruency",419,zte,$Y,ZQ);dIt(450,22,{3:1,35:1,22:1,450:1},TB);var Mue,Oue,Due,Fue,Nue,Pue,Rue,Que=Unt(Q1t,"EdgeConstraint",450,zte,x1,tU);dIt(276,22,{3:1,35:1,22:1,276:1},BB);var Uue,$ue,Hue,jue=Unt(Q1t,"EdgeLabelSideSelection",276,zte,e7,eU);dIt(479,22,{3:1,35:1,22:1,479:1},_B);var Kue,zue,Gue,Xue,Vue,Wue,que,Yue=Unt(Q1t,"EdgeStraighteningStrategy",479,zte,UY,nU);dIt(274,22,{3:1,35:1,22:1,274:1},SB);var Jue,Zue,the,ehe,nhe,rhe,ihe,ahe=Unt(Q1t,"FixedAlignment",274,zte,Z8,rU);dIt(275,22,{3:1,35:1,22:1,275:1},LB);var ohe,she,che,lhe,uhe,hhe,fhe,dhe,Ahe,ghe,phe,mhe=Unt(Q1t,"GraphCompactionStrategy",275,zte,J8,iU);dIt(256,22,{3:1,35:1,22:1,256:1},IB);var bhe,vhe,yhe,whe,khe=Unt(Q1t,"GraphProperties",256,zte,fat,aU);dIt(292,22,{3:1,35:1,22:1,292:1},MB);var Che,xhe,Ehe,The,Bhe=Unt(Q1t,"GreedySwitchType",292,zte,B1,oU);dIt(303,22,{3:1,35:1,22:1,303:1},OB);var _he,She,Lhe,Ihe=Unt(Q1t,"InLayerConstraint",303,zte,T1,sU);dIt(420,22,{3:1,35:1,22:1,420:1},DB);var Mhe,Ohe,Dhe,Fhe,Nhe,Phe,Rhe,Qhe,Uhe,$he,Hhe,jhe,Khe,zhe,Ghe,Xhe,Vhe,Whe,qhe,Yhe,Jhe,Zhe,tfe,efe,nfe,rfe,ife,afe,ofe,sfe,cfe,lfe,ufe,hfe,ffe,dfe,Afe,gfe,pfe,mfe,bfe,vfe,yfe,wfe,kfe,Cfe,xfe,Efe,Tfe,Bfe,_fe,Sfe,Lfe,Ife,Mfe,Ofe,Dfe,Ffe,Nfe,Pfe,Rfe,Qfe,Ufe,$fe,Hfe=Unt(Q1t,"InteractiveReferencePoint",420,zte,jY,cU);dIt(163,22,{3:1,35:1,22:1,163:1},QB);var jfe,Kfe,zfe,Gfe,Xfe,Vfe,Wfe,qfe,Yfe,Jfe,Zfe,tde,ede,nde,rde,ide,ade,ode,sde,cde,lde,ude,hde,fde,dde,Ade,gde,pde,mde,bde,vde,yde,wde,kde,Cde,xde,Ede,Tde,Bde,_de,Sde,Lde,Ide,Mde,Ode,Dde,Fde,Nde,Pde,Rde,Qde,Ude,$de,Hde,jde,Kde,zde,Gde,Xde,Vde,Wde,qde,Yde,Jde,Zde,tAe,eAe,nAe,rAe,iAe,aAe,oAe,sAe,cAe,lAe,uAe,hAe,fAe,dAe,AAe,gAe,pAe,mAe,bAe,vAe,yAe,wAe,kAe,CAe,xAe,EAe,TAe,BAe,_Ae,SAe,LAe,IAe,MAe,OAe,DAe,FAe,NAe,PAe,RAe,QAe,UAe,$Ae,HAe,jAe,KAe,zAe,GAe,XAe,VAe,WAe,qAe,YAe,JAe,ZAe,tge,ege,nge,rge,ige,age,oge,sge,cge,lge,uge,hge,fge,dge,Age,gge,pge,mge,bge,vge,yge,wge,kge,Cge,xge,Ege,Tge,Bge,_ge,Sge,Lge,Ige,Mge,Oge,Dge,Fge,Nge,Pge,Rge,Qge,Uge,$ge,Hge,jge,Kge,zge,Gge,Xge,Vge,Wge,qge,Yge,Jge,Zge,tpe,epe,npe,rpe,ipe,ape,ope,spe,cpe,lpe,upe,hpe,fpe,dpe,Ape,gpe,ppe,mpe,bpe,vpe,ype,wpe,kpe,Cpe,xpe,Epe,Tpe,Bpe,_pe,Spe,Lpe,Ipe,Mpe,Ope,Dpe,Fpe,Npe,Ppe,Rpe,Qpe,Upe,$pe,Hpe,jpe,Kpe,zpe,Gpe,Xpe,Vpe,Wpe,qpe,Ype,Jpe,Zpe,tme,eme,nme,rme,ime,ame,ome,sme,cme,lme,ume,hme,fme,dme,Ame,gme,pme,mme,bme,vme,yme,wme,kme,Cme,xme,Eme,Tme,Bme,_me,Sme,Lme,Ime,Mme,Ome,Dme,Fme,Nme,Pme,Rme,Qme,Ume,$me,Hme,jme,Kme,zme,Gme,Xme,Vme,Wme,qme,Yme,Jme,Zme,tbe,ebe=Unt(Q1t,"LayerConstraint",163,zte,D5,lU);dIt(848,1,WYt,sh),xVt.Qe=function(t){Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,z1t),""),"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."),Ede),(TBt(),AEe)),Iue),Zft((rmt(),cEe))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,G1t),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(cD(),!1)),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,X1t),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Vde),AEe),Hfe),Zft(cEe)))),i2(t,X1t,e0t,qde),i2(t,X1t,h0t,Wde),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,V1t),""),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,W1t),""),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(Ek(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,q1t),""),"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),fEe),yee),Zft(lEe)),Tst(Hw(Wee,1),cWt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,Y1t),""),"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."),OAe),AEe),jbe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,J1t),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),nft(7)),pEe),Lee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,Z1t),""),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,t0t),""),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,e0t),"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)."),Cde),AEe),Tue),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,n0t),u2t),"Node Layering Strategy"),"Strategy for node layering."),hAe),AEe),obe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,r0t),u2t),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),eAe),AEe),ebe),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,i0t),u2t),"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."),nft(-1)),pEe),Lee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,a0t),u2t),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),nft(-1)),pEe),Lee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,o0t),h2t),"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."),nft(4)),pEe),Lee),Zft(cEe)))),i2(t,o0t,n0t,iAe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,s0t),h2t),"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."),nft(2)),pEe),Lee),Zft(cEe)))),i2(t,s0t,n0t,oAe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,c0t),f2t),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),lAe),AEe),Dbe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,l0t),f2t),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),nft(0)),pEe),Lee),Zft(cEe)))),i2(t,l0t,c0t,null),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,u0t),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),nft(FVt)),pEe),Lee),Zft(cEe)))),i2(t,u0t,n0t,Jde),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,h0t),d2t),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),wde),AEe),gue),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,f0t),d2t),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,d0t),d2t),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),dEe),Tee),Zft(cEe)))),i2(t,d0t,A2t,gde),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,A0t),d2t),"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),fEe),yee),Zft(cEe)))),i2(t,A0t,h0t,vde),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,g0t),d2t),"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."),nft(-1)),pEe),Lee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,p0t),d2t),"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."),nft(-1)),pEe),Lee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,m0t),g2t),"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."),nft(40)),pEe),Lee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,b0t),g2t),"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."),fde),AEe),Bhe),Zft(cEe)))),i2(t,b0t,h0t,dde),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,v0t),"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."),cde),AEe),Bhe),Zft(cEe)))),i2(t,v0t,h0t,lde),i2(t,v0t,A2t,ude),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,y0t),p2t),"Node Placement Strategy"),"Strategy for node placement."),IAe),AEe),Sbe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,w0t),p2t),"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."),fEe),yee),Zft(cEe)))),i2(t,w0t,y0t,wAe),i2(t,w0t,y0t,kAe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,k0t),m2t),"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."),gAe),AEe),Yue),Zft(cEe)))),i2(t,k0t,y0t,pAe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,C0t),m2t),"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."),bAe),AEe),ahe),Zft(cEe)))),i2(t,C0t,y0t,vAe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,x0t),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),dEe),Tee),Zft(cEe)))),i2(t,x0t,y0t,xAe),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,E0t),"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."),AEe),vbe),Zft(sEe)))),i2(t,E0t,y0t,SAe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,T0t),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),BAe),AEe),vbe),Zft(cEe)))),i2(t,T0t,y0t,_Ae),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,B0t),b2t),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Ode),AEe),Jbe),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,_0t),b2t),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Fde),AEe),rve),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,S0t),"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."),Pde),AEe),cve),Zft(cEe)))),i2(t,S0t,v2t,Rde),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,L0t),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),dEe),Tee),Zft(cEe)))),i2(t,L0t,v2t,Ude),i2(t,L0t,S0t,$de),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,I0t),"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),dEe),Tee),Zft(cEe)))),i2(t,I0t,v2t,Ide),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,M0t),y2t),"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."),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,O0t),y2t),"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),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,D0t),y2t),"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),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,F0t),y2t),"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),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,N0t),w2t),"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."),nft(0)),pEe),Lee),Zft(aEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,P0t),w2t),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),nft(0)),pEe),Lee),Zft(aEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,R0t),w2t),"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."),nft(0)),pEe),Lee),Zft(aEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,Q0t),k2t),FJt),"Tries to further compact components (disconnected sub-graphs)."),!1),fEe),yee),Zft(cEe)))),i2(t,Q0t,yZt,!0),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,U0t),C2t),"Post Compaction Strategy"),x2t),Wfe),AEe),mhe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,$0t),C2t),"Post Compaction Constraint Calculation"),x2t),Xfe),AEe),uue),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,H0t),E2t),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,j0t),E2t),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),nft(16)),pEe),Lee),Zft(cEe)))),i2(t,j0t,H0t,!0),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,K0t),E2t),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),nft(5)),pEe),Lee),Zft(cEe)))),i2(t,K0t,H0t,!0),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,z0t),T2t),"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'."),hge),AEe),xve),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,G0t),T2t),"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),dEe),Tee),Zft(cEe)))),i2(t,G0t,z0t,KAe),i2(t,G0t,z0t,zAe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,X0t),T2t),"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),dEe),Tee),Zft(cEe)))),i2(t,X0t,z0t,XAe),i2(t,X0t,z0t,VAe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,V0t),B2t),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),ege),AEe),kue),Zft(cEe)))),i2(t,V0t,z0t,nge),i2(t,V0t,z0t,rge),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,W0t),B2t),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),mEe),Nte),Zft(cEe)))),i2(t,W0t,V0t,qAe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,q0t),"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."),JAe),pEe),Lee),Zft(cEe)))),i2(t,q0t,V0t,ZAe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,Y0t),_2t),"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."),pge),AEe),dve),Zft(cEe)))),i2(t,Y0t,z0t,mge),i2(t,Y0t,z0t,bge),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,J0t),_2t),"Valid Indices for Wrapping"),null),mEe),Nte),Zft(cEe)))),i2(t,J0t,z0t,dge),i2(t,J0t,z0t,Age),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,Z0t),S2t),"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),fEe),yee),Zft(cEe)))),i2(t,Z0t,z0t,sge),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,t2t),S2t),"Distance Penalty When Improving Cuts"),null),2),dEe),Tee),Zft(cEe)))),i2(t,t2t,z0t,age),i2(t,t2t,Z0t,!0),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,e2t),S2t),"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),fEe),yee),Zft(cEe)))),i2(t,e2t,z0t,lge),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,n2t),L2t),"Edge Label Side Selection"),"Method to decide on edge label sides."),Sde),AEe),jue),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,r2t),L2t),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Bde),AEe),aue),wK(cEe,Tst(Hw(yEe,1),IWt,175,0,[oEe]))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,i2t),I2t),"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."),ide),AEe),Rbe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,a2t),I2t),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),fEe),yee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,o2t),I2t),"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."),Yfe),AEe),mse),Zft(cEe)))),i2(t,o2t,yZt,null),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,s2t),I2t),"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."),ede),AEe),fbe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,c2t),I2t),"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),dEe),Tee),Zft(cEe)))),i2(t,c2t,i2t,null),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,l2t),I2t),"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),dEe),Tee),Zft(cEe)))),i2(t,l2t,i2t,null),mVt((new uh,t))},pX(Q1t,"LayeredMetaDataProvider",848),dIt(986,1,WYt,uh),xVt.Qe=function(t){mVt(t)},pX(Q1t,"LayeredOptions",986),dIt(987,1,{},_a),xVt.$e=function(){return new Kb},xVt._e=function(t){},pX(Q1t,"LayeredOptions/LayeredFactory",987),dIt(1372,1,{}),xVt.a=0,pX(v3t,"ElkSpacings/AbstractSpacingsBuilder",1372),dIt(779,1372,{},oAt),pX(Q1t,"LayeredSpacings/LayeredSpacingsBuilder",779),dIt(313,22,{3:1,35:1,22:1,313:1,246:1,234:1},FB),xVt.Kf=function(){return rOt(this)},xVt.Xf=function(){return rOt(this)};var nbe,rbe,ibe,abe,obe=Unt(Q1t,"LayeringStrategy",313,zte,t7,uU);dIt(378,22,{3:1,35:1,22:1,378:1},NB);var sbe,cbe,lbe,ube,hbe,fbe=Unt(Q1t,"LongEdgeOrderingStrategy",378,zte,w1,hU);dIt(197,22,{3:1,35:1,22:1,197:1},PB);var dbe,Abe,gbe,pbe,mbe,bbe,vbe=Unt(Q1t,"NodeFlexibility",197,zte,v3,fU);dIt(315,22,{3:1,35:1,22:1,315:1,246:1,234:1},RB),xVt.Kf=function(){return FIt(this)},xVt.Xf=function(){return FIt(this)};var ybe,wbe,kbe,Cbe,xbe,Ebe,Tbe,Bbe,_be,Sbe=Unt(Q1t,"NodePlacementStrategy",315,zte,L5,bU);dIt(260,22,{3:1,35:1,22:1,260:1},UB);var Lbe,Ibe,Mbe,Obe,Dbe=Unt(Q1t,"NodePromotionStrategy",260,zte,Uet,AU);dIt(339,22,{3:1,35:1,22:1,339:1},$B);var Fbe,Nbe,Pbe,Rbe=Unt(Q1t,"OrderingStrategy",339,zte,S1,gU);dIt(421,22,{3:1,35:1,22:1,421:1},HB);var Qbe,Ube,$be,Hbe,jbe=Unt(Q1t,"PortSortingStrategy",421,zte,KY,pU);dIt(452,22,{3:1,35:1,22:1,452:1},jB);var Kbe,zbe,Gbe,Xbe,Vbe=Unt(Q1t,"PortType",452,zte,_1,dU);dIt(375,22,{3:1,35:1,22:1,375:1},KB);var Wbe,qbe,Ybe,Jbe=Unt(Q1t,"SelfLoopDistributionStrategy",375,zte,L1,mU);dIt(376,22,{3:1,35:1,22:1,376:1},zB);var Zbe,tve,eve,nve,rve=Unt(Q1t,"SelfLoopOrderingStrategy",376,zte,QY,vU);dIt(304,1,{304:1},cKt),pX(Q1t,"Spacings",304),dIt(336,22,{3:1,35:1,22:1,336:1},GB);var ive,ave,ove,sve,cve=Unt(Q1t,"SplineRoutingMode",336,zte,M1,yU);dIt(338,22,{3:1,35:1,22:1,338:1},XB);var lve,uve,hve,fve,dve=Unt(Q1t,"ValidifyStrategy",338,zte,O1,wU);dIt(377,22,{3:1,35:1,22:1,377:1},VB);var Ave,gve,pve,mve,bve,vve,yve,wve,kve,Cve,xve=Unt(Q1t,"WrappingStrategy",377,zte,I1,kU);dIt(1383,1,k3t,hh),xVt.Yf=function(t){return Q$(t,37),gve},xVt.pf=function(t,e){YHt(this,Q$(t,37),e)},pX(C3t,"DepthFirstCycleBreaker",1383),dIt(782,1,k3t,NK),xVt.Yf=function(t){return Q$(t,37),pve},xVt.pf=function(t,e){zXt(this,Q$(t,37),e)},xVt.Zf=function(t){return Q$(Oj(t,pbt(this.d,t.c.length)),10)},pX(C3t,"GreedyCycleBreaker",782),dIt(1386,782,k3t,kS),xVt.Zf=function(t){var e,n,r,i;for(i=null,e=FVt,r=new Gd(t);r.a<r.c.c.length;)IF(n=Q$(J1(r),10),(lVt(),ffe))&&Q$(bEt(n,ffe),19).a<e&&(e=Q$(bEt(n,ffe),19).a,i=n);return i||Q$(Oj(t,pbt(this.d,t.c.length)),10)},pX(C3t,"GreedyModelOrderCycleBreaker",1386),dIt(1384,1,k3t,eh),xVt.Yf=function(t){return Q$(t,37),mve},xVt.pf=function(t,e){_jt(this,Q$(t,37),e)},pX(C3t,"InteractiveCycleBreaker",1384),dIt(1385,1,k3t,nh),xVt.Yf=function(t){return Q$(t,37),bve},xVt.pf=function(t,e){Mjt(this,Q$(t,37),e)},xVt.a=0,xVt.b=0,pX(C3t,"ModelOrderCycleBreaker",1385),dIt(1389,1,k3t,LE),xVt.Yf=function(t){return Q$(t,37),vve},xVt.pf=function(t,e){YXt(this,Q$(t,37),e)},pX(x3t,"CoffmanGrahamLayerer",1389),dIt(1390,1,xYt,Dg),xVt.ue=function(t,e){return USt(this.a,Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(x3t,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1390),dIt(1391,1,xYt,Fg),xVt.ue=function(t,e){return jK(this.a,Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(x3t,"CoffmanGrahamLayerer/lambda$1$Type",1391),dIt(1392,1,k3t,Sa),xVt.Yf=function(t){return Q$(t,37),dj(dj(dj(new Q2,(vEt(),Foe),(hVt(),vce)),Noe,_ce),Poe,Bce)},xVt.pf=function(t,e){kGt(this,Q$(t,37),e)},pX(x3t,"InteractiveLayerer",1392),dIt(569,1,{569:1},ev),xVt.a=0,xVt.c=0,pX(x3t,"InteractiveLayerer/LayerSpan",569),dIt(1388,1,k3t,th),xVt.Yf=function(t){return Q$(t,37),yve},xVt.pf=function(t,e){HFt(this,Q$(t,37),e)},pX(x3t,"LongestPathLayerer",1388),dIt(1395,1,k3t,oh),xVt.Yf=function(t){return Q$(t,37),dj(dj(dj(new Q2,(vEt(),Foe),(hVt(),rce)),Noe,_ce),Poe,Bce)},xVt.pf=function(t,e){nXt(this,Q$(t,37),e)},xVt.a=0,xVt.b=0,xVt.d=0,pX(x3t,"MinWidthLayerer",1395),dIt(1396,1,xYt,Ng),xVt.ue=function(t,e){return Aot(this,Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(x3t,"MinWidthLayerer/MinOutgoingEdgesComparator",1396),dIt(1387,1,k3t,ah),xVt.Yf=function(t){return Q$(t,37),Cve},xVt.pf=function(t,e){bKt(this,Q$(t,37),e)},pX(x3t,"NetworkSimplexLayerer",1387),dIt(1393,1,k3t,FP),xVt.Yf=function(t){return Q$(t,37),dj(dj(dj(new Q2,(vEt(),Foe),(hVt(),rce)),Noe,_ce),Poe,Bce)},xVt.pf=function(t,e){Izt(this,Q$(t,37),e)},xVt.d=0,xVt.f=0,xVt.g=0,xVt.i=0,xVt.s=0,xVt.t=0,xVt.u=0,pX(x3t,"StretchWidthLayerer",1393),dIt(1394,1,xYt,La),xVt.ue=function(t,e){return F6(Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(x3t,"StretchWidthLayerer/1",1394),dIt(402,1,E3t),xVt.Nf=function(t,e,n,r,i,a){},xVt._f=function(t,e,n){return rQt(this,t,e,n)},xVt.Mf=function(){this.g=O8(ODe,T3t,25,this.d,15,1),this.f=O8(ODe,T3t,25,this.d,15,1)},xVt.Of=function(t,e){this.e[t]=O8(_De,lqt,25,e[t].length,15,1)},xVt.Pf=function(t,e,n){n[t][e].p=e,this.e[t][e]=e},xVt.Qf=function(t,e,n,r){Q$(Oj(r[t][e].j,n),11).p=this.d++},xVt.b=0,xVt.c=0,xVt.d=0,pX(B3t,"AbstractBarycenterPortDistributor",402),dIt(1633,1,xYt,Pg),xVt.ue=function(t,e){return Hpt(this.a,Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(B3t,"AbstractBarycenterPortDistributor/lambda$0$Type",1633),dIt(817,1,O1t,H2),xVt.Nf=function(t,e,n,r,i,a){},xVt.Pf=function(t,e,n){},xVt.Qf=function(t,e,n,r){},xVt.Lf=function(){return!1},xVt.Mf=function(){this.c=this.e.a,this.g=this.f.g},xVt.Of=function(t,e){e[t][0].c.p=t},xVt.Rf=function(){return!1},xVt.ag=function(t,e,n,r){n?ckt(this,t):(Fkt(this,t,r),JKt(this,t,e)),t.c.length>1&&($y(kN(bEt(pV((u1(0,t.c.length),Q$(t.c[0],10))),($Xt(),Oge))))?NMt(t,this.d,Q$(this,660)):(xq(),mM(t,this.d)),Uot(this.e,t))},xVt.Sf=function(t,e,n,r){var i,a,o,s,c,l,u;for(e!=qj(n,t.length)&&(a=t[e-(n?1:-1)],H6(this.f,a,n?(art(),$be):(art(),Ube))),i=t[e][0],u=!r||i.k==(oTt(),Cse),l=a6(t[e]),this.ag(l,u,!1,n),o=0,c=new Gd(l);c.a<c.c.c.length;)s=Q$(J1(c),10),t[e][o++]=s;return!1},xVt.Tf=function(t,e){var n,r,i,a,o;for(a=a6(t[o=qj(e,t.length)]),this.ag(a,!1,!0,e),n=0,i=new Gd(a);i.a<i.c.c.length;)r=Q$(J1(i),10),t[o][n++]=r;return!1},pX(B3t,"BarycenterHeuristic",817),dIt(658,1,{658:1},Qg),xVt.Ib=function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},xVt.b=0,xVt.d=0,xVt.e=!1;var Eve=pX(B3t,"BarycenterHeuristic/BarycenterState",658);dIt(1802,1,xYt,Rg),xVt.ue=function(t,e){return xCt(this.a,Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(B3t,"BarycenterHeuristic/lambda$0$Type",1802),dIt(816,1,O1t,zCt),xVt.Mf=function(){},xVt.Nf=function(t,e,n,r,i,a){},xVt.Qf=function(t,e,n,r){},xVt.Of=function(t,e){this.a[t]=O8(Eve,{3:1,4:1,5:1,2018:1},658,e[t].length,0,1),this.b[t]=O8(Ive,{3:1,4:1,5:1,2019:1},233,e[t].length,0,1)},xVt.Pf=function(t,e,n){Fpt(this,n[t][e],!0)},xVt.c=!1,pX(B3t,"ForsterConstraintResolver",816),dIt(233,1,{233:1},DY,oKt),xVt.Ib=function(){var t,e;for((e=new Tw).a+="[",t=0;t<this.d.length;t++)oL(e,Imt(this.d[t])),null!=uO(this.g,this.d[0]).a&&oL(oL((e.a+="<",e),YS(uO(this.g,this.d[0]).a)),">"),t<this.d.length-1&&(e.a+=QVt);return(e.a+="]",e).a},xVt.a=0,xVt.c=0,xVt.f=0;var Tve,Bve,_ve,Sve,Lve,Ive=pX(B3t,"ForsterConstraintResolver/ConstraintGroup",233);dIt(1797,1,hWt,$g),xVt.td=function(t){Fpt(this.a,Q$(t,10),!1)},pX(B3t,"ForsterConstraintResolver/lambda$0$Type",1797),dIt(214,1,{214:1,225:1},BKt),xVt.Nf=function(t,e,n,r,i,a){},xVt.Of=function(t,e){},xVt.Mf=function(){this.r=O8(_De,lqt,25,this.n,15,1)},xVt.Pf=function(t,e,n){var r;(r=n[t][e].e)&&G$(this.b,r)},xVt.Qf=function(t,e,n,r){++this.n},xVt.Ib=function(){return nzt(this.e,new Fb)},xVt.g=!1,xVt.i=!1,xVt.n=0,xVt.s=!1,pX(B3t,"GraphInfoHolder",214),dIt(1832,1,O1t,Ba),xVt.Nf=function(t,e,n,r,i,a){},xVt.Of=function(t,e){},xVt.Qf=function(t,e,n,r){},xVt._f=function(t,e,n){return n&&e>0?aZ(this.a,t[e-1],t[e]):!n&&e<t.length-1?aZ(this.a,t[e],t[e+1]):vit(this.a,t[e],n?(yGt(),TSe):(yGt(),oSe)),fOt(this,t,e,n)},xVt.Mf=function(){this.d=O8(_De,lqt,25,this.c,15,1),this.a=new VR(this.d)},xVt.Pf=function(t,e,n){var r;r=n[t][e],this.c+=r.j.c.length},xVt.c=0,pX(B3t,"GreedyPortDistributor",1832),dIt(1401,1,k3t,fh),xVt.Yf=function(t){return Gut(Q$(t,37))},xVt.pf=function(t,e){GKt(Q$(t,37),e)},pX(B3t,"InteractiveCrossingMinimizer",1401),dIt(1402,1,xYt,Hg),xVt.ue=function(t,e){return $kt(this,Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(B3t,"InteractiveCrossingMinimizer/1",1402),dIt(507,1,{507:1,123:1,51:1},My),xVt.Yf=function(t){var e;return Q$(t,37),dj(e=vI(Bve),(vEt(),Poe),(hVt(),Qce)),e},xVt.pf=function(t,e){TQt(this,Q$(t,37),e)},xVt.e=0,pX(B3t,"LayerSweepCrossingMinimizer",507),dIt(1398,1,hWt,jg),xVt.td=function(t){d$t(this.a,Q$(t,214))},pX(B3t,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1398),dIt(1399,1,hWt,Kg),xVt.td=function(t){Sut(this.a,Q$(t,214))},pX(B3t,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1399),dIt(1400,1,hWt,zg),xVt.td=function(t){pUt(this.a,Q$(t,214))},pX(B3t,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1400),dIt(454,22,{3:1,35:1,22:1,454:1},WB);var Mve,Ove=Unt(B3t,"LayerSweepCrossingMinimizer/CrossMinType",454,zte,D1,CU);dIt(1397,1,FWt,Ia),xVt.Mb=function(t){return Rat(),0==Q$(t,29).a.c.length},pX(B3t,"LayerSweepCrossingMinimizer/lambda$0$Type",1397),dIt(1799,1,O1t,iZ),xVt.Mf=function(){},xVt.Nf=function(t,e,n,r,i,a){},xVt.Qf=function(t,e,n,r){},xVt.Of=function(t,e){e[t][0].c.p=t,this.b[t]=O8(Pve,{3:1,4:1,5:1,1944:1},659,e[t].length,0,1)},xVt.Pf=function(t,e,n){n[t][e].p=e,LX(this.b[t],e,new Ma)},pX(B3t,"LayerSweepTypeDecider",1799),dIt(659,1,{659:1},Ma),xVt.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},xVt.a=0,xVt.b=0,xVt.c=0;var Dve,Fve,Nve,Pve=pX(B3t,"LayerSweepTypeDecider/NodeInfo",659);dIt(1800,1,HYt,Oa),xVt.Lb=function(t){return jD(new m6(Q$(t,11).b))},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return jD(new m6(Q$(t,11).b))},pX(B3t,"LayerSweepTypeDecider/lambda$0$Type",1800),dIt(1801,1,HYt,Da),xVt.Lb=function(t){return jD(new m6(Q$(t,11).b))},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return jD(new m6(Q$(t,11).b))},pX(B3t,"LayerSweepTypeDecider/lambda$1$Type",1801),dIt(1833,402,E3t,Dk),xVt.$f=function(t,e,n){var r,i,a,o,s,c,l,u,h;switch(l=this.g,n.g){case 1:for(r=0,i=0,c=new Gd(t.j);c.a<c.c.c.length;)0!=(o=Q$(J1(c),11)).e.c.length&&(++r,o.j==(yGt(),sSe)&&++i);for(a=e+i,h=e+r,s=DAt(t,(art(),Ube)).Kc();s.Ob();)(o=Q$(s.Pb(),11)).j==(yGt(),sSe)?(l[o.p]=a,--a):(l[o.p]=h,--h);return r;case 2:for(u=0,s=DAt(t,(art(),$be)).Kc();s.Ob();)++u,l[(o=Q$(s.Pb(),11)).p]=e+u;return u;default:throw Um(new fb)}},pX(B3t,"LayerTotalPortDistributor",1833),dIt(660,817,{660:1,225:1},pit),xVt.ag=function(t,e,n,r){n?ckt(this,t):(Fkt(this,t,r),JKt(this,t,e)),t.c.length>1&&($y(kN(bEt(pV((u1(0,t.c.length),Q$(t.c[0],10))),($Xt(),Oge))))?NMt(t,this.d,this):(xq(),mM(t,this.d)),$y(kN(bEt(pV((u1(0,t.c.length),Q$(t.c[0],10))),Oge)))||Uot(this.e,t))},pX(B3t,"ModelOrderBarycenterHeuristic",660),dIt(1803,1,xYt,Gg),xVt.ue=function(t,e){return PTt(this.a,Q$(t,10),Q$(e,10))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(B3t,"ModelOrderBarycenterHeuristic/lambda$0$Type",1803),dIt(1403,1,k3t,vh),xVt.Yf=function(t){var e;return Q$(t,37),dj(e=vI(Dve),(vEt(),Poe),(hVt(),Qce)),e},xVt.pf=function(t,e){mY((Q$(t,37),e))},pX(B3t,"NoCrossingMinimizer",1403),dIt(796,402,E3t,Fk),xVt.$f=function(t,e,n){var r,i,a,o,s,c,l,u,h,f,d;switch(h=this.g,n.g){case 1:for(i=0,a=0,u=new Gd(t.j);u.a<u.c.c.length;)0!=(c=Q$(J1(u),11)).e.c.length&&(++i,c.j==(yGt(),sSe)&&++a);for(o=e+a*(r=1/(i+1)),d=e+1-r,l=DAt(t,(art(),Ube)).Kc();l.Ob();)(c=Q$(l.Pb(),11)).j==(yGt(),sSe)?(h[c.p]=o,o-=r):(h[c.p]=d,d-=r);break;case 2:for(s=0,u=new Gd(t.j);u.a<u.c.c.length;)0==(c=Q$(J1(u),11)).g.c.length||++s;for(f=e+(r=1/(s+1)),l=DAt(t,(art(),$be)).Kc();l.Ob();)h[(c=Q$(l.Pb(),11)).p]=f,f+=r;break;default:throw Um(new Py("Port type is undefined"))}return 1},pX(B3t,"NodeRelativePortDistributor",796),dIt(807,1,{},Xz,$Et),pX(B3t,"SweepCopy",807),dIt(1798,1,O1t,dgt),xVt.Of=function(t,e){},xVt.Mf=function(){var t;t=O8(_De,lqt,25,this.f,15,1),this.d=new tp(t),this.a=new VR(t)},xVt.Nf=function(t,e,n,r,i,a){var o;o=Q$(Oj(a[t][e].j,n),11),i.c==o&&i.c.i.c==i.d.i.c&&++this.e[t]},xVt.Pf=function(t,e,n){var r;r=n[t][e],this.c[t]=this.c[t]|r.k==(oTt(),Bse)},xVt.Qf=function(t,e,n,r){var i;(i=Q$(Oj(r[t][e].j,n),11)).p=this.f++,i.g.c.length+i.e.c.length>1&&(i.j==(yGt(),oSe)?this.b[t]=!0:i.j==TSe&&t>0&&(this.b[t-1]=!0))},xVt.f=0,pX(M1t,"AllCrossingsCounter",1798),dIt(587,1,{},bit),xVt.b=0,xVt.d=0,pX(M1t,"BinaryIndexedTree",587),dIt(524,1,{},VR),pX(M1t,"CrossingsCounter",524),dIt(1906,1,xYt,Xg),xVt.ue=function(t,e){return zj(this.a,Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(M1t,"CrossingsCounter/lambda$0$Type",1906),dIt(1907,1,xYt,Vg),xVt.ue=function(t,e){return Gj(this.a,Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(M1t,"CrossingsCounter/lambda$1$Type",1907),dIt(1908,1,xYt,Wg),xVt.ue=function(t,e){return Xj(this.a,Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(M1t,"CrossingsCounter/lambda$2$Type",1908),dIt(1909,1,xYt,qg),xVt.ue=function(t,e){return Vj(this.a,Q$(t,11),Q$(e,11))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(M1t,"CrossingsCounter/lambda$3$Type",1909),dIt(1910,1,hWt,Yg),xVt.td=function(t){g9(this.a,Q$(t,11))},pX(M1t,"CrossingsCounter/lambda$4$Type",1910),dIt(1911,1,FWt,Jg),xVt.Mb=function(t){return bS(this.a,Q$(t,11))},pX(M1t,"CrossingsCounter/lambda$5$Type",1911),dIt(1912,1,hWt,Zg),xVt.td=function(t){mS(this,t)},pX(M1t,"CrossingsCounter/lambda$6$Type",1912),dIt(1913,1,hWt,YB),xVt.td=function(t){var e;cH(),d3(this.b,(e=this.a,Q$(t,11),e))},pX(M1t,"CrossingsCounter/lambda$7$Type",1913),dIt(826,1,HYt,Fa),xVt.Lb=function(t){return cH(),IF(Q$(t,11),(lVt(),wfe))},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return cH(),IF(Q$(t,11),(lVt(),wfe))},pX(M1t,"CrossingsCounter/lambda$8$Type",826),dIt(1905,1,{},tp),pX(M1t,"HyperedgeCrossingsCounter",1905),dIt(467,1,{35:1,467:1},DP),xVt.wd=function(t){return mpt(this,Q$(t,467))},xVt.b=0,xVt.c=0,xVt.e=0,xVt.f=0;var Rve=pX(M1t,"HyperedgeCrossingsCounter/Hyperedge",467);dIt(362,1,{35:1,362:1},$W),xVt.wd=function(t){return hMt(this,Q$(t,362))},xVt.b=0,xVt.c=0;var Qve,Uve,$ve=pX(M1t,"HyperedgeCrossingsCounter/HyperedgeCorner",362);dIt(523,22,{3:1,35:1,22:1,523:1},qB);var Hve,jve,Kve,zve,Gve,Xve=Unt(M1t,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",523,zte,zY,xU);dIt(1405,1,k3t,lh),xVt.Yf=function(t){return Q$(bEt(Q$(t,37),(lVt(),Yhe)),21).Hc((fNt(),uhe))?jve:null},xVt.pf=function(t,e){hkt(this,Q$(t,37),e)},pX(_3t,"InteractiveNodePlacer",1405),dIt(1406,1,k3t,ch),xVt.Yf=function(t){return Q$(bEt(Q$(t,37),(lVt(),Yhe)),21).Hc((fNt(),uhe))?Kve:null},xVt.pf=function(t,e){wvt(this,Q$(t,37),e)},pX(_3t,"LinearSegmentsNodePlacer",1406),dIt(257,1,{35:1,257:1},nv),xVt.wd=function(t){return ak(this,Q$(t,257))},xVt.Fb=function(t){var e;return!!rO(t,257)&&(e=Q$(t,257),this.b==e.b)},xVt.Hb=function(){return this.b},xVt.Ib=function(){return"ls"+MEt(this.e)},xVt.a=0,xVt.b=0,xVt.c=-1,xVt.d=-1,xVt.g=0;var Vve,Wve=pX(_3t,"LinearSegmentsNodePlacer/LinearSegment",257);dIt(1408,1,k3t,PK),xVt.Yf=function(t){return Q$(bEt(Q$(t,37),(lVt(),Yhe)),21).Hc((fNt(),uhe))?Vve:null},xVt.pf=function(t,e){EXt(this,Q$(t,37),e)},xVt.b=0,xVt.g=0,pX(_3t,"NetworkSimplexPlacer",1408),dIt(1427,1,xYt,Na),xVt.ue=function(t,e){return wM(Q$(t,19).a,Q$(e,19).a)},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(_3t,"NetworkSimplexPlacer/0methodref$compare$Type",1427),dIt(1429,1,xYt,Pa),xVt.ue=function(t,e){return wM(Q$(t,19).a,Q$(e,19).a)},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(_3t,"NetworkSimplexPlacer/1methodref$compare$Type",1429),dIt(649,1,{649:1},JB);var qve=pX(_3t,"NetworkSimplexPlacer/EdgeRep",649);dIt(401,1,{401:1},HW),xVt.b=!1;var Yve,Jve,Zve,tye=pX(_3t,"NetworkSimplexPlacer/NodeRep",401);dIt(508,12,{3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1,508:1},av),pX(_3t,"NetworkSimplexPlacer/Path",508),dIt(1409,1,{},Ra),xVt.Kb=function(t){return Q$(t,17).d.i.k},pX(_3t,"NetworkSimplexPlacer/Path/lambda$0$Type",1409),dIt(1410,1,FWt,Qa),xVt.Mb=function(t){return Q$(t,267)==(oTt(),Ese)},pX(_3t,"NetworkSimplexPlacer/Path/lambda$1$Type",1410),dIt(1411,1,{},Ua),xVt.Kb=function(t){return Q$(t,17).d.i},pX(_3t,"NetworkSimplexPlacer/Path/lambda$2$Type",1411),dIt(1412,1,FWt,ep),xVt.Mb=function(t){return UN(tgt(Q$(t,10)))},pX(_3t,"NetworkSimplexPlacer/Path/lambda$3$Type",1412),dIt(1413,1,FWt,$a),xVt.Mb=function(t){return cj(Q$(t,11))},pX(_3t,"NetworkSimplexPlacer/lambda$0$Type",1413),dIt(1414,1,hWt,ZB),xVt.td=function(t){DM(this.a,this.b,Q$(t,11))},pX(_3t,"NetworkSimplexPlacer/lambda$1$Type",1414),dIt(1423,1,hWt,np),xVt.td=function(t){X_t(this.a,Q$(t,17))},pX(_3t,"NetworkSimplexPlacer/lambda$10$Type",1423),dIt(1424,1,{},Ha),xVt.Kb=function(t){return QZ(),new Fj(null,new f1(Q$(t,29).a,16))},pX(_3t,"NetworkSimplexPlacer/lambda$11$Type",1424),dIt(1425,1,hWt,rp),xVt.td=function(t){UNt(this.a,Q$(t,10))},pX(_3t,"NetworkSimplexPlacer/lambda$12$Type",1425),dIt(1426,1,{},ja),xVt.Kb=function(t){return QZ(),nft(Q$(t,121).e)},pX(_3t,"NetworkSimplexPlacer/lambda$13$Type",1426),dIt(1428,1,{},Ka),xVt.Kb=function(t){return QZ(),nft(Q$(t,121).e)},pX(_3t,"NetworkSimplexPlacer/lambda$15$Type",1428),dIt(1430,1,FWt,za),xVt.Mb=function(t){return QZ(),Q$(t,401).c.k==(oTt(),Tse)},pX(_3t,"NetworkSimplexPlacer/lambda$17$Type",1430),dIt(1431,1,FWt,Ga),xVt.Mb=function(t){return QZ(),Q$(t,401).c.j.c.length>1},pX(_3t,"NetworkSimplexPlacer/lambda$18$Type",1431),dIt(1432,1,hWt,jW),xVt.td=function(t){iAt(this.c,this.b,this.d,this.a,Q$(t,401))},xVt.c=0,xVt.d=0,pX(_3t,"NetworkSimplexPlacer/lambda$19$Type",1432),dIt(1415,1,{},Xa),xVt.Kb=function(t){return QZ(),new Fj(null,new f1(Q$(t,29).a,16))},pX(_3t,"NetworkSimplexPlacer/lambda$2$Type",1415),dIt(1433,1,hWt,ip),xVt.td=function(t){MM(this.a,Q$(t,11))},xVt.a=0,pX(_3t,"NetworkSimplexPlacer/lambda$20$Type",1433),dIt(1434,1,{},Va),xVt.Kb=function(t){return QZ(),new Fj(null,new f1(Q$(t,29).a,16))},pX(_3t,"NetworkSimplexPlacer/lambda$21$Type",1434),dIt(1435,1,hWt,ap),xVt.td=function(t){dO(this.a,Q$(t,10))},pX(_3t,"NetworkSimplexPlacer/lambda$22$Type",1435),dIt(1436,1,FWt,Wa),xVt.Mb=function(t){return UN(t)},pX(_3t,"NetworkSimplexPlacer/lambda$23$Type",1436),dIt(1437,1,{},qa),xVt.Kb=function(t){return QZ(),new Fj(null,new f1(Q$(t,29).a,16))},pX(_3t,"NetworkSimplexPlacer/lambda$24$Type",1437),dIt(1438,1,FWt,op),xVt.Mb=function(t){return wL(this.a,Q$(t,10))},pX(_3t,"NetworkSimplexPlacer/lambda$25$Type",1438),dIt(1439,1,hWt,t_),xVt.td=function(t){xBt(this.a,this.b,Q$(t,10))},pX(_3t,"NetworkSimplexPlacer/lambda$26$Type",1439),dIt(1440,1,FWt,Ya),xVt.Mb=function(t){return QZ(),!h5(Q$(t,17))},pX(_3t,"NetworkSimplexPlacer/lambda$27$Type",1440),dIt(1441,1,FWt,Ja),xVt.Mb=function(t){return QZ(),!h5(Q$(t,17))},pX(_3t,"NetworkSimplexPlacer/lambda$28$Type",1441),dIt(1442,1,{},sp),xVt.Ce=function(t,e){return sO(this.a,Q$(t,29),Q$(e,29))},pX(_3t,"NetworkSimplexPlacer/lambda$29$Type",1442),dIt(1416,1,{},Za),xVt.Kb=function(t){return QZ(),new Fj(null,new jG(new oz(YO(hdt(Q$(t,10)).a.Kc(),new u))))},pX(_3t,"NetworkSimplexPlacer/lambda$3$Type",1416),dIt(1417,1,FWt,to),xVt.Mb=function(t){return QZ(),Z0(Q$(t,17))},pX(_3t,"NetworkSimplexPlacer/lambda$4$Type",1417),dIt(1418,1,hWt,cp),xVt.td=function(t){n$t(this.a,Q$(t,17))},pX(_3t,"NetworkSimplexPlacer/lambda$5$Type",1418),dIt(1419,1,{},eo),xVt.Kb=function(t){return QZ(),new Fj(null,new f1(Q$(t,29).a,16))},pX(_3t,"NetworkSimplexPlacer/lambda$6$Type",1419),dIt(1420,1,FWt,no),xVt.Mb=function(t){return QZ(),Q$(t,10).k==(oTt(),Tse)},pX(_3t,"NetworkSimplexPlacer/lambda$7$Type",1420),dIt(1421,1,{},ro),xVt.Kb=function(t){return QZ(),new Fj(null,new jG(new oz(YO(ldt(Q$(t,10)).a.Kc(),new u))))},pX(_3t,"NetworkSimplexPlacer/lambda$8$Type",1421),dIt(1422,1,FWt,io),xVt.Mb=function(t){return QZ(),KH(Q$(t,17))},pX(_3t,"NetworkSimplexPlacer/lambda$9$Type",1422),dIt(1404,1,k3t,Eh),xVt.Yf=function(t){return Q$(bEt(Q$(t,37),(lVt(),Yhe)),21).Hc((fNt(),uhe))?Yve:null},xVt.pf=function(t,e){yHt(Q$(t,37),e)},pX(_3t,"SimpleNodePlacer",1404),dIt(180,1,{180:1},HRt),xVt.Ib=function(){var t;return t="",this.c==(AJ(),Zve)?t+=aJt:this.c==Jve&&(t+=iJt),this.o==(oZ(),nye)?t+=pJt:this.o==rye?t+="UP":t+="BALANCED",t},pX(I3t,"BKAlignedLayout",180),dIt(516,22,{3:1,35:1,22:1,516:1},r_);var eye,nye,rye,iye=Unt(I3t,"BKAlignedLayout/HDirection",516,zte,XY,EU);dIt(515,22,{3:1,35:1,22:1,515:1},n_);var aye,oye,sye,cye,lye,uye,hye,fye,dye,Aye,gye,pye,mye,bye,vye,yye,wye,kye,Cye,xye=Unt(I3t,"BKAlignedLayout/VDirection",515,zte,VY,TU);dIt(1634,1,{},e_),pX(I3t,"BKAligner",1634),dIt(1637,1,{},Yyt),pX(I3t,"BKCompactor",1637),dIt(654,1,{654:1},ao),xVt.a=0,pX(I3t,"BKCompactor/ClassEdge",654),dIt(458,1,{458:1},rv),xVt.a=null,xVt.b=0,pX(I3t,"BKCompactor/ClassNode",458),dIt(1407,1,k3t,yS),xVt.Yf=function(t){return Q$(bEt(Q$(t,37),(lVt(),Yhe)),21).Hc((fNt(),uhe))?oye:null},xVt.pf=function(t,e){rVt(this,Q$(t,37),e)},xVt.d=!1,pX(I3t,"BKNodePlacer",1407),dIt(1635,1,{},oo),xVt.d=0,pX(I3t,"NeighborhoodInformation",1635),dIt(1636,1,xYt,lp),xVt.ue=function(t,e){return xet(this,Q$(t,46),Q$(e,46))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(I3t,"NeighborhoodInformation/NeighborComparator",1636),dIt(808,1,{}),pX(I3t,"ThresholdStrategy",808),dIt(1763,808,{},dv),xVt.bg=function(t,e,n){return this.a.o==(oZ(),rye)?Nqt:Pqt},xVt.cg=function(){},pX(I3t,"ThresholdStrategy/NullThresholdStrategy",1763),dIt(579,1,{579:1},i_),xVt.c=!1,xVt.d=!1,pX(I3t,"ThresholdStrategy/Postprocessable",579),dIt(1764,808,{},Av),xVt.bg=function(t,e,n){var r,i,a;return i=e==n,r=this.a.a[n.p]==e,i||r?(a=t,this.a.c,AJ(),i&&(a=CHt(this,e,!0)),!isNaN(a)&&!isFinite(a)&&r&&(a=CHt(this,n,!1)),a):t},xVt.cg=function(){for(var t,e,n;0!=this.d.b;)(e=iUt(this,n=Q$(EJ(this.d),579))).a&&(t=e.a,($y(this.a.f[this.a.g[n.b.p].p])||h5(t)||t.c.i.c!=t.d.i.c)&&(fMt(this,n)||nI(this.e,n)));for(;0!=this.e.a.c.length;)fMt(this,Q$(tut(this.e),579))},pX(I3t,"ThresholdStrategy/SimpleThresholdStrategy",1764),dIt(635,1,{635:1,246:1,234:1},so),xVt.Kf=function(){return Cot(this)},xVt.Xf=function(){return Cot(this)},pX(M3t,"EdgeRouterFactory",635),dIt(1458,1,k3t,Th),xVt.Yf=function(t){return zFt(Q$(t,37))},xVt.pf=function(t,e){FHt(Q$(t,37),e)},pX(M3t,"OrthogonalEdgeRouter",1458),dIt(1451,1,k3t,wS),xVt.Yf=function(t){return kkt(Q$(t,37))},xVt.pf=function(t,e){SGt(this,Q$(t,37),e)},pX(M3t,"PolylineEdgeRouter",1451),dIt(1452,1,HYt,co),xVt.Lb=function(t){return Wot(Q$(t,10))},xVt.Fb=function(t){return this===t},xVt.Mb=function(t){return Wot(Q$(t,10))},pX(M3t,"PolylineEdgeRouter/1",1452),dIt(1809,1,FWt,lo),xVt.Mb=function(t){return Q$(t,129).c==(_6(),kye)},pX(O3t,"HyperEdgeCycleDetector/lambda$0$Type",1809),dIt(1810,1,{},uo),xVt.Ge=function(t){return Q$(t,129).d},pX(O3t,"HyperEdgeCycleDetector/lambda$1$Type",1810),dIt(1811,1,FWt,ho),xVt.Mb=function(t){return Q$(t,129).c==(_6(),kye)},pX(O3t,"HyperEdgeCycleDetector/lambda$2$Type",1811),dIt(1812,1,{},fo),xVt.Ge=function(t){return Q$(t,129).d},pX(O3t,"HyperEdgeCycleDetector/lambda$3$Type",1812),dIt(1813,1,{},Ao),xVt.Ge=function(t){return Q$(t,129).d},pX(O3t,"HyperEdgeCycleDetector/lambda$4$Type",1813),dIt(1814,1,{},go),xVt.Ge=function(t){return Q$(t,129).d},pX(O3t,"HyperEdgeCycleDetector/lambda$5$Type",1814),dIt(112,1,{35:1,112:1},Qot),xVt.wd=function(t){return ok(this,Q$(t,112))},xVt.Fb=function(t){var e;return!!rO(t,112)&&(e=Q$(t,112),this.g==e.g)},xVt.Hb=function(){return this.g},xVt.Ib=function(){var t,e,n,r;for(t=new uD("{"),r=new Gd(this.n);r.a<r.c.c.length;)null==(e=gyt((n=Q$(J1(r),11)).i))&&(e="n"+SR(n.i)),t.a+=""+e,r.a<r.c.c.length&&(t.a+=",");return t.a+="}",t.a},xVt.a=0,xVt.b=0,xVt.c=NaN,xVt.d=0,xVt.g=0,xVt.i=0,xVt.o=0,xVt.s=NaN,pX(O3t,"HyperEdgeSegment",112),dIt(129,1,{129:1},jZ),xVt.Ib=function(){return this.a+"->"+this.b+" ("+fF(this.c)+")"},xVt.d=0,pX(O3t,"HyperEdgeSegmentDependency",129),dIt(520,22,{3:1,35:1,22:1,520:1},a_);var Eye,Tye,Bye,_ye,Sye,Lye,Iye,Mye,Oye=Unt(O3t,"HyperEdgeSegmentDependency/DependencyType",520,zte,GY,BU);dIt(1815,1,{},up),pX(O3t,"HyperEdgeSegmentSplitter",1815),dIt(1816,1,{},jk),xVt.a=0,xVt.b=0,pX(O3t,"HyperEdgeSegmentSplitter/AreaRating",1816),dIt(329,1,{329:1},v$),xVt.a=0,xVt.b=0,xVt.c=0,pX(O3t,"HyperEdgeSegmentSplitter/FreeArea",329),dIt(1817,1,xYt,Co),xVt.ue=function(t,e){return _R(Q$(t,112),Q$(e,112))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(O3t,"HyperEdgeSegmentSplitter/lambda$0$Type",1817),dIt(1818,1,hWt,zW),xVt.td=function(t){J3(this.a,this.d,this.c,this.b,Q$(t,112))},xVt.b=0,pX(O3t,"HyperEdgeSegmentSplitter/lambda$1$Type",1818),dIt(1819,1,{},xo),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,112).e,16))},pX(O3t,"HyperEdgeSegmentSplitter/lambda$2$Type",1819),dIt(1820,1,{},Eo),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,112).j,16))},pX(O3t,"HyperEdgeSegmentSplitter/lambda$3$Type",1820),dIt(1821,1,{},To),xVt.Fe=function(t){return Hy(CN(t))},pX(O3t,"HyperEdgeSegmentSplitter/lambda$4$Type",1821),dIt(655,1,{},lX),xVt.a=0,xVt.b=0,xVt.c=0,pX(O3t,"OrthogonalRoutingGenerator",655),dIt(1638,1,{},Bo),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,112).e,16))},pX(O3t,"OrthogonalRoutingGenerator/lambda$0$Type",1638),dIt(1639,1,{},_o),xVt.Kb=function(t){return new Fj(null,new f1(Q$(t,112).j,16))},pX(O3t,"OrthogonalRoutingGenerator/lambda$1$Type",1639),dIt(661,1,{}),pX(D3t,"BaseRoutingDirectionStrategy",661),dIt(1807,661,{},gv),xVt.dg=function(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p;if(!t.r||t.q)for(h=n+t.o*r,u=new Gd(t.n);u.a<u.c.c.length;)for(l=Q$(J1(u),11),f=Lct(Tst(Hw(EEe,1),cWt,8,0,[l.i.n,l.n,l.a])).a,c=new Gd(l.g);c.a<c.c.c.length;)h5(s=Q$(J1(c),17))||(g=s.d,p=Lct(Tst(Hw(EEe,1),cWt,8,0,[g.i.n,g.n,g.a])).a,e.Math.abs(f-p)>hZt&&(a=t,i=new O_(f,o=h),DH(s.a,i),QQt(this,s,a,i,!1),(d=t.r)&&(i=new O_(A=Hy(CN(Fmt(d.e,0))),o),DH(s.a,i),QQt(this,s,a,i,!1),a=d,i=new O_(A,o=n+d.o*r),DH(s.a,i),QQt(this,s,a,i,!1)),i=new O_(p,o),DH(s.a,i),QQt(this,s,a,i,!1)))},xVt.eg=function(t){return t.i.n.a+t.n.a+t.a.a},xVt.fg=function(){return yGt(),xSe},xVt.gg=function(){return yGt(),sSe},pX(D3t,"NorthToSouthRoutingStrategy",1807),dIt(1808,661,{},pv),xVt.dg=function(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p;if(!t.r||t.q)for(h=n-t.o*r,u=new Gd(t.n);u.a<u.c.c.length;)for(l=Q$(J1(u),11),f=Lct(Tst(Hw(EEe,1),cWt,8,0,[l.i.n,l.n,l.a])).a,c=new Gd(l.g);c.a<c.c.c.length;)h5(s=Q$(J1(c),17))||(g=s.d,p=Lct(Tst(Hw(EEe,1),cWt,8,0,[g.i.n,g.n,g.a])).a,e.Math.abs(f-p)>hZt&&(a=t,i=new O_(f,o=h),DH(s.a,i),QQt(this,s,a,i,!1),(d=t.r)&&(i=new O_(A=Hy(CN(Fmt(d.e,0))),o),DH(s.a,i),QQt(this,s,a,i,!1),a=d,i=new O_(A,o=n-d.o*r),DH(s.a,i),QQt(this,s,a,i,!1)),i=new O_(p,o),DH(s.a,i),QQt(this,s,a,i,!1)))},xVt.eg=function(t){return t.i.n.a+t.n.a+t.a.a},xVt.fg=function(){return yGt(),sSe},xVt.gg=function(){return yGt(),xSe},pX(D3t,"SouthToNorthRoutingStrategy",1808),dIt(1806,661,{},mv),xVt.dg=function(t,n,r){var i,a,o,s,c,l,u,h,f,d,A,g,p;if(!t.r||t.q)for(h=n+t.o*r,u=new Gd(t.n);u.a<u.c.c.length;)for(l=Q$(J1(u),11),f=Lct(Tst(Hw(EEe,1),cWt,8,0,[l.i.n,l.n,l.a])).b,c=new Gd(l.g);c.a<c.c.c.length;)h5(s=Q$(J1(c),17))||(g=s.d,p=Lct(Tst(Hw(EEe,1),cWt,8,0,[g.i.n,g.n,g.a])).b,e.Math.abs(f-p)>hZt&&(a=t,i=new O_(o=h,f),DH(s.a,i),QQt(this,s,a,i,!0),(d=t.r)&&(i=new O_(o,A=Hy(CN(Fmt(d.e,0)))),DH(s.a,i),QQt(this,s,a,i,!0),a=d,i=new O_(o=n+d.o*r,A),DH(s.a,i),QQt(this,s,a,i,!0)),i=new O_(o,p),DH(s.a,i),QQt(this,s,a,i,!0)))},xVt.eg=function(t){return t.i.n.b+t.n.b+t.a.b},xVt.fg=function(){return yGt(),oSe},xVt.gg=function(){return yGt(),TSe},pX(D3t,"WestToEastRoutingStrategy",1806),dIt(813,1,{},s$t),xVt.Ib=function(){return MEt(this.a)},xVt.b=0,xVt.c=!1,xVt.d=!1,xVt.f=0,pX(N3t,"NubSpline",813),dIt(407,1,{407:1},kFt,fJ),pX(N3t,"NubSpline/PolarCP",407),dIt(1453,1,k3t,lyt),xVt.Yf=function(t){return rxt(Q$(t,37))},xVt.pf=function(t,e){iXt(this,Q$(t,37),e)},pX(N3t,"SplineEdgeRouter",1453),dIt(268,1,{268:1},x6),xVt.Ib=function(){return this.a+" ->("+this.c+") "+this.b},xVt.c=0,pX(N3t,"SplineEdgeRouter/Dependency",268),dIt(455,22,{3:1,35:1,22:1,455:1},o_);var Dye,Fye,Nye,Pye,Rye,Qye=Unt(N3t,"SplineEdgeRouter/SideToProcess",455,zte,WY,_U);dIt(1454,1,FWt,wo),xVt.Mb=function(t){return gFt(),!Q$(t,128).o},pX(N3t,"SplineEdgeRouter/lambda$0$Type",1454),dIt(1455,1,{},yo),xVt.Ge=function(t){return gFt(),Q$(t,128).v+1},pX(N3t,"SplineEdgeRouter/lambda$1$Type",1455),dIt(1456,1,hWt,s_),xVt.td=function(t){ej(this.a,this.b,Q$(t,46))},pX(N3t,"SplineEdgeRouter/lambda$2$Type",1456),dIt(1457,1,hWt,c_),xVt.td=function(t){nj(this.a,this.b,Q$(t,46))},pX(N3t,"SplineEdgeRouter/lambda$3$Type",1457),dIt(128,1,{35:1,128:1},t_t,ljt),xVt.wd=function(t){return sk(this,Q$(t,128))},xVt.b=0,xVt.e=!1,xVt.f=0,xVt.g=0,xVt.j=!1,xVt.k=!1,xVt.n=0,xVt.o=!1,xVt.p=!1,xVt.q=!1,xVt.s=0,xVt.u=0,xVt.v=0,xVt.F=0,pX(N3t,"SplineSegment",128),dIt(459,1,{459:1},ko),xVt.a=0,xVt.b=!1,xVt.c=!1,xVt.d=!1,xVt.e=!1,xVt.f=0,pX(N3t,"SplineSegment/EdgeInformation",459),dIt(1234,1,{},po),pX($3t,nZt,1234),dIt(1235,1,xYt,mo),xVt.ue=function(t,e){return _St(Q$(t,135),Q$(e,135))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX($3t,rZt,1235),dIt(1233,1,{},SC),pX($3t,"MrTree",1233),dIt(393,22,{3:1,35:1,22:1,393:1,246:1,234:1},l_),xVt.Kf=function(){return LSt(this)},xVt.Xf=function(){return LSt(this)};var Uye,$ye=Unt($3t,"TreeLayoutPhases",393,zte,y3,SU);dIt(1130,209,OJt,PP),xVt.Ze=function(t,e){var n,r,i,a,o,s;for($y(kN(JIt(t,(BIt(),Twe))))||yJ(new kA((HE(),new Dy(t)))),Hot(o=new E6,t),lct(o,(Hjt(),swe),t),mQt(t,o,s=new Om),XQt(t,o,s),a=o,r=new Gd(i=DQt(this.a,a));r.a<r.c.c.length;)n=Q$(J1(r),135),XCt(this.b,n,bat(e,1/i.c.length));_zt(a=tVt(i))},pX($3t,"TreeLayoutProvider",1130),dIt(1847,1,pWt,bo),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return xq(),Ix(),hne},pX($3t,"TreeUtil/1",1847),dIt(1848,1,pWt,vo),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return xq(),Ix(),hne},pX($3t,"TreeUtil/2",1848),dIt(502,134,{3:1,502:1,94:1,134:1}),xVt.g=0,pX(H3t,"TGraphElement",502),dIt(188,502,{3:1,188:1,502:1,94:1,134:1},Kq),xVt.Ib=function(){return this.b&&this.c?A0(this.b)+"->"+A0(this.c):"e_"+Zct(this)},pX(H3t,"TEdge",188),dIt(135,134,{3:1,135:1,94:1,134:1},E6),xVt.Ib=function(){var t,e,n,r,i;for(i=null,r=cmt(this.b,0);r.b!=r.d.c;)i+=(null==(n=Q$(h3(r),86)).c||0==n.c.length?"n_"+n.g:"n_"+n.c)+"\n";for(e=cmt(this.a,0);e.b!=e.d.c;)i+=((t=Q$(h3(e),188)).b&&t.c?A0(t.b)+"->"+A0(t.c):"e_"+Zct(t))+"\n";return i};var Hye=pX(H3t,"TGraph",135);dIt(633,502,{3:1,502:1,633:1,94:1,134:1}),pX(H3t,"TShape",633),dIt(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},ilt),xVt.Ib=function(){return A0(this)};var jye,Kye,zye,Gye,Xye,Vye,Wye=pX(H3t,"TNode",86);dIt(255,1,pWt,hp),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return new fp(cmt(this.a.d,0))},pX(H3t,"TNode/2",255),dIt(358,1,WVt,fp),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return Q$(h3(this.a),188).c},xVt.Ob=function(){return wC(this.a)},xVt.Qb=function(){bet(this.a)},pX(H3t,"TNode/2/1",358),dIt(1840,1,ZZt,NP),xVt.pf=function(t,e){DUt(this,Q$(t,135),e)},pX(j3t,"FanProcessor",1840),dIt(327,22,{3:1,35:1,22:1,327:1,234:1},u_),xVt.Kf=function(){switch(this.g){case 0:return new Vv;case 1:return new NP;case 2:return new Io;case 3:return new So;case 4:return new Oo;case 5:return new Do;default:throw Um(new Py(x1t+(null!=this.f?this.f:""+this.g)))}};var qye,Yye,Jye,Zye,twe,ewe,nwe,rwe,iwe,awe,owe,swe,cwe,lwe,uwe,hwe,fwe,dwe,Awe,gwe,pwe,mwe,bwe,vwe,ywe,wwe,kwe,Cwe,xwe,Ewe,Twe,Bwe,_we,Swe,Lwe,Iwe,Mwe,Owe,Dwe,Fwe,Nwe,Pwe=Unt(j3t,E1t,327,zte,n7,LU);dIt(1843,1,ZZt,So),xVt.pf=function(t,e){oMt(this,Q$(t,135),e)},xVt.a=0,pX(j3t,"LevelHeightProcessor",1843),dIt(1844,1,pWt,Lo),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return xq(),Ix(),hne},pX(j3t,"LevelHeightProcessor/1",1844),dIt(1841,1,ZZt,Io),xVt.pf=function(t,e){WBt(this,Q$(t,135),e)},xVt.a=0,pX(j3t,"NeighborsProcessor",1841),dIt(1842,1,pWt,Mo),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return xq(),Ix(),hne},pX(j3t,"NeighborsProcessor/1",1842),dIt(1845,1,ZZt,Oo),xVt.pf=function(t,e){aMt(this,Q$(t,135),e)},xVt.a=0,pX(j3t,"NodePositionProcessor",1845),dIt(1839,1,ZZt,Vv),xVt.pf=function(t,e){JHt(this,Q$(t,135))},pX(j3t,"RootProcessor",1839),dIt(1846,1,ZZt,Do),xVt.pf=function(t,e){Aft(Q$(t,135))},pX(j3t,"Untreeifyer",1846),dIt(851,1,WYt,xh),xVt.Qe=function(t){Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,G3t),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),vwe),(TBt(),AEe)),$we),Zft((rmt(),cEe))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,X3t),""),"Search Order"),"Which search order to use when computing a spanning tree."),mwe),AEe),qwe),Zft(cEe)))),PKt((new Ch,t))},pX(V3t,"MrTreeMetaDataProvider",851),dIt(994,1,WYt,Ch),xVt.Qe=function(t){PKt(t)},pX(V3t,"MrTreeOptions",994),dIt(995,1,{},Fo),xVt.$e=function(){return new PP},xVt._e=function(t){},pX(V3t,"MrTreeOptions/MrtreeFactory",995),dIt(480,22,{3:1,35:1,22:1,480:1},h_);var Rwe,Qwe,Uwe,$we=Unt(V3t,"OrderWeighting",480,zte,YY,IU);dIt(425,22,{3:1,35:1,22:1,425:1},f_);var Hwe,jwe,Kwe,zwe,Gwe,Xwe,Vwe,Wwe,qwe=Unt(V3t,"TreeifyingOrder",425,zte,qY,OU);dIt(1459,1,k3t,Ah),xVt.Yf=function(t){return Q$(t,135),jwe},xVt.pf=function(t,e){vat(this,Q$(t,135),e)},pX("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),dIt(1460,1,k3t,gh),xVt.Yf=function(t){return Q$(t,135),Kwe},xVt.pf=function(t,e){u_t(this,Q$(t,135),e)},pX("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),dIt(1461,1,k3t,dh),xVt.Yf=function(t){return Q$(t,135),zwe},xVt.pf=function(t,e){ZNt(this,Q$(t,135),e)},xVt.a=0,pX("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),dIt(1462,1,k3t,ph),xVt.Yf=function(t){return Q$(t,135),Gwe},xVt.pf=function(t,e){Dwt(Q$(t,135),e)},pX("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462),dIt(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},d_),xVt.Kf=function(){return fAt(this)},xVt.Xf=function(){return fAt(this)};var Ywe,Jwe,Zwe,tke,eke=Unt(Y3t,"RadialLayoutPhases",495,zte,JY,MU);dIt(1131,209,OJt,_C),xVt.Ze=function(t,e){var n,r,i;if(Sxt(e,"Radial layout",k_t(this,t).c.length),$y(kN(JIt(t,(zyt(),Ske))))||yJ(new kA((HE(),new Dy(t)))),i=oxt(t),qmt(t,(fN(),Xwe),i),!i)throw Um(new Py("The given graph is not a tree!"));for(0==(n=Hy(CN(JIt(t,Dke))))&&(n=uSt(t)),qmt(t,Dke,n),r=new Gd(k_t(this,t));r.a<r.c.c.length;)Q$(J1(r),51).pf(t,bat(e,1));$Tt(e)},pX(Y3t,"RadialLayoutProvider",1131),dIt(549,1,xYt,BC),xVt.ue=function(t,e){return FPt(this.a,this.b,Q$(t,33),Q$(e,33))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},xVt.a=0,xVt.b=0,pX(Y3t,"RadialUtil/lambda$0$Type",549),dIt(1375,1,ZZt,Po),xVt.pf=function(t,e){AKt(Q$(t,33),e)},pX(t4t,"CalculateGraphSize",1375),dIt(442,22,{3:1,35:1,22:1,442:1,234:1},A_),xVt.Kf=function(){switch(this.g){case 0:return new Ho;case 1:return new No;case 2:return new Po;default:throw Um(new Py(x1t+(null!=this.f?this.f:""+this.g)))}};var nke,rke,ike,ake=Unt(t4t,E1t,442,zte,F1,DU);dIt(645,1,{}),xVt.e=1,xVt.g=0,pX(e4t,"AbstractRadiusExtensionCompaction",645),dIt(1772,645,{},AN),xVt.hg=function(t){var e,n,r,i,a,o,s,c,l;for(this.c=Q$(JIt(t,(fN(),Xwe)),33),td(this,this.c),this.d=kbt(Q$(JIt(t,(zyt(),Fke)),293)),(c=Q$(JIt(t,Cke),19))&&Zf(this,c.a),ed(this,(vV(s=CN(JIt(t,(cVt(),IBe)))),s)),l=dNt(this.c),this.d&&this.d.lg(l),mRt(this,l),o=new qy(Tst(Hw(jLe,1),n4t,33,0,[this.c])),n=0;n<2;n++)for(e=0;e<l.c.length;e++)i=new qy(Tst(Hw(jLe,1),n4t,33,0,[(u1(e,l.c.length),Q$(l.c[e],33))])),a=e<l.c.length-1?(u1(e+1,l.c.length),Q$(l.c[e+1],33)):(u1(0,l.c.length),Q$(l.c[0],33)),r=0==e?Q$(Oj(l,l.c.length-1),33):(u1(e-1,l.c.length),Q$(l.c[e-1],33)),Jxt(this,(u1(e,l.c.length),Q$(l.c[e],33),o),r,a,i)},pX(e4t,"AnnulusWedgeCompaction",1772),dIt(1374,1,ZZt,No),xVt.pf=function(t,e){fkt(Q$(t,33),e)},pX(e4t,"GeneralCompactor",1374),dIt(1771,645,{},Ro),xVt.hg=function(t){var e,n,r,i;n=Q$(JIt(t,(fN(),Xwe)),33),this.f=n,this.b=kbt(Q$(JIt(t,(zyt(),Fke)),293)),(i=Q$(JIt(t,Cke),19))&&Zf(this,i.a),ed(this,(vV(r=CN(JIt(t,(cVt(),IBe)))),r)),e=dNt(n),this.b&&this.b.lg(e),mBt(this,e)},xVt.a=0,pX(e4t,"RadialCompaction",1771),dIt(1779,1,{},Qo),xVt.ig=function(t){var e,n,r,i,a,o;for(this.a=t,e=0,r=0,a=new Gd(o=dNt(t));a.a<a.c.c.length;)for(i=Q$(J1(a),33),n=++r;n<o.c.length;n++)qUt(this,i,(u1(n,o.c.length),Q$(o.c[n],33)))&&(e+=1);return e},pX(r4t,"CrossingMinimizationPosition",1779),dIt(1777,1,{},Uo),xVt.ig=function(t){var n,r,i,a,o,s,c,l,h,f,d,A,g;for(i=0,r=new oz(YO(AOt(t).a.Kc(),new u));AIt(r);)n=Q$(K5(r),79),h=(c=Txt(Q$(Xet((!n.c&&(n.c=new cR(FLe,n,5,8)),n.c),0),82))).i+c.g/2,f=c.j+c.f/2,a=t.i+t.g/2,o=t.j+t.f/2,(d=new Hk).a=h-a,d.b=f-o,zwt(s=new O_(d.a,d.b),t.g,t.f),d.a-=s.a,d.b-=s.b,a=h-d.a,o=f-d.b,zwt(l=new O_(d.a,d.b),c.g,c.f),d.a-=l.a,d.b-=l.b,A=(h=a+d.a)-a,g=(f=o+d.b)-o,i+=e.Math.sqrt(A*A+g*g);return i},pX(r4t,"EdgeLengthOptimization",1777),dIt(1778,1,{},$o),xVt.ig=function(t){var n,r,i,a,o,s,c,l,h;for(i=0,r=new oz(YO(AOt(t).a.Kc(),new u));AIt(r);)n=Q$(K5(r),79),s=(o=Txt(Q$(Xet((!n.c&&(n.c=new cR(FLe,n,5,8)),n.c),0),82))).i+o.g/2,c=o.j+o.f/2,a=Q$(JIt(o,(cVt(),ABe)),8),l=s-(t.i+a.a+t.g/2),h=c-(t.j+a.b+t.f),i+=e.Math.sqrt(l*l+h*h);return i},pX(r4t,"EdgeLengthPositionOptimization",1778),dIt(1373,645,ZZt,Ho),xVt.pf=function(t,e){uOt(this,Q$(t,33),e)},pX("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1373),dIt(426,22,{3:1,35:1,22:1,426:1},g_);var oke,ske,cke,lke,uke=Unt(a4t,"AnnulusWedgeCriteria",426,zte,ZY,FU);dIt(380,22,{3:1,35:1,22:1,380:1},p_);var hke,fke,dke,Ake,gke,pke,mke,bke,vke,yke,wke,kke,Cke,xke,Eke,Tke,Bke,_ke,Ske,Lke,Ike,Mke,Oke,Dke,Fke,Nke,Pke,Rke,Qke,Uke,$ke,Hke=Unt(a4t,QJt,380,zte,N1,NU);dIt(852,1,WYt,mh),xVt.Qe=function(t){Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,o4t),""),"Order ID"),"The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."),nft(0)),(TBt(),pEe)),Lee),Zft((rmt(),sEe))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,s4t),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,c4t),""),"Compaction"),"With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."),Ake),AEe),Hke),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,l4t),""),"Compaction Step Size"),"Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."),nft(1)),pEe),Lee),Zft(cEe)))),i2(t,l4t,c4t,null),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,u4t),""),"Sorter"),"Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."),yke),AEe),Wke),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,h4t),""),"Annulus Wedge Criteria"),"Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."),kke),AEe),uke),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,f4t),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),pke),AEe),Xke),Zft(cEe)))),tGt((new bh,t))},pX(a4t,"RadialMetaDataProvider",852),dIt(996,1,WYt,bh),xVt.Qe=function(t){tGt(t)},pX(a4t,"RadialOptions",996),dIt(997,1,{},jo),xVt.$e=function(){return new _C},xVt._e=function(t){},pX(a4t,"RadialOptions/RadialFactory",997),dIt(340,22,{3:1,35:1,22:1,340:1},m_);var jke,Kke,zke,Gke,Xke=Unt(a4t,"RadialTranslationStrategy",340,zte,w3,PU);dIt(293,22,{3:1,35:1,22:1,293:1},b_);var Vke,Wke=Unt(a4t,"SortingStrategy",293,zte,R1,RU);dIt(1449,1,k3t,Ko),xVt.Yf=function(t){return Q$(t,33),null},xVt.pf=function(t,e){EOt(this,Q$(t,33),e)},xVt.c=0,pX("org.eclipse.elk.alg.radial.p1position","EadesRadial",1449),dIt(1775,1,{},zo),xVt.jg=function(t){return zmt(t)},pX(A4t,"AnnulusWedgeByLeafs",1775),dIt(1776,1,{},Go),xVt.jg=function(t){return VCt(this,t)},pX(A4t,"AnnulusWedgeByNodeSpace",1776),dIt(1450,1,k3t,Xo),xVt.Yf=function(t){return Q$(t,33),null},xVt.pf=function(t,e){fCt(this,Q$(t,33),e)},pX("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1450),dIt(811,1,{},qv),xVt.kg=function(t){},xVt.lg=function(t){Jm(this,t)},pX(g4t,"IDSorter",811),dIt(1774,1,xYt,Vo),xVt.ue=function(t,e){return Wit(Q$(t,33),Q$(e,33))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(g4t,"IDSorter/lambda$0$Type",1774),dIt(1773,1,{},Lit),xVt.kg=function(t){r2(this,t)},xVt.lg=function(t){t.dc()||(this.e||r2(this,Jj(Q$(t.Xb(0),33))),Jm(this.e,t))},pX(g4t,"PolarCoordinateSorter",1773),dIt(1136,209,OJt,Wo),xVt.Ze=function(t,n){var r,i,a,o,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w,k,C,x;if(Sxt(n,"Rectangle Packing",1),n.n&&n.n&&t&&b0(n,o2(t),(Ult(),aLe)),r=Hy(CN(JIt(t,(XMt(),uCe)))),A=Q$(JIt(t,ECe),381),m=$y(kN(JIt(t,bCe))),y=$y(kN(JIt(t,xCe))),h=$y(kN(JIt(t,ACe))),w=Q$(JIt(t,TCe),116),v=Hy(CN(JIt(t,LCe))),i=$y(kN(JIt(t,SCe))),f=$y(kN(JIt(t,gCe))),p=$y(kN(JIt(t,pCe))),x=Hy(CN(JIt(t,ICe))),!t.a&&(t.a=new tG(jLe,t,10,11)),Cit(C=t.a),p){for(d=new Mm,c=new SO(C);c.e!=c.i.gc();)E8(o=Q$(ymt(c),33),dCe)&&(d.c[d.c.length]=o);for(l=new Gd(d);l.a<l.c.c.length;)stt(C,o=Q$(J1(l),33));for(xq(),mM(d,new qo),u=new Gd(d);u.a<u.c.c.length;)o=Q$(J1(u),33),k=Q$(JIt(o,dCe),19).a,cft(C,k=e.Math.min(k,C.i),o);for(g=0,s=new SO(C);s.e!=s.i.gc();)qmt(o=Q$(ymt(s),33),fCe,nft(g)),++g}(b=GBt(t)).a-=w.b+w.c,b.b-=w.d+w.a,b.a,x<0||x<b.a?(a=SRt(new y$(r,A,m),C,v,w),n.n&&n.n&&t&&b0(n,o2(t),(Ult(),aLe))):a=new tj(r,x,0,(qOt(),PCe)),b.a+=w.b+w.c,b.b+=w.d+w.a,y||(Cit(C),a=yzt(new m3(r,h,f,i,v),C,e.Math.max(b.a,a.c),b,n,t,w)),pot(C,w),PGt(t,a.c+(w.b+w.c),a.b+(w.d+w.a),!1,!0),$y(kN(JIt(t,CCe)))||yJ(new kA((HE(),new Dy(t)))),n.n&&n.n&&t&&b0(n,o2(t),(Ult(),aLe)),$Tt(n)},pX(v4t,"RectPackingLayoutProvider",1136),dIt(1137,1,xYt,qo),xVt.ue=function(t,e){return dlt(Q$(t,33),Q$(e,33))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(v4t,"RectPackingLayoutProvider/lambda$0$Type",1137),dIt(1256,1,{},y$),xVt.a=0,xVt.c=!1,pX(y4t,"AreaApproximation",1256);var qke,Yke,Jke,Zke=hj(y4t,"BestCandidateFilter");dIt(638,1,{526:1},Yo),xVt.mg=function(t,n,r){var i,a,o,s,c,l;for(l=new Mm,o=Nqt,c=new Gd(t);c.a<c.c.c.length;)s=Q$(J1(c),220),o=e.Math.min(o,(s.c+(r.b+r.c))*(s.b+(r.d+r.a)));for(a=new Gd(t);a.a<a.c.c.length;)((i=Q$(J1(a),220)).c+(r.b+r.c))*(i.b+(r.d+r.a))==o&&(l.c[l.c.length]=i);return l},pX(y4t,"AreaFilter",638),dIt(639,1,{526:1},Jo),xVt.mg=function(t,n,r){var i,a,o,s,c,l;for(c=new Mm,l=Nqt,s=new Gd(t);s.a<s.c.c.length;)o=Q$(J1(s),220),l=e.Math.min(l,e.Math.abs((o.c+(r.b+r.c))/(o.b+(r.d+r.a))-n));for(a=new Gd(t);a.a<a.c.c.length;)i=Q$(J1(a),220),e.Math.abs((i.c+(r.b+r.c))/(i.b+(r.d+r.a))-n)==l&&(c.c[c.c.length]=i);return c},pX(y4t,"AspectRatioFilter",639),dIt(637,1,{526:1},Zo),xVt.mg=function(t,n,r){var i,a,o,s,c,l;for(l=new Mm,o=Pqt,c=new Gd(t);c.a<c.c.c.length;)s=Q$(J1(c),220),o=e.Math.max(o,Wj(s.c+(r.b+r.c),s.b+(r.d+r.a),s.a));for(a=new Gd(t);a.a<a.c.c.length;)Wj((i=Q$(J1(a),220)).c+(r.b+r.c),i.b+(r.d+r.a),i.a)==o&&(l.c[l.c.length]=i);return l},pX(y4t,"ScaleMeasureFilter",637),dIt(381,22,{3:1,35:1,22:1,381:1},v_);var tCe,eCe,nCe,rCe,iCe,aCe,oCe,sCe,cCe,lCe,uCe,hCe,fCe,dCe,ACe,gCe,pCe,mCe,bCe,vCe,yCe,wCe,kCe,CCe,xCe,ECe,TCe,BCe,_Ce,SCe,LCe,ICe,MCe=Unt(w4t,"OptimizationGoal",381,zte,P1,QU);dIt(856,1,WYt,Bh),xVt.Qe=function(t){Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,k4t),""),"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."),sCe),(TBt(),AEe)),MCe),Zft((rmt(),sEe))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,C4t),""),"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."),(cD(),!0)),fEe),yee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,x4t),""),"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."),nft(-1)),pEe),Lee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,E4t),""),"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."),nft(-1)),pEe),Lee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,T4t),""),"Only Area Approximation"),"If enabled only the width approximation step is executed and the nodes are placed accordingly. The nodes are layouted according to the packingStrategy. If set to true not expansion of nodes is taking place."),!1),fEe),yee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,B4t),""),"Compact Rows"),"Enables compaction. Compacts blocks if they do not use the full height of the row. This option allows to have a smaller drawing. If this option is disabled all nodes are placed next to each other in rows."),!0),fEe),yee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,_4t),""),"Fit Aspect Ratio"),"Expands nodes if expandNodes is true to fit the aspect ratio instead of only in their bounds. The option is only useful if the used packingStrategy is ASPECT_RATIO_DRIVEN, otherwise this may result in unreasonable ndoe expansion."),!1),fEe),yee),Zft(sEe)))),i2(t,_4t,L4t,null),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,S4t),""),"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),dEe),Tee),Zft(sEe)))),OXt((new _h,t))},pX(w4t,"RectPackingMetaDataProvider",856),dIt(1004,1,WYt,_h),xVt.Qe=function(t){OXt(t)},pX(w4t,"RectPackingOptions",1004),dIt(1005,1,{},ts),xVt.$e=function(){return new Wo},xVt._e=function(t){},pX(w4t,"RectPackingOptions/RectpackingFactory",1005),dIt(1257,1,{},m3),xVt.a=0,xVt.b=!1,xVt.c=0,xVt.d=0,xVt.e=!1,xVt.f=!1,xVt.g=0,pX("org.eclipse.elk.alg.rectpacking.seconditeration","RowFillingAndCompaction",1257),dIt(187,1,{187:1},alt),xVt.a=0,xVt.c=!1,xVt.d=0,xVt.e=0,xVt.f=0,xVt.g=0,xVt.i=0,xVt.k=!1,xVt.o=Nqt,xVt.p=Nqt,xVt.r=0,xVt.s=0,xVt.t=0,pX(M4t,"Block",187),dIt(211,1,{211:1},FJ),xVt.a=0,xVt.b=0,xVt.d=0,xVt.e=0,xVt.f=0,pX(M4t,"BlockRow",211),dIt(443,1,{443:1},NJ),xVt.b=0,xVt.c=0,xVt.d=0,xVt.e=0,xVt.f=0,pX(M4t,"BlockStack",443),dIt(220,1,{220:1},tj,aAt),xVt.a=0,xVt.b=0,xVt.c=0,xVt.d=0,xVt.e=0;var OCe,DCe,FCe,NCe,PCe,RCe=pX(M4t,"DrawingData",220);dIt(355,22,{3:1,35:1,22:1,355:1},y_);var QCe,UCe,$Ce,HCe,jCe=Unt(M4t,"DrawingDataDescriptor",355,zte,M5,UU);dIt(200,1,{200:1},O0),xVt.b=0,xVt.c=0,xVt.e=0,xVt.f=0,pX(M4t,"RectRow",200),dIt(756,1,{},kut),xVt.j=0,pX(D4t,g1t,756),dIt(1245,1,{},es),xVt.Je=function(t){return G8(t.a,t.b)},pX(D4t,p1t,1245),dIt(1246,1,{},dp),xVt.Je=function(t){return g6(this.a,t)},pX(D4t,m1t,1246),dIt(1247,1,{},Ap),xVt.Je=function(t){return Smt(this.a,t)},pX(D4t,b1t,1247),dIt(1248,1,{},gp),xVt.Je=function(t){return oct(this.a,t)},pX(D4t,"ElkGraphImporter/lambda$3$Type",1248),dIt(1249,1,{},pp),xVt.Je=function(t){return nLt(this.a,t)},pX(D4t,v1t,1249),dIt(1133,209,OJt,LC),xVt.Ze=function(t,e){var n,r,i,a,o,s,c,l,u,h;for(E8(t,(xEt(),vxe))&&(h=xN(JIt(t,(Ubt(),$xe))),(a=GPt(irt(),h))&&Q$(sJ(a.f),209).Ze(t,bat(e,1))),qmt(t,Axe,(L6(),YCe)),qmt(t,gxe,(ITt(),rxe)),qmt(t,pxe,(Mst(),Gxe)),o=Q$(JIt(t,(Ubt(),Pxe)),19).a,Sxt(e,"Overlap removal",1),$y(kN(JIt(t,Nxe))),c=new mp(s=new Fb),n=jXt(r=new kut,t),l=!0,i=0;i<o&&l;){if($y(kN(JIt(t,Rxe)))){if(s.a.$b(),$Bt(new BM(c),n.i),0==s.a.gc())break;n.e=s}for(c2(this.b),TG(this.b,(Tdt(),UCe),(_E(),Hxe)),TG(this.b,$Ce,n.g),TG(this.b,HCe,(BE(),VCe)),this.a=Ijt(this.b,n),u=new Gd(this.a);u.a<u.c.c.length;)Q$(J1(u),51).pf(n,bat(e,1));ikt(r,n),l=$y(kN(bEt(n,(Gat(),Wie)))),++i}FKt(r,n),$Tt(e)},pX(D4t,"OverlapRemovalLayoutProvider",1133),dIt(1134,1,{},mp),pX(D4t,"OverlapRemovalLayoutProvider/lambda$0$Type",1134),dIt(437,22,{3:1,35:1,22:1,437:1},w_);var KCe,zCe,GCe=Unt(D4t,"SPOrEPhases",437,zte,Q1,$U);dIt(1255,1,{},IC),pX(D4t,"ShrinkTree",1255),dIt(1135,209,OJt,Yv),xVt.Ze=function(t,e){var n,r,i,a;E8(t,(xEt(),vxe))&&(a=xN(JIt(t,vxe)),(i=GPt(irt(),a))&&Q$(sJ(i.f),209).Ze(t,bat(e,1))),n=jXt(r=new kut,t),IOt(this.a,n,bat(e,1)),FKt(r,n)},pX(D4t,"ShrinkTreeLayoutProvider",1135),dIt(300,134,{3:1,300:1,94:1,134:1},DJ),xVt.c=!1,pX("org.eclipse.elk.alg.spore.graph","Graph",300),dIt(482,22,{3:1,35:1,22:1,482:1,246:1,234:1},IE),xVt.Kf=function(){return elt(this)},xVt.Xf=function(){return elt(this)};var XCe,VCe,WCe=Unt(F4t,QJt,482,zte,NW,HU);dIt(551,22,{3:1,35:1,22:1,551:1,246:1,234:1},pN),xVt.Kf=function(){return new as},xVt.Xf=function(){return new as};var qCe,YCe,JCe,ZCe=Unt(F4t,"OverlapRemovalStrategy",551,zte,PW,jU);dIt(430,22,{3:1,35:1,22:1,430:1},k_);var txe,exe,nxe,rxe,ixe,axe,oxe=Unt(F4t,"RootSelection",430,zte,eJ,KU);dIt(316,22,{3:1,35:1,22:1,316:1},C_);var sxe,cxe,lxe,uxe,hxe,fxe,dxe,Axe,gxe,pxe,mxe,bxe,vxe,yxe,wxe,kxe,Cxe,xxe,Exe,Txe,Bxe,_xe,Sxe,Lxe,Ixe,Mxe,Oxe,Dxe,Fxe,Nxe,Pxe,Rxe,Qxe,Uxe,$xe,Hxe,jxe=Unt(F4t,"SpanningTreeCostFunction",316,zte,S5,zU);dIt(1002,1,WYt,yh),xVt.Qe=function(t){vHt(t)},pX(F4t,"SporeCompactionOptions",1002),dIt(1003,1,{},ns),xVt.$e=function(){return new Yv},xVt._e=function(t){},pX(F4t,"SporeCompactionOptions/SporeCompactionFactory",1003),dIt(855,1,WYt,wh),xVt.Qe=function(t){Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,P4t),""),"Underlying Layout Algorithm"),"A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."),(TBt(),bEe)),Wee),Zft((rmt(),cEe))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,H4t),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),Dxe),AEe),Xxe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,R4t),X4t),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),Mxe),AEe),Wxe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,Q4t),X4t),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),Lxe),AEe),jxe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,U4t),X4t),"Root node for spanning tree construction"),"The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."),null),bEe),Wee),Zft(cEe)))),i2(t,U4t,$4t,Txe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,$4t),X4t),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),_xe),AEe),oxe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,j4t),k2t),"Compaction Strategy"),"This option defines how the compaction is applied."),wxe),AEe),WCe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,K4t),k2t),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(cD(),!1)),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,z4t),V4t),"Upper limit for iterations of overlap removal"),null),nft(64)),pEe),Lee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,G4t),V4t),"Whether to run a supplementary scanline overlap check."),null),!0),fEe),yee),Zft(cEe)))),LRt((new kh,t)),vHt((new yh,t))},pX(F4t,"SporeMetaDataProvider",855),dIt(VWt,1,WYt,kh),xVt.Qe=function(t){LRt(t)},pX(F4t,"SporeOverlapRemovalOptions",VWt),dIt(1001,1,{},rs),xVt.$e=function(){return new LC},xVt._e=function(t){},pX(F4t,"SporeOverlapRemovalOptions/SporeOverlapFactory",1001),dIt(530,22,{3:1,35:1,22:1,530:1,246:1,234:1},zV),xVt.Kf=function(){return nlt(this)},xVt.Xf=function(){return nlt(this)};var Kxe,zxe,Gxe,Xxe=Unt(F4t,"StructureExtractionStrategy",530,zte,RW,GU);dIt(429,22,{3:1,35:1,22:1,429:1,246:1,234:1},x_),xVt.Kf=function(){return dAt(this)},xVt.Xf=function(){return dAt(this)};var Vxe,Wxe=Unt(F4t,"TreeConstructionStrategy",429,zte,tJ,XU);dIt(1443,1,k3t,is),xVt.Yf=function(t){return Q$(t,300),new Q2},xVt.pf=function(t,e){Ckt(Q$(t,300),e)},pX(q4t,"DelaunayTriangulationPhase",1443),dIt(1444,1,hWt,bp),xVt.td=function(t){G$(this.a,Q$(t,65).a)},pX(q4t,"DelaunayTriangulationPhase/lambda$0$Type",1444),dIt(783,1,k3t,Xv),xVt.Yf=function(t){return Q$(t,300),new Q2},xVt.pf=function(t,e){this.ng(Q$(t,300),e)},xVt.ng=function(t,e){var n;Sxt(e,"Minimum spanning tree construction",1),n=t.d?t.d.a:Q$(Oj(t.i,0),65).a,Pst(this,($y(kN(bEt(t,(Gat(),Vie)))),qHt(t.e,n,t.b)),t),$Tt(e)},pX(Y4t,"MinSTPhase",783),dIt(1446,783,k3t,bv),xVt.ng=function(t,e){var n,r;Sxt(e,"Maximum spanning tree construction",1),n=new vp(t),r=t.d?t.d.c:Q$(Oj(t.i,0),65).c,Pst(this,($y(kN(bEt(t,(Gat(),Vie)))),qHt(t.e,r,n)),t),$Tt(e)},pX(Y4t,"MaxSTPhase",1446),dIt(1447,1,{},vp),xVt.Je=function(t){return B_(this.a,t)},pX(Y4t,"MaxSTPhase/lambda$0$Type",1447),dIt(1445,1,hWt,yp),xVt.td=function(t){FM(this.a,Q$(t,65))},pX(Y4t,"MinSTPhase/lambda$0$Type",1445),dIt(785,1,k3t,as),xVt.Yf=function(t){return Q$(t,300),new Q2},xVt.pf=function(t,e){Xxt(this,Q$(t,300),e)},xVt.a=!1,pX(J4t,"GrowTreePhase",785),dIt(786,1,hWt,w$),xVt.td=function(t){est(this.a,this.b,this.c,Q$(t,221))},pX(J4t,"GrowTreePhase/lambda$0$Type",786),dIt(1448,1,k3t,os),xVt.Yf=function(t){return Q$(t,300),new Q2},xVt.pf=function(t,e){tvt(this,Q$(t,300),e)},pX(J4t,"ShrinkTreeCompactionPhase",1448),dIt(784,1,hWt,k$),xVt.td=function(t){hIt(this.a,this.b,this.c,Q$(t,221))},pX(J4t,"ShrinkTreeCompactionPhase/lambda$0$Type",784);var qxe,Yxe,Jxe=hj(v3t,"IGraphElementVisitor");dIt(860,1,{527:1},F0),xVt.og=function(t){var e;Hot(e=lPt(this,t),Q$(FX(this.b,t),94)),vOt(this,t,e)},pX(DJt,"LayoutConfigurator",860);var Zxe,tEe,eEe,nEe=hj(DJt,"LayoutConfigurator/IPropertyHolderOptionFilter");dIt(932,1,{1933:1},ss),xVt.pg=function(t,e){return Ost(),!t.Xe(e)},pX(DJt,"LayoutConfigurator/lambda$0$Type",932),dIt(933,1,{1933:1},cs),xVt.pg=function(t,e){return xC(t,e)},pX(DJt,"LayoutConfigurator/lambda$1$Type",933),dIt(931,1,{831:1},ls),xVt.qg=function(t,e){return Ost(),!t.Xe(e)},pX(DJt,"LayoutConfigurator/lambda$2$Type",931),dIt(934,1,FWt,I_),xVt.Mb=function(t){return WV(this.a,this.b,Q$(t,1933))},pX(DJt,"LayoutConfigurator/lambda$3$Type",934),dIt(858,1,{},us),pX(DJt,"RecursiveGraphLayoutEngine",858),dIt(296,60,UWt,vb,nw),pX(DJt,"UnsupportedConfigurationException",296),dIt(453,60,UWt,rw),pX(DJt,"UnsupportedGraphException",453),dIt(754,1,{}),pX(v3t,"AbstractRandomListAccessor",754),dIt(500,754,{},BDt),xVt.rg=function(){return null},xVt.d=!0,xVt.e=!0,xVt.f=0,pX(t5t,"AlgorithmAssembler",500),dIt(1236,1,FWt,hs),xVt.Mb=function(t){return!!Q$(t,123)},pX(t5t,"AlgorithmAssembler/lambda$0$Type",1236),dIt(1237,1,{},wp),xVt.Kb=function(t){return hk(this.a,Q$(t,123))},pX(t5t,"AlgorithmAssembler/lambda$1$Type",1237),dIt(1238,1,FWt,fs),xVt.Mb=function(t){return!!Q$(t,80)},pX(t5t,"AlgorithmAssembler/lambda$2$Type",1238),dIt(1239,1,hWt,kp),xVt.td=function(t){Yat(this.a,Q$(t,80))},pX(t5t,"AlgorithmAssembler/lambda$3$Type",1239),dIt(1240,1,hWt,M_),xVt.td=function(t){DF(this.a,this.b,Q$(t,234))},pX(t5t,"AlgorithmAssembler/lambda$4$Type",1240),dIt(1355,1,xYt,ds),xVt.ue=function(t,e){return Rq(Q$(t,234),Q$(e,234))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(t5t,"EnumBasedFactoryComparator",1355),dIt(80,754,{80:1},Q2),xVt.rg=function(){return new Fb},xVt.a=0,pX(t5t,"LayoutProcessorConfiguration",80),dIt(1013,1,{527:1},Sh),xVt.og=function(t){Zat(tEe,new Cp(t))},pX(KYt,"DeprecatedLayoutOptionReplacer",1013),dIt(1014,1,hWt,As),xVt.td=function(t){M7(Q$(t,160))},pX(KYt,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1014),dIt(1015,1,hWt,gs),xVt.td=function(t){CAt(Q$(t,160))},pX(KYt,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1015),dIt(1016,1,{},Cp),xVt.Od=function(t,e){FF(this.a,Q$(t,146),Q$(e,38))},pX(KYt,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1016),dIt(149,1,{686:1,149:1},xxt),xVt.Fb=function(t){return y5(this,t)},xVt.sg=function(){return this.b},xVt.tg=function(){return this.c},xVt.ne=function(){return this.e},xVt.Hb=function(){return mbt(this.c)},xVt.Ib=function(){return"Layout Algorithm: "+this.c};var rEe,iEe=pX(KYt,"LayoutAlgorithmData",149);dIt(263,1,{},ps),pX(KYt,"LayoutAlgorithmData/Builder",263),dIt(1017,1,{527:1},ms),xVt.og=function(t){rO(t,239)&&!$y(kN(t.We((cVt(),jTe))))&&PUt(Q$(t,33))},pX(KYt,"LayoutAlgorithmResolver",1017),dIt(229,1,{686:1,229:1},KZ),xVt.Fb=function(t){return!!rO(t,229)&&mR(this.b,Q$(t,229).b)},xVt.sg=function(){return this.a},xVt.tg=function(){return this.b},xVt.ne=function(){return this.d},xVt.Hb=function(){return mbt(this.b)},xVt.Ib=function(){return"Layout Type: "+this.b},pX(KYt,"LayoutCategoryData",229),dIt(344,1,{},bs),pX(KYt,"LayoutCategoryData/Builder",344),dIt(867,1,{},SPt),pX(KYt,"LayoutMetaDataService",867),dIt(868,1,{},KX),pX(KYt,"LayoutMetaDataService/Registry",868),dIt(478,1,{478:1},vs),pX(KYt,"LayoutMetaDataService/Registry/Triple",478),dIt(869,1,e5t,ys),xVt.ug=function(){return new Hk},pX(KYt,"LayoutMetaDataService/lambda$0$Type",869),dIt(870,1,n5t,ws),xVt.vg=function(t){return QM(Q$(t,8))},pX(KYt,"LayoutMetaDataService/lambda$1$Type",870),dIt(879,1,e5t,ks),xVt.ug=function(){return new Mm},pX(KYt,"LayoutMetaDataService/lambda$10$Type",879),dIt(880,1,n5t,Cs),xVt.vg=function(t){return new ZR(Q$(t,12))},pX(KYt,"LayoutMetaDataService/lambda$11$Type",880),dIt(881,1,e5t,xs),xVt.ug=function(){return new Wx},pX(KYt,"LayoutMetaDataService/lambda$12$Type",881),dIt(882,1,n5t,Es),xVt.vg=function(t){return j$(Q$(t,68))},pX(KYt,"LayoutMetaDataService/lambda$13$Type",882),dIt(883,1,e5t,Ts),xVt.ug=function(){return new Fb},pX(KYt,"LayoutMetaDataService/lambda$14$Type",883),dIt(884,1,n5t,Bs),xVt.vg=function(t){return qq(Q$(t,53))},pX(KYt,"LayoutMetaDataService/lambda$15$Type",884),dIt(885,1,e5t,_s),xVt.ug=function(){return new lI},pX(KYt,"LayoutMetaDataService/lambda$16$Type",885),dIt(886,1,n5t,Ss),xVt.vg=function(t){return x4(Q$(t,53))},pX(KYt,"LayoutMetaDataService/lambda$17$Type",886),dIt(887,1,e5t,Ls),xVt.ug=function(){return new jb},pX(KYt,"LayoutMetaDataService/lambda$18$Type",887),dIt(888,1,n5t,Is),xVt.vg=function(t){return H$(Q$(t,208))},pX(KYt,"LayoutMetaDataService/lambda$19$Type",888),dIt(871,1,e5t,Ms),xVt.ug=function(){return new vv},pX(KYt,"LayoutMetaDataService/lambda$2$Type",871),dIt(872,1,n5t,Os),xVt.vg=function(t){return new Nk(Q$(t,74))},pX(KYt,"LayoutMetaDataService/lambda$3$Type",872),dIt(873,1,e5t,Ds),xVt.ug=function(){return new uv},pX(KYt,"LayoutMetaDataService/lambda$4$Type",873),dIt(874,1,n5t,Fs),xVt.vg=function(t){return new SQ(Q$(t,142))},pX(KYt,"LayoutMetaDataService/lambda$5$Type",874),dIt(875,1,e5t,Ps),xVt.ug=function(){return new hv},pX(KYt,"LayoutMetaDataService/lambda$6$Type",875),dIt(876,1,n5t,Rs),xVt.vg=function(t){return new _Q(Q$(t,116))},pX(KYt,"LayoutMetaDataService/lambda$7$Type",876),dIt(877,1,e5t,Qs),xVt.ug=function(){return new Js},pX(KYt,"LayoutMetaDataService/lambda$8$Type",877),dIt(878,1,n5t,Us),xVt.vg=function(t){return new ntt(Q$(t,373))},pX(KYt,"LayoutMetaDataService/lambda$9$Type",878);var aEe,oEe,sEe,cEe,lEe,uEe=hj(_Jt,"IProperty");dIt(23,1,{35:1,686:1,23:1,146:1},fBt),xVt.wd=function(t){return AO(this,Q$(t,146))},xVt.Fb=function(t){return rO(t,23)?mR(this.f,Q$(t,23).f):rO(t,146)&&mR(this.f,Q$(t,146).tg())},xVt.wg=function(){var t;if(rO(this.b,4)){if(null==(t=Ygt(this.b)))throw Um(new Ry(s5t+this.f+"'. Make sure it's type is registered with the "+(wN(uIe),uIe.k)+i5t));return t}return this.b},xVt.sg=function(){return this.d},xVt.tg=function(){return this.f},xVt.ne=function(){return this.i},xVt.Hb=function(){return mbt(this.f)},xVt.Ib=function(){return"Layout Option: "+this.f},pX(KYt,"LayoutOptionData",23),dIt(24,1,{},$s),pX(KYt,"LayoutOptionData/Builder",24),dIt(175,22,{3:1,35:1,22:1,175:1},S_);var hEe,fEe,dEe,AEe,gEe,pEe,mEe,bEe,vEe,yEe=Unt(KYt,"LayoutOptionData/Target",175,zte,_5,VU);dIt(277,22,{3:1,35:1,22:1,277:1},L_);var wEe,kEe,CEe,xEe=Unt(KYt,"LayoutOptionData/Type",277,zte,Ret,WU);dIt(110,1,{110:1},hI,KW,AY),xVt.Fb=function(t){var e;return!(null==t||!rO(t,110))&&(e=Q$(t,110),rW(this.c,e.c)&&rW(this.d,e.d)&&rW(this.b,e.b)&&rW(this.a,e.a))},xVt.Hb=function(){return uut(Tst(Hw(Lte,1),$Vt,1,5,[this.c,this.d,this.b,this.a]))},xVt.Ib=function(){return"Rect[x="+this.c+",y="+this.d+",w="+this.b+",h="+this.a+"]"},xVt.a=0,xVt.b=0,xVt.c=0,xVt.d=0,pX(u1t,"ElkRectangle",110),dIt(8,1,{3:1,4:1,8:1,414:1},Hk,zZ,O_,fI),xVt.Fb=function(t){return Zrt(this,t)},xVt.Hb=function(){return XL(this.a)+fyt(XL(this.b))},xVt.Jf=function(t){var e,n,r;for(n=0;n<t.length&&Dut((h1(n,t.length),t.charCodeAt(n)),s1t);)++n;for(e=t.length;e>0&&Dut((h1(e-1,t.length),t.charCodeAt(e-1)),c1t);)--e;if(n>=e)throw Um(new Py("The given string does not contain any numbers."));if(2!=(r=yRt(t.substr(n,e-n),",|;|\r|\n")).length)throw Um(new Py("Exactly two numbers are expected, "+r.length+" were found."));try{this.a=fTt(NEt(r[0])),this.b=fTt(NEt(r[1]))}catch(t){throw rO(t=hst(t),127)?Um(new Py(l1t+t)):Um(t)}},xVt.Ib=function(){return"("+this.a+","+this.b+")"},xVt.a=0,xVt.b=0;var EEe=pX(u1t,"KVector",8);dIt(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},vv,Nk,KF),xVt.Pc=function(){return Vlt(this)},xVt.Jf=function(t){var e,n,r,i,a;n=yRt(t,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n"),bq(this);try{for(e=0,i=0,r=0,a=0;e<n.length;)null!=n[e]&&NEt(n[e]).length>0&&(i%2==0?r=fTt(n[e]):a=fTt(n[e]),i>0&&i%2!=0&&DH(this,new O_(r,a)),++i),++e}catch(t){throw rO(t=hst(t),127)?Um(new Py("The given string does not match the expected format for vectors."+t)):Um(t)}},xVt.Ib=function(){var t,e,n;for(t=new uD("("),e=cmt(this,0);e.b!=e.d.c;)oL(t,(n=Q$(h3(e),8)).a+","+n.b),e.b!=e.d.c&&(t.a+="; ");return(t.a+=")",t).a};var TEe,BEe,_Ee,SEe,LEe,IEe,MEe=pX(u1t,"KVectorChain",74);dIt(248,22,{3:1,35:1,22:1,248:1},D_);var OEe,DEe,FEe,NEe,PEe,REe,QEe,UEe,$Ee,HEe,jEe,KEe,zEe,GEe,XEe,VEe,WEe,qEe,YEe,JEe=Unt(l5t,"Alignment",248,zte,q8,qU);dIt(979,1,WYt,Lh),xVt.Qe=function(t){jQt(t)},pX(l5t,"BoxLayouterOptions",979),dIt(980,1,{},Ns),xVt.$e=function(){return new zs},xVt._e=function(t){},pX(l5t,"BoxLayouterOptions/BoxFactory",980),dIt(291,22,{3:1,35:1,22:1,291:1},F_);var ZEe,tTe,eTe,nTe,rTe,iTe,aTe,oTe,sTe,cTe,lTe,uTe,hTe,fTe,dTe,ATe,gTe,pTe,mTe,bTe,vTe,yTe,wTe,kTe,CTe,xTe,ETe,TTe,BTe,_Te,STe,LTe,ITe,MTe,OTe,DTe,FTe,NTe,PTe,RTe,QTe,UTe,$Te,HTe,jTe,KTe,zTe,GTe,XTe,VTe,WTe,qTe,YTe,JTe,ZTe,tBe,eBe,nBe,rBe,iBe,aBe,oBe,sBe,cBe,lBe,uBe,hBe,fBe,dBe,ABe,gBe,pBe,mBe,bBe,vBe,yBe,wBe,kBe,CBe,xBe,EBe,TBe,BBe,_Be,SBe,LBe,IBe,MBe,OBe,DBe,FBe,NBe,PBe,RBe,QBe,UBe,$Be=Unt(l5t,"ContentAlignment",291,zte,W8,YU);dIt(684,1,WYt,Ih),xVt.Qe=function(t){Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,d5t),""),"Layout Algorithm"),"Select a specific layout algorithm."),(TBt(),bEe)),Wee),Zft((rmt(),cEe))))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,A5t),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),mEe),iEe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,X2t),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),nTe),AEe),JEe),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,VJt),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,g5t),""),"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."),mEe),MEe),Zft(aEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,o3t),""),"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."),lTe),gEe),$Be),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,G2t),""),"Debug Mode"),"Whether additional debug information shall be generated."),(cD(),!1)),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,Y2t),""),CJt),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),fTe),AEe),GBe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,v2t),""),"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."),mTe),AEe),o_e),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,L4t),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,A2t),""),"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`."),kTe),AEe),x_e),wK(cEe,Tst(Hw(yEe,1),IWt,175,0,[sEe]))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,WJt),""),"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."),GTe),mEe),Pse),wK(cEe,Tst(Hw(yEe,1),IWt,175,0,[sEe]))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,wZt),""),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,b3t),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,xZt),""),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,kZt),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),oBe),AEe),iSe),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,g3t),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),mEe),EEe),wK(sEe,Tst(Hw(yEe,1),IWt,175,0,[lEe,oEe]))))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,pZt),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),pEe),Lee),wK(sEe,Tst(Hw(yEe,1),IWt,175,0,[aEe]))))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,vZt),""),"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)."),pEe),Lee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,yZt),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,s3t),""),"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."),STe),mEe),MEe),Zft(aEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,u3t),""),"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),fEe),yee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,h3t),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),fEe),yee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,p5t),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),mEe),FDe),wK(cEe,Tst(Hw(yEe,1),IWt,175,0,[oEe]))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,p3t),""),"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."),ITe),mEe),wse),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,K2t),""),"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),fEe),yee),wK(sEe,Tst(Hw(yEe,1),IWt,175,0,[aEe,lEe,oEe]))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,m5t),""),"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),dEe),Tee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,b5t),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,v5t),""),"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'."),nft(100)),pEe),Lee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,y5t),""),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,w5t),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),nft(4e3)),pEe),Lee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,k5t),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),nft(400)),pEe),Lee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,C5t),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,x5t),""),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,E5t),""),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,T5t),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,f5t),"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."),oTe),AEe),rLe),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,M2t),y2t),"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),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,O2t),y2t),"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),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,GJt),y2t),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,D2t),y2t),"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),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,bZt),y2t),"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),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,F2t),y2t),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,N2t),y2t),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,Q2t),y2t),"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),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,P2t),y2t),"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),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,R2t),y2t),"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),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,mZt),y2t),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,U2t),y2t),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),dEe),Tee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,$2t),y2t),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),dEe),Tee),wK(cEe,Tst(Hw(yEe,1),IWt,175,0,[sEe]))))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,H2t),y2t),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),mEe),cLe),wK(sEe,Tst(Hw(yEe,1),IWt,175,0,[aEe,lEe,oEe]))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,m3t),y2t),"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."),DBe),mEe),wse),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,A3t),L5t),"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)."),pEe),Lee),wK(cEe,Tst(Hw(yEe,1),IWt,175,0,[sEe]))))),i2(t,A3t,d3t,qTe),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,d3t),L5t),"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."),VTe),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,J2t),I5t),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),OTe),mEe),Pse),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,BZt),I5t),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),FTe),gEe),H_e),wK(sEe,Tst(Hw(yEe,1),IWt,175,0,[oEe]))))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,e3t),M5t),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),JTe),AEe),q_e),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,n3t),M5t),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),AEe),q_e),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,r3t),M5t),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),AEe),q_e),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,i3t),M5t),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),AEe),q_e),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,a3t),M5t),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),AEe),q_e),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,TZt),O5t),"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."),PTe),gEe),WSe),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,EZt),O5t),"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."),HTe),gEe),eLe),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,UZt),O5t),"Node Size Minimum"),"The minimal size to which a node can be reduced."),UTe),mEe),EEe),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,q2t),O5t),"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),fEe),yee),Zft(cEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,c3t),L2t),"Edge Label Placement"),"Gives a hint on where to put edge labels."),gTe),AEe),JBe),Zft(oEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,CZt),L2t),"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),fEe),yee),Zft(oEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,B5t),"font"),"Font Name"),"Font name used for a label."),bEe),Wee),Zft(oEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,_5t),"font"),"Font Size"),"Font size used for a label."),pEe),Lee),Zft(oEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,f3t),D5t),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),mEe),EEe),Zft(lEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,l3t),D5t),"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."),pEe),Lee),Zft(lEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,z2t),D5t),"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."),dBe),AEe),RSe),Zft(lEe)))),Ldt(t,new fBt(_k(Bk(Sk(wk(Tk(Ck(xk(new $s,j2t),D5t),"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."),dEe),Tee),Zft(lEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,_Zt),F5t),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),uBe),gEe),BSe),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,Z2t),F5t),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),fEe),yee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,t3t),F5t),"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),fEe),yee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,V2t),N5t),"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),fEe),yee),Zft(sEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,W2t),N5t),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),fEe),yee),Zft(aEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,XJt),"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),dEe),Tee),Zft(aEe)))),Ldt(t,new fBt(_k(Bk(Sk(kk(wk(Tk(Ck(xk(new $s,S5t),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),vTe),AEe),b_e),Zft(aEe)))),OE(t,new KZ(bk(yk(vk(new bs,d1t),"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.'))),OE(t,new KZ(bk(yk(vk(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.'))),OE(t,new KZ(bk(yk(vk(new bs,gZt),"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."))),OE(t,new KZ(bk(yk(vk(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."))),OE(t,new KZ(bk(yk(vk(new bs,q3t),"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."))),OE(t,new KZ(bk(yk(vk(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."))),OE(t,new KZ(bk(yk(vk(new bs,d4t),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),fRt((new Mh,t)),jQt((new Lh,t)),NNt((new Oh,t))},pX(l5t,"CoreOptions",684),dIt(103,22,{3:1,35:1,22:1,103:1},N_);var HBe,jBe,KBe,zBe,GBe=Unt(l5t,CJt,103,zte,T5,t$);dIt(272,22,{3:1,35:1,22:1,272:1},P_);var XBe,VBe,WBe,qBe,YBe,JBe=Unt(l5t,"EdgeLabelPlacement",272,zte,$1,e$);dIt(218,22,{3:1,35:1,22:1,218:1},R_);var ZBe,t_e,e_e,n_e,r_e,i_e,a_e,o_e=Unt(l5t,"EdgeRouting",218,zte,x3,n$);dIt(312,22,{3:1,35:1,22:1,312:1},Q_);var s_e,c_e,l_e,u_e,h_e,f_e,d_e,A_e,g_e,p_e,m_e,b_e=Unt(l5t,"EdgeType",312,zte,i7,r$);dIt(977,1,WYt,Mh),xVt.Qe=function(t){fRt(t)},pX(l5t,"FixedLayouterOptions",977),dIt(978,1,{},qs),xVt.$e=function(){return new js},xVt._e=function(t){},pX(l5t,"FixedLayouterOptions/FixedFactory",978),dIt(334,22,{3:1,35:1,22:1,334:1},U_);var v_e,y_e,w_e,k_e,C_e,x_e=Unt(l5t,"HierarchyHandling",334,zte,U1,i$);dIt(285,22,{3:1,35:1,22:1,285:1},$_);var E_e,T_e,B_e,__e,S_e,L_e,I_e,M_e,O_e,D_e,F_e=Unt(l5t,"LabelSide",285,zte,C3,a$);dIt(93,22,{3:1,35:1,22:1,93:1},H_);var N_e,P_e,R_e,Q_e,U_e,$_e,H_e=Unt(l5t,"NodeLabelPlacement",93,zte,ynt,o$);dIt(249,22,{3:1,35:1,22:1,249:1},j_);var j_e,K_e,z_e,G_e,X_e,V_e,W_e,q_e=Unt(l5t,"PortAlignment",249,zte,B5,s$);dIt(98,22,{3:1,35:1,22:1,98:1},K_);var Y_e,J_e,Z_e,tSe,eSe,nSe,rSe,iSe=Unt(l5t,"PortConstraints",98,zte,x8,c$);dIt(273,22,{3:1,35:1,22:1,273:1},z_);var aSe,oSe,sSe,cSe,lSe,uSe,hSe,fSe,dSe,ASe,gSe,pSe,mSe,bSe,vSe,ySe,wSe,kSe,CSe,xSe,ESe,TSe,BSe=Unt(l5t,"PortLabelPlacement",273,zte,r7,l$);dIt(61,22,{3:1,35:1,22:1,61:1},G_);var _Se,SSe,LSe,ISe,MSe,OSe,DSe,FSe,NSe,PSe,RSe=Unt(l5t,"PortSide",61,zte,c5,f$);dIt(981,1,WYt,Oh),xVt.Qe=function(t){NNt(t)},pX(l5t,"RandomLayouterOptions",981),dIt(982,1,{},Ys),xVt.$e=function(){return new ec},xVt._e=function(t){},pX(l5t,"RandomLayouterOptions/RandomFactory",982),dIt(374,22,{3:1,35:1,22:1,374:1},X_);var QSe,USe,$Se,HSe,jSe,KSe,zSe,GSe,XSe,VSe,WSe=Unt(l5t,"SizeConstraint",374,zte,k3,u$);dIt(259,22,{3:1,35:1,22:1,259:1},V_);var qSe,YSe,JSe,ZSe,tLe,eLe=Unt(l5t,"SizeOptions",259,zte,krt,h$);dIt(370,1,{1949:1},zv),xVt.b=!1,xVt.c=0,xVt.d=-1,xVt.e=null,xVt.f=null,xVt.g=-1,xVt.j=!1,xVt.k=!1,xVt.n=!1,xVt.o=0,xVt.q=0,xVt.r=0,pX(v3t,"BasicProgressMonitor",370),dIt(972,209,OJt,zs),xVt.Ze=function(t,e){var n,r,i,a,o,s,c,l,u;Sxt(e,"Box layout",2),i=jy(CN(JIt(t,(EEt(),zEe)))),a=Q$(JIt(t,HEe),116),n=$y(kN(JIt(t,PEe))),r=$y(kN(JIt(t,REe))),0===Q$(JIt(t,FEe),311).g?(s=new ZR((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a)),xq(),mM(s,new xp(r)),o=s,c=GBt(t),(null==(l=CN(JIt(t,DEe)))||(vV(l),l<=0))&&(l=1.3),PGt(t,(u=$Gt(o,i,a,c.a,c.b,n,(vV(l),l))).a,u.b,!1,!0)):yjt(t,i,a,n),$Tt(e)},pX(v3t,"BoxLayoutProvider",972),dIt(973,1,xYt,xp),xVt.ue=function(t,e){return lDt(this,Q$(t,33),Q$(e,33))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},xVt.a=!1,pX(v3t,"BoxLayoutProvider/1",973),dIt(157,1,{157:1},jet,jF),xVt.Ib=function(){return this.c?KPt(this.c):MEt(this.b)},pX(v3t,"BoxLayoutProvider/Group",157),dIt(311,22,{3:1,35:1,22:1,311:1},W_);var nLe,rLe=Unt(v3t,"BoxLayoutProvider/PackingMode",311,zte,E3,d$);dIt(974,1,xYt,Gs),xVt.ue=function(t,e){return Dq(Q$(t,157),Q$(e,157))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(v3t,"BoxLayoutProvider/lambda$0$Type",974),dIt(975,1,xYt,Xs),xVt.ue=function(t,e){return rq(Q$(t,157),Q$(e,157))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(v3t,"BoxLayoutProvider/lambda$1$Type",975),dIt(976,1,xYt,Vs),xVt.ue=function(t,e){return iq(Q$(t,157),Q$(e,157))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(v3t,"BoxLayoutProvider/lambda$2$Type",976),dIt(1365,1,{831:1},Ws),xVt.qg=function(t,e){return SE(),!rO(e,160)||xC((Ost(),Q$(t,160)),e)},pX(v3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1365),dIt(1366,1,hWt,Ep),xVt.td=function(t){Ylt(this.a,Q$(t,146))},pX(v3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1366),dIt(1367,1,hWt,Ks),xVt.td=function(t){Q$(t,94),SE()},pX(v3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1367),dIt(1371,1,hWt,Tp),xVt.td=function(t){Sit(this.a,Q$(t,94))},pX(v3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1371),dIt(1369,1,FWt,q_),xVt.Mb=function(t){return Vct(this.a,this.b,Q$(t,146))},pX(v3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1369),dIt(1368,1,FWt,Y_),xVt.Mb=function(t){return LF(this.a,this.b,Q$(t,831))},pX(v3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1368),dIt(1370,1,hWt,J_),xVt.td=function(t){Rz(this.a,this.b,Q$(t,146))},pX(v3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1370),dIt(935,1,{},Hs),xVt.Kb=function(t){return bI(t)},xVt.Fb=function(t){return this===t},pX(v3t,"ElkUtil/lambda$0$Type",935),dIt(936,1,hWt,Z_),xVt.td=function(t){rLt(this.a,this.b,Q$(t,79))},xVt.a=0,xVt.b=0,pX(v3t,"ElkUtil/lambda$1$Type",936),dIt(937,1,hWt,tS),xVt.td=function(t){wy(this.a,this.b,Q$(t,202))},xVt.a=0,xVt.b=0,pX(v3t,"ElkUtil/lambda$2$Type",937),dIt(938,1,hWt,eS),xVt.td=function(t){ZI(this.a,this.b,Q$(t,137))},xVt.a=0,xVt.b=0,pX(v3t,"ElkUtil/lambda$3$Type",938),dIt(939,1,hWt,Bp),xVt.td=function(t){rj(this.a,Q$(t,469))},pX(v3t,"ElkUtil/lambda$4$Type",939),dIt(342,1,{35:1,342:1},Lm),xVt.wd=function(t){return pO(this,Q$(t,236))},xVt.Fb=function(t){var e;return!!rO(t,342)&&(e=Q$(t,342),this.a==e.a)},xVt.Hb=function(){return TJ(this.a)},xVt.Ib=function(){return this.a+" (exclusive)"},xVt.a=0,pX(v3t,"ExclusiveBounds/ExclusiveLowerBound",342),dIt(1138,209,OJt,js),xVt.Ze=function(t,n){var r,i,a,o,s,c,l,h,f,d,A,g,p,m,b,v,y,w,k,C,x;for(Sxt(n,"Fixed Layout",1),o=Q$(JIt(t,(cVt(),pTe)),218),d=0,A=0,b=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));b.e!=b.i.gc();){for(p=Q$(ymt(b),33),(x=Q$(JIt(p,(Glt(),A_e)),8))&&(xI(p,x.a,x.b),Q$(JIt(p,l_e),174).Hc((bgt(),DSe))&&(g=Q$(JIt(p,h_e),8)).a>0&&g.b>0&&PGt(p,g.a,g.b,!0,!0)),d=e.Math.max(d,p.i+p.g),A=e.Math.max(A,p.j+p.f),h=new SO((!p.n&&(p.n=new tG(HLe,p,1,7)),p.n));h.e!=h.i.gc();)c=Q$(ymt(h),137),(x=Q$(JIt(c,A_e),8))&&xI(c,x.a,x.b),d=e.Math.max(d,p.i+c.i+c.g),A=e.Math.max(A,p.j+c.j+c.f);for(w=new SO((!p.c&&(p.c=new tG(KLe,p,9,9)),p.c));w.e!=w.i.gc();)for(y=Q$(ymt(w),118),(x=Q$(JIt(y,A_e),8))&&xI(y,x.a,x.b),k=p.i+y.i,C=p.j+y.j,d=e.Math.max(d,k+y.g),A=e.Math.max(A,C+y.f),l=new SO((!y.n&&(y.n=new tG(HLe,y,1,7)),y.n));l.e!=l.i.gc();)c=Q$(ymt(l),137),(x=Q$(JIt(c,A_e),8))&&xI(c,x.a,x.b),d=e.Math.max(d,k+c.i+c.g),A=e.Math.max(A,C+c.j+c.f);for(a=new oz(YO(AOt(p).a.Kc(),new u));AIt(a);)f=RGt(r=Q$(K5(a),79)),d=e.Math.max(d,f.a),A=e.Math.max(A,f.b);for(i=new oz(YO(dOt(p).a.Kc(),new u));AIt(i);)qJ(TEt(r=Q$(K5(i),79)))!=t&&(f=RGt(r),d=e.Math.max(d,f.a),A=e.Math.max(A,f.b))}if(o==(xdt(),VBe))for(m=new SO((!t.a&&(t.a=new tG(jLe,t,10,11)),t.a));m.e!=m.i.gc();)for(i=new oz(YO(AOt(p=Q$(ymt(m),33)).a.Kc(),new u));AIt(i);)0==(s=rUt(r=Q$(K5(i),79))).b?qmt(r,_Te,null):qmt(r,_Te,s);$y(kN(JIt(t,(Glt(),u_e))))||PGt(t,d+(v=Q$(JIt(t,f_e),116)).b+v.c,A+v.d+v.a,!0,!0),$Tt(n)},pX(v3t,"FixedLayoutProvider",1138),dIt(373,134,{3:1,414:1,373:1,94:1,134:1},Js,ntt),xVt.Jf=function(t){var e,n,r,i,a,o,s;if(t)try{for(o=yRt(t,";,;"),i=0,a=(r=o).length;i<a;++i){if(e=yRt(r[i],"\\:"),!(n=pKt(irt(),e[0])))throw Um(new Py("Invalid option id: "+e[0]));if(null==(s=Jjt(n,e[1])))throw Um(new Py("Invalid option value: "+e[1]));null==s?(!this.q&&(this.q=new Om),p6(this.q,n)):(!this.q&&(this.q=new Om),XV(this.q,n,s))}}catch(t){throw rO(t=hst(t),102)?Um(new Qlt(t)):Um(t)}},xVt.Ib=function(){return xN(E4(LW((this.q?this.q:(xq(),xq(),lne)).vc().Oc(),new Zs),O9(new W$,new Z,new V,new W,Tst(Hw(Jne,1),IWt,132,0,[]))))};var iLe,aLe,oLe,sLe,cLe=pX(v3t,"IndividualSpacings",373);dIt(971,1,{},Zs),xVt.Kb=function(t){return Fq(Q$(t,42))},pX(v3t,"IndividualSpacings/lambda$0$Type",971),dIt(709,1,{},sK),xVt.c=0,pX(v3t,"InstancePool",709),dIt(1275,1,{},tc),pX(v3t,"LoggedGraph",1275),dIt(396,22,{3:1,35:1,22:1,396:1},rS);var lLe,uLe,hLe,fLe=Unt(v3t,"LoggedGraph/Type",396,zte,T3,A$);dIt(46,1,{20:1,46:1},nS),xVt.Jc=function(t){t5(this,t)},xVt.Fb=function(t){var e,n,r;return!!rO(t,46)&&(n=Q$(t,46),e=null==this.a?null==n.a:Oht(this.a,n.a),r=null==this.b?null==n.b:Oht(this.b,n.b),e&&r)},xVt.Hb=function(){var t,e,n;return t=-65536&(e=null==this.a?0:Zct(this.a)),e&WWt^(-65536&(n=null==this.b?0:Zct(this.b)))>>16&WWt|t^(n&WWt)<<16},xVt.Kc=function(){return new _p(this)},xVt.Ib=function(){return null==this.a&&null==this.b?"pair(null,null)":null==this.a?"pair(null,"+Udt(this.b)+")":null==this.b?"pair("+Udt(this.a)+",null)":"pair("+Udt(this.a)+","+Udt(this.b)+")"},pX(v3t,"Pair",46),dIt(983,1,WVt,_p),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return!this.c&&(!this.b&&null!=this.a.a||null!=this.a.b)},xVt.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 Um(new bb)},xVt.Qb=function(){throw this.c&&null!=this.a.b?this.a.b=null:this.b&&null!=this.a.a&&(this.a.a=null),Um(new db)},xVt.b=!1,xVt.c=!1,pX(v3t,"Pair/1",983),dIt(448,1,{448:1},XW),xVt.Fb=function(t){return rW(this.a,Q$(t,448).a)&&rW(this.c,Q$(t,448).c)&&rW(this.d,Q$(t,448).d)&&rW(this.b,Q$(t,448).b)},xVt.Hb=function(){return uut(Tst(Hw(Lte,1),$Vt,1,5,[this.a,this.c,this.d,this.b]))},xVt.Ib=function(){return"("+this.a+QVt+this.c+QVt+this.d+QVt+this.b+")"},pX(v3t,"Quadruple",448),dIt(1126,209,OJt,ec),xVt.Ze=function(t,e){var n;Sxt(e,"Random Layout",1),0!=(!t.a&&(t.a=new tG(jLe,t,10,11)),t.a).i?(nGt(t,(n=Q$(JIt(t,(mgt(),MSe)),19))&&0!=n.a?new T4(n.a):new cdt,jy(CN(JIt(t,SSe))),jy(CN(JIt(t,OSe))),Q$(JIt(t,LSe),116)),$Tt(e)):$Tt(e)},pX(v3t,"RandomLayoutProvider",1126),dIt(553,1,{}),xVt.qf=function(){return new O_(this.f.i,this.f.j)},xVt.We=function(t){return wY(t,(cVt(),iBe))?JIt(this.f,hLe):JIt(this.f,t)},xVt.rf=function(){return new O_(this.f.g,this.f.f)},xVt.sf=function(){return this.g},xVt.Xe=function(t){return E8(this.f,t)},xVt.tf=function(t){Tnt(this.f,t.a),Bnt(this.f,t.b)},xVt.uf=function(t){Ent(this.f,t.a),xnt(this.f,t.b)},xVt.vf=function(t){this.g=t},xVt.g=0,pX($5t,"ElkGraphAdapters/AbstractElkGraphElementAdapter",553),dIt(554,1,{839:1},Sp),xVt.wf=function(){var t,e;if(!this.b)for(this.b=T2(mW(this.a).i),e=new SO(mW(this.a));e.e!=e.i.gc();)t=Q$(ymt(e),137),G$(this.b,new Fy(t));return this.b},xVt.b=null,pX($5t,"ElkGraphAdapters/ElkEdgeAdapter",554),dIt(301,553,{},Dy),xVt.xf=function(){return eyt(this)},xVt.a=null,pX($5t,"ElkGraphAdapters/ElkGraphAdapter",301),dIt(630,553,{181:1},Fy),pX($5t,"ElkGraphAdapters/ElkLabelAdapter",630),dIt(629,553,{680:1},qD),xVt.wf=function(){return Zvt(this)},xVt.Af=function(){var t;return!(t=Q$(JIt(this.f,(cVt(),LTe)),142))&&(t=new uv),t},xVt.Cf=function(){return tyt(this)},xVt.Ef=function(t){var e;e=new SQ(t),qmt(this.f,(cVt(),LTe),e)},xVt.Ff=function(t){qmt(this.f,(cVt(),zTe),new _Q(t))},xVt.yf=function(){return this.d},xVt.zf=function(){var t,e;if(!this.a)for(this.a=new Mm,e=new oz(YO(dOt(Q$(this.f,33)).a.Kc(),new u));AIt(e);)t=Q$(K5(e),79),G$(this.a,new Sp(t));return this.a},xVt.Bf=function(){var t,e;if(!this.c)for(this.c=new Mm,e=new oz(YO(AOt(Q$(this.f,33)).a.Kc(),new u));AIt(e);)t=Q$(K5(e),79),G$(this.c,new Sp(t));return this.c},xVt.Df=function(){return 0!=Wq(Q$(this.f,33)).i||$y(kN(Q$(this.f,33).We((cVt(),xTe))))},xVt.Gf=function(){P9(this,(HE(),uLe))},xVt.a=null,xVt.b=null,xVt.c=null,xVt.d=null,xVt.e=null,pX($5t,"ElkGraphAdapters/ElkNodeAdapter",629),dIt(1266,553,{838:1},om),xVt.wf=function(){return yyt(this)},xVt.zf=function(){var t,e;if(!this.a)for(this.a=sF(Q$(this.f,118).xg().i),e=new SO(Q$(this.f,118).xg());e.e!=e.i.gc();)t=Q$(ymt(e),79),G$(this.a,new Sp(t));return this.a},xVt.Bf=function(){var t,e;if(!this.c)for(this.c=sF(Q$(this.f,118).yg().i),e=new SO(Q$(this.f,118).yg());e.e!=e.i.gc();)t=Q$(ymt(e),79),G$(this.c,new Sp(t));return this.c},xVt.Hf=function(){return Q$(Q$(this.f,118).We((cVt(),fBe)),61)},xVt.If=function(){var t,e,n,r,i,a,o;for(r=GJ(Q$(this.f,118)),n=new SO(Q$(this.f,118).yg());n.e!=n.i.gc();)for(o=new SO((!(t=Q$(ymt(n),79)).c&&(t.c=new cR(FLe,t,5,8)),t.c));o.e!=o.i.gc();){if(Bet(Txt(a=Q$(ymt(o),82)),r))return!0;if(Txt(a)==r&&$y(kN(JIt(t,(cVt(),ETe)))))return!0}for(e=new SO(Q$(this.f,118).xg());e.e!=e.i.gc();)for(i=new SO((!(t=Q$(ymt(e),79)).b&&(t.b=new cR(FLe,t,4,7)),t.b));i.e!=i.i.gc();)if(Bet(Txt(Q$(ymt(i),82)),r))return!0;return!1},xVt.a=null,xVt.b=null,xVt.c=null,pX($5t,"ElkGraphAdapters/ElkPortAdapter",1266),dIt(1267,1,xYt,nc),xVt.ue=function(t,e){return jPt(Q$(t,118),Q$(e,118))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX($5t,"ElkGraphAdapters/PortComparator",1267);var dLe,ALe,gLe,pLe,mLe,bLe,vLe,yLe,wLe,kLe,CLe,xLe,ELe,TLe,BLe,_Le,SLe,LLe=hj(H5t,"EObject"),ILe=hj(j5t,K5t),MLe=hj(j5t,z5t),OLe=hj(j5t,G5t),DLe=hj(j5t,"ElkShape"),FLe=hj(j5t,X5t),NLe=hj(j5t,V5t),PLe=hj(j5t,W5t),RLe=hj(H5t,q5t),QLe=hj(H5t,"EFactory"),ULe=hj(H5t,Y5t),$Le=hj(H5t,"EPackage"),HLe=hj(j5t,J5t),jLe=hj(j5t,Z5t),KLe=hj(j5t,t6t);dIt(90,1,e6t),xVt.Jg=function(){return this.Kg(),null},xVt.Kg=function(){return null},xVt.Lg=function(){return this.Kg(),!1},xVt.Mg=function(){return!1},xVt.Ng=function(t){fot(this,t)},pX(n6t,"BasicNotifierImpl",90),dIt(97,90,u6t),xVt.nh=function(){return mI(this)},xVt.Og=function(t,e){return t},xVt.Pg=function(){throw Um(new gb)},xVt.Qg=function(t){var e;return e=Bbt(Q$(eet(this.Tg(),this.Vg()),18)),this.eh().ih(this,e.n,e.f,t)},xVt.Rg=function(t,e){throw Um(new gb)},xVt.Sg=function(t,e,n){return CQt(this,t,e,n)},xVt.Tg=function(){var t;return this.Pg()&&(t=this.Pg().ck())?t:this.zh()},xVt.Ug=function(){return iIt(this)},xVt.Vg=function(){throw Um(new gb)},xVt.Wg=function(){var t,e;return!(e=this.ph().dk())&&this.Pg().ik((VE(),e=null==(t=uJ(HUt(this.Tg())))?IMe:new VD(this,t))),e},xVt.Xg=function(t,e){return t},xVt.Yg=function(t){return t.Gj()?t.aj():LAt(this.Tg(),t)},xVt.Zg=function(){var t;return(t=this.Pg())?t.fk():null},xVt.$g=function(){return this.Pg()?this.Pg().ck():null},xVt._g=function(t,e,n){return Jmt(this,t,e,n)},xVt.ah=function(t){return x7(this,t)},xVt.bh=function(t,e){return X5(this,t,e)},xVt.dh=function(){var t;return!!(t=this.Pg())&&t.gk()},xVt.eh=function(){throw Um(new gb)},xVt.fh=function(){return qgt(this)},xVt.gh=function(t,e,n,r){return Omt(this,t,e,r)},xVt.hh=function(t,e,n){return Q$(eet(this.Tg(),e),66).Nj().Qj(this,this.yh(),e-this.Ah(),t,n)},xVt.ih=function(t,e,n,r){return oJ(this,t,e,r)},xVt.jh=function(t,e,n){return Q$(eet(this.Tg(),e),66).Nj().Rj(this,this.yh(),e-this.Ah(),t,n)},xVt.kh=function(){return!!this.Pg()&&!!this.Pg().ek()},xVt.lh=function(t){return mmt(this,t)},xVt.mh=function(t){return YJ(this,t)},xVt.oh=function(t){return Rjt(this,t)},xVt.ph=function(){throw Um(new gb)},xVt.qh=function(){return this.Pg()?this.Pg().ek():null},xVt.rh=function(){return qgt(this)},xVt.sh=function(t,e){v_t(this,t,e)},xVt.th=function(t){this.ph().hk(t)},xVt.uh=function(t){this.ph().kk(t)},xVt.vh=function(t){this.ph().jk(t)},xVt.wh=function(t,e){var n,r,i,a;return(a=this.Zg())&&t&&(e=Rmt(a.Vk(),this,e),a.Zk(this)),(r=this.eh())&&(gRt(this,this.eh(),this.Vg()).Bb&Uqt?(i=r.fh())&&(t?!a&&i.Zk(this):i.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},xVt.xh=function(t){var e,n,r,i,a,o,s;if((a=LAt(n=this.Tg(),t))>=(e=this.Ah()))return Q$(t,66).Nj().Uj(this,this.yh(),a-e);if(a<=-1){if(!(o=Qjt((_Bt(),qMe),n,t)))throw Um(new Py(r6t+t.ne()+o6t));if(YE(),Q$(o,66).Oj()||(o=Y1(Q9(qMe,o))),i=Q$((r=this.Yg(o))>=0?this._g(r,!0,!0):iLt(this,o,!0),153),(s=o.Zj())>1||-1==s)return Q$(Q$(i,215).hl(t,!1),76)}else if(t.$j())return Q$((r=this.Yg(t))>=0?this._g(r,!1,!0):iLt(this,t,!1),76);return new BS(this,t)},xVt.yh=function(){return V9(this)},xVt.zh=function(){return(VX(),JIe).S},xVt.Ah=function(){return hX(this.zh())},xVt.Bh=function(t){bBt(this,t)},xVt.Ib=function(){return TMt(this)},pX(h6t,"BasicEObjectImpl",97),dIt(114,97,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1}),xVt.Ch=function(t){return W9(this)[t]},xVt.Dh=function(t,e){LX(W9(this),t,e)},xVt.Eh=function(t){LX(W9(this),t,null)},xVt.Jg=function(){return Q$(vot(this,4),126)},xVt.Kg=function(){throw Um(new gb)},xVt.Lg=function(){return!!(4&this.Db)},xVt.Pg=function(){throw Um(new gb)},xVt.Fh=function(t){lpt(this,2,t)},xVt.Rg=function(t,e){this.Db=e<<16|255&this.Db,this.Fh(t)},xVt.Tg=function(){return yY(this)},xVt.Vg=function(){return this.Db>>16},xVt.Wg=function(){var t;return VE(),null==(t=uJ(HUt(Q$(vot(this,16),26)||this.zh())))?IMe:new VD(this,t)},xVt.Mg=function(){return!(1&this.Db)},xVt.Zg=function(){return Q$(vot(this,128),1935)},xVt.$g=function(){return Q$(vot(this,16),26)},xVt.dh=function(){return!!(32&this.Db)},xVt.eh=function(){return Q$(vot(this,2),49)},xVt.kh=function(){return!!(64&this.Db)},xVt.ph=function(){throw Um(new gb)},xVt.qh=function(){return Q$(vot(this,64),281)},xVt.th=function(t){lpt(this,16,t)},xVt.uh=function(t){lpt(this,128,t)},xVt.vh=function(t){lpt(this,64,t)},xVt.yh=function(){return upt(this)},xVt.Db=0,pX(h6t,"MinimalEObjectImpl",114),dIt(115,114,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),xVt.Fh=function(t){this.Cb=t},xVt.eh=function(){return this.Cb},pX(h6t,"MinimalEObjectImpl/Container",115),dIt(1985,115,{105:1,413:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),xVt._g=function(t,e,n){return kyt(this,t,e,n)},xVt.jh=function(t,e,n){return eTt(this,t,e,n)},xVt.lh=function(t){return m0(this,t)},xVt.sh=function(t,e){rlt(this,t,e)},xVt.zh=function(){return BXt(),ELe},xVt.Bh=function(t){Kst(this,t)},xVt.Ve=function(){return hmt(this)},xVt.We=function(t){return JIt(this,t)},xVt.Xe=function(t){return E8(this,t)},xVt.Ye=function(t,e){return qmt(this,t,e)},pX(f6t,"EMapPropertyHolderImpl",1985),dIt(567,115,{105:1,469:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},ac),xVt._g=function(t,e,n){switch(t){case 0:return this.a;case 1:return this.b}return Jmt(this,t,e,n)},xVt.lh=function(t){switch(t){case 0:return 0!=this.a;case 1:return 0!=this.b}return mmt(this,t)},xVt.sh=function(t,e){switch(t){case 0:return void wnt(this,Hy(CN(e)));case 1:return void knt(this,Hy(CN(e)))}v_t(this,t,e)},xVt.zh=function(){return BXt(),gLe},xVt.Bh=function(t){switch(t){case 0:return void wnt(this,0);case 1:return void knt(this,0)}bBt(this,t)},xVt.Ib=function(){var t;return 64&this.Db?TMt(this):((t=new lD(TMt(this))).a+=" (x: ",pC(t,this.a),t.a+=", y: ",pC(t,this.b),t.a+=")",t.a)},xVt.a=0,xVt.b=0,pX(f6t,"ElkBendPointImpl",567),dIt(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}),xVt._g=function(t,e,n){return Rht(this,t,e,n)},xVt.hh=function(t,e,n){return Qxt(this,t,e,n)},xVt.jh=function(t,e,n){return rst(this,t,e,n)},xVt.lh=function(t){return kot(this,t)},xVt.sh=function(t,e){jkt(this,t,e)},xVt.zh=function(){return BXt(),vLe},xVt.Bh=function(t){sht(this,t)},xVt.zg=function(){return this.k},xVt.Ag=function(){return mW(this)},xVt.Ib=function(){return qft(this)},xVt.k=null,pX(f6t,"ElkGraphElementImpl",723),dIt(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}),xVt._g=function(t,e,n){return Ndt(this,t,e,n)},xVt.lh=function(t){return uAt(this,t)},xVt.sh=function(t,e){Kkt(this,t,e)},xVt.zh=function(){return BXt(),xLe},xVt.Bh=function(t){FAt(this,t)},xVt.Bg=function(){return this.f},xVt.Cg=function(){return this.g},xVt.Dg=function(){return this.i},xVt.Eg=function(){return this.j},xVt.Fg=function(t,e){CI(this,t,e)},xVt.Gg=function(t,e){xI(this,t,e)},xVt.Hg=function(t){Tnt(this,t)},xVt.Ig=function(t){Bnt(this,t)},xVt.Ib=function(){return bTt(this)},xVt.f=0,xVt.g=0,xVt.i=0,xVt.j=0,pX(f6t,"ElkShapeImpl",724),dIt(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}),xVt._g=function(t,e,n){return $bt(this,t,e,n)},xVt.hh=function(t,e,n){return Akt(this,t,e,n)},xVt.jh=function(t,e,n){return gkt(this,t,e,n)},xVt.lh=function(t){return jct(this,t)},xVt.sh=function(t,e){MIt(this,t,e)},xVt.zh=function(){return BXt(),pLe},xVt.Bh=function(t){Dmt(this,t)},xVt.xg=function(){return!this.d&&(this.d=new cR(NLe,this,8,5)),this.d},xVt.yg=function(){return!this.e&&(this.e=new cR(NLe,this,7,4)),this.e},pX(f6t,"ElkConnectableShapeImpl",725),dIt(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},ic),xVt.Qg=function(t){return xwt(this,t)},xVt._g=function(t,e,n){switch(t){case 3:return zJ(this);case 4:return!this.b&&(this.b=new cR(FLe,this,4,7)),this.b;case 5:return!this.c&&(this.c=new cR(FLe,this,5,8)),this.c;case 6:return!this.a&&(this.a=new tG(PLe,this,6,6)),this.a;case 7:return cD(),!this.b&&(this.b=new cR(FLe,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new cR(FLe,this,5,8)),this.c.i<=1));case 8:return cD(),!!ZLt(this);case 9:return cD(),!!WSt(this);case 10:return cD(),!this.b&&(this.b=new cR(FLe,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new cR(FLe,this,5,8)),0!=this.c.i)}return Rht(this,t,e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 3:return this.Cb&&(n=(r=this.Db>>16)>=0?xwt(this,n):this.Cb.ih(this,-1-r,null,n)),XN(this,Q$(t,33),n);case 4:return!this.b&&(this.b=new cR(FLe,this,4,7)),qAt(this.b,t,n);case 5:return!this.c&&(this.c=new cR(FLe,this,5,8)),qAt(this.c,t,n);case 6:return!this.a&&(this.a=new tG(PLe,this,6,6)),qAt(this.a,t,n)}return Qxt(this,t,e,n)},xVt.jh=function(t,e,n){switch(e){case 3:return XN(this,null,n);case 4:return!this.b&&(this.b=new cR(FLe,this,4,7)),Rmt(this.b,t,n);case 5:return!this.c&&(this.c=new cR(FLe,this,5,8)),Rmt(this.c,t,n);case 6:return!this.a&&(this.a=new tG(PLe,this,6,6)),Rmt(this.a,t,n)}return rst(this,t,e,n)},xVt.lh=function(t){switch(t){case 3:return!!zJ(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 cR(FLe,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new cR(FLe,this,5,8)),this.c.i<=1));case 8:return ZLt(this);case 9:return WSt(this);case 10:return!this.b&&(this.b=new cR(FLe,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new cR(FLe,this,5,8)),0!=this.c.i)}return kot(this,t)},xVt.sh=function(t,e){switch(t){case 3:return void $Ot(this,Q$(e,33));case 4:return!this.b&&(this.b=new cR(FLe,this,4,7)),cjt(this.b),!this.b&&(this.b=new cR(FLe,this,4,7)),void gX(this.b,Q$(e,14));case 5:return!this.c&&(this.c=new cR(FLe,this,5,8)),cjt(this.c),!this.c&&(this.c=new cR(FLe,this,5,8)),void gX(this.c,Q$(e,14));case 6:return!this.a&&(this.a=new tG(PLe,this,6,6)),cjt(this.a),!this.a&&(this.a=new tG(PLe,this,6,6)),void gX(this.a,Q$(e,14))}jkt(this,t,e)},xVt.zh=function(){return BXt(),mLe},xVt.Bh=function(t){switch(t){case 3:return void $Ot(this,null);case 4:return!this.b&&(this.b=new cR(FLe,this,4,7)),void cjt(this.b);case 5:return!this.c&&(this.c=new cR(FLe,this,5,8)),void cjt(this.c);case 6:return!this.a&&(this.a=new tG(PLe,this,6,6)),void cjt(this.a)}sht(this,t)},xVt.Ib=function(){return hHt(this)},pX(f6t,"ElkEdgeImpl",352),dIt(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},oc),xVt.Qg=function(t){return cwt(this,t)},xVt._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 LO(MLe,this,5)),this.a;case 6:return XJ(this);case 7:return e?Tbt(this):this.i;case 8:return e?Ebt(this):this.f;case 9:return!this.g&&(this.g=new cR(PLe,this,9,10)),this.g;case 10:return!this.e&&(this.e=new cR(PLe,this,10,9)),this.e;case 11:return this.d}return kyt(this,t,e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 6:return this.Cb&&(n=(r=this.Db>>16)>=0?cwt(this,n):this.Cb.ih(this,-1-r,null,n)),VN(this,Q$(t,79),n);case 9:return!this.g&&(this.g=new cR(PLe,this,9,10)),qAt(this.g,t,n);case 10:return!this.e&&(this.e=new cR(PLe,this,10,9)),qAt(this.e,t,n)}return Q$(eet(Q$(vot(this,16),26)||(BXt(),bLe),e),66).Nj().Qj(this,upt(this),e-hX((BXt(),bLe)),t,n)},xVt.jh=function(t,e,n){switch(e){case 5:return!this.a&&(this.a=new LO(MLe,this,5)),Rmt(this.a,t,n);case 6:return VN(this,null,n);case 9:return!this.g&&(this.g=new cR(PLe,this,9,10)),Rmt(this.g,t,n);case 10:return!this.e&&(this.e=new cR(PLe,this,10,9)),Rmt(this.e,t,n)}return eTt(this,t,e,n)},xVt.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!!XJ(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 m0(this,t)},xVt.sh=function(t,e){switch(t){case 1:return void _nt(this,Hy(CN(e)));case 2:return void Lnt(this,Hy(CN(e)));case 3:return void Cnt(this,Hy(CN(e)));case 4:return void Snt(this,Hy(CN(e)));case 5:return!this.a&&(this.a=new LO(MLe,this,5)),cjt(this.a),!this.a&&(this.a=new LO(MLe,this,5)),void gX(this.a,Q$(e,14));case 6:return void QOt(this,Q$(e,79));case 7:return void Ort(this,Q$(e,82));case 8:return void Mrt(this,Q$(e,82));case 9:return!this.g&&(this.g=new cR(PLe,this,9,10)),cjt(this.g),!this.g&&(this.g=new cR(PLe,this,9,10)),void gX(this.g,Q$(e,14));case 10:return!this.e&&(this.e=new cR(PLe,this,10,9)),cjt(this.e),!this.e&&(this.e=new cR(PLe,this,10,9)),void gX(this.e,Q$(e,14));case 11:return void iit(this,xN(e))}rlt(this,t,e)},xVt.zh=function(){return BXt(),bLe},xVt.Bh=function(t){switch(t){case 1:return void _nt(this,0);case 2:return void Lnt(this,0);case 3:return void Cnt(this,0);case 4:return void Snt(this,0);case 5:return!this.a&&(this.a=new LO(MLe,this,5)),void cjt(this.a);case 6:return void QOt(this,null);case 7:return void Ort(this,null);case 8:return void Mrt(this,null);case 9:return!this.g&&(this.g=new cR(PLe,this,9,10)),void cjt(this.g);case 10:return!this.e&&(this.e=new cR(PLe,this,10,9)),void cjt(this.e);case 11:return void iit(this,null)}Kst(this,t)},xVt.Ib=function(){return NLt(this)},xVt.b=0,xVt.c=0,xVt.d=null,xVt.j=0,xVt.k=0,pX(f6t,"ElkEdgeSectionImpl",439),dIt(150,115,{105:1,92:1,90:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),xVt._g=function(t,e,n){return 0==t?(!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab):K7(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e,n)},xVt.hh=function(t,e,n){return 0==e?(!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n)):Q$(eet(Q$(vot(this,16),26)||this.zh(),e),66).Nj().Qj(this,upt(this),e-hX(this.zh()),t,n)},xVt.jh=function(t,e,n){return 0==e?(!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n)):Q$(eet(Q$(vot(this,16),26)||this.zh(),e),66).Nj().Rj(this,upt(this),e-hX(this.zh()),t,n)},xVt.lh=function(t){return 0==t?!!this.Ab&&0!=this.Ab.i:_3(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.oh=function(t){return lGt(this,t)},xVt.sh=function(t,e){if(0===t)return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));Mdt(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e)},xVt.uh=function(t){lpt(this,128,t)},xVt.zh=function(){return gVt(),uMe},xVt.Bh=function(t){if(0===t)return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);Hht(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.Gh=function(){this.Bb|=1},xVt.Hh=function(t){return OQt(this,t)},xVt.Bb=0,pX(h6t,"EModelElementImpl",150),dIt(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},Dh),xVt.Ih=function(t,e){return HKt(this,t,e)},xVt.Jh=function(t){var e,n,r,i;if(this.a!=zet(t)||256&t.Bb)throw Um(new Py(b6t+t.zb+g6t));for(n=vY(t);0!=i4(n.a).i;){if(nyt(e=Q$(eKt(n,0,rO(i=Q$(Xet(i4(n.a),0),87).c,88)?Q$(i,26):(gVt(),fMe)),26)))return Q$(r=zet(e).Nh().Jh(e),49).th(t),r;n=vY(e)}return"java.util.Map$Entry"==(null!=t.D?t.D:t.B)?new lj(t):new yH(t)},xVt.Kh=function(t,e){return DXt(this,t,e)},xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.a}return K7(this,t-hX((gVt(),sMe)),eet(Q$(vot(this,16),26)||sMe,t),e,n)},xVt.hh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n);case 1:return this.a&&(n=Q$(this.a,49).ih(this,4,$Le,n)),Yut(this,Q$(t,235),n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),sMe),e),66).Nj().Qj(this,upt(this),e-hX((gVt(),sMe)),t,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 1:return Yut(this,null,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),sMe),e),66).Nj().Rj(this,upt(this),e-hX((gVt(),sMe)),t,n)},xVt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return!!this.a}return _3(this,t-hX((gVt(),sMe)),eet(Q$(vot(this,16),26)||sMe,t))},xVt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void DEt(this,Q$(e,235))}Mdt(this,t-hX((gVt(),sMe)),eet(Q$(vot(this,16),26)||sMe,t),e)},xVt.zh=function(){return gVt(),sMe},xVt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return void DEt(this,null)}Hht(this,t-hX((gVt(),sMe)),eet(Q$(vot(this,16),26)||sMe,t))},pX(h6t,"EFactoryImpl",704),dIt(y6t,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},sc),xVt.Ih=function(t,e){switch(t.yj()){case 12:return Q$(e,146).tg();case 13:return Udt(e);default:throw Um(new Py(A6t+t.ne()+g6t))}},xVt.Jh=function(t){var e;switch(-1==t.G&&(t.G=(e=zet(t))?obt(e.Mh(),t):-1),t.G){case 4:return new cc;case 6:return new yv;case 7:return new wv;case 8:return new ic;case 9:return new ac;case 10:return new oc;case 11:return new uc;default:throw Um(new Py(b6t+t.zb+g6t))}},xVt.Kh=function(t,e){switch(t.yj()){case 13:case 12:return null;default:throw Um(new Py(A6t+t.ne()+g6t))}},pX(f6t,"ElkGraphFactoryImpl",y6t),dIt(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}),xVt.Wg=function(){var t;return null==(t=uJ(HUt(Q$(vot(this,16),26)||this.zh())))?(VE(),VE(),IMe):new GF(this,t)},xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.ne()}return K7(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e,n)},xVt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb}return _3(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void this.Lh(xN(e))}Mdt(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e)},xVt.zh=function(){return gVt(),hMe},xVt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return void this.Lh(null)}Hht(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.ne=function(){return this.zb},xVt.Lh=function(t){Oit(this,t)},xVt.Ib=function(){return yht(this)},xVt.zb=null,pX(h6t,"ENamedElementImpl",438),dIt(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},pY),xVt.Qg=function(t){return dwt(this,t)},xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,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 qz(this,QIe,this)),this.rb;case 6:return!this.vb&&(this.vb=new tR($Le,this,6,7)),this.vb;case 7:return e?this.Db>>16==7?Q$(this.Cb,235):null:VJ(this)}return K7(this,t-hX((gVt(),gMe)),eet(Q$(vot(this,16),26)||gMe,t),e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n);case 4:return this.sb&&(n=Q$(this.sb,49).ih(this,1,QLe,n)),wht(this,Q$(t,471),n);case 5:return!this.rb&&(this.rb=new qz(this,QIe,this)),qAt(this.rb,t,n);case 6:return!this.vb&&(this.vb=new tR($Le,this,6,7)),qAt(this.vb,t,n);case 7:return this.Cb&&(n=(r=this.Db>>16)>=0?dwt(this,n):this.Cb.ih(this,-1-r,null,n)),CQt(this,t,7,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),gMe),e),66).Nj().Qj(this,upt(this),e-hX((gVt(),gMe)),t,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 4:return wht(this,null,n);case 5:return!this.rb&&(this.rb=new qz(this,QIe,this)),Rmt(this.rb,t,n);case 6:return!this.vb&&(this.vb=new tR($Le,this,6,7)),Rmt(this.vb,t,n);case 7:return CQt(this,null,7,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),gMe),e),66).Nj().Rj(this,upt(this),e-hX((gVt(),gMe)),t,n)},xVt.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!!VJ(this)}return _3(this,t-hX((gVt(),gMe)),eet(Q$(vot(this,16),26)||gMe,t))},xVt.oh=function(t){return MDt(this,t)||lGt(this,t)},xVt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void Oit(this,xN(e));case 2:return void Fit(this,xN(e));case 3:return void Dit(this,xN(e));case 4:return void nTt(this,Q$(e,471));case 5:return!this.rb&&(this.rb=new qz(this,QIe,this)),cjt(this.rb),!this.rb&&(this.rb=new qz(this,QIe,this)),void gX(this.rb,Q$(e,14));case 6:return!this.vb&&(this.vb=new tR($Le,this,6,7)),cjt(this.vb),!this.vb&&(this.vb=new tR($Le,this,6,7)),void gX(this.vb,Q$(e,14))}Mdt(this,t-hX((gVt(),gMe)),eet(Q$(vot(this,16),26)||gMe,t),e)},xVt.vh=function(t){var e,n;if(t&&this.rb)for(n=new SO(this.rb);n.e!=n.i.gc();)rO(e=ymt(n),351)&&(Q$(e,351).w=null);lpt(this,64,t)},xVt.zh=function(){return gVt(),gMe},xVt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return void Oit(this,null);case 2:return void Fit(this,null);case 3:return void Dit(this,null);case 4:return void nTt(this,null);case 5:return!this.rb&&(this.rb=new qz(this,QIe,this)),void cjt(this.rb);case 6:return!this.vb&&(this.vb=new tR($Le,this,6,7)),void cjt(this.vb)}Hht(this,t-hX((gVt(),gMe)),eet(Q$(vot(this,16),26)||gMe,t))},xVt.Gh=function(){Cyt(this)},xVt.Mh=function(){return!this.rb&&(this.rb=new qz(this,QIe,this)),this.rb},xVt.Nh=function(){return this.sb},xVt.Oh=function(){return this.ub},xVt.Ph=function(){return this.xb},xVt.Qh=function(){return this.yb},xVt.Rh=function(t){this.ub=t},xVt.Ib=function(){var t;return 64&this.Db?yht(this):((t=new lD(yht(this))).a+=" (nsURI: ",rL(t,this.yb),t.a+=", nsPrefix: ",rL(t,this.xb),t.a+=")",t.a)},xVt.xb=null,xVt.yb=null,pX(h6t,"EPackageImpl",179),dIt(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},cIt),xVt.q=!1,xVt.r=!1;var zLe=!1;pX(f6t,"ElkGraphPackageImpl",555),dIt(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},cc),xVt.Qg=function(t){return lwt(this,t)},xVt._g=function(t,e,n){switch(t){case 7:return WJ(this);case 8:return this.a}return Ndt(this,t,e,n)},xVt.hh=function(t,e,n){var r;return 7===e?(this.Cb&&(n=(r=this.Db>>16)>=0?lwt(this,n):this.Cb.ih(this,-1-r,null,n)),XK(this,Q$(t,160),n)):Qxt(this,t,e,n)},xVt.jh=function(t,e,n){return 7==e?XK(this,null,n):rst(this,t,e,n)},xVt.lh=function(t){switch(t){case 7:return!!WJ(this);case 8:return!mR("",this.a)}return uAt(this,t)},xVt.sh=function(t,e){switch(t){case 7:return void _Dt(this,Q$(e,160));case 8:return void Drt(this,xN(e))}Kkt(this,t,e)},xVt.zh=function(){return BXt(),yLe},xVt.Bh=function(t){switch(t){case 7:return void _Dt(this,null);case 8:return void Drt(this,"")}FAt(this,t)},xVt.Ib=function(){return iBt(this)},xVt.a="",pX(f6t,"ElkLabelImpl",354),dIt(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},yv),xVt.Qg=function(t){return Ewt(this,t)},xVt._g=function(t,e,n){switch(t){case 9:return!this.c&&(this.c=new tG(KLe,this,9,9)),this.c;case 10:return!this.a&&(this.a=new tG(jLe,this,10,11)),this.a;case 11:return qJ(this);case 12:return!this.b&&(this.b=new tG(NLe,this,12,3)),this.b;case 13:return cD(),!this.a&&(this.a=new tG(jLe,this,10,11)),this.a.i>0}return $bt(this,t,e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 9:return!this.c&&(this.c=new tG(KLe,this,9,9)),qAt(this.c,t,n);case 10:return!this.a&&(this.a=new tG(jLe,this,10,11)),qAt(this.a,t,n);case 11:return this.Cb&&(n=(r=this.Db>>16)>=0?Ewt(this,n):this.Cb.ih(this,-1-r,null,n)),jP(this,Q$(t,33),n);case 12:return!this.b&&(this.b=new tG(NLe,this,12,3)),qAt(this.b,t,n)}return Akt(this,t,e,n)},xVt.jh=function(t,e,n){switch(e){case 9:return!this.c&&(this.c=new tG(KLe,this,9,9)),Rmt(this.c,t,n);case 10:return!this.a&&(this.a=new tG(jLe,this,10,11)),Rmt(this.a,t,n);case 11:return jP(this,null,n);case 12:return!this.b&&(this.b=new tG(NLe,this,12,3)),Rmt(this.b,t,n)}return gkt(this,t,e,n)},xVt.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!!qJ(this);case 12:return!!this.b&&0!=this.b.i;case 13:return!this.a&&(this.a=new tG(jLe,this,10,11)),this.a.i>0}return jct(this,t)},xVt.sh=function(t,e){switch(t){case 9:return!this.c&&(this.c=new tG(KLe,this,9,9)),cjt(this.c),!this.c&&(this.c=new tG(KLe,this,9,9)),void gX(this.c,Q$(e,14));case 10:return!this.a&&(this.a=new tG(jLe,this,10,11)),cjt(this.a),!this.a&&(this.a=new tG(jLe,this,10,11)),void gX(this.a,Q$(e,14));case 11:return void ZOt(this,Q$(e,33));case 12:return!this.b&&(this.b=new tG(NLe,this,12,3)),cjt(this.b),!this.b&&(this.b=new tG(NLe,this,12,3)),void gX(this.b,Q$(e,14))}MIt(this,t,e)},xVt.zh=function(){return BXt(),wLe},xVt.Bh=function(t){switch(t){case 9:return!this.c&&(this.c=new tG(KLe,this,9,9)),void cjt(this.c);case 10:return!this.a&&(this.a=new tG(jLe,this,10,11)),void cjt(this.a);case 11:return void ZOt(this,null);case 12:return!this.b&&(this.b=new tG(NLe,this,12,3)),void cjt(this.b)}Dmt(this,t)},xVt.Ib=function(){return KPt(this)},pX(f6t,"ElkNodeImpl",239),dIt(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},wv),xVt.Qg=function(t){return uwt(this,t)},xVt._g=function(t,e,n){return 9==t?GJ(this):$bt(this,t,e,n)},xVt.hh=function(t,e,n){var r;return 9===e?(this.Cb&&(n=(r=this.Db>>16)>=0?uwt(this,n):this.Cb.ih(this,-1-r,null,n)),WN(this,Q$(t,33),n)):Akt(this,t,e,n)},xVt.jh=function(t,e,n){return 9==e?WN(this,null,n):gkt(this,t,e,n)},xVt.lh=function(t){return 9==t?!!GJ(this):jct(this,t)},xVt.sh=function(t,e){9!==t?MIt(this,t,e):UOt(this,Q$(e,33))},xVt.zh=function(){return BXt(),kLe},xVt.Bh=function(t){9!==t?Dmt(this,t):UOt(this,null)},xVt.Ib=function(){return zPt(this)},pX(f6t,"ElkPortImpl",186);var GLe=hj(U6t,"BasicEMap/Entry");dIt(1092,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,114:1,115:1},uc),xVt.Fb=function(t){return this===t},xVt.cd=function(){return this.b},xVt.Hb=function(){return ED(this)},xVt.Uh=function(t){Frt(this,Q$(t,146))},xVt._g=function(t,e,n){switch(t){case 0:return this.b;case 1:return this.c}return Jmt(this,t,e,n)},xVt.lh=function(t){switch(t){case 0:return!!this.b;case 1:return null!=this.c}return mmt(this,t)},xVt.sh=function(t,e){switch(t){case 0:return void Frt(this,Q$(e,146));case 1:return void Rrt(this,e)}v_t(this,t,e)},xVt.zh=function(){return BXt(),CLe},xVt.Bh=function(t){switch(t){case 0:return void Frt(this,null);case 1:return void Rrt(this,null)}bBt(this,t)},xVt.Sh=function(){var t;return-1==this.a&&(t=this.b,this.a=t?Zct(t):0),this.a},xVt.dd=function(){return this.c},xVt.Th=function(t){this.a=t},xVt.ed=function(t){var e;return e=this.c,Rrt(this,t),e},xVt.Ib=function(){var t;return 64&this.Db?TMt(this):(oL(oL(oL(t=new Tw,this.b?this.b.tg():KVt),e1t),vD(this.c)),t.a)},xVt.a=-1,xVt.c=null;var XLe,VLe,WLe,qLe,YLe,JLe,ZLe,tIe,eIe=pX(f6t,"ElkPropertyToValueMapEntryImpl",1092);dIt(984,1,{},dc),pX(j6t,"JsonAdapter",984),dIt(210,60,UWt,tw),pX(j6t,"JsonImportException",210),dIt(857,1,{},Awt),pX(j6t,"JsonImporter",857),dIt(891,1,{},iS),pX(j6t,"JsonImporter/lambda$0$Type",891),dIt(892,1,{},aS),pX(j6t,"JsonImporter/lambda$1$Type",892),dIt(900,1,{},Lp),pX(j6t,"JsonImporter/lambda$10$Type",900),dIt(902,1,{},oS),pX(j6t,"JsonImporter/lambda$11$Type",902),dIt(903,1,{},sS),pX(j6t,"JsonImporter/lambda$12$Type",903),dIt(909,1,{},lq),pX(j6t,"JsonImporter/lambda$13$Type",909),dIt(908,1,{},cq),pX(j6t,"JsonImporter/lambda$14$Type",908),dIt(904,1,{},cS),pX(j6t,"JsonImporter/lambda$15$Type",904),dIt(905,1,{},lS),pX(j6t,"JsonImporter/lambda$16$Type",905),dIt(906,1,{},uS),pX(j6t,"JsonImporter/lambda$17$Type",906),dIt(907,1,{},hS),pX(j6t,"JsonImporter/lambda$18$Type",907),dIt(912,1,{},Ip),pX(j6t,"JsonImporter/lambda$19$Type",912),dIt(893,1,{},Mp),pX(j6t,"JsonImporter/lambda$2$Type",893),dIt(910,1,{},Op),pX(j6t,"JsonImporter/lambda$20$Type",910),dIt(911,1,{},Dp),pX(j6t,"JsonImporter/lambda$21$Type",911),dIt(915,1,{},Fp),pX(j6t,"JsonImporter/lambda$22$Type",915),dIt(913,1,{},Np),pX(j6t,"JsonImporter/lambda$23$Type",913),dIt(914,1,{},Pp),pX(j6t,"JsonImporter/lambda$24$Type",914),dIt(917,1,{},Rp),pX(j6t,"JsonImporter/lambda$25$Type",917),dIt(916,1,{},Qp),pX(j6t,"JsonImporter/lambda$26$Type",916),dIt(918,1,hWt,fS),xVt.td=function(t){w7(this.b,this.a,xN(t))},pX(j6t,"JsonImporter/lambda$27$Type",918),dIt(919,1,hWt,dS),xVt.td=function(t){k7(this.b,this.a,xN(t))},pX(j6t,"JsonImporter/lambda$28$Type",919),dIt(920,1,{},AS),pX(j6t,"JsonImporter/lambda$29$Type",920),dIt(896,1,{},Up),pX(j6t,"JsonImporter/lambda$3$Type",896),dIt(921,1,{},gS),pX(j6t,"JsonImporter/lambda$30$Type",921),dIt(922,1,{},$p),pX(j6t,"JsonImporter/lambda$31$Type",922),dIt(923,1,{},Hp),pX(j6t,"JsonImporter/lambda$32$Type",923),dIt(924,1,{},jp),pX(j6t,"JsonImporter/lambda$33$Type",924),dIt(925,1,{},Kp),pX(j6t,"JsonImporter/lambda$34$Type",925),dIt(859,1,{},zp),pX(j6t,"JsonImporter/lambda$35$Type",859),dIt(929,1,{},C$),pX(j6t,"JsonImporter/lambda$36$Type",929),dIt(926,1,hWt,Gp),xVt.td=function(t){W4(this.a,Q$(t,469))},pX(j6t,"JsonImporter/lambda$37$Type",926),dIt(927,1,hWt,xS),xVt.td=function(t){uL(this.a,this.b,Q$(t,202))},pX(j6t,"JsonImporter/lambda$38$Type",927),dIt(928,1,hWt,ES),xVt.td=function(t){hL(this.a,this.b,Q$(t,202))},pX(j6t,"JsonImporter/lambda$39$Type",928),dIt(894,1,{},Xp),pX(j6t,"JsonImporter/lambda$4$Type",894),dIt(930,1,hWt,Vp),xVt.td=function(t){q4(this.a,Q$(t,8))},pX(j6t,"JsonImporter/lambda$40$Type",930),dIt(895,1,{},Wp),pX(j6t,"JsonImporter/lambda$5$Type",895),dIt(899,1,{},qp),pX(j6t,"JsonImporter/lambda$6$Type",899),dIt(897,1,{},Yp),pX(j6t,"JsonImporter/lambda$7$Type",897),dIt(898,1,{},Jp),pX(j6t,"JsonImporter/lambda$8$Type",898),dIt(901,1,{},Zp),pX(j6t,"JsonImporter/lambda$9$Type",901),dIt(948,1,hWt,tm),xVt.td=function(t){JX(this.a,new HX(xN(t)))},pX(j6t,"JsonMetaDataConverter/lambda$0$Type",948),dIt(949,1,hWt,em),xVt.td=function(t){PX(this.a,Q$(t,237))},pX(j6t,"JsonMetaDataConverter/lambda$1$Type",949),dIt(950,1,hWt,nm),xVt.td=function(t){ZZ(this.a,Q$(t,149))},pX(j6t,"JsonMetaDataConverter/lambda$2$Type",950),dIt(951,1,hWt,rm),xVt.td=function(t){RX(this.a,Q$(t,175))},pX(j6t,"JsonMetaDataConverter/lambda$3$Type",951),dIt(237,22,{3:1,35:1,22:1,237:1},CS);var nIe,rIe=Unt(_Jt,"GraphFeature",237,zte,Pet,g$);dIt(13,1,{35:1,146:1},am,eP,LL,zI),xVt.wd=function(t){return gO(this,Q$(t,146))},xVt.Fb=function(t){return wY(this,t)},xVt.wg=function(){return bmt(this)},xVt.tg=function(){return this.b},xVt.Hb=function(){return mbt(this.b)},xVt.Ib=function(){return this.b},pX(_Jt,"Property",13),dIt(818,1,xYt,im),xVt.ue=function(t,e){return Rft(this,Q$(t,94),Q$(e,94))},xVt.Fb=function(t){return this===t},xVt.ve=function(){return new Jd(this)},pX(_Jt,"PropertyHolderComparator",818),dIt(695,1,WVt,sm),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return S7(this)},xVt.Qb=function(){aC()},xVt.Ob=function(){return!!this.a},pX(i8t,"ElkGraphUtil/AncestorIterator",695);var iIe=hj(U6t,"EList");dIt(67,52,{20:1,28:1,52:1,14:1,15:1,67:1,58:1}),xVt.Vc=function(t,e){cft(this,t,e)},xVt.Fc=function(t){return l7(this,t)},xVt.Wc=function(t,e){return sct(this,t,e)},xVt.Gc=function(t){return gX(this,t)},xVt.Zh=function(){return new iF(this)},xVt.$h=function(){return new aF(this)},xVt._h=function(t){return crt(this,t)},xVt.ai=function(){return!0},xVt.bi=function(t,e){},xVt.ci=function(){},xVt.di=function(t,e){I8(this,t,e)},xVt.ei=function(t,e,n){},xVt.fi=function(t,e){},xVt.gi=function(t,e,n){},xVt.Fb=function(t){return WNt(this,t)},xVt.Hb=function(){return xst(this)},xVt.hi=function(){return!1},xVt.Kc=function(){return new SO(this)},xVt.Yc=function(){return new rF(this)},xVt.Zc=function(t){var e;if(e=this.gc(),t<0||t>e)throw Um(new ZP(t,e));return new HG(this,t)},xVt.ji=function(t,e){this.ii(t,this.Xc(e))},xVt.Mc=function(t){return stt(this,t)},xVt.li=function(t,e){return e},xVt._c=function(t,e){return sbt(this,t,e)},xVt.Ib=function(){return Ydt(this)},xVt.ni=function(){return!0},xVt.oi=function(t,e){return Dlt(this,e)},pX(U6t,"AbstractEList",67),dIt(63,67,l8t,pc,get,wat),xVt.Vh=function(t,e){return Uxt(this,t,e)},xVt.Wh=function(t){return fvt(this,t)},xVt.Xh=function(t,e){_ht(this,t,e)},xVt.Yh=function(t){r6(this,t)},xVt.pi=function(t){return R7(this,t)},xVt.$b=function(){i6(this)},xVt.Hc=function(t){return Ekt(this,t)},xVt.Xb=function(t){return Xet(this,t)},xVt.qi=function(t){var e,n,r;++this.j,t>(n=null==this.g?0:this.g.length)&&(r=this.g,(e=n+(n/2|0)+4)<t&&(e=t),this.g=this.ri(e),null!=r&&aHt(r,0,this.g,0,this.i))},xVt.Xc=function(t){return Xyt(this,t)},xVt.dc=function(){return 0==this.i},xVt.ii=function(t,e){return qSt(this,t,e)},xVt.ri=function(t){return O8(Lte,$Vt,1,t,5,1)},xVt.ki=function(t){return this.g[t]},xVt.$c=function(t){return Myt(this,t)},xVt.mi=function(t,e){return ott(this,t,e)},xVt.gc=function(){return this.i},xVt.Pc=function(){return M3(this)},xVt.Qc=function(t){return WAt(this,t)},xVt.i=0;var aIe,oIe,sIe=pX(U6t,"BasicEList",63),cIe=hj(U6t,"TreeIterator");dIt(694,63,u8t),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return null!=this.g||this.c?null==this.g||0!=this.i&&Q$(this.g[this.i-1],47).Ob():ZJ(this)},xVt.Pb=function(){return aOt(this)},xVt.Qb=function(){if(!this.e)throw Um(new Ry("There is no valid object to remove."));this.e.Qb()},xVt.c=!1,pX(U6t,"AbstractTreeIterator",694),dIt(685,694,u8t,_I),xVt.si=function(t){var e;return rO(e=Q$(t,56).Wg().Kc(),279)&&Q$(e,279).Nk(new Ac),e},pX(i8t,"ElkGraphUtil/PropertiesSkippingTreeIterator",685),dIt(952,1,{},Ac),pX(i8t,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",952);var lIe,uIe=pX(i8t,"ElkReflect",null);dIt(889,1,n5t,gc),xVt.vg=function(t){return cZ(),Q6(Q$(t,174))},pX(i8t,"ElkReflect/lambda$0$Type",889),hj(U6t,"ResourceLocator"),dIt(1051,1,{}),pX(U6t,"DelegatingResourceLocator",1051),dIt(1052,1051,{}),pX("org.eclipse.emf.common","EMFPlugin",1052);var hIe,fIe=hj(Y8t,"Adapter"),dIe=hj(Y8t,"Notification");dIt(1153,1,J8t),xVt.ti=function(){return this.d},xVt.ui=function(t){},xVt.vi=function(t){this.d=t},xVt.wi=function(t){this.d==t&&(this.d=null)},xVt.d=null,pX(n6t,"AdapterImpl",1153),dIt(1995,67,Z8t),xVt.Vh=function(t,e){return yAt(this,t,e)},xVt.Wh=function(t){var e,n,r;if(++this.j,t.dc())return!1;for(e=this.Vi(),r=t.Kc();r.Ob();)n=r.Pb(),this.Ii(this.oi(e,n)),++e;return!0},xVt.Xh=function(t,e){YN(this,t,e)},xVt.Yh=function(t){tV(this,t)},xVt.Gi=function(){return this.Ji()},xVt.$b=function(){qN(this,this.Vi(),this.Wi())},xVt.Hc=function(t){return this.Li(t)},xVt.Ic=function(t){return this.Mi(t)},xVt.Hi=function(t,e){this.Si().jm()},xVt.Ii=function(t){this.Si().jm()},xVt.Ji=function(){return this.Si()},xVt.Ki=function(){this.Si().jm()},xVt.Li=function(t){return this.Si().jm()},xVt.Mi=function(t){return this.Si().jm()},xVt.Ni=function(t){return this.Si().jm()},xVt.Oi=function(t){return this.Si().jm()},xVt.Pi=function(){return this.Si().jm()},xVt.Qi=function(t){return this.Si().jm()},xVt.Ri=function(){return this.Si().jm()},xVt.Ti=function(t){return this.Si().jm()},xVt.Ui=function(t,e){return this.Si().jm()},xVt.Vi=function(){return this.Si().jm()},xVt.Wi=function(){return this.Si().jm()},xVt.Xi=function(t){return this.Si().jm()},xVt.Yi=function(){return this.Si().jm()},xVt.Fb=function(t){return this.Ni(t)},xVt.Xb=function(t){return this.li(t,this.Oi(t))},xVt.Hb=function(){return this.Pi()},xVt.Xc=function(t){return this.Qi(t)},xVt.dc=function(){return this.Ri()},xVt.ii=function(t,e){return LEt(this,t,e)},xVt.ki=function(t){return this.Oi(t)},xVt.$c=function(t){return fj(this,t)},xVt.Mc=function(t){var e;return(e=this.Xc(t))>=0&&(this.$c(e),!0)},xVt.mi=function(t,e){return this.Ui(t,this.oi(t,e))},xVt.gc=function(){return this.Vi()},xVt.Pc=function(){return this.Wi()},xVt.Qc=function(t){return this.Xi(t)},xVt.Ib=function(){return this.Yi()},pX(U6t,"DelegatingEList",1995),dIt(1996,1995,Z8t),xVt.Vh=function(t,e){return oUt(this,t,e)},xVt.Wh=function(t){return this.Vh(this.Vi(),t)},xVt.Xh=function(t,e){eIt(this,t,e)},xVt.Yh=function(t){SLt(this,t)},xVt.ai=function(){return!this.bj()},xVt.$b=function(){mjt(this)},xVt.Zi=function(t,e,n,r,i){return new MY(this,t,e,n,r,i)},xVt.$i=function(t){fot(this.Ai(),t)},xVt._i=function(){return null},xVt.aj=function(){return-1},xVt.Ai=function(){return null},xVt.bj=function(){return!1},xVt.cj=function(t,e){return e},xVt.dj=function(t,e){return e},xVt.ej=function(){return!1},xVt.fj=function(){return!this.Ri()},xVt.ii=function(t,e){var n,r;return this.ej()?(r=this.fj(),n=LEt(this,t,e),this.$i(this.Zi(7,nft(e),n,t,r)),n):LEt(this,t,e)},xVt.$c=function(t){var e,n,r,i;return this.ej()?(n=null,r=this.fj(),e=this.Zi(4,i=fj(this,t),null,t,r),this.bj()&&i?(n=this.dj(i,n))?(n.Ei(e),n.Fi()):this.$i(e):n?(n.Ei(e),n.Fi()):this.$i(e),i):(i=fj(this,t),this.bj()&&i&&(n=this.dj(i,null))&&n.Fi(),i)},xVt.mi=function(t,e){return sUt(this,t,e)},pX(n6t,"DelegatingNotifyingListImpl",1996),dIt(143,1,t7t),xVt.Ei=function(t){return PCt(this,t)},xVt.Fi=function(){L9(this)},xVt.xi=function(){return this.d},xVt._i=function(){return null},xVt.gj=function(){return null},xVt.yi=function(t){return-1},xVt.zi=function(){return NFt(this)},xVt.Ai=function(){return null},xVt.Bi=function(){return PFt(this)},xVt.Ci=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},xVt.hj=function(){return!1},xVt.Di=function(t){var e,n,r,i,a,o,s,c;switch(this.d){case 1:case 2:switch(t.xi()){case 1:case 2:if(HS(t.Ai())===HS(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()&&HS(t.Ai())===HS(this.Ai())&&this.yi(null)==t.yi(null))return o=tKt(this),a=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,r=t.Ci(),this.d=6,c=new get(2),a<=r?(l7(c,this.n),l7(c,t.Bi()),this.g=Tst(Hw(_De,1),lqt,25,15,[this.o=a,r+1])):(l7(c,t.Bi()),l7(c,this.n),this.g=Tst(Hw(_De,1),lqt,25,15,[this.o=r,a])),this.n=c,o||(this.o=-2-this.o-1),!0;break;case 6:if(4===t.xi()&&HS(t.Ai())===HS(this.Ai())&&this.yi(null)==t.yi(null)){for(o=tKt(this),r=t.Ci(),s=Q$(this.g,48),n=O8(_De,lqt,25,s.length+1,15,1),e=0;e<s.length&&(i=s[e])<=r;)n[e++]=i,++r;for(Q$(this.n,15).Vc(e,t.Bi()),n[e]=r;++e<n.length;)n[e]=s[e-1];return this.g=n,o||(this.o=-2-n[0]),!0}}return!1},xVt.Ib=function(){var t,e,n;switch((n=new lD(Jk(this.gm)+"@"+(Zct(this)>>>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:mC(n,this.d)}if(hRt(this)&&(n.a+=", touch: true"),n.a+=", position: ",mC(n,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),n.a+=", notifier: ",nL(n,this.Ai()),n.a+=", feature: ",nL(n,this._i()),n.a+=", oldValue: ",nL(n,PFt(this)),n.a+=", newValue: ",6==this.d&&rO(this.g,48)){for(e=Q$(this.g,48),n.a+="[",t=0;t<e.length;)n.a+=e[t],++t<e.length&&(n.a+=QVt);n.a+="]"}else nL(n,NFt(this));return n.a+=", isTouch: ",bC(n,hRt(this)),n.a+=", wasSet: ",bC(n,tKt(this)),n.a+=")",n.a},xVt.d=0,xVt.e=0,xVt.f=0,xVt.j=0,xVt.k=0,xVt.o=0,xVt.p=0,pX(n6t,"NotificationImpl",143),dIt(1167,143,t7t,MY),xVt._i=function(){return this.a._i()},xVt.yi=function(t){return this.a.aj()},xVt.Ai=function(){return this.a.Ai()},pX(n6t,"DelegatingNotifyingListImpl/1",1167),dIt(242,63,l8t,mc,Rk),xVt.Fc=function(t){return xAt(this,Q$(t,366))},xVt.Ei=function(t){return xAt(this,t)},xVt.Fi=function(){var t,e,n;for(t=0;t<this.i;++t)null!=(n=(e=Q$(this.g[t],366)).Ai())&&-1!=e.xi()&&Q$(n,92).Ng(e)},xVt.ri=function(t){return O8(dIe,$Vt,366,t,0,1)},pX(n6t,"NotificationChainImpl",242),dIt(1378,90,e6t),xVt.Kg=function(){return this.e},xVt.Mg=function(){return!!(1&this.f)},xVt.f=1,pX(n6t,"NotifierImpl",1378),dIt(1993,63,l8t),xVt.Vh=function(t,e){return MUt(this,t,e)},xVt.Wh=function(t){return this.Vh(this.i,t)},xVt.Xh=function(t,e){HLt(this,t,e)},xVt.Yh=function(t){tIt(this,t)},xVt.ai=function(){return!this.bj()},xVt.$b=function(){cjt(this)},xVt.Zi=function(t,e,n,r,i){return new OY(this,t,e,n,r,i)},xVt.$i=function(t){fot(this.Ai(),t)},xVt._i=function(){return null},xVt.aj=function(){return-1},xVt.Ai=function(){return null},xVt.bj=function(){return!1},xVt.ij=function(){return!1},xVt.cj=function(t,e){return e},xVt.dj=function(t,e){return e},xVt.ej=function(){return!1},xVt.fj=function(){return 0!=this.i},xVt.ii=function(t,e){return _ft(this,t,e)},xVt.$c=function(t){return uNt(this,t)},xVt.mi=function(t,e){return u$t(this,t,e)},xVt.jj=function(t,e){return e},xVt.kj=function(t,e){return e},xVt.lj=function(t,e,n){return n},pX(n6t,"NotifyingListImpl",1993),dIt(1166,143,t7t,OY),xVt._i=function(){return this.a._i()},xVt.yi=function(t){return this.a.aj()},xVt.Ai=function(){return this.a.Ai()},pX(n6t,"NotifyingListImpl/1",1166),dIt(953,63,l8t,iP),xVt.Hc=function(t){return this.i>10?(this.b&&this.c.j==this.a||(this.b=new Lj(this),this.a=this.j),Rx(this.b,t)):Ekt(this,t)},xVt.ni=function(){return!0},xVt.a=0,pX(U6t,"AbstractEList/1",953),dIt(295,73,Oqt,ZP),pX(U6t,"AbstractEList/BasicIndexOutOfBoundsException",295),dIt(40,1,WVt,SO),xVt.Nb=function(t){lG(this,t)},xVt.mj=function(){if(this.i.j!=this.f)throw Um(new pb)},xVt.nj=function(){return ymt(this)},xVt.Ob=function(){return this.e!=this.i.gc()},xVt.Pb=function(){return this.nj()},xVt.Qb=function(){Wkt(this)},xVt.e=0,xVt.f=0,xVt.g=-1,pX(U6t,"AbstractEList/EIterator",40),dIt(278,40,iWt,rF,HG),xVt.Qb=function(){Wkt(this)},xVt.Rb=function(t){sgt(this,t)},xVt.oj=function(){var t;try{return t=this.d.Xb(--this.e),this.mj(),this.g=this.e,t}catch(t){throw rO(t=hst(t),73)?(this.mj(),Um(new bb)):Um(t)}},xVt.pj=function(t){yvt(this,t)},xVt.Sb=function(){return 0!=this.e},xVt.Tb=function(){return this.e},xVt.Ub=function(){return this.oj()},xVt.Vb=function(){return this.e-1},xVt.Wb=function(t){this.pj(t)},pX(U6t,"AbstractEList/EListIterator",278),dIt(341,40,WVt,iF),xVt.nj=function(){return wmt(this)},xVt.Qb=function(){throw Um(new gb)},pX(U6t,"AbstractEList/NonResolvingEIterator",341),dIt(385,278,iWt,aF,FR),xVt.Rb=function(t){throw Um(new gb)},xVt.nj=function(){var t;try{return t=this.c.ki(this.e),this.mj(),this.g=this.e++,t}catch(t){throw rO(t=hst(t),73)?(this.mj(),Um(new bb)):Um(t)}},xVt.oj=function(){var t;try{return t=this.c.ki(--this.e),this.mj(),this.g=this.e,t}catch(t){throw rO(t=hst(t),73)?(this.mj(),Um(new bb)):Um(t)}},xVt.Qb=function(){throw Um(new gb)},xVt.Wb=function(t){throw Um(new gb)},pX(U6t,"AbstractEList/NonResolvingEListIterator",385),dIt(1982,67,r7t),xVt.Vh=function(t,e){var n,r,i,a,o,s,c,l,u;if(0!=(r=e.gc())){for(n=Tlt(this,(l=null==(c=Q$(vot(this.a,4),126))?0:c.length)+r),(u=l-t)>0&&aHt(c,t,n,t+r,u),s=e.Kc(),a=0;a<r;++a)qI(n,t+a,Dlt(this,o=s.Pb()));for(Qpt(this,n),i=0;i<r;++i)o=n[t],this.bi(t,o),++t;return!0}return++this.j,!1},xVt.Wh=function(t){var e,n,r,i,a,o,s,c,l;if(0!=(r=t.gc())){for(e=Tlt(this,l=(c=null==(n=Q$(vot(this.a,4),126))?0:n.length)+r),s=t.Kc(),a=c;a<l;++a)qI(e,a,Dlt(this,o=s.Pb()));for(Qpt(this,e),i=c;i<l;++i)o=e[i],this.bi(i,o);return!0}return++this.j,!1},xVt.Xh=function(t,e){var n,r,i,a;n=Tlt(this,(i=null==(r=Q$(vot(this.a,4),126))?0:r.length)+1),a=Dlt(this,e),t!=i&&aHt(r,t,n,t+1,i-t),LX(n,t,a),Qpt(this,n),this.bi(t,e)},xVt.Yh=function(t){var e,n,r;qI(e=Tlt(this,(r=null==(n=Q$(vot(this.a,4),126))?0:n.length)+1),r,Dlt(this,t)),Qpt(this,e),this.bi(r,t)},xVt.Zh=function(){return new x5(this)},xVt.$h=function(){return new Wz(this)},xVt._h=function(t){var e,n;if(n=null==(e=Q$(vot(this.a,4),126))?0:e.length,t<0||t>n)throw Um(new ZP(t,n));return new QV(this,t)},xVt.$b=function(){var t,e;++this.j,e=null==(t=Q$(vot(this.a,4),126))?0:t.length,Qpt(this,null),I8(this,e,t)},xVt.Hc=function(t){var e,n,r,i;if(null!=(e=Q$(vot(this.a,4),126)))if(null!=t){for(r=0,i=(n=e).length;r<i;++r)if(Oht(t,n[r]))return!0}else for(r=0,i=(n=e).length;r<i;++r)if(HS(n[r])===HS(t))return!0;return!1},xVt.Xb=function(t){var e,n;if(t>=(n=null==(e=Q$(vot(this.a,4),126))?0:e.length))throw Um(new ZP(t,n));return e[t]},xVt.Xc=function(t){var e,n,r;if(null!=(e=Q$(vot(this.a,4),126)))if(null!=t){for(n=0,r=e.length;n<r;++n)if(Oht(t,e[n]))return n}else for(n=0,r=e.length;n<r;++n)if(HS(e[n])===HS(t))return n;return-1},xVt.dc=function(){return null==Q$(vot(this.a,4),126)},xVt.Kc=function(){return new C5(this)},xVt.Yc=function(){return new Vz(this)},xVt.Zc=function(t){var e,n;if(n=null==(e=Q$(vot(this.a,4),126))?0:e.length,t<0||t>n)throw Um(new ZP(t,n));return new RV(this,t)},xVt.ii=function(t,e){var n,r,i;if(t>=(i=null==(n=Igt(this))?0:n.length))throw Um(new Sy(o8t+t+s8t+i));if(e>=i)throw Um(new Sy(c8t+e+s8t+i));return r=n[e],t!=e&&(t<e?aHt(n,t,n,t+1,e-t):aHt(n,e+1,n,e,t-e),LX(n,t,r),Qpt(this,n)),r},xVt.ki=function(t){return Q$(vot(this.a,4),126)[t]},xVt.$c=function(t){return kLt(this,t)},xVt.mi=function(t,e){var n,r;return r=(n=Igt(this))[t],qI(n,t,Dlt(this,e)),Qpt(this,n),r},xVt.gc=function(){var t;return null==(t=Q$(vot(this.a,4),126))?0:t.length},xVt.Pc=function(){var t,e,n;return n=null==(t=Q$(vot(this.a,4),126))?0:t.length,e=O8(fIe,n7t,415,n,0,1),n>0&&aHt(t,0,e,0,n),e},xVt.Qc=function(t){var e,n;return(n=null==(e=Q$(vot(this.a,4),126))?0:e.length)>0&&(t.length<n&&(t=Fnt(tlt(t).c,n)),aHt(e,0,t,0,n)),t.length>n&&LX(t,n,null),t},pX(U6t,"ArrayDelegatingEList",1982),dIt(1038,40,WVt,C5),xVt.mj=function(){if(this.b.j!=this.f||HS(Q$(vot(this.b.a,4),126))!==HS(this.a))throw Um(new pb)},xVt.Qb=function(){Wkt(this),this.a=Q$(vot(this.b.a,4),126)},pX(U6t,"ArrayDelegatingEList/EIterator",1038),dIt(706,278,iWt,Vz,RV),xVt.mj=function(){if(this.b.j!=this.f||HS(Q$(vot(this.b.a,4),126))!==HS(this.a))throw Um(new pb)},xVt.pj=function(t){yvt(this,t),this.a=Q$(vot(this.b.a,4),126)},xVt.Qb=function(){Wkt(this),this.a=Q$(vot(this.b.a,4),126)},pX(U6t,"ArrayDelegatingEList/EListIterator",706),dIt(1039,341,WVt,x5),xVt.mj=function(){if(this.b.j!=this.f||HS(Q$(vot(this.b.a,4),126))!==HS(this.a))throw Um(new pb)},pX(U6t,"ArrayDelegatingEList/NonResolvingEIterator",1039),dIt(707,385,iWt,Wz,QV),xVt.mj=function(){if(this.b.j!=this.f||HS(Q$(vot(this.b.a,4),126))!==HS(this.a))throw Um(new pb)},pX(U6t,"ArrayDelegatingEList/NonResolvingEListIterator",707),dIt(606,295,Oqt,IL),pX(U6t,"BasicEList/BasicIndexOutOfBoundsException",606),dIt(696,63,l8t,DS),xVt.Vc=function(t,e){throw Um(new gb)},xVt.Fc=function(t){throw Um(new gb)},xVt.Wc=function(t,e){throw Um(new gb)},xVt.Gc=function(t){throw Um(new gb)},xVt.$b=function(){throw Um(new gb)},xVt.qi=function(t){throw Um(new gb)},xVt.Kc=function(){return this.Zh()},xVt.Yc=function(){return this.$h()},xVt.Zc=function(t){return this._h(t)},xVt.ii=function(t,e){throw Um(new gb)},xVt.ji=function(t,e){throw Um(new gb)},xVt.$c=function(t){throw Um(new gb)},xVt.Mc=function(t){throw Um(new gb)},xVt._c=function(t,e){throw Um(new gb)},pX(U6t,"BasicEList/UnmodifiableEList",696),dIt(705,1,{3:1,20:1,14:1,15:1,58:1,589:1}),xVt.Vc=function(t,e){VM(this,t,Q$(e,42))},xVt.Fc=function(t){return iN(this,Q$(t,42))},xVt.Jc=function(t){t5(this,t)},xVt.Xb=function(t){return Q$(Xet(this.c,t),133)},xVt.ii=function(t,e){return Q$(this.c.ii(t,e),42)},xVt.ji=function(t,e){WM(this,t,Q$(e,42))},xVt.Lc=function(){return new Fj(null,new f1(this,16))},xVt.$c=function(t){return Q$(this.c.$c(t),42)},xVt._c=function(t,e){return aX(this,t,Q$(e,42))},xVt.ad=function(t){Rit(this,t)},xVt.Nc=function(){return new f1(this,16)},xVt.Oc=function(){return new Fj(null,new f1(this,16))},xVt.Wc=function(t,e){return this.c.Wc(t,e)},xVt.Gc=function(t){return this.c.Gc(t)},xVt.$b=function(){this.c.$b()},xVt.Hc=function(t){return this.c.Hc(t)},xVt.Ic=function(t){return sst(this.c,t)},xVt.qj=function(){var t,e;if(null==this.d){for(this.d=O8(sIe,i7t,63,2*this.f+1,0,1),e=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)_bt(this,Q$(t.nj(),133));this.e=e}},xVt.Fb=function(t){return MR(this,t)},xVt.Hb=function(){return xst(this.c)},xVt.Xc=function(t){return this.c.Xc(t)},xVt.rj=function(){this.c=new cm(this)},xVt.dc=function(){return 0==this.f},xVt.Kc=function(){return this.c.Kc()},xVt.Yc=function(){return this.c.Yc()},xVt.Zc=function(t){return this.c.Zc(t)},xVt.sj=function(){return S8(this)},xVt.tj=function(t,e,n){return new x$(t,e,n)},xVt.uj=function(){return new bc},xVt.Mc=function(t){return lrt(this,t)},xVt.gc=function(){return this.f},xVt.bd=function(t,e){return new s1(this.c,t,e)},xVt.Pc=function(){return this.c.Pc()},xVt.Qc=function(t){return this.c.Qc(t)},xVt.Ib=function(){return Ydt(this.c)},xVt.e=0,xVt.f=0,pX(U6t,"BasicEMap",705),dIt(1033,63,l8t,cm),xVt.bi=function(t,e){Sb(this,Q$(e,133))},xVt.ei=function(t,e,n){var r;++(r=this,Q$(e,133),r).a.e},xVt.fi=function(t,e){Lb(this,Q$(e,133))},xVt.gi=function(t,e,n){XD(this,Q$(e,133),Q$(n,133))},xVt.di=function(t,e){aot(this.a)},pX(U6t,"BasicEMap/1",1033),dIt(1034,63,l8t,bc),xVt.ri=function(t){return O8(gIe,a7t,612,t,0,1)},pX(U6t,"BasicEMap/2",1034),dIt(1035,ZVt,tWt,lm),xVt.$b=function(){this.a.c.$b()},xVt.Hc=function(t){return rgt(this.a,t)},xVt.Kc=function(){return 0==this.a.f?(dN(),AIe.a):new Qk(this.a)},xVt.Mc=function(t){var e;return e=this.a.f,Xgt(this.a,t),this.a.f!=e},xVt.gc=function(){return this.a.f},pX(U6t,"BasicEMap/3",1035),dIt(1036,28,JVt,um),xVt.$b=function(){this.a.c.$b()},xVt.Hc=function(t){return qNt(this.a,t)},xVt.Kc=function(){return 0==this.a.f?(dN(),AIe.a):new Uk(this.a)},xVt.gc=function(){return this.a.f},pX(U6t,"BasicEMap/4",1036),dIt(1037,ZVt,tWt,hm),xVt.$b=function(){this.a.c.$b()},xVt.Hc=function(t){var e,n,r,i,a,o,s,c,l;if(this.a.f>0&&rO(t,42)&&(this.a.qj(),i=null==(s=(c=Q$(t,42)).cd())?0:Zct(s),a=tP(this.a,i),e=this.a.d[a]))for(n=Q$(e.g,367),l=e.i,o=0;o<l;++o)if((r=n[o]).Sh()==i&&r.Fb(c))return!0;return!1},xVt.Kc=function(){return 0==this.a.f?(dN(),AIe.a):new gq(this.a)},xVt.Mc=function(t){return _It(this,t)},xVt.gc=function(){return this.a.f},pX(U6t,"BasicEMap/5",1037),dIt(613,1,WVt,gq),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return-1!=this.b},xVt.Pb=function(){var t;if(this.f.e!=this.c)throw Um(new pb);if(-1==this.b)throw Um(new bb);return this.d=this.a,this.e=this.b,okt(this),t=Q$(this.f.d[this.d].g[this.e],133),this.vj(t)},xVt.Qb=function(){if(this.f.e!=this.c)throw Um(new pb);if(-1==this.e)throw Um(new db);this.f.c.Mc(Xet(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&-1!=this.b&&--this.b},xVt.vj=function(t){return t},xVt.a=0,xVt.b=-1,xVt.c=0,xVt.d=0,xVt.e=0,pX(U6t,"BasicEMap/BasicEMapIterator",613),dIt(1031,613,WVt,Qk),xVt.vj=function(t){return t.cd()},pX(U6t,"BasicEMap/BasicEMapKeyIterator",1031),dIt(1032,613,WVt,Uk),xVt.vj=function(t){return t.dd()},pX(U6t,"BasicEMap/BasicEMapValueIterator",1032),dIt(1030,1,YVt,fm),xVt.wc=function(t){Zat(this,t)},xVt.yc=function(t,e,n){return Jft(this,t,e,n)},xVt.$b=function(){this.a.c.$b()},xVt._b=function(t){return QS(this,t)},xVt.uc=function(t){return qNt(this.a,t)},xVt.vc=function(){return B8(this.a)},xVt.Fb=function(t){return MR(this.a,t)},xVt.xc=function(t){return igt(this.a,t)},xVt.Hb=function(){return xst(this.a.c)},xVt.dc=function(){return 0==this.a.f},xVt.ec=function(){return _8(this.a)},xVt.zc=function(t,e){return mkt(this.a,t,e)},xVt.Bc=function(t){return Xgt(this.a,t)},xVt.gc=function(){return this.a.f},xVt.Ib=function(){return Ydt(this.a.c)},xVt.Cc=function(){return T8(this.a)},pX(U6t,"BasicEMap/DelegatingMap",1030),dIt(612,1,{42:1,133:1,612:1},x$),xVt.Fb=function(t){var e;return!!rO(t,42)&&(e=Q$(t,42),(null!=this.b?Oht(this.b,e.cd()):HS(this.b)===HS(e.cd()))&&(null!=this.c?Oht(this.c,e.dd()):HS(this.c)===HS(e.dd())))},xVt.Sh=function(){return this.a},xVt.cd=function(){return this.b},xVt.dd=function(){return this.c},xVt.Hb=function(){return this.a^(null==this.c?0:Zct(this.c))},xVt.Th=function(t){this.a=t},xVt.Uh=function(t){throw Um(new sb)},xVt.ed=function(t){var e;return e=this.c,this.c=t,e},xVt.Ib=function(){return this.b+"->"+this.c},xVt.a=0;var AIe,gIe=pX(U6t,"BasicEMap/EntryImpl",612);dIt(536,1,{},lc),pX(U6t,"BasicEMap/View",536),dIt(768,1,{}),xVt.Fb=function(t){return OIt((xq(),cne),t)},xVt.Hb=function(){return Qct((xq(),cne))},xVt.Ib=function(){return MEt((xq(),cne))},pX(U6t,"ECollections/BasicEmptyUnmodifiableEList",768),dIt(1312,1,iWt,vc),xVt.Nb=function(t){lG(this,t)},xVt.Rb=function(t){throw Um(new gb)},xVt.Ob=function(){return!1},xVt.Sb=function(){return!1},xVt.Pb=function(){throw Um(new bb)},xVt.Tb=function(){return 0},xVt.Ub=function(){throw Um(new bb)},xVt.Vb=function(){return-1},xVt.Qb=function(){throw Um(new gb)},xVt.Wb=function(t){throw Um(new gb)},pX(U6t,"ECollections/BasicEmptyUnmodifiableEList/1",1312),dIt(1310,768,{20:1,14:1,15:1,58:1},kv),xVt.Vc=function(t,e){MC()},xVt.Fc=function(t){return OC()},xVt.Wc=function(t,e){return DC()},xVt.Gc=function(t){return FC()},xVt.$b=function(){NC()},xVt.Hc=function(t){return!1},xVt.Ic=function(t){return!1},xVt.Jc=function(t){t5(this,t)},xVt.Xb=function(t){return bL((xq(),t)),null},xVt.Xc=function(t){return-1},xVt.dc=function(){return!0},xVt.Kc=function(){return this.a},xVt.Yc=function(){return this.a},xVt.Zc=function(t){return this.a},xVt.ii=function(t,e){return PC()},xVt.ji=function(t,e){RC()},xVt.Lc=function(){return new Fj(null,new f1(this,16))},xVt.$c=function(t){return QC()},xVt.Mc=function(t){return UC()},xVt._c=function(t,e){return $C()},xVt.gc=function(){return 0},xVt.ad=function(t){Rit(this,t)},xVt.Nc=function(){return new f1(this,16)},xVt.Oc=function(){return new Fj(null,new f1(this,16))},xVt.bd=function(t,e){return xq(),new s1(cne,t,e)},xVt.Pc=function(){return rz((xq(),cne))},xVt.Qc=function(t){return xq(),kvt(cne,t)},pX(U6t,"ECollections/EmptyUnmodifiableEList",1310),dIt(1311,768,{20:1,14:1,15:1,58:1,589:1},Cv),xVt.Vc=function(t,e){MC()},xVt.Fc=function(t){return OC()},xVt.Wc=function(t,e){return DC()},xVt.Gc=function(t){return FC()},xVt.$b=function(){NC()},xVt.Hc=function(t){return!1},xVt.Ic=function(t){return!1},xVt.Jc=function(t){t5(this,t)},xVt.Xb=function(t){return bL((xq(),t)),null},xVt.Xc=function(t){return-1},xVt.dc=function(){return!0},xVt.Kc=function(){return this.a},xVt.Yc=function(){return this.a},xVt.Zc=function(t){return this.a},xVt.ii=function(t,e){return PC()},xVt.ji=function(t,e){RC()},xVt.Lc=function(){return new Fj(null,new f1(this,16))},xVt.$c=function(t){return QC()},xVt.Mc=function(t){return UC()},xVt._c=function(t,e){return $C()},xVt.gc=function(){return 0},xVt.ad=function(t){Rit(this,t)},xVt.Nc=function(){return new f1(this,16)},xVt.Oc=function(){return new Fj(null,new f1(this,16))},xVt.bd=function(t,e){return xq(),new s1(cne,t,e)},xVt.Pc=function(){return rz((xq(),cne))},xVt.Qc=function(t){return xq(),kvt(cne,t)},xVt.sj=function(){return xq(),xq(),lne},pX(U6t,"ECollections/EmptyUnmodifiableEMap",1311);var pIe,mIe=hj(U6t,"Enumerator");dIt(281,1,{281:1},rPt),xVt.Fb=function(t){var e;return this===t||!!rO(t,281)&&(e=Q$(t,281),this.f==e.f&&pK(this.i,e.i)&&gK(this.a,256&this.f?256&e.f?e.a:null:256&e.f?null:e.a)&&gK(this.d,e.d)&&gK(this.g,e.g)&&gK(this.e,e.e)&&Emt(this,e))},xVt.Hb=function(){return this.f},xVt.Ib=function(){return xQt(this)},xVt.f=0;var bIe,vIe,yIe,wIe=0,kIe=0,CIe=0,xIe=0,EIe=0,TIe=0,BIe=0,_Ie=0,SIe=0,LIe=0,IIe=0,MIe=0,OIe=0;pX(U6t,"URI",281),dIt(1091,43,tYt,xv),xVt.zc=function(t,e){return Q$(mZ(this,xN(t),Q$(e,281)),281)},pX(U6t,"URI/URICache",1091),dIt(497,63,l8t,fc,nK),xVt.hi=function(){return!0},pX(U6t,"UniqueEList",497),dIt(581,60,UWt,I9),pX(U6t,"WrappedException",581);var DIe,FIe=hj(H5t,c7t),NIe=hj(H5t,l7t),PIe=hj(H5t,u7t),RIe=hj(H5t,h7t),QIe=hj(H5t,f7t),UIe=hj(H5t,"EClass"),$Ie=hj(H5t,"EDataType");dIt(1183,43,tYt,Ev),xVt.xc=function(t){return zS(t)?xJ(this,t):$S(SY(this.f,t))},pX(H5t,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1183);var HIe,jIe,KIe=hj(H5t,"EEnum"),zIe=hj(H5t,d7t),GIe=hj(H5t,A7t),XIe=hj(H5t,g7t),VIe=hj(H5t,p7t),WIe=hj(H5t,m7t);dIt(1029,1,{},hc),xVt.Ib=function(){return"NIL"},pX(H5t,"EStructuralFeature/Internal/DynamicValueHolder/1",1029),dIt(1028,43,tYt,Tv),xVt.xc=function(t){return zS(t)?xJ(this,t):$S(SY(this.f,t))},pX(H5t,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1028);var qIe,YIe,JIe,ZIe,tMe,eMe,nMe,rMe,iMe,aMe,oMe,sMe,cMe,lMe,uMe,hMe,fMe,dMe,AMe,gMe,pMe,mMe,bMe,vMe,yMe,wMe,kMe,CMe,xMe,EMe,TMe,BMe=hj(H5t,b7t),_Me=hj(H5t,"EValidator/PatternMatcher"),SMe=hj(v7t,"FeatureMap/Entry");dIt(535,1,{72:1},TS),xVt.ak=function(){return this.a},xVt.dd=function(){return this.b},pX(h6t,"BasicEObjectImpl/1",535),dIt(1027,1,y7t,BS),xVt.Wj=function(t){return X5(this.a,this.b,t)},xVt.fj=function(){return YJ(this.a,this.b)},xVt.Wb=function(t){MJ(this.a,this.b,t)},xVt.Xj=function(){EV(this.a,this.b)},pX(h6t,"BasicEObjectImpl/4",1027),dIt(1983,1,{108:1}),xVt.bk=function(t){this.e=0==t?kMe:O8(Lte,$Vt,1,t,5,1)},xVt.Ch=function(t){return this.e[t]},xVt.Dh=function(t,e){this.e[t]=e},xVt.Eh=function(t){this.e[t]=null},xVt.ck=function(){return this.c},xVt.dk=function(){throw Um(new gb)},xVt.ek=function(){throw Um(new gb)},xVt.fk=function(){return this.d},xVt.gk=function(){return null!=this.e},xVt.hk=function(t){this.c=t},xVt.ik=function(t){throw Um(new gb)},xVt.jk=function(t){throw Um(new gb)},xVt.kk=function(t){this.d=t},pX(h6t,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1983),dIt(185,1983,{108:1},Fh),xVt.dk=function(){return this.a},xVt.ek=function(){return this.b},xVt.ik=function(t){this.a=t},xVt.jk=function(t){this.b=t},pX(h6t,"BasicEObjectImpl/EPropertiesHolderImpl",185),dIt(506,97,u6t,yc),xVt.Kg=function(){return this.f},xVt.Pg=function(){return this.k},xVt.Rg=function(t,e){this.g=t,this.i=e},xVt.Tg=function(){return 2&this.j?this.ph().ck():this.zh()},xVt.Vg=function(){return this.i},xVt.Mg=function(){return!!(1&this.j)},xVt.eh=function(){return this.g},xVt.kh=function(){return!!(4&this.j)},xVt.ph=function(){return!this.k&&(this.k=new Fh),this.k},xVt.th=function(t){this.ph().hk(t),t?this.j|=2:this.j&=-3},xVt.vh=function(t){this.ph().jk(t),t?this.j|=4:this.j&=-5},xVt.zh=function(){return(VX(),JIe).S},xVt.i=0,xVt.j=1,pX(h6t,"EObjectImpl",506),dIt(780,506,{105:1,92:1,90:1,56:1,108:1,49:1,97:1},yH),xVt.Ch=function(t){return this.e[t]},xVt.Dh=function(t,e){this.e[t]=e},xVt.Eh=function(t){this.e[t]=null},xVt.Tg=function(){return this.d},xVt.Yg=function(t){return LAt(this.d,t)},xVt.$g=function(){return this.d},xVt.dh=function(){return null!=this.e},xVt.ph=function(){return!this.k&&(this.k=new wc),this.k},xVt.th=function(t){this.d=t},xVt.yh=function(){var t;return null==this.e&&(t=hX(this.d),this.e=0==t?CMe:O8(Lte,$Vt,1,t,5,1)),this},xVt.Ah=function(){return 0},pX(h6t,"DynamicEObjectImpl",780),dIt(1376,780,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1},lj),xVt.Fb=function(t){return this===t},xVt.Hb=function(){return ED(this)},xVt.th=function(t){this.d=t,this.b=ODt(t,"key"),this.c=ODt(t,k6t)},xVt.Sh=function(){var t;return-1==this.a&&(t=q9(this,this.b),this.a=null==t?0:Zct(t)),this.a},xVt.cd=function(){return q9(this,this.b)},xVt.dd=function(){return q9(this,this.c)},xVt.Th=function(t){this.a=t},xVt.Uh=function(t){MJ(this,this.b,t)},xVt.ed=function(t){var e;return e=q9(this,this.c),MJ(this,this.c,t),e},xVt.a=0,pX(h6t,"DynamicEObjectImpl/BasicEMapEntry",1376),dIt(1377,1,{108:1},wc),xVt.bk=function(t){throw Um(new gb)},xVt.Ch=function(t){throw Um(new gb)},xVt.Dh=function(t,e){throw Um(new gb)},xVt.Eh=function(t){throw Um(new gb)},xVt.ck=function(){throw Um(new gb)},xVt.dk=function(){return this.a},xVt.ek=function(){return this.b},xVt.fk=function(){return this.c},xVt.gk=function(){throw Um(new gb)},xVt.hk=function(t){throw Um(new gb)},xVt.ik=function(t){this.a=t},xVt.jk=function(t){this.b=t},xVt.kk=function(t){this.c=t},pX(h6t,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1377),dIt(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},kc),xVt.Qg=function(t){return fwt(this,t)},xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new qF((gVt(),bMe),KMe,this)),this.b):(!this.b&&(this.b=new qF((gVt(),bMe),KMe,this)),S8(this.b));case 3:return hZ(this);case 4:return!this.a&&(this.a=new LO(LLe,this,4)),this.a;case 5:return!this.c&&(this.c=new FO(LLe,this,5)),this.c}return K7(this,t-hX((gVt(),ZIe)),eet(Q$(vot(this,16),26)||ZIe,t),e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n);case 3:return this.Cb&&(n=(r=this.Db>>16)>=0?fwt(this,n):this.Cb.ih(this,-1-r,null,n)),VK(this,Q$(t,147),n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),ZIe),e),66).Nj().Qj(this,upt(this),e-hX((gVt(),ZIe)),t,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 2:return!this.b&&(this.b=new qF((gVt(),bMe),KMe,this)),QR(this.b,t,n);case 3:return VK(this,null,n);case 4:return!this.a&&(this.a=new LO(LLe,this,4)),Rmt(this.a,t,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),ZIe),e),66).Nj().Rj(this,upt(this),e-hX((gVt(),ZIe)),t,n)},xVt.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!!hZ(this);case 4:return!!this.a&&0!=this.a.i;case 5:return!!this.c&&0!=this.c.i}return _3(this,t-hX((gVt(),ZIe)),eet(Q$(vot(this,16),26)||ZIe,t))},xVt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void gj(this,xN(e));case 2:return!this.b&&(this.b=new qF((gVt(),bMe),KMe,this)),void tot(this.b,e);case 3:return void SDt(this,Q$(e,147));case 4:return!this.a&&(this.a=new LO(LLe,this,4)),cjt(this.a),!this.a&&(this.a=new LO(LLe,this,4)),void gX(this.a,Q$(e,14));case 5:return!this.c&&(this.c=new FO(LLe,this,5)),cjt(this.c),!this.c&&(this.c=new FO(LLe,this,5)),void gX(this.c,Q$(e,14))}Mdt(this,t-hX((gVt(),ZIe)),eet(Q$(vot(this,16),26)||ZIe,t),e)},xVt.zh=function(){return gVt(),ZIe},xVt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return void Urt(this,null);case 2:return!this.b&&(this.b=new qF((gVt(),bMe),KMe,this)),void this.b.c.$b();case 3:return void SDt(this,null);case 4:return!this.a&&(this.a=new LO(LLe,this,4)),void cjt(this.a);case 5:return!this.c&&(this.c=new FO(LLe,this,5)),void cjt(this.c)}Hht(this,t-hX((gVt(),ZIe)),eet(Q$(vot(this,16),26)||ZIe,t))},xVt.Ib=function(){return Vht(this)},xVt.d=null,pX(h6t,"EAnnotationImpl",510),dIt(151,705,w7t,b7),xVt.Xh=function(t,e){JI(this,t,Q$(e,42))},xVt.lk=function(t,e){return RR(this,Q$(t,42),e)},xVt.pi=function(t){return Q$(Q$(this.c,69).pi(t),133)},xVt.Zh=function(){return Q$(this.c,69).Zh()},xVt.$h=function(){return Q$(this.c,69).$h()},xVt._h=function(t){return Q$(this.c,69)._h(t)},xVt.mk=function(t,e){return QR(this,t,e)},xVt.Wj=function(t){return Q$(this.c,76).Wj(t)},xVt.rj=function(){},xVt.fj=function(){return Q$(this.c,76).fj()},xVt.tj=function(t,e,n){var r;return(r=Q$(zet(this.b).Nh().Jh(this.b),133)).Th(t),r.Uh(e),r.ed(n),r},xVt.uj=function(){return new Bm(this)},xVt.Wb=function(t){tot(this,t)},xVt.Xj=function(){Q$(this.c,76).Xj()},pX(v7t,"EcoreEMap",151),dIt(158,151,w7t,qF),xVt.qj=function(){var t,e,n,r,i;if(null==this.d){for(i=O8(sIe,i7t,63,2*this.f+1,0,1),n=this.c.Kc();n.e!=n.i.gc();)!(t=i[r=((e=Q$(n.nj(),133)).Sh()&FVt)%i.length])&&(t=i[r]=new Bm(this)),t.Fc(e);this.d=i}},pX(h6t,"EAnnotationImpl/1",158),dIt(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}),xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cD(),!!(256&this.Bb);case 3:return cD(),!!(512&this.Bb);case 4:return nft(this.s);case 5:return nft(this.t);case 6:return cD(),!!this.$j();case 7:return cD(),this.s>=1;case 8:return e?_wt(this):this.r;case 9:return this.q}return K7(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 9:return AX(this,n)}return Q$(eet(Q$(vot(this,16),26)||this.zh(),e),66).Nj().Rj(this,upt(this),e-hX(this.zh()),t,n)},xVt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(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==bV(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==bV(this.q).i)}return _3(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void this.Lh(xN(e));case 2:return void qht(this,$y(kN(e)));case 3:return void Zht(this,$y(kN(e)));case 4:return void Mnt(this,Q$(e,19).a);case 5:return void this.ok(Q$(e,19).a);case 8:return void _ut(this,Q$(e,138));case 9:return void((n=$xt(this,Q$(e,87),null))&&n.Fi())}Mdt(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e)},xVt.zh=function(){return gVt(),yMe},xVt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return void this.Lh(null);case 2:return void qht(this,!0);case 3:return void Zht(this,!0);case 4:return void Mnt(this,0);case 5:return void this.ok(1);case 8:return void _ut(this,null);case 9:return void((e=$xt(this,null,null))&&e.Fi())}Hht(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.Gh=function(){_wt(this),this.Bb|=1},xVt.Yj=function(){return _wt(this)},xVt.Zj=function(){return this.t},xVt.$j=function(){var t;return(t=this.t)>1||-1==t},xVt.hi=function(){return!!(512&this.Bb)},xVt.nk=function(t,e){return Tht(this,t,e)},xVt.ok=function(t){Ont(this,t)},xVt.Ib=function(){return PLt(this)},xVt.s=0,xVt.t=1,pX(h6t,"ETypedElementImpl",284),dIt(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}),xVt.Qg=function(t){return Oyt(this,t)},xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cD(),!!(256&this.Bb);case 3:return cD(),!!(512&this.Bb);case 4:return nft(this.s);case 5:return nft(this.t);case 6:return cD(),!!this.$j();case 7:return cD(),this.s>=1;case 8:return e?_wt(this):this.r;case 9:return this.q;case 10:return cD(),!!(this.Bb&y6t);case 11:return cD(),!!(this.Bb&x7t);case 12:return cD(),!!(this.Bb&Rqt);case 13:return this.j;case 14:return HOt(this);case 15:return cD(),!!(this.Bb&C7t);case 16:return cD(),!!(this.Bb&lWt);case 17:return dZ(this)}return K7(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n);case 17:return this.Cb&&(n=(r=this.Db>>16)>=0?Oyt(this,n):this.Cb.ih(this,-1-r,null,n)),CQt(this,t,17,n)}return Q$(eet(Q$(vot(this,16),26)||this.zh(),e),66).Nj().Qj(this,upt(this),e-hX(this.zh()),t,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 9:return AX(this,n);case 17:return CQt(this,null,17,n)}return Q$(eet(Q$(vot(this,16),26)||this.zh(),e),66).Nj().Rj(this,upt(this),e-hX(this.zh()),t,n)},xVt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(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==bV(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==bV(this.q).i);case 10:return!(this.Bb&y6t);case 11:return!!(this.Bb&x7t);case 12:return!!(this.Bb&Rqt);case 13:return null!=this.j;case 14:return null!=HOt(this);case 15:return!!(this.Bb&C7t);case 16:return!!(this.Bb&lWt);case 17:return!!dZ(this)}return _3(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void qZ(this,xN(e));case 2:return void qht(this,$y(kN(e)));case 3:return void Zht(this,$y(kN(e)));case 4:return void Mnt(this,Q$(e,19).a);case 5:return void this.ok(Q$(e,19).a);case 8:return void _ut(this,Q$(e,138));case 9:return void((n=$xt(this,Q$(e,87),null))&&n.Fi());case 10:return void Lft(this,$y(kN(e)));case 11:return void Oft(this,$y(kN(e)));case 12:return void Ift(this,$y(kN(e)));case 13:return void PS(this,xN(e));case 15:return void Mft(this,$y(kN(e)));case 16:return void Hft(this,$y(kN(e)))}Mdt(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e)},xVt.zh=function(){return gVt(),vMe},xVt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return rO(this.Cb,88)&&L_t(E5(Q$(this.Cb,88)),4),void Oit(this,null);case 2:return void qht(this,!0);case 3:return void Zht(this,!0);case 4:return void Mnt(this,0);case 5:return void this.ok(1);case 8:return void _ut(this,null);case 9:return void((e=$xt(this,null,null))&&e.Fi());case 10:return void Lft(this,!0);case 11:return void Oft(this,!1);case 12:return void Ift(this,!1);case 13:return this.i=null,void ait(this,null);case 15:return void Mft(this,!1);case 16:return void Hft(this,!1)}Hht(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.Gh=function(){vW(Q9((_Bt(),qMe),this)),_wt(this),this.Bb|=1},xVt.Gj=function(){return this.f},xVt.zj=function(){return HOt(this)},xVt.Hj=function(){return dZ(this)},xVt.Lj=function(){return null},xVt.pk=function(){return this.k},xVt.aj=function(){return this.n},xVt.Mj=function(){return sCt(this)},xVt.Nj=function(){var t,e,n,r,i,a,o,s,c;return this.p||((null==(n=dZ(this)).i&&HUt(n),n.i).length,(r=this.Lj())&&hX(dZ(r)),t=(o=(i=_wt(this)).Bj())?1&o.i?o==SDe?yee:o==_De?Lee:o==ODe?Bee:o==MDe?Tee:o==LDe?Nee:o==DDe?Ree:o==IDe?Cee:Eee:o:null,e=HOt(this),s=i.zj(),fdt(this),this.Bb&lWt&&((a=bkt((_Bt(),qMe),n))&&a!=this||(a=Y1(Q9(qMe,this))))?this.p=new SS(this,a):this.$j()?this.rk()?r?this.Bb&C7t?t?this.sk()?this.p=new uq(47,t,this,r):this.p=new uq(5,t,this,r):this.sk()?this.p=new f4(46,this,r):this.p=new f4(4,this,r):t?this.sk()?this.p=new uq(49,t,this,r):this.p=new uq(7,t,this,r):this.sk()?this.p=new f4(48,this,r):this.p=new f4(6,this,r):this.Bb&C7t?t?t==$te?this.p=new E$(50,GLe,this):this.sk()?this.p=new E$(43,t,this):this.p=new E$(1,t,this):this.sk()?this.p=new FY(42,this):this.p=new FY(0,this):t?t==$te?this.p=new E$(41,GLe,this):this.sk()?this.p=new E$(45,t,this):this.p=new E$(3,t,this):this.sk()?this.p=new FY(44,this):this.p=new FY(2,this):rO(i,148)?t==SMe?this.p=new FY(40,this):512&this.Bb?this.Bb&C7t?this.p=t?new E$(9,t,this):new FY(8,this):this.p=t?new E$(11,t,this):new FY(10,this):this.Bb&C7t?this.p=t?new E$(13,t,this):new FY(12,this):this.p=t?new E$(15,t,this):new FY(14,this):r?(c=r.t)>1||-1==c?this.sk()?this.Bb&C7t?this.p=t?new uq(25,t,this,r):new f4(24,this,r):this.p=t?new uq(27,t,this,r):new f4(26,this,r):this.Bb&C7t?this.p=t?new uq(29,t,this,r):new f4(28,this,r):this.p=t?new uq(31,t,this,r):new f4(30,this,r):this.sk()?this.Bb&C7t?this.p=t?new uq(33,t,this,r):new f4(32,this,r):this.p=t?new uq(35,t,this,r):new f4(34,this,r):this.Bb&C7t?this.p=t?new uq(37,t,this,r):new f4(36,this,r):this.p=t?new uq(39,t,this,r):new f4(38,this,r):this.sk()?this.Bb&C7t?this.p=t?new E$(17,t,this):new FY(16,this):this.p=t?new E$(19,t,this):new FY(18,this):this.Bb&C7t?this.p=t?new E$(21,t,this):new FY(20,this):this.p=t?new E$(23,t,this):new FY(22,this):this.qk()?this.sk()?this.p=new T$(Q$(i,26),this,r):this.p=new mJ(Q$(i,26),this,r):rO(i,148)?t==SMe?this.p=new FY(40,this):this.Bb&C7t?this.p=t?new JK(e,s,this,(UAt(),o==_De?UMe:o==SDe?FMe:o==LDe?$Me:o==ODe?QMe:o==MDe?RMe:o==DDe?jMe:o==IDe?NMe:o==BDe?PMe:HMe)):new dq(Q$(i,148),e,s,this):this.p=t?new YK(e,s,this,(UAt(),o==_De?UMe:o==SDe?FMe:o==LDe?$Me:o==ODe?QMe:o==MDe?RMe:o==DDe?jMe:o==IDe?NMe:o==BDe?PMe:HMe)):new fq(Q$(i,148),e,s,this):this.rk()?r?this.Bb&C7t?this.sk()?this.p=new M$(Q$(i,26),this,r):this.p=new I$(Q$(i,26),this,r):this.sk()?this.p=new L$(Q$(i,26),this,r):this.p=new B$(Q$(i,26),this,r):this.Bb&C7t?this.sk()?this.p=new tN(Q$(i,26),this):this.p=new ZF(Q$(i,26),this):this.sk()?this.p=new JF(Q$(i,26),this):this.p=new YF(Q$(i,26),this):this.sk()?r?this.Bb&C7t?this.p=new O$(Q$(i,26),this,r):this.p=new _$(Q$(i,26),this,r):this.Bb&C7t?this.p=new nN(Q$(i,26),this):this.p=new eN(Q$(i,26),this):r?this.Bb&C7t?this.p=new D$(Q$(i,26),this,r):this.p=new S$(Q$(i,26),this,r):this.Bb&C7t?this.p=new rN(Q$(i,26),this):this.p=new rK(Q$(i,26),this)),this.p},xVt.Ij=function(){return!!(this.Bb&y6t)},xVt.qk=function(){return!1},xVt.rk=function(){return!1},xVt.Jj=function(){return!!(this.Bb&lWt)},xVt.Oj=function(){return ctt(this)},xVt.sk=function(){return!1},xVt.Kj=function(){return!!(this.Bb&C7t)},xVt.tk=function(t){this.k=t},xVt.Lh=function(t){qZ(this,t)},xVt.Ib=function(){return kPt(this)},xVt.e=!1,xVt.n=0,pX(h6t,"EStructuralFeatureImpl",449),dIt(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},_v),xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cD(),!!(256&this.Bb);case 3:return cD(),!!(512&this.Bb);case 4:return nft(this.s);case 5:return nft(this.t);case 6:return cD(),!!OSt(this);case 7:return cD(),this.s>=1;case 8:return e?_wt(this):this.r;case 9:return this.q;case 10:return cD(),!!(this.Bb&y6t);case 11:return cD(),!!(this.Bb&x7t);case 12:return cD(),!!(this.Bb&Rqt);case 13:return this.j;case 14:return HOt(this);case 15:return cD(),!!(this.Bb&C7t);case 16:return cD(),!!(this.Bb&lWt);case 17:return dZ(this);case 18:return cD(),!!(this.Bb&l6t);case 19:return e?ost(this):O6(this)}return K7(this,t-hX((gVt(),tMe)),eet(Q$(vot(this,16),26)||tMe,t),e,n)},xVt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return OSt(this);case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==bV(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==bV(this.q).i);case 10:return!(this.Bb&y6t);case 11:return!!(this.Bb&x7t);case 12:return!!(this.Bb&Rqt);case 13:return null!=this.j;case 14:return null!=HOt(this);case 15:return!!(this.Bb&C7t);case 16:return!!(this.Bb&lWt);case 17:return!!dZ(this);case 18:return!!(this.Bb&l6t);case 19:return!!O6(this)}return _3(this,t-hX((gVt(),tMe)),eet(Q$(vot(this,16),26)||tMe,t))},xVt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void qZ(this,xN(e));case 2:return void qht(this,$y(kN(e)));case 3:return void Zht(this,$y(kN(e)));case 4:return void Mnt(this,Q$(e,19).a);case 5:return void Kk(this,Q$(e,19).a);case 8:return void _ut(this,Q$(e,138));case 9:return void((n=$xt(this,Q$(e,87),null))&&n.Fi());case 10:return void Lft(this,$y(kN(e)));case 11:return void Oft(this,$y(kN(e)));case 12:return void Ift(this,$y(kN(e)));case 13:return void PS(this,xN(e));case 15:return void Mft(this,$y(kN(e)));case 16:return void Hft(this,$y(kN(e)));case 18:return void jft(this,$y(kN(e)))}Mdt(this,t-hX((gVt(),tMe)),eet(Q$(vot(this,16),26)||tMe,t),e)},xVt.zh=function(){return gVt(),tMe},xVt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return rO(this.Cb,88)&&L_t(E5(Q$(this.Cb,88)),4),void Oit(this,null);case 2:return void qht(this,!0);case 3:return void Zht(this,!0);case 4:return void Mnt(this,0);case 5:return this.b=0,void Ont(this,1);case 8:return void _ut(this,null);case 9:return void((e=$xt(this,null,null))&&e.Fi());case 10:return void Lft(this,!0);case 11:return void Oft(this,!1);case 12:return void Ift(this,!1);case 13:return this.i=null,void ait(this,null);case 15:return void Mft(this,!1);case 16:return void Hft(this,!1);case 18:return void jft(this,!1)}Hht(this,t-hX((gVt(),tMe)),eet(Q$(vot(this,16),26)||tMe,t))},xVt.Gh=function(){ost(this),vW(Q9((_Bt(),qMe),this)),_wt(this),this.Bb|=1},xVt.$j=function(){return OSt(this)},xVt.nk=function(t,e){return this.b=0,this.a=null,Tht(this,t,e)},xVt.ok=function(t){Kk(this,t)},xVt.Ib=function(){var t;return 64&this.Db?kPt(this):((t=new lD(kPt(this))).a+=" (iD: ",bC(t,!!(this.Bb&l6t)),t.a+=")",t.a)},xVt.b=0,pX(h6t,"EAttributeImpl",322),dIt(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}),xVt.uk=function(t){return t.Tg()==this},xVt.Qg=function(t){return uyt(this,t)},xVt.Rg=function(t,e){this.w=null,this.Db=e<<16|255&this.Db,this.Cb=t},xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return nyt(this);case 4:return this.zj();case 5:return this.F;case 6:return e?zet(this):fZ(this);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),this.A}return K7(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n);case 6:return this.Cb&&(n=(r=this.Db>>16)>=0?uyt(this,n):this.Cb.ih(this,-1-r,null,n)),CQt(this,t,6,n)}return Q$(eet(Q$(vot(this,16),26)||this.zh(),e),66).Nj().Qj(this,upt(this),e-hX(this.zh()),t,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 6:return CQt(this,null,6,n);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),Rmt(this.A,t,n)}return Q$(eet(Q$(vot(this,16),26)||this.zh(),e),66).Nj().Rj(this,upt(this),e-hX(this.zh()),t,n)},xVt.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!!nyt(this);case 4:return null!=this.zj();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!fZ(this);case 7:return!!this.A&&0!=this.A.i}return _3(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void YZ(this,xN(e));case 2:return void BI(this,xN(e));case 5:return void qjt(this,xN(e));case 7:return!this.A&&(this.A=new MO(BMe,this,7)),cjt(this.A),!this.A&&(this.A=new MO(BMe,this,7)),void gX(this.A,Q$(e,14))}Mdt(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e)},xVt.zh=function(){return gVt(),nMe},xVt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return rO(this.Cb,179)&&(Q$(this.Cb,179).tb=null),void Oit(this,null);case 2:return Flt(this,null),void Dnt(this,this.D);case 5:return void qjt(this,null);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),void cjt(this.A)}Hht(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.yj=function(){var t;return-1==this.G&&(this.G=(t=zet(this))?obt(t.Mh(),this):-1),this.G},xVt.zj=function(){return null},xVt.Aj=function(){return zet(this)},xVt.vk=function(){return this.v},xVt.Bj=function(){return nyt(this)},xVt.Cj=function(){return null!=this.D?this.D:this.B},xVt.Dj=function(){return this.F},xVt.wj=function(t){return EUt(this,t)},xVt.wk=function(t){this.v=t},xVt.xk=function(t){zit(this,t)},xVt.yk=function(t){this.C=t},xVt.Lh=function(t){YZ(this,t)},xVt.Ib=function(){return BAt(this)},xVt.C=null,xVt.D=null,xVt.G=-1,pX(h6t,"EClassifierImpl",351),dIt(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},Nh),xVt.uk=function(t){return VP(this,t.Tg())},xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return nyt(this);case 4:return null;case 5:return this.F;case 6:return e?zet(this):fZ(this);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),this.A;case 8:return cD(),!!(256&this.Bb);case 9:return cD(),!!(512&this.Bb);case 10:return vY(this);case 11:return!this.q&&(this.q=new tG(XIe,this,11,10)),this.q;case 12:return q$t(this);case 13:return N$t(this);case 14:return N$t(this),this.r;case 15:return q$t(this),this.k;case 16:return XBt(this);case 17:return g$t(this);case 18:return HUt(this);case 19:return BOt(this);case 20:return q$t(this),this.o;case 21:return!this.s&&(this.s=new tG(PIe,this,21,17)),this.s;case 22:return i4(this);case 23:return $Nt(this)}return K7(this,t-hX((gVt(),eMe)),eet(Q$(vot(this,16),26)||eMe,t),e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n);case 6:return this.Cb&&(n=(r=this.Db>>16)>=0?uyt(this,n):this.Cb.ih(this,-1-r,null,n)),CQt(this,t,6,n);case 11:return!this.q&&(this.q=new tG(XIe,this,11,10)),qAt(this.q,t,n);case 21:return!this.s&&(this.s=new tG(PIe,this,21,17)),qAt(this.s,t,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),eMe),e),66).Nj().Qj(this,upt(this),e-hX((gVt(),eMe)),t,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 6:return CQt(this,null,6,n);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),Rmt(this.A,t,n);case 11:return!this.q&&(this.q=new tG(XIe,this,11,10)),Rmt(this.q,t,n);case 21:return!this.s&&(this.s=new tG(PIe,this,21,17)),Rmt(this.s,t,n);case 22:return Rmt(i4(this),t,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),eMe),e),66).Nj().Rj(this,upt(this),e-hX((gVt(),eMe)),t,n)},xVt.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!!nyt(this);case 4:return!1;case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!fZ(this);case 7:return!!this.A&&0!=this.A.i;case 8:return!!(256&this.Bb);case 9:return!!(512&this.Bb);case 10:return!(!this.u||0==i4(this.u.a).i||this.n&&Nbt(this.n));case 11:return!!this.q&&0!=this.q.i;case 12:return 0!=q$t(this).i;case 13:return 0!=N$t(this).i;case 14:return N$t(this),0!=this.r.i;case 15:return q$t(this),0!=this.k.i;case 16:return 0!=XBt(this).i;case 17:return 0!=g$t(this).i;case 18:return 0!=HUt(this).i;case 19:return 0!=BOt(this).i;case 20:return q$t(this),!!this.o;case 21:return!!this.s&&0!=this.s.i;case 22:return!!this.n&&Nbt(this.n);case 23:return 0!=$Nt(this).i}return _3(this,t-hX((gVt(),eMe)),eet(Q$(vot(this,16),26)||eMe,t))},xVt.oh=function(t){return(null==this.i||this.q&&0!=this.q.i?null:ODt(this,t))||lGt(this,t)},xVt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void YZ(this,xN(e));case 2:return void BI(this,xN(e));case 5:return void qjt(this,xN(e));case 7:return!this.A&&(this.A=new MO(BMe,this,7)),cjt(this.A),!this.A&&(this.A=new MO(BMe,this,7)),void gX(this.A,Q$(e,14));case 8:return void Yht(this,$y(kN(e)));case 9:return void tft(this,$y(kN(e)));case 10:return mjt(vY(this)),void gX(vY(this),Q$(e,14));case 11:return!this.q&&(this.q=new tG(XIe,this,11,10)),cjt(this.q),!this.q&&(this.q=new tG(XIe,this,11,10)),void gX(this.q,Q$(e,14));case 21:return!this.s&&(this.s=new tG(PIe,this,21,17)),cjt(this.s),!this.s&&(this.s=new tG(PIe,this,21,17)),void gX(this.s,Q$(e,14));case 22:return cjt(i4(this)),void gX(i4(this),Q$(e,14))}Mdt(this,t-hX((gVt(),eMe)),eet(Q$(vot(this,16),26)||eMe,t),e)},xVt.zh=function(){return gVt(),eMe},xVt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return rO(this.Cb,179)&&(Q$(this.Cb,179).tb=null),void Oit(this,null);case 2:return Flt(this,null),void Dnt(this,this.D);case 5:return void qjt(this,null);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),void cjt(this.A);case 8:return void Yht(this,!1);case 9:return void tft(this,!1);case 10:return void(this.u&&mjt(this.u));case 11:return!this.q&&(this.q=new tG(XIe,this,11,10)),void cjt(this.q);case 21:return!this.s&&(this.s=new tG(PIe,this,21,17)),void cjt(this.s);case 22:return void(this.n&&cjt(this.n))}Hht(this,t-hX((gVt(),eMe)),eet(Q$(vot(this,16),26)||eMe,t))},xVt.Gh=function(){var t,e;if(q$t(this),N$t(this),XBt(this),g$t(this),HUt(this),BOt(this),$Nt(this),i6(z$(E5(this))),this.s)for(t=0,e=this.s.i;t<e;++t)pF(Xet(this.s,t));if(this.q)for(t=0,e=this.q.i;t<e;++t)pF(Xet(this.q,t));Bht((_Bt(),qMe),this).ne(),this.Bb|=1},xVt.Ib=function(){return ACt(this)},xVt.k=null,xVt.r=null,pX(h6t,"EClassImpl",88),dIt(1994,1993,F7t),xVt.Vh=function(t,e){return MUt(this,t,e)},xVt.Wh=function(t){return MUt(this,this.i,t)},xVt.Xh=function(t,e){HLt(this,t,e)},xVt.Yh=function(t){tIt(this,t)},xVt.lk=function(t,e){return qAt(this,t,e)},xVt.pi=function(t){return R7(this,t)},xVt.mk=function(t,e){return Rmt(this,t,e)},xVt.mi=function(t,e){return u$t(this,t,e)},xVt.Zh=function(){return new iF(this)},xVt.$h=function(){return new aF(this)},xVt._h=function(t){return crt(this,t)},pX(v7t,"NotifyingInternalEListImpl",1994),dIt(622,1994,N7t),xVt.Hc=function(t){return fjt(this,t)},xVt.Zi=function(t,e,n,r,i){return bZ(this,t,e,n,r,i)},xVt.$i=function(t){Ib(this,t)},xVt.Wj=function(t){return this},xVt.ak=function(){return eet(this.e.Tg(),this.aj())},xVt._i=function(){return this.ak()},xVt.aj=function(){return LAt(this.e.Tg(),this.ak())},xVt.zk=function(){return Q$(this.ak().Yj(),26).Bj()},xVt.Ak=function(){return Bbt(Q$(this.ak(),18)).n},xVt.Ai=function(){return this.e},xVt.Bk=function(){return!0},xVt.Ck=function(){return!1},xVt.Dk=function(){return!1},xVt.Ek=function(){return!1},xVt.Xc=function(t){return obt(this,t)},xVt.cj=function(t,e){var n;return n=Q$(t,49),this.Dk()?this.Bk()?n.gh(this.e,this.Ak(),this.zk(),e):n.gh(this.e,LAt(n.Tg(),Bbt(Q$(this.ak(),18))),null,e):n.gh(this.e,-1-this.aj(),null,e)},xVt.dj=function(t,e){var n;return n=Q$(t,49),this.Dk()?this.Bk()?n.ih(this.e,this.Ak(),this.zk(),e):n.ih(this.e,LAt(n.Tg(),Bbt(Q$(this.ak(),18))),null,e):n.ih(this.e,-1-this.aj(),null,e)},xVt.rk=function(){return!1},xVt.Fk=function(){return!0},xVt.wj=function(t){return O3(this.d,t)},xVt.ej=function(){return mI(this.e)},xVt.fj=function(){return 0!=this.i},xVt.ri=function(t){return Fnt(this.d,t)},xVt.li=function(t,e){return this.Fk()&&this.Ek()?jLt(this,t,Q$(e,56)):e},xVt.Gk=function(t){return t.kh()?tht(this.e,Q$(t,49)):t},xVt.Wb=function(t){qM(this,t)},xVt.Pc=function(){return U7(this)},xVt.Qc=function(t){var e;if(this.Ek())for(e=this.i-1;e>=0;--e)Xet(this,e);return WAt(this,t)},xVt.Xj=function(){cjt(this)},xVt.oi=function(t,e){return Rnt(this,t,e)},pX(v7t,"EcoreEList",622),dIt(496,622,N7t,bH),xVt.ai=function(){return!1},xVt.aj=function(){return this.c},xVt.bj=function(){return!1},xVt.Fk=function(){return!0},xVt.hi=function(){return!0},xVt.li=function(t,e){return e},xVt.ni=function(){return!1},xVt.c=0,pX(v7t,"EObjectEList",496),dIt(85,496,N7t,LO),xVt.bj=function(){return!0},xVt.Dk=function(){return!1},xVt.rk=function(){return!0},pX(v7t,"EObjectContainmentEList",85),dIt(545,85,N7t,IO),xVt.ci=function(){this.b=!0},xVt.fj=function(){return this.b},xVt.Xj=function(){var t;cjt(this),mI(this.e)?(t=this.b,this.b=!1,fot(this.e,new Z5(this.e,2,this.c,t,!1))):this.b=!1},xVt.b=!1,pX(v7t,"EObjectContainmentEList/Unsettable",545),dIt(1140,545,N7t,WK),xVt.ii=function(t,e){var n,r;return n=Q$(_ft(this,t,e),87),mI(this.e)&&Ib(this,new y7(this.a,7,(gVt(),rMe),nft(e),rO(r=n.c,88)?Q$(r,26):fMe,t)),n},xVt.jj=function(t,e){return JAt(this,Q$(t,87),e)},xVt.kj=function(t,e){return YAt(this,Q$(t,87),e)},xVt.lj=function(t,e,n){return Rkt(this,Q$(t,87),Q$(e,87),n)},xVt.Zi=function(t,e,n,r,i){switch(t){case 3:return bZ(this,t,e,n,r,this.i>1);case 5:return bZ(this,t,e,n,r,this.i-Q$(n,15).gc()>0);default:return new M9(this.e,t,this.c,e,n,r,!0)}},xVt.ij=function(){return!0},xVt.fj=function(){return Nbt(this)},xVt.Xj=function(){cjt(this)},pX(h6t,"EClassImpl/1",1140),dIt(1154,1153,J8t),xVt.ui=function(t){var e,n,r,i,a,o,s;if(8!=(n=t.xi())){if(0==(r=amt(t)))switch(n){case 1:case 9:null!=(s=t.Bi())&&(!(e=E5(Q$(s,473))).c&&(e.c=new $c),stt(e.c,t.Ai())),null!=(o=t.zi())&&(1&(i=Q$(o,473)).Bb||(!(e=E5(i)).c&&(e.c=new $c),l7(e.c,Q$(t.Ai(),26))));break;case 3:null!=(o=t.zi())&&(1&(i=Q$(o,473)).Bb||(!(e=E5(i)).c&&(e.c=new $c),l7(e.c,Q$(t.Ai(),26))));break;case 5:if(null!=(o=t.zi()))for(a=Q$(o,14).Kc();a.Ob();)1&(i=Q$(a.Pb(),473)).Bb||(!(e=E5(i)).c&&(e.c=new $c),l7(e.c,Q$(t.Ai(),26)));break;case 4:null!=(s=t.Bi())&&(1&(i=Q$(s,473)).Bb||(!(e=E5(i)).c&&(e.c=new $c),stt(e.c,t.Ai())));break;case 6:if(null!=(s=t.Bi()))for(a=Q$(s,14).Kc();a.Ob();)1&(i=Q$(a.Pb(),473)).Bb||(!(e=E5(i)).c&&(e.c=new $c),stt(e.c,t.Ai()))}this.Hk(r)}},xVt.Hk=function(t){APt(this,t)},xVt.b=63,pX(h6t,"ESuperAdapter",1154),dIt(1155,1154,J8t,dm),xVt.Hk=function(t){L_t(this,t)},pX(h6t,"EClassImpl/10",1155),dIt(1144,696,N7t),xVt.Vh=function(t,e){return Uxt(this,t,e)},xVt.Wh=function(t){return fvt(this,t)},xVt.Xh=function(t,e){_ht(this,t,e)},xVt.Yh=function(t){r6(this,t)},xVt.pi=function(t){return R7(this,t)},xVt.mi=function(t,e){return ott(this,t,e)},xVt.lk=function(t,e){throw Um(new gb)},xVt.Zh=function(){return new iF(this)},xVt.$h=function(){return new aF(this)},xVt._h=function(t){return crt(this,t)},xVt.mk=function(t,e){throw Um(new gb)},xVt.Wj=function(t){return this},xVt.fj=function(){return 0!=this.i},xVt.Wb=function(t){throw Um(new gb)},xVt.Xj=function(){throw Um(new gb)},pX(v7t,"EcoreEList/UnmodifiableEList",1144),dIt(319,1144,N7t,ML),xVt.ni=function(){return!1},pX(v7t,"EcoreEList/UnmodifiableEList/FastCompare",319),dIt(1147,319,N7t,Act),xVt.Xc=function(t){var e,n;if(rO(t,170)&&-1!=(e=Q$(t,170).aj()))for(n=this.i;e<n;++e)if(HS(this.g[e])===HS(t))return e;return-1},pX(h6t,"EClassImpl/1EAllStructuralFeaturesList",1147),dIt(1141,497,l8t,Cc),xVt.ri=function(t){return O8(GIe,U7t,87,t,0,1)},xVt.ni=function(){return!1},pX(h6t,"EClassImpl/1EGenericSuperTypeEList",1141),dIt(623,497,l8t,xc),xVt.ri=function(t){return O8(PIe,O7t,170,t,0,1)},xVt.ni=function(){return!1},pX(h6t,"EClassImpl/1EStructuralFeatureUniqueEList",623),dIt(741,497,l8t,Ec),xVt.ri=function(t){return O8(WIe,O7t,18,t,0,1)},xVt.ni=function(){return!1},pX(h6t,"EClassImpl/1ReferenceList",741),dIt(1142,497,l8t,Am),xVt.bi=function(t,e){ZK(this,Q$(e,34))},xVt.ri=function(t){return O8(RIe,O7t,34,t,0,1)},xVt.ni=function(){return!1},pX(h6t,"EClassImpl/2",1142),dIt(1143,497,l8t,Tc),xVt.ri=function(t){return O8(RIe,O7t,34,t,0,1)},xVt.ni=function(){return!1},pX(h6t,"EClassImpl/3",1143),dIt(1145,319,N7t,wH),xVt.Fc=function(t){return m$(this,Q$(t,34))},xVt.Yh=function(t){qC(this,Q$(t,34))},pX(h6t,"EClassImpl/4",1145),dIt(1146,319,N7t,kH),xVt.Fc=function(t){return b$(this,Q$(t,18))},xVt.Yh=function(t){YC(this,Q$(t,18))},pX(h6t,"EClassImpl/5",1146),dIt(1148,497,l8t,Bc),xVt.ri=function(t){return O8(XIe,D7t,59,t,0,1)},xVt.ni=function(){return!1},pX(h6t,"EClassImpl/6",1148),dIt(1149,497,l8t,_c),xVt.ri=function(t){return O8(WIe,O7t,18,t,0,1)},xVt.ni=function(){return!1},pX(h6t,"EClassImpl/7",1149),dIt(1997,1996,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,69:1}),xVt.Vh=function(t,e){return oUt(this,t,e)},xVt.Wh=function(t){return oUt(this,this.Vi(),t)},xVt.Xh=function(t,e){eIt(this,t,e)},xVt.Yh=function(t){SLt(this,t)},xVt.lk=function(t,e){return dvt(this,t,e)},xVt.mk=function(t,e){return Qmt(this,t,e)},xVt.mi=function(t,e){return sUt(this,t,e)},xVt.pi=function(t){return this.Oi(t)},xVt.Zh=function(){return new iF(this)},xVt.Gi=function(){return this.Ji()},xVt.$h=function(){return new aF(this)},xVt._h=function(t){return crt(this,t)},pX(v7t,"DelegatingNotifyingInternalEListImpl",1997),dIt(742,1997,$7t),xVt.ai=function(){var t;return rO(t=eet(yY(this.b),this.aj()).Yj(),148)&&!rO(t,457)&&!(1&t.Bj().i)},xVt.Hc=function(t){var e,n,r,i,a,o,s;if(this.Fk()){if((s=this.Vi())>4){if(!this.wj(t))return!1;if(this.rk()){if(o=(e=(n=Q$(t,49)).Ug())==this.b&&(this.Dk()?n.Og(n.Vg(),Q$(eet(yY(this.b),this.aj()).Yj(),26).Bj())==Bbt(Q$(eet(yY(this.b),this.aj()),18)).n:-1-n.Vg()==this.aj()),this.Ek()&&!o&&!e&&n.Zg())for(r=0;r<s;++r)if(HS(Hz(this,this.Oi(r)))===HS(t))return!0;return o}if(this.Dk()&&!this.Ck()){if(HS(i=Q$(t,56).ah(Bbt(Q$(eet(yY(this.b),this.aj()),18))))===HS(this.b))return!0;if(null==i||!Q$(i,56).kh())return!1}}if(a=this.Li(t),this.Ek()&&!a)for(r=0;r<s;++r)if(HS(n=Hz(this,this.Oi(r)))===HS(t))return!0;return a}return this.Li(t)},xVt.Zi=function(t,e,n,r,i){return new M9(this.b,t,this.aj(),e,n,r,i)},xVt.$i=function(t){fot(this.b,t)},xVt.Wj=function(t){return this},xVt._i=function(){return eet(yY(this.b),this.aj())},xVt.aj=function(){return LAt(yY(this.b),eet(yY(this.b),this.aj()))},xVt.Ai=function(){return this.b},xVt.Bk=function(){return!!eet(yY(this.b),this.aj()).Yj().Bj()},xVt.bj=function(){var t;return!(!rO(t=eet(yY(this.b),this.aj()),99)||!(Q$(t,18).Bb&l6t)&&!Bbt(Q$(t,18)))},xVt.Ck=function(){var t,e,n;return!!rO(t=eet(yY(this.b),this.aj()),99)&&!!(e=Bbt(Q$(t,18)))&&((n=e.t)>1||-1==n)},xVt.Dk=function(){var t;return!!rO(t=eet(yY(this.b),this.aj()),99)&&!!Bbt(Q$(t,18))},xVt.Ek=function(){var t;return!!rO(t=eet(yY(this.b),this.aj()),99)&&!!(Q$(t,18).Bb&Uqt)},xVt.Xc=function(t){var e,n,r;if((n=this.Qi(t))>=0)return n;if(this.Fk())for(e=0,r=this.Vi();e<r;++e)if(HS(Hz(this,this.Oi(e)))===HS(t))return e;return-1},xVt.cj=function(t,e){var n;return n=Q$(t,49),this.Dk()?this.Bk()?n.gh(this.b,Bbt(Q$(eet(yY(this.b),this.aj()),18)).n,Q$(eet(yY(this.b),this.aj()).Yj(),26).Bj(),e):n.gh(this.b,LAt(n.Tg(),Bbt(Q$(eet(yY(this.b),this.aj()),18))),null,e):n.gh(this.b,-1-this.aj(),null,e)},xVt.dj=function(t,e){var n;return n=Q$(t,49),this.Dk()?this.Bk()?n.ih(this.b,Bbt(Q$(eet(yY(this.b),this.aj()),18)).n,Q$(eet(yY(this.b),this.aj()).Yj(),26).Bj(),e):n.ih(this.b,LAt(n.Tg(),Bbt(Q$(eet(yY(this.b),this.aj()),18))),null,e):n.ih(this.b,-1-this.aj(),null,e)},xVt.rk=function(){var t;return!!rO(t=eet(yY(this.b),this.aj()),99)&&!!(Q$(t,18).Bb&l6t)},xVt.Fk=function(){return rO(eet(yY(this.b),this.aj()).Yj(),88)},xVt.wj=function(t){return eet(yY(this.b),this.aj()).Yj().wj(t)},xVt.ej=function(){return mI(this.b)},xVt.fj=function(){return!this.Ri()},xVt.hi=function(){return eet(yY(this.b),this.aj()).hi()},xVt.li=function(t,e){return eKt(this,t,e)},xVt.Wb=function(t){mjt(this),gX(this,Q$(t,15))},xVt.Pc=function(){var t;if(this.Ek())for(t=this.Vi()-1;t>=0;--t)eKt(this,t,this.Oi(t));return this.Wi()},xVt.Qc=function(t){var e;if(this.Ek())for(e=this.Vi()-1;e>=0;--e)eKt(this,e,this.Oi(e));return this.Xi(t)},xVt.Xj=function(){mjt(this)},xVt.oi=function(t,e){return Q7(this,t,e)},pX(v7t,"DelegatingEcoreEList",742),dIt(1150,742,$7t,aP),xVt.Hi=function(t,e){uN(this,t,Q$(e,26))},xVt.Ii=function(t){tM(this,Q$(t,26))},xVt.Oi=function(t){var e;return rO(e=Q$(Xet(i4(this.a),t),87).c,88)?Q$(e,26):(gVt(),fMe)},xVt.Ti=function(t){var e;return rO(e=Q$(uNt(i4(this.a),t),87).c,88)?Q$(e,26):(gVt(),fMe)},xVt.Ui=function(t,e){return Avt(this,t,Q$(e,26))},xVt.ai=function(){return!1},xVt.Zi=function(t,e,n,r,i){return null},xVt.Ji=function(){return new gm(this)},xVt.Ki=function(){cjt(i4(this.a))},xVt.Li=function(t){return zht(this,t)},xVt.Mi=function(t){var e;for(e=t.Kc();e.Ob();)if(!zht(this,e.Pb()))return!1;return!0},xVt.Ni=function(t){var e,n,r;if(rO(t,15)&&(r=Q$(t,15)).gc()==i4(this.a).i){for(e=r.Kc(),n=new SO(this);e.Ob();)if(HS(e.Pb())!==HS(ymt(n)))return!1;return!0}return!1},xVt.Pi=function(){var t,e,n,r;for(e=1,t=new SO(i4(this.a));t.e!=t.i.gc();)e=31*e+((n=rO(r=Q$(ymt(t),87).c,88)?Q$(r,26):(gVt(),fMe))?ED(n):0);return e},xVt.Qi=function(t){var e,n,r,i;for(r=0,n=new SO(i4(this.a));n.e!=n.i.gc();){if(e=Q$(ymt(n),87),HS(t)===HS(rO(i=e.c,88)?Q$(i,26):(gVt(),fMe)))return r;++r}return-1},xVt.Ri=function(){return 0==i4(this.a).i},xVt.Si=function(){return null},xVt.Vi=function(){return i4(this.a).i},xVt.Wi=function(){var t,e,n,r,i,a;for(a=i4(this.a).i,i=O8(Lte,$Vt,1,a,5,1),n=0,e=new SO(i4(this.a));e.e!=e.i.gc();)t=Q$(ymt(e),87),i[n++]=rO(r=t.c,88)?Q$(r,26):(gVt(),fMe);return i},xVt.Xi=function(t){var e,n,r,i;for(i=i4(this.a).i,t.length<i&&(t=Fnt(tlt(t).c,i)),t.length>i&&LX(t,i,null),n=0,e=new SO(i4(this.a));e.e!=e.i.gc();)LX(t,n++,rO(r=Q$(ymt(e),87).c,88)?Q$(r,26):(gVt(),fMe));return t},xVt.Yi=function(){var t,e,n,r,i;for((i=new xw).a+="[",t=i4(this.a),e=0,r=i4(this.a).i;e<r;)rL(i,vD(rO(n=Q$(Xet(t,e),87).c,88)?Q$(n,26):(gVt(),fMe))),++e<r&&(i.a+=QVt);return i.a+="]",i.a},xVt.$i=function(t){},xVt.aj=function(){return 10},xVt.Bk=function(){return!0},xVt.bj=function(){return!1},xVt.Ck=function(){return!1},xVt.Dk=function(){return!1},xVt.Ek=function(){return!0},xVt.rk=function(){return!1},xVt.Fk=function(){return!0},xVt.wj=function(t){return rO(t,88)},xVt.fj=function(){return V0(this.a)},xVt.hi=function(){return!0},xVt.ni=function(){return!0},pX(h6t,"EClassImpl/8",1150),dIt(1151,1964,MWt,gm),xVt.Zc=function(t){return crt(this.a,t)},xVt.gc=function(){return i4(this.a.a).i},pX(h6t,"EClassImpl/8/1",1151),dIt(1152,497,l8t,Sc),xVt.ri=function(t){return O8(QIe,$Vt,138,t,0,1)},xVt.ni=function(){return!1},pX(h6t,"EClassImpl/9",1152),dIt(1139,53,eYt,Bv),pX(h6t,"EClassImpl/MyHashSet",1139),dIt(566,351,{105:1,92:1,90:1,138:1,148:1,834:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1},wb),xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return nyt(this);case 4:return this.zj();case 5:return this.F;case 6:return e?zet(this):fZ(this);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),this.A;case 8:return cD(),!!(256&this.Bb)}return K7(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e,n)},xVt.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!!nyt(this);case 4:return null!=this.zj();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!fZ(this);case 7:return!!this.A&&0!=this.A.i;case 8:return!(256&this.Bb)}return _3(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void YZ(this,xN(e));case 2:return void BI(this,xN(e));case 5:return void qjt(this,xN(e));case 7:return!this.A&&(this.A=new MO(BMe,this,7)),cjt(this.A),!this.A&&(this.A=new MO(BMe,this,7)),void gX(this.A,Q$(e,14));case 8:return void Jht(this,$y(kN(e)))}Mdt(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t),e)},xVt.zh=function(){return gVt(),iMe},xVt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return rO(this.Cb,179)&&(Q$(this.Cb,179).tb=null),void Oit(this,null);case 2:return Flt(this,null),void Dnt(this,this.D);case 5:return void qjt(this,null);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),void cjt(this.A);case 8:return void Jht(this,!0)}Hht(this,t-hX(this.zh()),eet(Q$(vot(this,16),26)||this.zh(),t))},xVt.Gh=function(){Bht((_Bt(),qMe),this).ne(),this.Bb|=1},xVt.Fj=function(){var t,e;if(!this.c&&!(t=jMt(zet(this))).dc())for(e=t.Kc();e.Ob();)OQt(this,xN(e.Pb()))&&Nft(this);return this.b},xVt.zj=function(){var t;if(!this.e){t=null;try{t=nyt(this)}catch(t){if(!rO(t=hst(t),102))throw Um(t)}this.d=null,t&&1&t.i&&(this.d=t==SDe?(cD(),pee):t==_De?nft(0):t==ODe?new Md(0):t==MDe?0:t==LDe?wpt(0):t==DDe?rft(0):t==IDe?Ett(0):ust(0)),this.e=!0}return this.d},xVt.Ej=function(){return!!(256&this.Bb)},xVt.Ik=function(t){t&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},xVt.xk=function(t){zit(this,t),this.Ik(t)},xVt.yk=function(t){this.C=t,this.e=!1},xVt.Ib=function(){var t;return 64&this.Db?BAt(this):((t=new lD(BAt(this))).a+=" (serializable: ",bC(t,!!(256&this.Bb)),t.a+=")",t.a)},xVt.c=!1,xVt.d=null,xVt.e=!1,pX(h6t,"EDataTypeImpl",566),dIt(457,566,{105:1,92:1,90:1,138:1,148:1,834:1,671:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,457:1,150:1,114:1,115:1,676:1},Sv),xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return nyt(this);case 4:return Wlt(this);case 5:return this.F;case 6:return e?zet(this):fZ(this);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),this.A;case 8:return cD(),!!(256&this.Bb);case 9:return!this.a&&(this.a=new tG(zIe,this,9,5)),this.a}return K7(this,t-hX((gVt(),aMe)),eet(Q$(vot(this,16),26)||aMe,t),e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n);case 6:return this.Cb&&(n=(r=this.Db>>16)>=0?uyt(this,n):this.Cb.ih(this,-1-r,null,n)),CQt(this,t,6,n);case 9:return!this.a&&(this.a=new tG(zIe,this,9,5)),qAt(this.a,t,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),aMe),e),66).Nj().Qj(this,upt(this),e-hX((gVt(),aMe)),t,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 6:return CQt(this,null,6,n);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),Rmt(this.A,t,n);case 9:return!this.a&&(this.a=new tG(zIe,this,9,5)),Rmt(this.a,t,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),aMe),e),66).Nj().Rj(this,upt(this),e-hX((gVt(),aMe)),t,n)},xVt.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!!nyt(this);case 4:return!!Wlt(this);case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!fZ(this);case 7:return!!this.A&&0!=this.A.i;case 8:return!(256&this.Bb);case 9:return!!this.a&&0!=this.a.i}return _3(this,t-hX((gVt(),aMe)),eet(Q$(vot(this,16),26)||aMe,t))},xVt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void YZ(this,xN(e));case 2:return void BI(this,xN(e));case 5:return void qjt(this,xN(e));case 7:return!this.A&&(this.A=new MO(BMe,this,7)),cjt(this.A),!this.A&&(this.A=new MO(BMe,this,7)),void gX(this.A,Q$(e,14));case 8:return void Jht(this,$y(kN(e)));case 9:return!this.a&&(this.a=new tG(zIe,this,9,5)),cjt(this.a),!this.a&&(this.a=new tG(zIe,this,9,5)),void gX(this.a,Q$(e,14))}Mdt(this,t-hX((gVt(),aMe)),eet(Q$(vot(this,16),26)||aMe,t),e)},xVt.zh=function(){return gVt(),aMe},xVt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return rO(this.Cb,179)&&(Q$(this.Cb,179).tb=null),void Oit(this,null);case 2:return Flt(this,null),void Dnt(this,this.D);case 5:return void qjt(this,null);case 7:return!this.A&&(this.A=new MO(BMe,this,7)),void cjt(this.A);case 8:return void Jht(this,!0);case 9:return!this.a&&(this.a=new tG(zIe,this,9,5)),void cjt(this.a)}Hht(this,t-hX((gVt(),aMe)),eet(Q$(vot(this,16),26)||aMe,t))},xVt.Gh=function(){var t,e;if(this.a)for(t=0,e=this.a.i;t<e;++t)pF(Xet(this.a,t));Bht((_Bt(),qMe),this).ne(),this.Bb|=1},xVt.zj=function(){return Wlt(this)},xVt.wj=function(t){return null!=t},xVt.Ik=function(t){},pX(h6t,"EEnumImpl",457),dIt(573,438,{105:1,92:1,90:1,1940:1,678:1,147:1,191:1,56:1,108:1,49:1,97:1,573:1,150:1,114:1,115:1},yb),xVt.ne=function(){return this.zb},xVt.Qg=function(t){return hwt(this,t)},xVt._g=function(t,e,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return nft(this.d);case 3:return this.b?this.b:this.a;case 4:return null==(r=this.c)?this.zb:r;case 5:return this.Db>>16==5?Q$(this.Cb,671):null}return K7(this,t-hX((gVt(),oMe)),eet(Q$(vot(this,16),26)||oMe,t),e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n);case 5:return this.Cb&&(n=(r=this.Db>>16)>=0?hwt(this,n):this.Cb.ih(this,-1-r,null,n)),CQt(this,t,5,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),oMe),e),66).Nj().Qj(this,upt(this),e-hX((gVt(),oMe)),t,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 5:return CQt(this,null,5,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),oMe),e),66).Nj().Rj(this,upt(this),e-hX((gVt(),oMe)),t,n)},xVt.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||!Q$(this.Cb,671))}return _3(this,t-hX((gVt(),oMe)),eet(Q$(vot(this,16),26)||oMe,t))},xVt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void Oit(this,xN(e));case 2:return void Int(this,Q$(e,19).a);case 3:return void gLt(this,Q$(e,1940));case 4:return void Qrt(this,xN(e))}Mdt(this,t-hX((gVt(),oMe)),eet(Q$(vot(this,16),26)||oMe,t),e)},xVt.zh=function(){return gVt(),oMe},xVt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return void Oit(this,null);case 2:return void Int(this,0);case 3:return void gLt(this,null);case 4:return void Qrt(this,null)}Hht(this,t-hX((gVt(),oMe)),eet(Q$(vot(this,16),26)||oMe,t))},xVt.Ib=function(){var t;return null==(t=this.c)?this.zb:t},xVt.b=null,xVt.c=null,xVt.d=0,pX(h6t,"EEnumLiteralImpl",573);var LMe,IMe,MMe,OMe=hj(h6t,"EFactoryImpl/InternalEDateTimeFormat");dIt(489,1,{2015:1},pm),pX(h6t,"EFactoryImpl/1ClientInternalEDateTimeFormat",489),dIt(241,115,{105:1,92:1,90:1,87:1,56:1,108:1,49:1,97:1,241:1,114:1,115:1},Nm),xVt.Sg=function(t,e,n){var r;return n=CQt(this,t,e,n),this.e&&rO(t,170)&&(r=yOt(this,this.e))!=this.c&&(n=azt(this,r,n)),n},xVt._g=function(t,e,n){switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new LO(GIe,this,1)),this.d;case 2:return e?hUt(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return e?Hbt(this):this.a}return K7(this,t-hX((gVt(),cMe)),eet(Q$(vot(this,16),26)||cMe,t),e,n)},xVt.jh=function(t,e,n){switch(e){case 0:return Zut(this,null,n);case 1:return!this.d&&(this.d=new LO(GIe,this,1)),Rmt(this.d,t,n);case 3:return Jut(this,null,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),cMe),e),66).Nj().Rj(this,upt(this),e-hX((gVt(),cMe)),t,n)},xVt.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 _3(this,t-hX((gVt(),cMe)),eet(Q$(vot(this,16),26)||cMe,t))},xVt.sh=function(t,e){switch(t){case 0:return void wCt(this,Q$(e,87));case 1:return!this.d&&(this.d=new LO(GIe,this,1)),cjt(this.d),!this.d&&(this.d=new LO(GIe,this,1)),void gX(this.d,Q$(e,14));case 3:return void yCt(this,Q$(e,87));case 4:return void FEt(this,Q$(e,836));case 5:return void int(this,Q$(e,138))}Mdt(this,t-hX((gVt(),cMe)),eet(Q$(vot(this,16),26)||cMe,t),e)},xVt.zh=function(){return gVt(),cMe},xVt.Bh=function(t){switch(t){case 0:return void wCt(this,null);case 1:return!this.d&&(this.d=new LO(GIe,this,1)),void cjt(this.d);case 3:return void yCt(this,null);case 4:return void FEt(this,null);case 5:return void int(this,null)}Hht(this,t-hX((gVt(),cMe)),eet(Q$(vot(this,16),26)||cMe,t))},xVt.Ib=function(){var t;return(t=new uD(TMt(this))).a+=" (expression: ",fHt(this,t),t.a+=")",t.a},pX(h6t,"EGenericTypeImpl",241),dIt(1969,1964,H7t),xVt.Xh=function(t,e){JN(this,t,e)},xVt.lk=function(t,e){return JN(this,this.gc(),t),e},xVt.pi=function(t){return Fmt(this.Gi(),t)},xVt.Zh=function(){return this.$h()},xVt.Gi=function(){return new Em(this)},xVt.$h=function(){return this._h(0)},xVt._h=function(t){return this.Gi().Zc(t)},xVt.mk=function(t,e){return vAt(this,t,!0),e},xVt.ii=function(t,e){var n;return n=twt(this,e),this.Zc(t).Rb(n),n},xVt.ji=function(t,e){vAt(this,e,!0),this.Zc(t).Rb(e)},pX(v7t,"AbstractSequentialInternalEList",1969),dIt(486,1969,H7t,VD),xVt.pi=function(t){return Fmt(this.Gi(),t)},xVt.Zh=function(){return null==this.b?(WE(),WE(),MMe):this.Jk()},xVt.Gi=function(){return new DL(this.a,this.b)},xVt.$h=function(){return null==this.b?(WE(),WE(),MMe):this.Jk()},xVt._h=function(t){var e,n;if(null==this.b){if(t<0||t>1)throw Um(new Sy(e7t+t+", size=0"));return WE(),WE(),MMe}for(n=this.Jk(),e=0;e<t;++e)xot(n);return n},xVt.dc=function(){var t,e,n,r,i,a;if(null!=this.b)for(n=0;n<this.b.length;++n)if(t=this.b[n],!this.Mk()||this.a.mh(t))if(a=this.a.bh(t,!1),YE(),Q$(t,66).Oj()){for(r=0,i=(e=Q$(a,153)).gc();r<i;++r)if(fX(e.il(r))&&null!=e.jl(r))return!1}else if(t.$j()){if(!Q$(a,14).dc())return!1}else if(null!=a)return!1;return!0},xVt.Kc=function(){return kit(this)},xVt.Zc=function(t){var e,n;if(null==this.b){if(0!=t)throw Um(new Sy(e7t+t+", size=0"));return WE(),WE(),MMe}for(n=this.Lk()?this.Kk():this.Jk(),e=0;e<t;++e)xot(n);return n},xVt.ii=function(t,e){throw Um(new gb)},xVt.ji=function(t,e){throw Um(new gb)},xVt.Jk=function(){return new WD(this.a,this.b)},xVt.Kk=function(){return new XF(this.a,this.b)},xVt.Lk=function(){return!0},xVt.gc=function(){var t,e,n,r,i,a,o;if(i=0,null!=this.b)for(n=0;n<this.b.length;++n)if(t=this.b[n],!this.Mk()||this.a.mh(t))if(o=this.a.bh(t,!1),YE(),Q$(t,66).Oj())for(r=0,a=(e=Q$(o,153)).gc();r<a;++r)fX(e.il(r))&&null!=e.jl(r)&&++i;else t.$j()?i+=Q$(o,14).gc():null!=o&&++i;return i},xVt.Mk=function(){return!0},pX(v7t,"EContentsEList",486),dIt(1156,486,H7t,GF),xVt.Jk=function(){return new VF(this.a,this.b)},xVt.Kk=function(){return new WF(this.a,this.b)},xVt.Mk=function(){return!1},pX(h6t,"ENamedElementImpl/1",1156),dIt(279,1,j7t,WD),xVt.Nb=function(t){lG(this,t)},xVt.Rb=function(t){throw Um(new gb)},xVt.Nk=function(t){if(0!=this.g||this.e)throw Um(new Ry("Iterator already in use or already filtered"));this.e=t},xVt.Ob=function(){var t,e,n,r,i,a;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(this.k&&(this.p?yBt(this,this.p):pLt(this)))return i=this.p?this.p.Pb():this.j?this.j.pi(this.n++):this.k.Xb(this.n++),this.f?((t=Q$(i,72)).ak(),n=t.dd(),this.i=n):(n=i,this.i=n),this.g=3,!0;for(;this.d<this.c.length;)if(e=this.c[this.d++],(!this.e||e.Gj()!=ILe||0!=e.aj())&&(!this.Mk()||this.b.mh(e)))if(a=this.b.bh(e,this.Lk()),this.f=(YE(),Q$(e,66).Oj()),this.f||e.$j()){if(this.Lk()?(r=Q$(a,15),this.k=r):(r=Q$(a,69),this.k=this.j=r),rO(this.k,54)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.$h():this.k.Yc(),this.p?yBt(this,this.p):pLt(this))return i=this.p?this.p.Pb():this.j?this.j.pi(this.n++):this.k.Xb(this.n++),this.f?((t=Q$(i,72)).ak(),n=t.dd(),this.i=n):(n=i,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.f=!1,this.g=1,!1}},xVt.Sb=function(){var t,e,n,r,i,a;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(this.k&&(this.p?wBt(this,this.p):d_t(this)))return i=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?((t=Q$(i,72)).ak(),n=t.dd(),this.i=n):(n=i,this.i=n),this.g=-3,!0;for(;this.d>0;)if(e=this.c[--this.d],(!this.e||e.Gj()!=ILe||0!=e.aj())&&(!this.Mk()||this.b.mh(e)))if(a=this.b.bh(e,this.Lk()),this.f=(YE(),Q$(e,66).Oj()),this.f||e.$j()){if(this.Lk()?(r=Q$(a,15),this.k=r):(r=Q$(a,69),this.k=this.j=r),rO(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?wBt(this,this.p):d_t(this))return i=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?((t=Q$(i,72)).ak(),n=t.dd(),this.i=n):(n=i,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}},xVt.Pb=function(){return xot(this)},xVt.Tb=function(){return this.a},xVt.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw Um(new bb)},xVt.Vb=function(){return this.a-1},xVt.Qb=function(){throw Um(new gb)},xVt.Lk=function(){return!1},xVt.Wb=function(t){throw Um(new gb)},xVt.Mk=function(){return!0},xVt.a=0,xVt.d=0,xVt.f=!1,xVt.g=0,xVt.n=0,xVt.o=0,pX(v7t,"EContentsEList/FeatureIteratorImpl",279),dIt(697,279,j7t,XF),xVt.Lk=function(){return!0},pX(v7t,"EContentsEList/ResolvingFeatureIteratorImpl",697),dIt(1157,697,j7t,WF),xVt.Mk=function(){return!1},pX(h6t,"ENamedElementImpl/1/1",1157),dIt(1158,279,j7t,VF),xVt.Mk=function(){return!1},pX(h6t,"ENamedElementImpl/1/2",1158),dIt(36,143,t7t,l4,u4,Jz,v7,M9,Z5,$nt,x0,Hnt,E0,q5,T0,znt,B0,Y5,_0,jnt,S0,Zz,y7,Hq,Knt,L0,J5,I0),xVt._i=function(){return c7(this)},xVt.gj=function(){var t;return(t=c7(this))?t.zj():null},xVt.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)},xVt.Ai=function(){return this.c},xVt.hj=function(){var t;return!!(t=c7(this))&&t.Kj()},xVt.b=-1,pX(h6t,"ENotificationImpl",36),dIt(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},Lv),xVt.Qg=function(t){return Twt(this,t)},xVt._g=function(t,e,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cD(),!!(256&this.Bb);case 3:return cD(),!!(512&this.Bb);case 4:return nft(this.s);case 5:return nft(this.t);case 6:return cD(),(r=this.t)>1||-1==r;case 7:return cD(),this.s>=1;case 8:return e?_wt(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?Q$(this.Cb,26):null;case 11:return!this.d&&(this.d=new MO(BMe,this,11)),this.d;case 12:return!this.c&&(this.c=new tG(VIe,this,12,10)),this.c;case 13:return!this.a&&(this.a=new oP(this,this)),this.a;case 14:return U9(this)}return K7(this,t-hX((gVt(),dMe)),eet(Q$(vot(this,16),26)||dMe,t),e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n);case 10:return this.Cb&&(n=(r=this.Db>>16)>=0?Twt(this,n):this.Cb.ih(this,-1-r,null,n)),CQt(this,t,10,n);case 12:return!this.c&&(this.c=new tG(VIe,this,12,10)),qAt(this.c,t,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),dMe),e),66).Nj().Qj(this,upt(this),e-hX((gVt(),dMe)),t,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 9:return AX(this,n);case 10:return CQt(this,null,10,n);case 11:return!this.d&&(this.d=new MO(BMe,this,11)),Rmt(this.d,t,n);case 12:return!this.c&&(this.c=new tG(VIe,this,12,10)),Rmt(this.c,t,n);case 14:return Rmt(U9(this),t,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),dMe),e),66).Nj().Rj(this,upt(this),e-hX((gVt(),dMe)),t,n)},xVt.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!(256&this.Bb);case 3:return!(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==bV(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==bV(this.q).i);case 10:return!(this.Db>>16!=10||!Q$(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==U9(this.a.a).i||this.b&&Pbt(this.b));case 14:return!!this.b&&Pbt(this.b)}return _3(this,t-hX((gVt(),dMe)),eet(Q$(vot(this,16),26)||dMe,t))},xVt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void Oit(this,xN(e));case 2:return void qht(this,$y(kN(e)));case 3:return void Zht(this,$y(kN(e)));case 4:return void Mnt(this,Q$(e,19).a);case 5:return void Ont(this,Q$(e,19).a);case 8:return void _ut(this,Q$(e,138));case 9:return void((n=$xt(this,Q$(e,87),null))&&n.Fi());case 11:return!this.d&&(this.d=new MO(BMe,this,11)),cjt(this.d),!this.d&&(this.d=new MO(BMe,this,11)),void gX(this.d,Q$(e,14));case 12:return!this.c&&(this.c=new tG(VIe,this,12,10)),cjt(this.c),!this.c&&(this.c=new tG(VIe,this,12,10)),void gX(this.c,Q$(e,14));case 13:return!this.a&&(this.a=new oP(this,this)),mjt(this.a),!this.a&&(this.a=new oP(this,this)),void gX(this.a,Q$(e,14));case 14:return cjt(U9(this)),void gX(U9(this),Q$(e,14))}Mdt(this,t-hX((gVt(),dMe)),eet(Q$(vot(this,16),26)||dMe,t),e)},xVt.zh=function(){return gVt(),dMe},xVt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return void Oit(this,null);case 2:return void qht(this,!0);case 3:return void Zht(this,!0);case 4:return void Mnt(this,0);case 5:return void Ont(this,1);case 8:return void _ut(this,null);case 9:return void((e=$xt(this,null,null))&&e.Fi());case 11:return!this.d&&(this.d=new MO(BMe,this,11)),void cjt(this.d);case 12:return!this.c&&(this.c=new tG(VIe,this,12,10)),void cjt(this.c);case 13:return void(this.a&&mjt(this.a));case 14:return void(this.b&&cjt(this.b))}Hht(this,t-hX((gVt(),dMe)),eet(Q$(vot(this,16),26)||dMe,t))},xVt.Gh=function(){var t,e;if(this.c)for(t=0,e=this.c.i;t<e;++t)pF(Xet(this.c,t));_wt(this),this.Bb|=1},pX(h6t,"EOperationImpl",399),dIt(505,742,$7t,oP),xVt.Hi=function(t,e){lN(this,t,Q$(e,138))},xVt.Ii=function(t){eM(this,Q$(t,138))},xVt.Oi=function(t){return Q$(Xet(U9(this.a),t),87).c||(gVt(),lMe)},xVt.Ti=function(t){return Q$(uNt(U9(this.a),t),87).c||(gVt(),lMe)},xVt.Ui=function(t,e){return fpt(this,t,Q$(e,138))},xVt.ai=function(){return!1},xVt.Zi=function(t,e,n,r,i){return null},xVt.Ji=function(){return new mm(this)},xVt.Ki=function(){cjt(U9(this.a))},xVt.Li=function(t){return sft(this,t)},xVt.Mi=function(t){var e;for(e=t.Kc();e.Ob();)if(!sft(this,e.Pb()))return!1;return!0},xVt.Ni=function(t){var e,n,r;if(rO(t,15)&&(r=Q$(t,15)).gc()==U9(this.a).i){for(e=r.Kc(),n=new SO(this);e.Ob();)if(HS(e.Pb())!==HS(ymt(n)))return!1;return!0}return!1},xVt.Pi=function(){var t,e,n;for(e=1,t=new SO(U9(this.a));t.e!=t.i.gc();)e=31*e+((n=Q$(ymt(t),87).c||(gVt(),lMe))?Zct(n):0);return e},xVt.Qi=function(t){var e,n,r;for(r=0,n=new SO(U9(this.a));n.e!=n.i.gc();){if(e=Q$(ymt(n),87),HS(t)===HS(e.c||(gVt(),lMe)))return r;++r}return-1},xVt.Ri=function(){return 0==U9(this.a).i},xVt.Si=function(){return null},xVt.Vi=function(){return U9(this.a).i},xVt.Wi=function(){var t,e,n,r,i;for(i=U9(this.a).i,r=O8(Lte,$Vt,1,i,5,1),n=0,e=new SO(U9(this.a));e.e!=e.i.gc();)t=Q$(ymt(e),87),r[n++]=t.c||(gVt(),lMe);return r},xVt.Xi=function(t){var e,n,r;for(r=U9(this.a).i,t.length<r&&(t=Fnt(tlt(t).c,r)),t.length>r&&LX(t,r,null),n=0,e=new SO(U9(this.a));e.e!=e.i.gc();)LX(t,n++,Q$(ymt(e),87).c||(gVt(),lMe));return t},xVt.Yi=function(){var t,e,n,r;for((r=new xw).a+="[",t=U9(this.a),e=0,n=U9(this.a).i;e<n;)rL(r,vD(Q$(Xet(t,e),87).c||(gVt(),lMe))),++e<n&&(r.a+=QVt);return r.a+="]",r.a},xVt.$i=function(t){},xVt.aj=function(){return 13},xVt.Bk=function(){return!0},xVt.bj=function(){return!1},xVt.Ck=function(){return!1},xVt.Dk=function(){return!1},xVt.Ek=function(){return!0},xVt.rk=function(){return!1},xVt.Fk=function(){return!0},xVt.wj=function(t){return rO(t,138)},xVt.fj=function(){return X0(this.a)},xVt.hi=function(){return!0},xVt.ni=function(){return!0},pX(h6t,"EOperationImpl/1",505),dIt(1340,1964,MWt,mm),xVt.Zc=function(t){return crt(this.a,t)},xVt.gc=function(){return U9(this.a.a).i},pX(h6t,"EOperationImpl/1/1",1340),dIt(1341,545,N7t,qK),xVt.ii=function(t,e){var n;return n=Q$(_ft(this,t,e),87),mI(this.e)&&Ib(this,new y7(this.a,7,(gVt(),AMe),nft(e),n.c||lMe,t)),n},xVt.jj=function(t,e){return xht(this,Q$(t,87),e)},xVt.kj=function(t,e){return Eht(this,Q$(t,87),e)},xVt.lj=function(t,e,n){return Xpt(this,Q$(t,87),Q$(e,87),n)},xVt.Zi=function(t,e,n,r,i){switch(t){case 3:return bZ(this,t,e,n,r,this.i>1);case 5:return bZ(this,t,e,n,r,this.i-Q$(n,15).gc()>0);default:return new M9(this.e,t,this.c,e,n,r,!0)}},xVt.ij=function(){return!0},xVt.fj=function(){return Pbt(this)},xVt.Xj=function(){cjt(this)},pX(h6t,"EOperationImpl/2",1341),dIt(498,1,{1938:1,498:1},_S),pX(h6t,"EPackageImpl/1",498),dIt(16,85,N7t,tG),xVt.zk=function(){return this.d},xVt.Ak=function(){return this.b},xVt.Dk=function(){return!0},xVt.b=0,pX(v7t,"EObjectContainmentWithInverseEList",16),dIt(353,16,N7t,tR),xVt.Ek=function(){return!0},xVt.li=function(t,e){return jLt(this,t,Q$(e,56))},pX(v7t,"EObjectContainmentWithInverseEList/Resolving",353),dIt(298,353,N7t,qz),xVt.ci=function(){this.a.tb=null},pX(h6t,"EPackageImpl/2",298),dIt(1228,1,{},Lc),pX(h6t,"EPackageImpl/3",1228),dIt(718,43,tYt,Mv),xVt._b=function(t){return zS(t)?tY(this,t):!!SY(this.f,t)},pX(h6t,"EPackageRegistryImpl",718),dIt(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},Iv),xVt.Qg=function(t){return Bwt(this,t)},xVt._g=function(t,e,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cD(),!!(256&this.Bb);case 3:return cD(),!!(512&this.Bb);case 4:return nft(this.s);case 5:return nft(this.t);case 6:return cD(),(r=this.t)>1||-1==r;case 7:return cD(),this.s>=1;case 8:return e?_wt(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?Q$(this.Cb,59):null}return K7(this,t-hX((gVt(),pMe)),eet(Q$(vot(this,16),26)||pMe,t),e,n)},xVt.hh=function(t,e,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),qAt(this.Ab,t,n);case 10:return this.Cb&&(n=(r=this.Db>>16)>=0?Bwt(this,n):this.Cb.ih(this,-1-r,null,n)),CQt(this,t,10,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),pMe),e),66).Nj().Qj(this,upt(this),e-hX((gVt(),pMe)),t,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 9:return AX(this,n);case 10:return CQt(this,null,10,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),pMe),e),66).Nj().Rj(this,upt(this),e-hX((gVt(),pMe)),t,n)},xVt.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!(256&this.Bb);case 3:return!(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==bV(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==bV(this.q).i);case 10:return!(this.Db>>16!=10||!Q$(this.Cb,59))}return _3(this,t-hX((gVt(),pMe)),eet(Q$(vot(this,16),26)||pMe,t))},xVt.zh=function(){return gVt(),pMe},pX(h6t,"EParameterImpl",509),dIt(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},gN),xVt._g=function(t,e,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cD(),!!(256&this.Bb);case 3:return cD(),!!(512&this.Bb);case 4:return nft(this.s);case 5:return nft(this.t);case 6:return cD(),(i=this.t)>1||-1==i;case 7:return cD(),this.s>=1;case 8:return e?_wt(this):this.r;case 9:return this.q;case 10:return cD(),!!(this.Bb&y6t);case 11:return cD(),!!(this.Bb&x7t);case 12:return cD(),!!(this.Bb&Rqt);case 13:return this.j;case 14:return HOt(this);case 15:return cD(),!!(this.Bb&C7t);case 16:return cD(),!!(this.Bb&lWt);case 17:return dZ(this);case 18:return cD(),!!(this.Bb&l6t);case 19:return cD(),!!((r=Bbt(this))&&r.Bb&l6t);case 20:return cD(),!!(this.Bb&Uqt);case 21:return e?Bbt(this):this.b;case 22:return e?_ct(this):N5(this);case 23:return!this.a&&(this.a=new FO(RIe,this,23)),this.a}return K7(this,t-hX((gVt(),mMe)),eet(Q$(vot(this,16),26)||mMe,t),e,n)},xVt.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!(256&this.Bb);case 3:return!(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==bV(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==bV(this.q).i);case 10:return!(this.Bb&y6t);case 11:return!!(this.Bb&x7t);case 12:return!!(this.Bb&Rqt);case 13:return null!=this.j;case 14:return null!=HOt(this);case 15:return!!(this.Bb&C7t);case 16:return!!(this.Bb&lWt);case 17:return!!dZ(this);case 18:return!!(this.Bb&l6t);case 19:return!!(e=Bbt(this))&&!!(e.Bb&l6t);case 20:return!(this.Bb&Uqt);case 21:return!!this.b;case 22:return!!N5(this);case 23:return!!this.a&&0!=this.a.i}return _3(this,t-hX((gVt(),mMe)),eet(Q$(vot(this,16),26)||mMe,t))},xVt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void qZ(this,xN(e));case 2:return void qht(this,$y(kN(e)));case 3:return void Zht(this,$y(kN(e)));case 4:return void Mnt(this,Q$(e,19).a);case 5:return void Ont(this,Q$(e,19).a);case 8:return void _ut(this,Q$(e,138));case 9:return void((n=$xt(this,Q$(e,87),null))&&n.Fi());case 10:return void Lft(this,$y(kN(e)));case 11:return void Oft(this,$y(kN(e)));case 12:return void Ift(this,$y(kN(e)));case 13:return void PS(this,xN(e));case 15:return void Mft(this,$y(kN(e)));case 16:return void Hft(this,$y(kN(e)));case 18:return void WZ(this,$y(kN(e)));case 20:return void zft(this,$y(kN(e)));case 21:return void rit(this,Q$(e,18));case 23:return!this.a&&(this.a=new FO(RIe,this,23)),cjt(this.a),!this.a&&(this.a=new FO(RIe,this,23)),void gX(this.a,Q$(e,14))}Mdt(this,t-hX((gVt(),mMe)),eet(Q$(vot(this,16),26)||mMe,t),e)},xVt.zh=function(){return gVt(),mMe},xVt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return rO(this.Cb,88)&&L_t(E5(Q$(this.Cb,88)),4),void Oit(this,null);case 2:return void qht(this,!0);case 3:return void Zht(this,!0);case 4:return void Mnt(this,0);case 5:return void Ont(this,1);case 8:return void _ut(this,null);case 9:return void((e=$xt(this,null,null))&&e.Fi());case 10:return void Lft(this,!0);case 11:return void Oft(this,!1);case 12:return void Ift(this,!1);case 13:return this.i=null,void ait(this,null);case 15:return void Mft(this,!1);case 16:return void Hft(this,!1);case 18:return Kft(this,!1),void(rO(this.Cb,88)&&L_t(E5(Q$(this.Cb,88)),2));case 20:return void zft(this,!0);case 21:return void rit(this,null);case 23:return!this.a&&(this.a=new FO(RIe,this,23)),void cjt(this.a)}Hht(this,t-hX((gVt(),mMe)),eet(Q$(vot(this,16),26)||mMe,t))},xVt.Gh=function(){_ct(this),vW(Q9((_Bt(),qMe),this)),_wt(this),this.Bb|=1},xVt.Lj=function(){return Bbt(this)},xVt.qk=function(){var t;return!!(t=Bbt(this))&&!!(t.Bb&l6t)},xVt.rk=function(){return!!(this.Bb&l6t)},xVt.sk=function(){return!!(this.Bb&Uqt)},xVt.nk=function(t,e){return this.c=null,Tht(this,t,e)},xVt.Ib=function(){var t;return 64&this.Db?kPt(this):((t=new lD(kPt(this))).a+=" (containment: ",bC(t,!!(this.Bb&l6t)),t.a+=", resolveProxies: ",bC(t,!!(this.Bb&Uqt)),t.a+=")",t.a)},pX(h6t,"EReferenceImpl",99),dIt(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},Ic),xVt.Fb=function(t){return this===t},xVt.cd=function(){return this.b},xVt.dd=function(){return this.c},xVt.Hb=function(){return ED(this)},xVt.Uh=function(t){pj(this,xN(t))},xVt.ed=function(t){return LH(this,xN(t))},xVt._g=function(t,e,n){switch(t){case 0:return this.b;case 1:return this.c}return K7(this,t-hX((gVt(),bMe)),eet(Q$(vot(this,16),26)||bMe,t),e,n)},xVt.lh=function(t){switch(t){case 0:return null!=this.b;case 1:return null!=this.c}return _3(this,t-hX((gVt(),bMe)),eet(Q$(vot(this,16),26)||bMe,t))},xVt.sh=function(t,e){switch(t){case 0:return void mj(this,xN(e));case 1:return void Prt(this,xN(e))}Mdt(this,t-hX((gVt(),bMe)),eet(Q$(vot(this,16),26)||bMe,t),e)},xVt.zh=function(){return gVt(),bMe},xVt.Bh=function(t){switch(t){case 0:return void Nrt(this,null);case 1:return void Prt(this,null)}Hht(this,t-hX((gVt(),bMe)),eet(Q$(vot(this,16),26)||bMe,t))},xVt.Sh=function(){var t;return-1==this.a&&(t=this.b,this.a=null==t?0:mbt(t)),this.a},xVt.Th=function(t){this.a=t},xVt.Ib=function(){var t;return 64&this.Db?TMt(this):((t=new lD(TMt(this))).a+=" (key: ",rL(t,this.b),t.a+=", value: ",rL(t,this.c),t.a+=")",t.a)},xVt.a=-1,xVt.b=null,xVt.c=null;var DMe,FMe,NMe,PMe,RMe,QMe,UMe,$Me,HMe,jMe,KMe=pX(h6t,"EStringToStringMapEntryImpl",548),zMe=hj(v7t,"FeatureMap/Entry/Internal");dIt(565,1,K7t),xVt.Ok=function(t){return this.Pk(Q$(t,49))},xVt.Pk=function(t){return this.Ok(t)},xVt.Fb=function(t){var e,n;return this===t||!!rO(t,72)&&(e=Q$(t,72)).ak()==this.c&&(null==(n=this.dd())?null==e.dd():Oht(n,e.dd()))},xVt.ak=function(){return this.c},xVt.Hb=function(){var t;return t=this.dd(),Zct(this.c)^(null==t?0:Zct(t))},xVt.Ib=function(){var t,e;return e=zet((t=this.c).Hj()).Ph(),t.ne(),(null!=e&&0!=e.length?e+":"+t.ne():t.ne())+"="+this.dd()},pX(h6t,"EStructuralFeatureImpl/BasicFeatureMapEntry",565),dIt(776,565,K7t,nP),xVt.Pk=function(t){return new nP(this.c,t)},xVt.dd=function(){return this.a},xVt.Qk=function(t,e,n){return Eat(this,t,this.a,e,n)},xVt.Rk=function(t,e,n){return Tat(this,t,this.a,e,n)},pX(h6t,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",776),dIt(1314,1,{},SS),xVt.Pj=function(t,e,n,r,i){return Q$(x7(t,this.b),215).nl(this.a).Wj(r)},xVt.Qj=function(t,e,n,r,i){return Q$(x7(t,this.b),215).el(this.a,r,i)},xVt.Rj=function(t,e,n,r,i){return Q$(x7(t,this.b),215).fl(this.a,r,i)},xVt.Sj=function(t,e,n){return Q$(x7(t,this.b),215).nl(this.a).fj()},xVt.Tj=function(t,e,n,r){Q$(x7(t,this.b),215).nl(this.a).Wb(r)},xVt.Uj=function(t,e,n){return Q$(x7(t,this.b),215).nl(this.a)},xVt.Vj=function(t,e,n){Q$(x7(t,this.b),215).nl(this.a).Xj()},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1314),dIt(89,1,{},E$,uq,FY,f4),xVt.Pj=function(t,e,n,r,i){var a;if(null==(a=e.Ch(n))&&e.Dh(n,a=nVt(this,t)),!i)switch(this.e){case 50:case 41:return Q$(a,589).sj();case 40:return Q$(a,215).kl()}return a},xVt.Qj=function(t,e,n,r,i){var a;return null==(a=e.Ch(n))&&e.Dh(n,a=nVt(this,t)),Q$(a,69).lk(r,i)},xVt.Rj=function(t,e,n,r,i){var a;return null!=(a=e.Ch(n))&&(i=Q$(a,69).mk(r,i)),i},xVt.Sj=function(t,e,n){var r;return null!=(r=e.Ch(n))&&Q$(r,76).fj()},xVt.Tj=function(t,e,n,r){var i;!(i=Q$(e.Ch(n),76))&&e.Dh(n,i=nVt(this,t)),i.Wb(r)},xVt.Uj=function(t,e,n){var r;return null==(r=e.Ch(n))&&e.Dh(n,r=nVt(this,t)),rO(r,76)?Q$(r,76):new wm(Q$(e.Ch(n),15))},xVt.Vj=function(t,e,n){var r;!(r=Q$(e.Ch(n),76))&&e.Dh(n,r=nVt(this,t)),r.Xj()},xVt.b=0,xVt.e=0,pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),dIt(504,1,{}),xVt.Qj=function(t,e,n,r,i){throw Um(new gb)},xVt.Rj=function(t,e,n,r,i){throw Um(new gb)},xVt.Uj=function(t,e,n){return new hq(this,t,e,n)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingle",504),dIt(1331,1,y7t,hq),xVt.Wj=function(t){return this.a.Pj(this.c,this.d,this.b,t,!0)},xVt.fj=function(){return this.a.Sj(this.c,this.d,this.b)},xVt.Wb=function(t){this.a.Tj(this.c,this.d,this.b,t)},xVt.Xj=function(){this.a.Vj(this.c,this.d,this.b)},xVt.b=0,pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1331),dIt(769,504,{},mJ),xVt.Pj=function(t,e,n,r,i){return gRt(t,t.eh(),t.Vg())==this.b?this.sk()&&r?iIt(t):t.eh():null},xVt.Qj=function(t,e,n,r,i){var a,o;return t.eh()&&(i=(a=t.Vg())>=0?t.Qg(i):t.eh().ih(t,-1-a,null,i)),o=LAt(t.Tg(),this.e),t.Sg(r,o,i)},xVt.Rj=function(t,e,n,r,i){var a;return a=LAt(t.Tg(),this.e),t.Sg(null,a,i)},xVt.Sj=function(t,e,n){var r;return r=LAt(t.Tg(),this.e),!!t.eh()&&t.Vg()==r},xVt.Tj=function(t,e,n,r){var i,a,o,s,c;if(null!=r&&!EUt(this.a,r))throw Um(new Ny(z7t+(rO(r,56)?ACt(Q$(r,56).Tg()):aet(tlt(r)))+G7t+this.a+"'"));if(i=t.eh(),o=LAt(t.Tg(),this.e),HS(r)!==HS(i)||t.Vg()!=o&&null!=r){if(mwt(t,Q$(r,56)))throw Um(new Py(d6t+t.Ib()));c=null,i&&(c=(a=t.Vg())>=0?t.Qg(c):t.eh().ih(t,-1-a,null,c)),(s=Q$(r,49))&&(c=s.gh(t,LAt(s.Tg(),this.b),null,c)),(c=t.Sg(s,o,c))&&c.Fi()}else t.Lg()&&t.Mg()&&fot(t,new Jz(t,1,o,r,r))},xVt.Vj=function(t,e,n){var r,i,a;t.eh()?(a=(r=t.Vg())>=0?t.Qg(null):t.eh().ih(t,-1-r,null,null),i=LAt(t.Tg(),this.e),(a=t.Sg(null,i,a))&&a.Fi()):t.Lg()&&t.Mg()&&fot(t,new Zz(t,1,this.e,null,null))},xVt.sk=function(){return!1},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",769),dIt(1315,769,{},T$),xVt.sk=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1315),dIt(563,504,{}),xVt.Pj=function(t,e,n,r,i){var a;return null==(a=e.Ch(n))?this.b:HS(a)===HS(DMe)?null:a},xVt.Sj=function(t,e,n){var r;return null!=(r=e.Ch(n))&&(HS(r)===HS(DMe)||!Oht(r,this.b))},xVt.Tj=function(t,e,n,r){var i,a;t.Lg()&&t.Mg()?(i=null==(a=e.Ch(n))?this.b:HS(a)===HS(DMe)?null:a,null==r?null!=this.c?(e.Dh(n,null),r=this.b):null!=this.b?e.Dh(n,DMe):e.Dh(n,null):(this.Sk(r),e.Dh(n,r)),fot(t,this.d.Tk(t,1,this.e,i,r))):null==r?null!=this.c?e.Dh(n,null):null!=this.b?e.Dh(n,DMe):e.Dh(n,null):(this.Sk(r),e.Dh(n,r))},xVt.Vj=function(t,e,n){var r,i;t.Lg()&&t.Mg()?(r=null==(i=e.Ch(n))?this.b:HS(i)===HS(DMe)?null:i,e.Eh(n),fot(t,this.d.Tk(t,1,this.e,r,this.b))):e.Eh(n)},xVt.Sk=function(t){throw Um(new hb)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",563),dIt(X7t,1,{},Mc),xVt.Tk=function(t,e,n,r,i){return new Zz(t,e,n,r,i)},xVt.Uk=function(t,e,n,r,i,a){return new Hq(t,e,n,r,i,a)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",X7t),dIt(1332,X7t,{},Oc),xVt.Tk=function(t,e,n,r,i){return new J5(t,e,n,$y(kN(r)),$y(kN(i)))},xVt.Uk=function(t,e,n,r,i,a){return new I0(t,e,n,$y(kN(r)),$y(kN(i)),a)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1332),dIt(1333,X7t,{},Dc),xVt.Tk=function(t,e,n,r,i){return new $nt(t,e,n,Q$(r,217).a,Q$(i,217).a)},xVt.Uk=function(t,e,n,r,i,a){return new x0(t,e,n,Q$(r,217).a,Q$(i,217).a,a)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1333),dIt(1334,X7t,{},Fc),xVt.Tk=function(t,e,n,r,i){return new Hnt(t,e,n,Q$(r,172).a,Q$(i,172).a)},xVt.Uk=function(t,e,n,r,i,a){return new E0(t,e,n,Q$(r,172).a,Q$(i,172).a,a)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1334),dIt(1335,X7t,{},Nc),xVt.Tk=function(t,e,n,r,i){return new q5(t,e,n,Hy(CN(r)),Hy(CN(i)))},xVt.Uk=function(t,e,n,r,i,a){return new T0(t,e,n,Hy(CN(r)),Hy(CN(i)),a)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1335),dIt(1336,X7t,{},Pc),xVt.Tk=function(t,e,n,r,i){return new znt(t,e,n,Q$(r,155).a,Q$(i,155).a)},xVt.Uk=function(t,e,n,r,i,a){return new B0(t,e,n,Q$(r,155).a,Q$(i,155).a,a)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1336),dIt(1337,X7t,{},Rc),xVt.Tk=function(t,e,n,r,i){return new Y5(t,e,n,Q$(r,19).a,Q$(i,19).a)},xVt.Uk=function(t,e,n,r,i,a){return new _0(t,e,n,Q$(r,19).a,Q$(i,19).a,a)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1337),dIt(1338,X7t,{},Qc),xVt.Tk=function(t,e,n,r,i){return new jnt(t,e,n,Q$(r,162).a,Q$(i,162).a)},xVt.Uk=function(t,e,n,r,i,a){return new S0(t,e,n,Q$(r,162).a,Q$(i,162).a,a)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1338),dIt(1339,X7t,{},Uc),xVt.Tk=function(t,e,n,r,i){return new Knt(t,e,n,Q$(r,184).a,Q$(i,184).a)},xVt.Uk=function(t,e,n,r,i,a){return new L0(t,e,n,Q$(r,184).a,Q$(i,184).a,a)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1339),dIt(1317,563,{},fq),xVt.Sk=function(t){if(!this.a.wj(t))throw Um(new Ny(z7t+tlt(t)+G7t+this.a+"'"))},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1317),dIt(1318,563,{},YK),xVt.Sk=function(t){},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1318),dIt(770,563,{}),xVt.Sj=function(t,e,n){return null!=e.Ch(n)},xVt.Tj=function(t,e,n,r){var i,a;t.Lg()&&t.Mg()?(i=!0,null==(a=e.Ch(n))?(i=!1,a=this.b):HS(a)===HS(DMe)&&(a=null),null==r?null!=this.c?(e.Dh(n,null),r=this.b):e.Dh(n,DMe):(this.Sk(r),e.Dh(n,r)),fot(t,this.d.Uk(t,1,this.e,a,r,!i))):null==r?null!=this.c?e.Dh(n,null):e.Dh(n,DMe):(this.Sk(r),e.Dh(n,r))},xVt.Vj=function(t,e,n){var r,i;t.Lg()&&t.Mg()?(r=!0,null==(i=e.Ch(n))?(r=!1,i=this.b):HS(i)===HS(DMe)&&(i=null),e.Eh(n),fot(t,this.d.Uk(t,2,this.e,i,this.b,r))):e.Eh(n)},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",770),dIt(1319,770,{},dq),xVt.Sk=function(t){if(!this.a.wj(t))throw Um(new Ny(z7t+tlt(t)+G7t+this.a+"'"))},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1319),dIt(1320,770,{},JK),xVt.Sk=function(t){},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1320),dIt(398,504,{},rK),xVt.Pj=function(t,e,n,r,i){var a,o,s,c,l;if(l=e.Ch(n),this.Kj()&&HS(l)===HS(DMe))return null;if(this.sk()&&r&&null!=l){if((s=Q$(l,49)).kh()&&s!=(c=tht(t,s))){if(!EUt(this.a,c))throw Um(new Ny(z7t+tlt(c)+G7t+this.a+"'"));e.Dh(n,l=c),this.rk()&&(a=Q$(c,49),o=s.ih(t,this.b?LAt(s.Tg(),this.b):-1-LAt(t.Tg(),this.e),null,null),!a.eh()&&(o=a.gh(t,this.b?LAt(a.Tg(),this.b):-1-LAt(t.Tg(),this.e),null,o)),o&&o.Fi()),t.Lg()&&t.Mg()&&fot(t,new Zz(t,9,this.e,s,c))}return l}return l},xVt.Qj=function(t,e,n,r,i){var a,o;return HS(o=e.Ch(n))===HS(DMe)&&(o=null),e.Dh(n,r),this.bj()?HS(o)!==HS(r)&&null!=o&&(i=(a=Q$(o,49)).ih(t,LAt(a.Tg(),this.b),null,i)):this.rk()&&null!=o&&(i=Q$(o,49).ih(t,-1-LAt(t.Tg(),this.e),null,i)),t.Lg()&&t.Mg()&&(!i&&(i=new Rk(4)),i.Ei(new Zz(t,1,this.e,o,r))),i},xVt.Rj=function(t,e,n,r,i){var a;return HS(a=e.Ch(n))===HS(DMe)&&(a=null),e.Eh(n),t.Lg()&&t.Mg()&&(!i&&(i=new Rk(4)),this.Kj()?i.Ei(new Zz(t,2,this.e,a,null)):i.Ei(new Zz(t,1,this.e,a,null))),i},xVt.Sj=function(t,e,n){return null!=e.Ch(n)},xVt.Tj=function(t,e,n,r){var i,a,o,s,c;if(null!=r&&!EUt(this.a,r))throw Um(new Ny(z7t+(rO(r,56)?ACt(Q$(r,56).Tg()):aet(tlt(r)))+G7t+this.a+"'"));s=null!=(c=e.Ch(n)),this.Kj()&&HS(c)===HS(DMe)&&(c=null),o=null,this.bj()?HS(c)!==HS(r)&&(null!=c&&(o=(i=Q$(c,49)).ih(t,LAt(i.Tg(),this.b),null,o)),null!=r&&(o=(i=Q$(r,49)).gh(t,LAt(i.Tg(),this.b),null,o))):this.rk()&&HS(c)!==HS(r)&&(null!=c&&(o=Q$(c,49).ih(t,-1-LAt(t.Tg(),this.e),null,o)),null!=r&&(o=Q$(r,49).gh(t,-1-LAt(t.Tg(),this.e),null,o))),null==r&&this.Kj()?e.Dh(n,DMe):e.Dh(n,r),t.Lg()&&t.Mg()?(a=new Hq(t,1,this.e,c,r,this.Kj()&&!s),o?(o.Ei(a),o.Fi()):fot(t,a)):o&&o.Fi()},xVt.Vj=function(t,e,n){var r,i,a,o,s;o=null!=(s=e.Ch(n)),this.Kj()&&HS(s)===HS(DMe)&&(s=null),a=null,null!=s&&(this.bj()?a=(r=Q$(s,49)).ih(t,LAt(r.Tg(),this.b),null,a):this.rk()&&(a=Q$(s,49).ih(t,-1-LAt(t.Tg(),this.e),null,a))),e.Eh(n),t.Lg()&&t.Mg()?(i=new Hq(t,this.Kj()?2:1,this.e,s,null,o),a?(a.Ei(i),a.Fi()):fot(t,i)):a&&a.Fi()},xVt.bj=function(){return!1},xVt.rk=function(){return!1},xVt.sk=function(){return!1},xVt.Kj=function(){return!1},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",398),dIt(564,398,{},YF),xVt.rk=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",564),dIt(1323,564,{},JF),xVt.sk=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1323),dIt(772,564,{},ZF),xVt.Kj=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",772),dIt(1325,772,{},tN),xVt.sk=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1325),dIt(640,564,{},B$),xVt.bj=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",640),dIt(1324,640,{},L$),xVt.sk=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1324),dIt(773,640,{},I$),xVt.Kj=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",773),dIt(1326,773,{},M$),xVt.sk=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1326),dIt(641,398,{},eN),xVt.sk=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",641),dIt(1327,641,{},nN),xVt.Kj=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1327),dIt(774,641,{},_$),xVt.bj=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",774),dIt(1328,774,{},O$),xVt.Kj=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1328),dIt(1321,398,{},rN),xVt.Kj=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1321),dIt(771,398,{},S$),xVt.bj=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",771),dIt(1322,771,{},D$),xVt.Kj=function(){return!0},pX(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1322),dIt(775,565,K7t,iV),xVt.Pk=function(t){return new iV(this.a,this.c,t)},xVt.dd=function(){return this.b},xVt.Qk=function(t,e,n){return D8(this,t,this.b,n)},xVt.Rk=function(t,e,n){return F8(this,t,this.b,n)},pX(h6t,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",775),dIt(1329,1,y7t,wm),xVt.Wj=function(t){return this.a},xVt.fj=function(){return rO(this.a,95)?Q$(this.a,95).fj():!this.a.dc()},xVt.Wb=function(t){this.a.$b(),this.a.Gc(Q$(t,15))},xVt.Xj=function(){rO(this.a,95)?Q$(this.a,95).Xj():this.a.$b()},pX(h6t,"EStructuralFeatureImpl/SettingMany",1329),dIt(1330,565,K7t,A4),xVt.Ok=function(t){return new rP((zjt(),POe),this.b.Ih(this.a,t))},xVt.dd=function(){return null},xVt.Qk=function(t,e,n){return n},xVt.Rk=function(t,e,n){return n},pX(h6t,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1330),dIt(642,565,K7t,rP),xVt.Ok=function(t){return new rP(this.c,t)},xVt.dd=function(){return this.a},xVt.Qk=function(t,e,n){return n},xVt.Rk=function(t,e,n){return n},pX(h6t,"EStructuralFeatureImpl/SimpleFeatureMapEntry",642),dIt(391,497,l8t,$c),xVt.ri=function(t){return O8(UIe,$Vt,26,t,0,1)},xVt.ni=function(){return!1},pX(h6t,"ESuperAdapter/1",391),dIt(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},Hc),xVt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new iK(this,GIe,this)),this.a}return K7(this,t-hX((gVt(),wMe)),eet(Q$(vot(this,16),26)||wMe,t),e,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),Rmt(this.Ab,t,n);case 2:return!this.a&&(this.a=new iK(this,GIe,this)),Rmt(this.a,t,n)}return Q$(eet(Q$(vot(this,16),26)||(gVt(),wMe),e),66).Nj().Rj(this,upt(this),e-hX((gVt(),wMe)),t,n)},xVt.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 _3(this,t-hX((gVt(),wMe)),eet(Q$(vot(this,16),26)||wMe,t))},xVt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),cjt(this.Ab),!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void gX(this.Ab,Q$(e,14));case 1:return void Oit(this,xN(e));case 2:return!this.a&&(this.a=new iK(this,GIe,this)),cjt(this.a),!this.a&&(this.a=new iK(this,GIe,this)),void gX(this.a,Q$(e,14))}Mdt(this,t-hX((gVt(),wMe)),eet(Q$(vot(this,16),26)||wMe,t),e)},xVt.zh=function(){return gVt(),wMe},xVt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(FIe,this,0,3)),void cjt(this.Ab);case 1:return void Oit(this,null);case 2:return!this.a&&(this.a=new iK(this,GIe,this)),void cjt(this.a)}Hht(this,t-hX((gVt(),wMe)),eet(Q$(vot(this,16),26)||wMe,t))},pX(h6t,"ETypeParameterImpl",444),dIt(445,85,N7t,iK),xVt.cj=function(t,e){return Mxt(this,Q$(t,87),e)},xVt.dj=function(t,e){return Oxt(this,Q$(t,87),e)},pX(h6t,"ETypeParameterImpl/1",445),dIt(634,43,tYt,Ov),xVt.ec=function(){return new km(this)},pX(h6t,"ETypeParameterImpl/2",634),dIt(556,ZVt,tWt,km),xVt.Fc=function(t){return WP(this,Q$(t,87))},xVt.Gc=function(t){var e,n,r;for(r=!1,n=t.Kc();n.Ob();)e=Q$(n.Pb(),87),null==XV(this.a,e,"")&&(r=!0);return r},xVt.$b=function(){LG(this.a)},xVt.Hc=function(t){return cG(this.a,t)},xVt.Kc=function(){return new Cm(new olt(new Ed(this.a).a))},xVt.Mc=function(t){return P6(this,t)},xVt.gc=function(){return Mx(this.a)},pX(h6t,"ETypeParameterImpl/2/1",556),dIt(557,1,WVt,Cm),xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return Q$(tnt(this.a).cd(),87)},xVt.Ob=function(){return this.a.b},xVt.Qb=function(){o7(this.a)},pX(h6t,"ETypeParameterImpl/2/1/1",557),dIt(1276,43,tYt,Dv),xVt._b=function(t){return zS(t)?tY(this,t):!!SY(this.f,t)},xVt.xc=function(t){var e;return rO(e=zS(t)?xJ(this,t):$S(SY(this.f,t)),837)?(e=Q$(e,837)._j(),XV(this,Q$(t,235),e),e):null!=e?e:null==t?(qE(),eOe):null},pX(h6t,"EValidatorRegistryImpl",1276),dIt(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},jc),xVt.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:Udt(e);case 25:return Get(e);case 27:return z7(e);case 28:return G7(e);case 29:return null==e?null:UM(BLe[0],Q$(e,199));case 41:return null==e?"":Jk(Q$(e,290));case 42:return Udt(e);case 50:return xN(e);default:throw Um(new Py(A6t+t.ne()+g6t))}},xVt.Jh=function(t){var e;switch(-1==t.G&&(t.G=(e=zet(t))?obt(e.Mh(),t):-1),t.G){case 0:return new _v;case 1:return new kc;case 2:return new Nh;case 4:return new wb;case 5:return new Sv;case 6:return new yb;case 7:return new Dh;case 10:return new yc;case 11:return new Lv;case 12:return new pY;case 13:return new Iv;case 14:return new gN;case 17:return new Ic;case 18:return new Nm;case 19:return new Hc;default:throw Um(new Py(b6t+t.zb+g6t))}},xVt.Kh=function(t,e){switch(t.yj()){case 20:return null==e?null:new fC(e);case 21:return null==e?null:new LI(e);case 23:case 22:return null==e?null:Jgt(e);case 26:case 24:return null==e?null:Ett(hQt(e,-128,127)<<24>>24);case 25:return AMt(e);case 27:return Eyt(e);case 28:return Tyt(e);case 29:return gEt(e);case 32:case 31:return null==e?null:fTt(e);case 38:case 37:return null==e?null:new Db(e);case 40:case 39:return null==e?null:nft(hQt(e,RWt,FVt));case 41:case 42:return null;case 44:case 43:return null==e?null:wpt(rGt(e));case 49:case 48:return null==e?null:rft(hQt(e,W7t,32767)<<16>>16);case 50:return e;default:throw Um(new Py(A6t+t.ne()+g6t))}},pX(h6t,"EcoreFactoryImpl",1313),dIt(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},KV),xVt.gb=!1,xVt.hb=!1;var GMe,XMe=!1;pX(h6t,"EcorePackageImpl",547),dIt(1184,1,{837:1},Kc),xVt._j=function(){return sD(),nOe},pX(h6t,"EcorePackageImpl/1",1184),dIt(1193,1,c9t,zc),xVt.wj=function(t){return rO(t,147)},xVt.xj=function(t){return O8(RLe,$Vt,147,t,0,1)},pX(h6t,"EcorePackageImpl/10",1193),dIt(1194,1,c9t,Gc),xVt.wj=function(t){return rO(t,191)},xVt.xj=function(t){return O8(ULe,$Vt,191,t,0,1)},pX(h6t,"EcorePackageImpl/11",1194),dIt(1195,1,c9t,Xc),xVt.wj=function(t){return rO(t,56)},xVt.xj=function(t){return O8(LLe,$Vt,56,t,0,1)},pX(h6t,"EcorePackageImpl/12",1195),dIt(1196,1,c9t,Vc),xVt.wj=function(t){return rO(t,399)},xVt.xj=function(t){return O8(XIe,D7t,59,t,0,1)},pX(h6t,"EcorePackageImpl/13",1196),dIt(1197,1,c9t,Wc),xVt.wj=function(t){return rO(t,235)},xVt.xj=function(t){return O8($Le,$Vt,235,t,0,1)},pX(h6t,"EcorePackageImpl/14",1197),dIt(1198,1,c9t,qc),xVt.wj=function(t){return rO(t,509)},xVt.xj=function(t){return O8(VIe,$Vt,2017,t,0,1)},pX(h6t,"EcorePackageImpl/15",1198),dIt(1199,1,c9t,Yc),xVt.wj=function(t){return rO(t,99)},xVt.xj=function(t){return O8(WIe,O7t,18,t,0,1)},pX(h6t,"EcorePackageImpl/16",1199),dIt(1200,1,c9t,Jc),xVt.wj=function(t){return rO(t,170)},xVt.xj=function(t){return O8(PIe,O7t,170,t,0,1)},pX(h6t,"EcorePackageImpl/17",1200),dIt(1201,1,c9t,Zc),xVt.wj=function(t){return rO(t,472)},xVt.xj=function(t){return O8(NIe,$Vt,472,t,0,1)},pX(h6t,"EcorePackageImpl/18",1201),dIt(1202,1,c9t,tl),xVt.wj=function(t){return rO(t,548)},xVt.xj=function(t){return O8(KMe,a7t,548,t,0,1)},pX(h6t,"EcorePackageImpl/19",1202),dIt(1185,1,c9t,el),xVt.wj=function(t){return rO(t,322)},xVt.xj=function(t){return O8(RIe,O7t,34,t,0,1)},pX(h6t,"EcorePackageImpl/2",1185),dIt(1203,1,c9t,nl),xVt.wj=function(t){return rO(t,241)},xVt.xj=function(t){return O8(GIe,U7t,87,t,0,1)},pX(h6t,"EcorePackageImpl/20",1203),dIt(1204,1,c9t,rl),xVt.wj=function(t){return rO(t,444)},xVt.xj=function(t){return O8(BMe,$Vt,836,t,0,1)},pX(h6t,"EcorePackageImpl/21",1204),dIt(1205,1,c9t,il),xVt.wj=function(t){return jS(t)},xVt.xj=function(t){return O8(yee,cWt,476,t,8,1)},pX(h6t,"EcorePackageImpl/22",1205),dIt(1206,1,c9t,al),xVt.wj=function(t){return rO(t,190)},xVt.xj=function(t){return O8(IDe,cWt,190,t,0,2)},pX(h6t,"EcorePackageImpl/23",1206),dIt(1207,1,c9t,ol),xVt.wj=function(t){return rO(t,217)},xVt.xj=function(t){return O8(Cee,cWt,217,t,0,1)},pX(h6t,"EcorePackageImpl/24",1207),dIt(1208,1,c9t,sl),xVt.wj=function(t){return rO(t,172)},xVt.xj=function(t){return O8(Eee,cWt,172,t,0,1)},pX(h6t,"EcorePackageImpl/25",1208),dIt(1209,1,c9t,cl),xVt.wj=function(t){return rO(t,199)},xVt.xj=function(t){return O8(bee,cWt,199,t,0,1)},pX(h6t,"EcorePackageImpl/26",1209),dIt(1210,1,c9t,ll),xVt.wj=function(t){return!1},xVt.xj=function(t){return O8(NDe,$Vt,2110,t,0,1)},pX(h6t,"EcorePackageImpl/27",1210),dIt(1211,1,c9t,ul),xVt.wj=function(t){return KS(t)},xVt.xj=function(t){return O8(Tee,cWt,333,t,7,1)},pX(h6t,"EcorePackageImpl/28",1211),dIt(1212,1,c9t,hl),xVt.wj=function(t){return rO(t,58)},xVt.xj=function(t){return O8(iIe,ZJt,58,t,0,1)},pX(h6t,"EcorePackageImpl/29",1212),dIt(1186,1,c9t,fl),xVt.wj=function(t){return rO(t,510)},xVt.xj=function(t){return O8(FIe,{3:1,4:1,5:1,1934:1},590,t,0,1)},pX(h6t,"EcorePackageImpl/3",1186),dIt(1213,1,c9t,dl),xVt.wj=function(t){return rO(t,573)},xVt.xj=function(t){return O8(mIe,$Vt,1940,t,0,1)},pX(h6t,"EcorePackageImpl/30",1213),dIt(1214,1,c9t,Al),xVt.wj=function(t){return rO(t,153)},xVt.xj=function(t){return O8(uOe,ZJt,153,t,0,1)},pX(h6t,"EcorePackageImpl/31",1214),dIt(1215,1,c9t,gl),xVt.wj=function(t){return rO(t,72)},xVt.xj=function(t){return O8(SMe,l9t,72,t,0,1)},pX(h6t,"EcorePackageImpl/32",1215),dIt(1216,1,c9t,pl),xVt.wj=function(t){return rO(t,155)},xVt.xj=function(t){return O8(Bee,cWt,155,t,0,1)},pX(h6t,"EcorePackageImpl/33",1216),dIt(1217,1,c9t,ml),xVt.wj=function(t){return rO(t,19)},xVt.xj=function(t){return O8(Lee,cWt,19,t,0,1)},pX(h6t,"EcorePackageImpl/34",1217),dIt(1218,1,c9t,bl),xVt.wj=function(t){return rO(t,290)},xVt.xj=function(t){return O8(Ite,$Vt,290,t,0,1)},pX(h6t,"EcorePackageImpl/35",1218),dIt(1219,1,c9t,vl),xVt.wj=function(t){return rO(t,162)},xVt.xj=function(t){return O8(Nee,cWt,162,t,0,1)},pX(h6t,"EcorePackageImpl/36",1219),dIt(1220,1,c9t,yl),xVt.wj=function(t){return rO(t,83)},xVt.xj=function(t){return O8(Ote,$Vt,83,t,0,1)},pX(h6t,"EcorePackageImpl/37",1220),dIt(1221,1,c9t,wl),xVt.wj=function(t){return rO(t,591)},xVt.xj=function(t){return O8(tOe,$Vt,591,t,0,1)},pX(h6t,"EcorePackageImpl/38",1221),dIt(1222,1,c9t,kl),xVt.wj=function(t){return!1},xVt.xj=function(t){return O8(PDe,$Vt,2111,t,0,1)},pX(h6t,"EcorePackageImpl/39",1222),dIt(1187,1,c9t,Cl),xVt.wj=function(t){return rO(t,88)},xVt.xj=function(t){return O8(UIe,$Vt,26,t,0,1)},pX(h6t,"EcorePackageImpl/4",1187),dIt(1223,1,c9t,xl),xVt.wj=function(t){return rO(t,184)},xVt.xj=function(t){return O8(Ree,cWt,184,t,0,1)},pX(h6t,"EcorePackageImpl/40",1223),dIt(1224,1,c9t,El),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(h6t,"EcorePackageImpl/41",1224),dIt(1225,1,c9t,Tl),xVt.wj=function(t){return rO(t,588)},xVt.xj=function(t){return O8(cIe,$Vt,588,t,0,1)},pX(h6t,"EcorePackageImpl/42",1225),dIt(1226,1,c9t,Bl),xVt.wj=function(t){return!1},xVt.xj=function(t){return O8(RDe,cWt,2112,t,0,1)},pX(h6t,"EcorePackageImpl/43",1226),dIt(1227,1,c9t,_l),xVt.wj=function(t){return rO(t,42)},xVt.xj=function(t){return O8($te,yWt,42,t,0,1)},pX(h6t,"EcorePackageImpl/44",1227),dIt(1188,1,c9t,Sl),xVt.wj=function(t){return rO(t,138)},xVt.xj=function(t){return O8(QIe,$Vt,138,t,0,1)},pX(h6t,"EcorePackageImpl/5",1188),dIt(1189,1,c9t,Ll),xVt.wj=function(t){return rO(t,148)},xVt.xj=function(t){return O8($Ie,$Vt,148,t,0,1)},pX(h6t,"EcorePackageImpl/6",1189),dIt(1190,1,c9t,Il),xVt.wj=function(t){return rO(t,457)},xVt.xj=function(t){return O8(KIe,$Vt,671,t,0,1)},pX(h6t,"EcorePackageImpl/7",1190),dIt(1191,1,c9t,Ml),xVt.wj=function(t){return rO(t,573)},xVt.xj=function(t){return O8(zIe,$Vt,678,t,0,1)},pX(h6t,"EcorePackageImpl/8",1191),dIt(1192,1,c9t,Ol),xVt.wj=function(t){return rO(t,471)},xVt.xj=function(t){return O8(QLe,$Vt,471,t,0,1)},pX(h6t,"EcorePackageImpl/9",1192),dIt(1025,1982,r7t,Oy),xVt.bi=function(t,e){Lht(this,Q$(e,415))},xVt.fi=function(t,e){e_t(this,t,Q$(e,415))},pX(h6t,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1025),dIt(1026,143,t7t,aV),xVt.Ai=function(){return this.a.a},pX(h6t,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1026),dIt(1053,1052,{},oM),pX("org.eclipse.emf.ecore.plugin","EcorePlugin",1053);var VMe,WMe,qMe,YMe,JMe,ZMe,tOe=hj(u9t,"Resource");dIt(781,1378,h9t),xVt.Yk=function(t){},xVt.Zk=function(t){},xVt.Vk=function(){return!this.a&&(this.a=new xm(this)),this.a},xVt.Wk=function(t){var e,n,r,i,a;if((r=t.length)>0){if(h1(0,t.length),47==t.charCodeAt(0)){for(a=new q6(4),i=1,e=1;e<r;++e)h1(e,t.length),47==t.charCodeAt(e)&&(G$(a,i==e?"":t.substr(i,e-i)),i=e+1);return G$(a,t.substr(i)),skt(this,a)}h1(r-1,t.length),63==t.charCodeAt(r-1)&&(n=CR(t,qxt(63),r-2))>0&&(t=t.substr(0,n))}return wSt(this,t)},xVt.Xk=function(){return this.c},xVt.Ib=function(){return Jk(this.gm)+"@"+(Zct(this)>>>0).toString(16)+" uri='"+this.d+"'"},xVt.b=!1,pX(f9t,"ResourceImpl",781),dIt(1379,781,h9t,Tm),pX(f9t,"BinaryResourceImpl",1379),dIt(1169,694,u8t),xVt.si=function(t){return rO(t,56)?kY(this,Q$(t,56)):rO(t,591)?new SO(Q$(t,591).Vk()):HS(t)===HS(this.f)?Q$(t,14).Kc():(dN(),AIe.a)},xVt.Ob=function(){return fLt(this)},xVt.a=!1,pX(v7t,"EcoreUtil/ContentTreeIterator",1169),dIt(1380,1169,u8t,nG),xVt.si=function(t){return HS(t)===HS(this.f)?Q$(t,15).Kc():new R2(Q$(t,56))},pX(f9t,"ResourceImpl/5",1380),dIt(648,1994,F7t,xm),xVt.Hc=function(t){return this.i<=4?Ekt(this,t):rO(t,49)&&Q$(t,49).Zg()==this.a},xVt.bi=function(t,e){t==this.i-1&&(this.a.b||(this.a.b=!0))},xVt.di=function(t,e){0==t?this.a.b||(this.a.b=!0):I8(this,t,e)},xVt.fi=function(t,e){},xVt.gi=function(t,e,n){},xVt.aj=function(){return 2},xVt.Ai=function(){return this.a},xVt.bj=function(){return!0},xVt.cj=function(t,e){return e=Q$(t,49).wh(this.a,e)},xVt.dj=function(t,e){return Q$(t,49).wh(null,e)},xVt.ej=function(){return!1},xVt.hi=function(){return!0},xVt.ri=function(t){return O8(LLe,$Vt,56,t,0,1)},xVt.ni=function(){return!1},pX(f9t,"ResourceImpl/ContentsEList",648),dIt(957,1964,MWt,Em),xVt.Zc=function(t){return this.a._h(t)},xVt.gc=function(){return this.a.gc()},pX(v7t,"AbstractSequentialInternalEList/1",957),dIt(624,1,{},xH),pX(v7t,"BasicExtendedMetaData",624),dIt(1160,1,{},LS),xVt.$k=function(){return null},xVt._k=function(){return-2==this.a&&od(this,aEt(this.d,this.b)),this.a},xVt.al=function(){return null},xVt.bl=function(){return xq(),xq(),cne},xVt.ne=function(){return this.c==B9t&&cd(this,kpt(this.d,this.b)),this.c},xVt.cl=function(){return 0},xVt.a=-2,xVt.c=B9t,pX(v7t,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1160),dIt(1161,1,{},P0),xVt.$k=function(){return this.a==(F5(),JMe)&&sd(this,mDt(this.f,this.b)),this.a},xVt._k=function(){return 0},xVt.al=function(){return this.c==(F5(),JMe)&&ld(this,bDt(this.f,this.b)),this.c},xVt.bl=function(){return!this.d&&ud(this,ERt(this.f,this.b)),this.d},xVt.ne=function(){return this.e==B9t&&hd(this,kpt(this.f,this.b)),this.e},xVt.cl=function(){return-2==this.g&&fd(this,qCt(this.f,this.b)),this.g},xVt.e=B9t,xVt.g=-2,pX(v7t,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1161),dIt(1159,1,{},FS),xVt.b=!1,xVt.c=!1,pX(v7t,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1159),dIt(1162,1,{},N0),xVt.c=-2,xVt.e=B9t,xVt.f=B9t,pX(v7t,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1162),dIt(585,622,N7t,CH),xVt.aj=function(){return this.c},xVt.Fk=function(){return!1},xVt.li=function(t,e){return e},xVt.c=0,pX(v7t,"EDataTypeEList",585);var eOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,uOe=hj(v7t,"FeatureMap");dIt(75,585,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},kat),xVt.Vc=function(t,e){hDt(this,t,Q$(e,72))},xVt.Fc=function(t){return oOt(this,Q$(t,72))},xVt.Yh=function(t){dX(this,Q$(t,72))},xVt.cj=function(t,e){return UR(this,Q$(t,72),e)},xVt.dj=function(t,e){return $R(this,Q$(t,72),e)},xVt.ii=function(t,e){return aQt(this,t,e)},xVt.li=function(t,e){return lKt(this,t,Q$(e,72))},xVt._c=function(t,e){return TFt(this,t,Q$(e,72))},xVt.jj=function(t,e){return HR(this,Q$(t,72),e)},xVt.kj=function(t,e){return jR(this,Q$(t,72),e)},xVt.lj=function(t,e,n){return gCt(this,Q$(t,72),Q$(e,72),n)},xVt.oi=function(t,e){return cxt(this,t,Q$(e,72))},xVt.dl=function(t,e){return DRt(this,t,e)},xVt.Wc=function(t,e){var n,r,i,a,o,s,c,l,u;for(l=new get(e.gc()),i=e.Kc();i.Ob();)if(a=(r=Q$(i.Pb(),72)).ak(),IFt(this.e,a))(!a.hi()||!H3(this,a,r.dd())&&!Ekt(l,r))&&l7(l,r);else{for(u=aFt(this.e.Tg(),a),n=Q$(this.g,119),o=!0,s=0;s<this.i;++s)if(c=n[s],u.rl(c.ak())){Q$(sbt(this,s,r),72),o=!1;break}o&&l7(l,r)}return sct(this,t,l)},xVt.Gc=function(t){var e,n,r,i,a,o,s,c,l;for(c=new get(t.gc()),r=t.Kc();r.Ob();)if(i=(n=Q$(r.Pb(),72)).ak(),IFt(this.e,i))(!i.hi()||!H3(this,i,n.dd())&&!Ekt(c,n))&&l7(c,n);else{for(l=aFt(this.e.Tg(),i),e=Q$(this.g,119),a=!0,o=0;o<this.i;++o)if(s=e[o],l.rl(s.ak())){Q$(sbt(this,o,n),72),a=!1;break}a&&l7(c,n)}return gX(this,c)},xVt.Wh=function(t){return this.j=-1,MUt(this,this.i,t)},xVt.el=function(t,e,n){return TPt(this,t,e,n)},xVt.mk=function(t,e){return CRt(this,t,e)},xVt.fl=function(t,e,n){return J$t(this,t,e,n)},xVt.gl=function(){return this},xVt.hl=function(t,e){return rHt(this,t,e)},xVt.il=function(t){return Q$(Xet(this,t),72).ak()},xVt.jl=function(t){return Q$(Xet(this,t),72).dd()},xVt.kl=function(){return this.b},xVt.bj=function(){return!0},xVt.ij=function(){return!0},xVt.ll=function(t){return!agt(this,t)},xVt.ri=function(t){return O8(zMe,l9t,332,t,0,1)},xVt.Gk=function(t){return cN(this,t)},xVt.Wb=function(t){ZG(this,t)},xVt.ml=function(t,e){xHt(this,t,e)},xVt.nl=function(t){return Krt(this,t)},xVt.ol=function(t){Pvt(this,t)},pX(v7t,"BasicFeatureMap",75),dIt(1851,1,iWt),xVt.Nb=function(t){lG(this,t)},xVt.Rb=function(t){if(-1==this.g)throw Um(new db);mz(this);try{LFt(this.e,this.b,this.a,t),this.d=this.e.j,ibt(this)}catch(t){throw rO(t=hst(t),73)?Um(new pb):Um(t)}},xVt.Ob=function(){return Plt(this)},xVt.Sb=function(){return Rlt(this)},xVt.Pb=function(){return ibt(this)},xVt.Tb=function(){return this.a},xVt.Ub=function(){var t;if(Rlt(this))return mz(this),this.g=--this.a,this.Lk()&&(t=QSt(this.e,this.b,this.c,this.a,this.j),this.j=t),this.i=0,this.j;throw Um(new bb)},xVt.Vb=function(){return this.a-1},xVt.Qb=function(){if(-1==this.g)throw Um(new db);mz(this);try{aBt(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(t){throw rO(t=hst(t),73)?Um(new pb):Um(t)}},xVt.Lk=function(){return!1},xVt.Wb=function(t){if(-1==this.g)throw Um(new db);mz(this);try{GUt(this.e,this.b,this.g,t),this.d=this.e.j}catch(t){throw rO(t=hst(t),73)?Um(new pb):Um(t)}},xVt.a=0,xVt.c=0,xVt.d=0,xVt.f=!1,xVt.g=0,xVt.i=0,pX(v7t,"FeatureMapUtil/BasicFeatureEIterator",1851),dIt(410,1851,iWt,Lot),xVt.pl=function(){var t,e,n;for(n=this.e.i,t=Q$(this.e.g,119);this.c<n;){if(e=t[this.c],this.k.rl(e.ak()))return this.j=this.f?e:e.dd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},xVt.ql=function(){var t,e;for(t=Q$(this.e.g,119);--this.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},pX(v7t,"BasicFeatureMap/FeatureEIterator",410),dIt(662,410,iWt,OL),xVt.Lk=function(){return!0},pX(v7t,"BasicFeatureMap/ResolvingFeatureEIterator",662),dIt(955,486,H7t,jM),xVt.Gi=function(){return this},pX(v7t,"EContentsEList/1",955),dIt(956,486,H7t,DL),xVt.Lk=function(){return!1},pX(v7t,"EContentsEList/2",956),dIt(954,279,j7t,KM),xVt.Nk=function(t){},xVt.Ob=function(){return!1},xVt.Sb=function(){return!1},pX(v7t,"EContentsEList/FeatureIteratorImpl/1",954),dIt(825,585,N7t,NO),xVt.ci=function(){this.a=!0},xVt.fj=function(){return this.a},xVt.Xj=function(){var t;cjt(this),mI(this.e)?(t=this.a,this.a=!1,fot(this.e,new Z5(this.e,2,this.c,t,!1))):this.a=!1},xVt.a=!1,pX(v7t,"EDataTypeEList/Unsettable",825),dIt(1849,585,N7t,PO),xVt.hi=function(){return!0},pX(v7t,"EDataTypeUniqueEList",1849),dIt(1850,825,N7t,RO),xVt.hi=function(){return!0},pX(v7t,"EDataTypeUniqueEList/Unsettable",1850),dIt(139,85,N7t,MO),xVt.Ek=function(){return!0},xVt.li=function(t,e){return jLt(this,t,Q$(e,56))},pX(v7t,"EObjectContainmentEList/Resolving",139),dIt(1163,545,N7t,OO),xVt.Ek=function(){return!0},xVt.li=function(t,e){return jLt(this,t,Q$(e,56))},pX(v7t,"EObjectContainmentEList/Unsettable/Resolving",1163),dIt(748,16,N7t,eR),xVt.ci=function(){this.a=!0},xVt.fj=function(){return this.a},xVt.Xj=function(){var t;cjt(this),mI(this.e)?(t=this.a,this.a=!1,fot(this.e,new Z5(this.e,2,this.c,t,!1))):this.a=!1},xVt.a=!1,pX(v7t,"EObjectContainmentWithInverseEList/Unsettable",748),dIt(1173,748,N7t,nR),xVt.Ek=function(){return!0},xVt.li=function(t,e){return jLt(this,t,Q$(e,56))},pX(v7t,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1173),dIt(743,496,N7t,DO),xVt.ci=function(){this.a=!0},xVt.fj=function(){return this.a},xVt.Xj=function(){var t;cjt(this),mI(this.e)?(t=this.a,this.a=!1,fot(this.e,new Z5(this.e,2,this.c,t,!1))):this.a=!1},xVt.a=!1,pX(v7t,"EObjectEList/Unsettable",743),dIt(328,496,N7t,FO),xVt.Ek=function(){return!0},xVt.li=function(t,e){return jLt(this,t,Q$(e,56))},pX(v7t,"EObjectResolvingEList",328),dIt(1641,743,N7t,QO),xVt.Ek=function(){return!0},xVt.li=function(t,e){return jLt(this,t,Q$(e,56))},pX(v7t,"EObjectResolvingEList/Unsettable",1641),dIt(1381,1,{},Dl),pX(v7t,"EObjectValidator",1381),dIt(546,496,N7t,eG),xVt.zk=function(){return this.d},xVt.Ak=function(){return this.b},xVt.bj=function(){return!0},xVt.Dk=function(){return!0},xVt.b=0,pX(v7t,"EObjectWithInverseEList",546),dIt(1176,546,N7t,rR),xVt.Ck=function(){return!0},pX(v7t,"EObjectWithInverseEList/ManyInverse",1176),dIt(625,546,N7t,iR),xVt.ci=function(){this.a=!0},xVt.fj=function(){return this.a},xVt.Xj=function(){var t;cjt(this),mI(this.e)?(t=this.a,this.a=!1,fot(this.e,new Z5(this.e,2,this.c,t,!1))):this.a=!1},xVt.a=!1,pX(v7t,"EObjectWithInverseEList/Unsettable",625),dIt(1175,625,N7t,oR),xVt.Ck=function(){return!0},pX(v7t,"EObjectWithInverseEList/Unsettable/ManyInverse",1175),dIt(749,546,N7t,aR),xVt.Ek=function(){return!0},xVt.li=function(t,e){return jLt(this,t,Q$(e,56))},pX(v7t,"EObjectWithInverseResolvingEList",749),dIt(31,749,N7t,cR),xVt.Ck=function(){return!0},pX(v7t,"EObjectWithInverseResolvingEList/ManyInverse",31),dIt(750,625,N7t,sR),xVt.Ek=function(){return!0},xVt.li=function(t,e){return jLt(this,t,Q$(e,56))},pX(v7t,"EObjectWithInverseResolvingEList/Unsettable",750),dIt(1174,750,N7t,lR),xVt.Ck=function(){return!0},pX(v7t,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1174),dIt(1164,622,N7t),xVt.ai=function(){return!(1792&this.b)},xVt.ci=function(){this.b|=1},xVt.Bk=function(){return!!(4&this.b)},xVt.bj=function(){return!!(40&this.b)},xVt.Ck=function(){return!!(16&this.b)},xVt.Dk=function(){return!!(8&this.b)},xVt.Ek=function(){return!!(this.b&x7t)},xVt.rk=function(){return!!(32&this.b)},xVt.Fk=function(){return!!(this.b&y6t)},xVt.wj=function(t){return this.d?O3(this.d,t):this.ak().Yj().wj(t)},xVt.fj=function(){return 2&this.b?!!(1&this.b):0!=this.i},xVt.hi=function(){return!!(128&this.b)},xVt.Xj=function(){var t;cjt(this),2&this.b&&(mI(this.e)?(t=!!(1&this.b),this.b&=-2,Ib(this,new Z5(this.e,2,LAt(this.e.Tg(),this.ak()),t,!1))):this.b&=-2)},xVt.ni=function(){return!(1536&this.b)},xVt.b=0,pX(v7t,"EcoreEList/Generic",1164),dIt(1165,1164,N7t,jq),xVt.ak=function(){return this.a},pX(v7t,"EcoreEList/Dynamic",1165),dIt(747,63,l8t,Bm),xVt.ri=function(t){return Fnt(this.a.a,t)},pX(v7t,"EcoreEMap/1",747),dIt(746,85,N7t,Yz),xVt.bi=function(t,e){_bt(this.b,Q$(e,133))},xVt.di=function(t,e){aot(this.b)},xVt.ei=function(t,e,n){var r;++(r=this.b,Q$(e,133),r).e},xVt.fi=function(t,e){Sft(this.b,Q$(e,133))},xVt.gi=function(t,e,n){Sft(this.b,Q$(n,133)),HS(n)===HS(e)&&Q$(n,133).Th(rM(Q$(e,133).cd())),_bt(this.b,Q$(e,133))},pX(v7t,"EcoreEMap/DelegateEObjectContainmentEList",746),dIt(1171,151,w7t,vrt),pX(v7t,"EcoreEMap/Unsettable",1171),dIt(1172,746,N7t,uR),xVt.ci=function(){this.a=!0},xVt.fj=function(){return this.a},xVt.Xj=function(){var t;cjt(this),mI(this.e)?(t=this.a,this.a=!1,fot(this.e,new Z5(this.e,2,this.c,t,!1))):this.a=!1},xVt.a=!1,pX(v7t,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1172),dIt(1168,228,tYt,uX),xVt.a=!1,xVt.b=!1,pX(v7t,"EcoreUtil/Copier",1168),dIt(745,1,WVt,R2),xVt.Nb=function(t){lG(this,t)},xVt.Ob=function(){return ogt(this)},xVt.Pb=function(){var t;return ogt(this),t=this.b,this.b=null,t},xVt.Qb=function(){this.a.Qb()},pX(v7t,"EcoreUtil/ProperContentIterator",745),dIt(1382,1381,{},Ph),pX(v7t,"EcoreValidator",1382),hj(v7t,"FeatureMapUtil/Validator"),dIt(1260,1,{1942:1},Fl),xVt.rl=function(t){return!0},pX(v7t,"FeatureMapUtil/1",1260),dIt(757,1,{1942:1},iGt),xVt.rl=function(t){var e;return this.c==t||(null==(e=kN(FX(this.a,t)))?DPt(this,t)?(n6(this.a,t,(cD(),mee)),!0):(n6(this.a,t,(cD(),pee)),!1):e==(cD(),mee))},xVt.e=!1,pX(v7t,"FeatureMapUtil/BasicValidator",757),dIt(758,43,tYt,zM),pX(v7t,"FeatureMapUtil/BasicValidator/Cache",758),dIt(501,52,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,69:1,95:1},OS),xVt.Vc=function(t,e){LFt(this.c,this.b,t,e)},xVt.Fc=function(t){return DRt(this.c,this.b,t)},xVt.Wc=function(t,e){return wHt(this.c,this.b,t,e)},xVt.Gc=function(t){return YM(this,t)},xVt.Xh=function(t,e){cet(this.c,this.b,t,e)},xVt.lk=function(t,e){return TPt(this.c,this.b,t,e)},xVt.pi=function(t){return nHt(this.c,this.b,t,!1)},xVt.Zh=function(){return yI(this.c,this.b)},xVt.$h=function(){return wI(this.c,this.b)},xVt._h=function(t){return L8(this.c,this.b,t)},xVt.mk=function(t,e){return ZN(this,t,e)},xVt.$b=function(){Mb(this)},xVt.Hc=function(t){return H3(this.c,this.b,t)},xVt.Ic=function(t){return xat(this.c,this.b,t)},xVt.Xb=function(t){return nHt(this.c,this.b,t,!0)},xVt.Wj=function(t){return this},xVt.Xc=function(t){return j3(this.c,this.b,t)},xVt.dc=function(){return US(this)},xVt.fj=function(){return!agt(this.c,this.b)},xVt.Kc=function(){return rtt(this.c,this.b)},xVt.Yc=function(){return itt(this.c,this.b)},xVt.Zc=function(t){return hft(this.c,this.b,t)},xVt.ii=function(t,e){return bUt(this.c,this.b,t,e)},xVt.ji=function(t,e){V6(this.c,this.b,t,e)},xVt.$c=function(t){return aBt(this.c,this.b,t)},xVt.Mc=function(t){return BRt(this.c,this.b,t)},xVt._c=function(t,e){return GUt(this.c,this.b,t,e)},xVt.Wb=function(t){LLt(this.c,this.b),YM(this,Q$(t,15))},xVt.gc=function(){return Pft(this.c,this.b)},xVt.Pc=function(){return H1(this.c,this.b)},xVt.Qc=function(t){return K3(this.c,this.b,t)},xVt.Ib=function(){var t,e;for((e=new xw).a+="[",t=yI(this.c,this.b);Plt(t);)rL(e,vD(ibt(t))),Plt(t)&&(e.a+=QVt);return e.a+="]",e.a},xVt.Xj=function(){LLt(this.c,this.b)},pX(v7t,"FeatureMapUtil/FeatureEList",501),dIt(627,36,t7t,h4),xVt.yi=function(t){return eft(this,t)},xVt.Di=function(t){var e,n,r,i;switch(this.d){case 1:case 2:if(HS(t.Ai())===HS(this.c)&&eft(this,null)==t.yi(null))return this.g=t.zi(),1==t.xi()&&(this.d=1),!0;break;case 3:if(3===t.xi()&&HS(t.Ai())===HS(this.c)&&eft(this,null)==t.yi(null))return this.d=5,l7(e=new get(2),this.g),l7(e,t.zi()),this.g=e,!0;break;case 5:if(3===t.xi()&&HS(t.Ai())===HS(this.c)&&eft(this,null)==t.yi(null))return Q$(this.g,14).Fc(t.zi()),!0;break;case 4:switch(t.xi()){case 3:if(HS(t.Ai())===HS(this.c)&&eft(this,null)==t.yi(null))return this.d=1,this.g=t.zi(),!0;break;case 4:if(HS(t.Ai())===HS(this.c)&&eft(this,null)==t.yi(null))return this.d=6,l7(i=new get(2),this.n),l7(i,t.Bi()),this.n=i,r=Tst(Hw(_De,1),lqt,25,15,[this.o,t.Ci()]),this.g=r,!0}break;case 6:if(4===t.xi()&&HS(t.Ai())===HS(this.c)&&eft(this,null)==t.yi(null))return Q$(this.n,14).Fc(t.Bi()),aHt(r=Q$(this.g,48),0,n=O8(_De,lqt,25,r.length+1,15,1),0,r.length),n[r.length]=t.Ci(),this.g=n,!0}return!1},pX(v7t,"FeatureMapUtil/FeatureENotificationImpl",627),dIt(552,501,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},uj),xVt.dl=function(t,e){return DRt(this.c,t,e)},xVt.el=function(t,e,n){return TPt(this.c,t,e,n)},xVt.fl=function(t,e,n){return J$t(this.c,t,e,n)},xVt.gl=function(){return this},xVt.hl=function(t,e){return rHt(this.c,t,e)},xVt.il=function(t){return Q$(nHt(this.c,this.b,t,!1),72).ak()},xVt.jl=function(t){return Q$(nHt(this.c,this.b,t,!1),72).dd()},xVt.kl=function(){return this.a},xVt.ll=function(t){return!agt(this.c,t)},xVt.ml=function(t,e){xHt(this.c,t,e)},xVt.nl=function(t){return Krt(this.c,t)},xVt.ol=function(t){Pvt(this.c,t)},pX(v7t,"FeatureMapUtil/FeatureFeatureMap",552),dIt(1259,1,y7t,NS),xVt.Wj=function(t){return nHt(this.b,this.a,-1,t)},xVt.fj=function(){return!agt(this.b,this.a)},xVt.Wb=function(t){xHt(this.b,this.a,t)},xVt.Xj=function(){LLt(this.b,this.a)},pX(v7t,"FeatureMapUtil/FeatureValue",1259);var hOe=hj(S9t,"AnyType");dIt(666,60,UWt,ew),pX(S9t,"InvalidDatatypeValueException",666);var fOe,dOe,AOe,gOe,pOe,mOe,bOe,vOe,yOe,wOe,kOe,COe,xOe,EOe,TOe,BOe,_Oe,SOe,LOe,IOe,MOe,OOe,DOe,FOe,NOe,POe,ROe,QOe,UOe,$Oe,HOe=hj(S9t,L9t),jOe=hj(S9t,I9t),KOe=hj(S9t,M9t);dIt(830,506,{105:1,92:1,90:1,56:1,49:1,97:1,843:1},Fv),xVt._g=function(t,e,n){switch(t){case 0:return n?(!this.c&&(this.c=new kat(this,0)),this.c):(!this.c&&(this.c=new kat(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new kat(this,0)),Q$(JZ(this.c,(zjt(),gOe)),153)):(!this.c&&(this.c=new kat(this,0)),Q$(Q$(JZ(this.c,(zjt(),gOe)),153),215)).kl();case 2:return n?(!this.b&&(this.b=new kat(this,2)),this.b):(!this.b&&(this.b=new kat(this,2)),this.b.b)}return K7(this,t-hX(this.zh()),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():this.zh(),t),e,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.c&&(this.c=new kat(this,0)),CRt(this.c,t,n);case 1:return(!this.c&&(this.c=new kat(this,0)),Q$(Q$(JZ(this.c,(zjt(),gOe)),153),69)).mk(t,n);case 2:return!this.b&&(this.b=new kat(this,2)),CRt(this.b,t,n)}return Q$(eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():this.zh(),e),66).Nj().Rj(this,V9(this),e-hX(this.zh()),t,n)},xVt.lh=function(t){switch(t){case 0:return!!this.c&&0!=this.c.i;case 1:return!(!this.c&&(this.c=new kat(this,0)),Q$(JZ(this.c,(zjt(),gOe)),153)).dc();case 2:return!!this.b&&0!=this.b.i}return _3(this,t-hX(this.zh()),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():this.zh(),t))},xVt.sh=function(t,e){switch(t){case 0:return!this.c&&(this.c=new kat(this,0)),void ZG(this.c,e);case 1:return void(!this.c&&(this.c=new kat(this,0)),Q$(Q$(JZ(this.c,(zjt(),gOe)),153),215)).Wb(e);case 2:return!this.b&&(this.b=new kat(this,2)),void ZG(this.b,e)}Mdt(this,t-hX(this.zh()),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():this.zh(),t),e)},xVt.zh=function(){return zjt(),AOe},xVt.Bh=function(t){switch(t){case 0:return!this.c&&(this.c=new kat(this,0)),void cjt(this.c);case 1:return void(!this.c&&(this.c=new kat(this,0)),Q$(JZ(this.c,(zjt(),gOe)),153)).$b();case 2:return!this.b&&(this.b=new kat(this,2)),void cjt(this.b)}Hht(this,t-hX(this.zh()),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():this.zh(),t))},xVt.Ib=function(){var t;return 4&this.j?TMt(this):((t=new lD(TMt(this))).a+=" (mixed: ",nL(t,this.c),t.a+=", anyAttribute: ",nL(t,this.b),t.a+=")",t.a)},pX(O9t,"AnyTypeImpl",830),dIt(667,506,{105:1,92:1,90:1,56:1,49:1,97:1,2021:1,667:1},Pl),xVt._g=function(t,e,n){switch(t){case 0:return this.a;case 1:return this.b}return K7(this,t-hX((zjt(),BOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():BOe,t),e,n)},xVt.lh=function(t){switch(t){case 0:return null!=this.a;case 1:return null!=this.b}return _3(this,t-hX((zjt(),BOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():BOe,t))},xVt.sh=function(t,e){switch(t){case 0:return void vd(this,xN(e));case 1:return void yd(this,xN(e))}Mdt(this,t-hX((zjt(),BOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():BOe,t),e)},xVt.zh=function(){return zjt(),BOe},xVt.Bh=function(t){switch(t){case 0:return void(this.a=null);case 1:return void(this.b=null)}Hht(this,t-hX((zjt(),BOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():BOe,t))},xVt.Ib=function(){var t;return 4&this.j?TMt(this):((t=new lD(TMt(this))).a+=" (data: ",rL(t,this.a),t.a+=", target: ",rL(t,this.b),t.a+=")",t.a)},xVt.a=null,xVt.b=null,pX(O9t,"ProcessingInstructionImpl",667),dIt(668,830,{105:1,92:1,90:1,56:1,49:1,97:1,843:1,2022:1,668:1},Pv),xVt._g=function(t,e,n){switch(t){case 0:return n?(!this.c&&(this.c=new kat(this,0)),this.c):(!this.c&&(this.c=new kat(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new kat(this,0)),Q$(JZ(this.c,(zjt(),gOe)),153)):(!this.c&&(this.c=new kat(this,0)),Q$(Q$(JZ(this.c,(zjt(),gOe)),153),215)).kl();case 2:return n?(!this.b&&(this.b=new kat(this,2)),this.b):(!this.b&&(this.b=new kat(this,2)),this.b.b);case 3:return!this.c&&(this.c=new kat(this,0)),xN(rHt(this.c,(zjt(),LOe),!0));case 4:return AR(this.a,(!this.c&&(this.c=new kat(this,0)),xN(rHt(this.c,(zjt(),LOe),!0))));case 5:return this.a}return K7(this,t-hX((zjt(),SOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():SOe,t),e,n)},xVt.lh=function(t){switch(t){case 0:return!!this.c&&0!=this.c.i;case 1:return!(!this.c&&(this.c=new kat(this,0)),Q$(JZ(this.c,(zjt(),gOe)),153)).dc();case 2:return!!this.b&&0!=this.b.i;case 3:return!this.c&&(this.c=new kat(this,0)),null!=xN(rHt(this.c,(zjt(),LOe),!0));case 4:return null!=AR(this.a,(!this.c&&(this.c=new kat(this,0)),xN(rHt(this.c,(zjt(),LOe),!0))));case 5:return!!this.a}return _3(this,t-hX((zjt(),SOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():SOe,t))},xVt.sh=function(t,e){switch(t){case 0:return!this.c&&(this.c=new kat(this,0)),void ZG(this.c,e);case 1:return void(!this.c&&(this.c=new kat(this,0)),Q$(Q$(JZ(this.c,(zjt(),gOe)),153),215)).Wb(e);case 2:return!this.b&&(this.b=new kat(this,2)),void ZG(this.b,e);case 3:return void R0(this,xN(e));case 4:return void R0(this,gR(this.a,e));case 5:return void wd(this,Q$(e,148))}Mdt(this,t-hX((zjt(),SOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():SOe,t),e)},xVt.zh=function(){return zjt(),SOe},xVt.Bh=function(t){switch(t){case 0:return!this.c&&(this.c=new kat(this,0)),void cjt(this.c);case 1:return void(!this.c&&(this.c=new kat(this,0)),Q$(JZ(this.c,(zjt(),gOe)),153)).$b();case 2:return!this.b&&(this.b=new kat(this,2)),void cjt(this.b);case 3:return!this.c&&(this.c=new kat(this,0)),void xHt(this.c,(zjt(),LOe),null);case 4:return void R0(this,gR(this.a,null));case 5:return void(this.a=null)}Hht(this,t-hX((zjt(),SOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():SOe,t))},pX(O9t,"SimpleAnyTypeImpl",668),dIt(669,506,{105:1,92:1,90:1,56:1,49:1,97:1,2023:1,669:1},Nv),xVt._g=function(t,e,n){switch(t){case 0:return n?(!this.a&&(this.a=new kat(this,0)),this.a):(!this.a&&(this.a=new kat(this,0)),this.a.b);case 1:return n?(!this.b&&(this.b=new b7((gVt(),bMe),KMe,this,1)),this.b):(!this.b&&(this.b=new b7((gVt(),bMe),KMe,this,1)),S8(this.b));case 2:return n?(!this.c&&(this.c=new b7((gVt(),bMe),KMe,this,2)),this.c):(!this.c&&(this.c=new b7((gVt(),bMe),KMe,this,2)),S8(this.c));case 3:return!this.a&&(this.a=new kat(this,0)),JZ(this.a,(zjt(),OOe));case 4:return!this.a&&(this.a=new kat(this,0)),JZ(this.a,(zjt(),DOe));case 5:return!this.a&&(this.a=new kat(this,0)),JZ(this.a,(zjt(),NOe));case 6:return!this.a&&(this.a=new kat(this,0)),JZ(this.a,(zjt(),POe))}return K7(this,t-hX((zjt(),MOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():MOe,t),e,n)},xVt.jh=function(t,e,n){switch(e){case 0:return!this.a&&(this.a=new kat(this,0)),CRt(this.a,t,n);case 1:return!this.b&&(this.b=new b7((gVt(),bMe),KMe,this,1)),QR(this.b,t,n);case 2:return!this.c&&(this.c=new b7((gVt(),bMe),KMe,this,2)),QR(this.c,t,n);case 5:return!this.a&&(this.a=new kat(this,0)),ZN(JZ(this.a,(zjt(),NOe)),t,n)}return Q$(eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():(zjt(),MOe),e),66).Nj().Rj(this,V9(this),e-hX((zjt(),MOe)),t,n)},xVt.lh=function(t){switch(t){case 0:return!!this.a&&0!=this.a.i;case 1:return!!this.b&&0!=this.b.f;case 2:return!!this.c&&0!=this.c.f;case 3:return!this.a&&(this.a=new kat(this,0)),!US(JZ(this.a,(zjt(),OOe)));case 4:return!this.a&&(this.a=new kat(this,0)),!US(JZ(this.a,(zjt(),DOe)));case 5:return!this.a&&(this.a=new kat(this,0)),!US(JZ(this.a,(zjt(),NOe)));case 6:return!this.a&&(this.a=new kat(this,0)),!US(JZ(this.a,(zjt(),POe)))}return _3(this,t-hX((zjt(),MOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():MOe,t))},xVt.sh=function(t,e){switch(t){case 0:return!this.a&&(this.a=new kat(this,0)),void ZG(this.a,e);case 1:return!this.b&&(this.b=new b7((gVt(),bMe),KMe,this,1)),void tot(this.b,e);case 2:return!this.c&&(this.c=new b7((gVt(),bMe),KMe,this,2)),void tot(this.c,e);case 3:return!this.a&&(this.a=new kat(this,0)),Mb(JZ(this.a,(zjt(),OOe))),!this.a&&(this.a=new kat(this,0)),void YM(JZ(this.a,OOe),Q$(e,14));case 4:return!this.a&&(this.a=new kat(this,0)),Mb(JZ(this.a,(zjt(),DOe))),!this.a&&(this.a=new kat(this,0)),void YM(JZ(this.a,DOe),Q$(e,14));case 5:return!this.a&&(this.a=new kat(this,0)),Mb(JZ(this.a,(zjt(),NOe))),!this.a&&(this.a=new kat(this,0)),void YM(JZ(this.a,NOe),Q$(e,14));case 6:return!this.a&&(this.a=new kat(this,0)),Mb(JZ(this.a,(zjt(),POe))),!this.a&&(this.a=new kat(this,0)),void YM(JZ(this.a,POe),Q$(e,14))}Mdt(this,t-hX((zjt(),MOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():MOe,t),e)},xVt.zh=function(){return zjt(),MOe},xVt.Bh=function(t){switch(t){case 0:return!this.a&&(this.a=new kat(this,0)),void cjt(this.a);case 1:return!this.b&&(this.b=new b7((gVt(),bMe),KMe,this,1)),void this.b.c.$b();case 2:return!this.c&&(this.c=new b7((gVt(),bMe),KMe,this,2)),void this.c.c.$b();case 3:return!this.a&&(this.a=new kat(this,0)),void Mb(JZ(this.a,(zjt(),OOe)));case 4:return!this.a&&(this.a=new kat(this,0)),void Mb(JZ(this.a,(zjt(),DOe)));case 5:return!this.a&&(this.a=new kat(this,0)),void Mb(JZ(this.a,(zjt(),NOe)));case 6:return!this.a&&(this.a=new kat(this,0)),void Mb(JZ(this.a,(zjt(),POe)))}Hht(this,t-hX((zjt(),MOe)),eet(2&this.j?(!this.k&&(this.k=new Fh),this.k).ck():MOe,t))},xVt.Ib=function(){var t;return 4&this.j?TMt(this):((t=new lD(TMt(this))).a+=" (mixed: ",nL(t,this.a),t.a+=")",t.a)},pX(O9t,"XMLTypeDocumentRootImpl",669),dIt(1919,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1,2024:1},Nl),xVt.Ih=function(t,e){switch(t.yj()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return null==e?null:Udt(e);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return xN(e);case 6:return mN(Q$(e,190));case 12:case 47:case 49:case 11:return HKt(this,t,e);case 13:return null==e?null:j$t(Q$(e,240));case 15:case 14:return null==e?null:FG(Hy(CN(e)));case 17:return kCt((zjt(),e));case 18:return kCt(e);case 21:case 20:return null==e?null:NG(Q$(e,155).a);case 27:return bN(Q$(e,190));case 30:return Rvt((zjt(),Q$(e,15)));case 31:return Rvt(Q$(e,15));case 40:return yN((zjt(),e));case 42:return CCt((zjt(),e));case 43:return CCt(e);case 59:case 48:return vN((zjt(),e));default:throw Um(new Py(A6t+t.ne()+g6t))}},xVt.Jh=function(t){var e;switch(-1==t.G&&(t.G=(e=zet(t))?obt(e.Mh(),t):-1),t.G){case 0:return new Fv;case 1:return new Pl;case 2:return new Pv;case 3:return new Nv;default:throw Um(new Py(b6t+t.zb+g6t))}},xVt.Kh=function(t,e){var n,r,i,a,o,s,c,l,u,h,f,d,A,g,p,m;switch(t.yj()){case 5:case 52:case 4:return e;case 6:return vmt(e);case 8:case 7:return null==e?null:RCt(e);case 9:return null==e?null:Ett(hQt((r=Q$t(e,!0)).length>0&&(h1(0,r.length),43==r.charCodeAt(0))?r.substr(1):r,-128,127)<<24>>24);case 10:return null==e?null:Ett(hQt((i=Q$t(e,!0)).length>0&&(h1(0,i.length),43==i.charCodeAt(0))?i.substr(1):i,-128,127)<<24>>24);case 11:return xN(DXt(this,(zjt(),bOe),e));case 12:return xN(DXt(this,(zjt(),vOe),e));case 13:return null==e?null:new fC(Q$t(e,!0));case 15:case 14:return gOt(e);case 16:return xN(DXt(this,(zjt(),yOe),e));case 17:return $gt((zjt(),e));case 18:return $gt(e);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Q$t(e,!0);case 21:case 20:return _Ot(e);case 22:return xN(DXt(this,(zjt(),wOe),e));case 23:return xN(DXt(this,(zjt(),kOe),e));case 24:return xN(DXt(this,(zjt(),COe),e));case 25:return xN(DXt(this,(zjt(),xOe),e));case 26:return xN(DXt(this,(zjt(),EOe),e));case 27:return Jpt(e);case 30:return Hgt((zjt(),e));case 31:return Hgt(e);case 32:return null==e?null:nft(hQt((u=Q$t(e,!0)).length>0&&(h1(0,u.length),43==u.charCodeAt(0))?u.substr(1):u,RWt,FVt));case 33:return null==e?null:new LI((h=Q$t(e,!0)).length>0&&(h1(0,h.length),43==h.charCodeAt(0))?h.substr(1):h);case 34:return null==e?null:nft(hQt((f=Q$t(e,!0)).length>0&&(h1(0,f.length),43==f.charCodeAt(0))?f.substr(1):f,RWt,FVt));case 36:return null==e?null:wpt(rGt((d=Q$t(e,!0)).length>0&&(h1(0,d.length),43==d.charCodeAt(0))?d.substr(1):d));case 37:return null==e?null:wpt(rGt((A=Q$t(e,!0)).length>0&&(h1(0,A.length),43==A.charCodeAt(0))?A.substr(1):A));case 40:return VAt((zjt(),e));case 42:return jgt((zjt(),e));case 43:return jgt(e);case 44:return null==e?null:new LI((g=Q$t(e,!0)).length>0&&(h1(0,g.length),43==g.charCodeAt(0))?g.substr(1):g);case 45:return null==e?null:new LI((p=Q$t(e,!0)).length>0&&(h1(0,p.length),43==p.charCodeAt(0))?p.substr(1):p);case 46:return Q$t(e,!1);case 47:return xN(DXt(this,(zjt(),TOe),e));case 59:case 48:return XAt((zjt(),e));case 49:return xN(DXt(this,(zjt(),_Oe),e));case 50:return null==e?null:rft(hQt((m=Q$t(e,!0)).length>0&&(h1(0,m.length),43==m.charCodeAt(0))?m.substr(1):m,W7t,32767)<<16>>16);case 51:return null==e?null:rft(hQt((a=Q$t(e,!0)).length>0&&(h1(0,a.length),43==a.charCodeAt(0))?a.substr(1):a,W7t,32767)<<16>>16);case 53:return xN(DXt(this,(zjt(),IOe),e));case 55:return null==e?null:rft(hQt((o=Q$t(e,!0)).length>0&&(h1(0,o.length),43==o.charCodeAt(0))?o.substr(1):o,W7t,32767)<<16>>16);case 56:return null==e?null:rft(hQt((s=Q$t(e,!0)).length>0&&(h1(0,s.length),43==s.charCodeAt(0))?s.substr(1):s,W7t,32767)<<16>>16);case 57:return null==e?null:wpt(rGt((c=Q$t(e,!0)).length>0&&(h1(0,c.length),43==c.charCodeAt(0))?c.substr(1):c));case 58:return null==e?null:wpt(rGt((l=Q$t(e,!0)).length>0&&(h1(0,l.length),43==l.charCodeAt(0))?l.substr(1):l));case 60:return null==e?null:nft(hQt((n=Q$t(e,!0)).length>0&&(h1(0,n.length),43==n.charCodeAt(0))?n.substr(1):n,RWt,FVt));case 61:return null==e?null:nft(hQt(Q$t(e,!0),RWt,FVt));default:throw Um(new Py(A6t+t.ne()+g6t))}},pX(O9t,"XMLTypeFactoryImpl",1919),dIt(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},jV),xVt.N=!1,xVt.O=!1;var zOe,GOe,XOe,VOe,WOe,qOe=!1;pX(O9t,"XMLTypePackageImpl",586),dIt(1852,1,{837:1},Rl),xVt._j=function(){return uUt(),wDe},pX(O9t,"XMLTypePackageImpl/1",1852),dIt(1861,1,c9t,Ql),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/10",1861),dIt(1862,1,c9t,Ul),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/11",1862),dIt(1863,1,c9t,$l),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/12",1863),dIt(1864,1,c9t,Hl),xVt.wj=function(t){return KS(t)},xVt.xj=function(t){return O8(Tee,cWt,333,t,7,1)},pX(O9t,"XMLTypePackageImpl/13",1864),dIt(1865,1,c9t,jl),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/14",1865),dIt(1866,1,c9t,Kl),xVt.wj=function(t){return rO(t,15)},xVt.xj=function(t){return O8(Nte,ZJt,15,t,0,1)},pX(O9t,"XMLTypePackageImpl/15",1866),dIt(1867,1,c9t,zl),xVt.wj=function(t){return rO(t,15)},xVt.xj=function(t){return O8(Nte,ZJt,15,t,0,1)},pX(O9t,"XMLTypePackageImpl/16",1867),dIt(1868,1,c9t,Gl),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/17",1868),dIt(1869,1,c9t,Xl),xVt.wj=function(t){return rO(t,155)},xVt.xj=function(t){return O8(Bee,cWt,155,t,0,1)},pX(O9t,"XMLTypePackageImpl/18",1869),dIt(1870,1,c9t,Vl),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/19",1870),dIt(1853,1,c9t,Wl),xVt.wj=function(t){return rO(t,843)},xVt.xj=function(t){return O8(hOe,$Vt,843,t,0,1)},pX(O9t,"XMLTypePackageImpl/2",1853),dIt(1871,1,c9t,ql),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/20",1871),dIt(1872,1,c9t,Yl),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/21",1872),dIt(1873,1,c9t,Jl),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/22",1873),dIt(1874,1,c9t,Zl),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/23",1874),dIt(1875,1,c9t,tu),xVt.wj=function(t){return rO(t,190)},xVt.xj=function(t){return O8(IDe,cWt,190,t,0,2)},pX(O9t,"XMLTypePackageImpl/24",1875),dIt(1876,1,c9t,eu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/25",1876),dIt(1877,1,c9t,nu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/26",1877),dIt(1878,1,c9t,ru),xVt.wj=function(t){return rO(t,15)},xVt.xj=function(t){return O8(Nte,ZJt,15,t,0,1)},pX(O9t,"XMLTypePackageImpl/27",1878),dIt(1879,1,c9t,iu),xVt.wj=function(t){return rO(t,15)},xVt.xj=function(t){return O8(Nte,ZJt,15,t,0,1)},pX(O9t,"XMLTypePackageImpl/28",1879),dIt(1880,1,c9t,au),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/29",1880),dIt(1854,1,c9t,ou),xVt.wj=function(t){return rO(t,667)},xVt.xj=function(t){return O8(HOe,$Vt,2021,t,0,1)},pX(O9t,"XMLTypePackageImpl/3",1854),dIt(1881,1,c9t,su),xVt.wj=function(t){return rO(t,19)},xVt.xj=function(t){return O8(Lee,cWt,19,t,0,1)},pX(O9t,"XMLTypePackageImpl/30",1881),dIt(1882,1,c9t,cu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/31",1882),dIt(1883,1,c9t,lu),xVt.wj=function(t){return rO(t,162)},xVt.xj=function(t){return O8(Nee,cWt,162,t,0,1)},pX(O9t,"XMLTypePackageImpl/32",1883),dIt(1884,1,c9t,uu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/33",1884),dIt(1885,1,c9t,hu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/34",1885),dIt(1886,1,c9t,fu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/35",1886),dIt(1887,1,c9t,du),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/36",1887),dIt(1888,1,c9t,Au),xVt.wj=function(t){return rO(t,15)},xVt.xj=function(t){return O8(Nte,ZJt,15,t,0,1)},pX(O9t,"XMLTypePackageImpl/37",1888),dIt(1889,1,c9t,gu),xVt.wj=function(t){return rO(t,15)},xVt.xj=function(t){return O8(Nte,ZJt,15,t,0,1)},pX(O9t,"XMLTypePackageImpl/38",1889),dIt(1890,1,c9t,pu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/39",1890),dIt(1855,1,c9t,mu),xVt.wj=function(t){return rO(t,668)},xVt.xj=function(t){return O8(jOe,$Vt,2022,t,0,1)},pX(O9t,"XMLTypePackageImpl/4",1855),dIt(1891,1,c9t,bu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/40",1891),dIt(1892,1,c9t,vu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/41",1892),dIt(1893,1,c9t,yu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/42",1893),dIt(1894,1,c9t,wu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/43",1894),dIt(1895,1,c9t,ku),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/44",1895),dIt(1896,1,c9t,Cu),xVt.wj=function(t){return rO(t,184)},xVt.xj=function(t){return O8(Ree,cWt,184,t,0,1)},pX(O9t,"XMLTypePackageImpl/45",1896),dIt(1897,1,c9t,xu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/46",1897),dIt(1898,1,c9t,Eu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/47",1898),dIt(1899,1,c9t,Tu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/48",1899),dIt(cqt,1,c9t,Bu),xVt.wj=function(t){return rO(t,184)},xVt.xj=function(t){return O8(Ree,cWt,184,t,0,1)},pX(O9t,"XMLTypePackageImpl/49",cqt),dIt(1856,1,c9t,_u),xVt.wj=function(t){return rO(t,669)},xVt.xj=function(t){return O8(KOe,$Vt,2023,t,0,1)},pX(O9t,"XMLTypePackageImpl/5",1856),dIt(1901,1,c9t,Su),xVt.wj=function(t){return rO(t,162)},xVt.xj=function(t){return O8(Nee,cWt,162,t,0,1)},pX(O9t,"XMLTypePackageImpl/50",1901),dIt(1902,1,c9t,Lu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/51",1902),dIt(1903,1,c9t,Iu),xVt.wj=function(t){return rO(t,19)},xVt.xj=function(t){return O8(Lee,cWt,19,t,0,1)},pX(O9t,"XMLTypePackageImpl/52",1903),dIt(1857,1,c9t,Mu),xVt.wj=function(t){return zS(t)},xVt.xj=function(t){return O8(Wee,cWt,2,t,6,1)},pX(O9t,"XMLTypePackageImpl/6",1857),dIt(1858,1,c9t,Ou),xVt.wj=function(t){return rO(t,190)},xVt.xj=function(t){return O8(IDe,cWt,190,t,0,2)},pX(O9t,"XMLTypePackageImpl/7",1858),dIt(1859,1,c9t,Du),xVt.wj=function(t){return jS(t)},xVt.xj=function(t){return O8(yee,cWt,476,t,8,1)},pX(O9t,"XMLTypePackageImpl/8",1859),dIt(1860,1,c9t,Fu),xVt.wj=function(t){return rO(t,217)},xVt.xj=function(t){return O8(Cee,cWt,217,t,0,1)},pX(O9t,"XMLTypePackageImpl/9",1860),dIt(50,60,UWt,iw),pX(ate,"RegEx/ParseException",50),dIt(820,1,{},Nu),xVt.sl=function(t){return t<this.j&&63==lW(this.i,t)},xVt.tl=function(){var t,e,n,r,i;if(10!=this.c)throw Um(new iw(yVt((aM(),g8t))));switch(t=this.a){case 101:t=27;break;case 102:t=12;break;case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 120:if(WXt(this),0!=this.c)throw Um(new iw(yVt((aM(),U8t))));if(123==this.a){for(i=0,n=0;;){if(WXt(this),0!=this.c)throw Um(new iw(yVt((aM(),U8t))));if((i=jbt(this.a))<0)break;if(n>16*n)throw Um(new iw(yVt((aM(),$8t))));n=16*n+i}if(125!=this.a)throw Um(new iw(yVt((aM(),H8t))));if(n>ote)throw Um(new iw(yVt((aM(),j8t))));t=n}else{if(i=0,0!=this.c||(i=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));if(n=i,WXt(this),0!=this.c||(i=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));t=n=16*n+i}break;case 117:if(r=0,WXt(this),0!=this.c||(r=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));if(e=r,WXt(this),0!=this.c||(r=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));if(e=16*e+r,WXt(this),0!=this.c||(r=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));if(e=16*e+r,WXt(this),0!=this.c||(r=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));t=e=16*e+r;break;case 118:if(WXt(this),0!=this.c||(r=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));if(e=r,WXt(this),0!=this.c||(r=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));if(e=16*e+r,WXt(this),0!=this.c||(r=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));if(e=16*e+r,WXt(this),0!=this.c||(r=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));if(e=16*e+r,WXt(this),0!=this.c||(r=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));if(e=16*e+r,WXt(this),0!=this.c||(r=jbt(this.a))<0)throw Um(new iw(yVt((aM(),U8t))));if((e=16*e+r)>ote)throw Um(new iw(yVt((aM(),"parser.descappe.4"))));t=e;break;case 65:case 90:case 122:throw Um(new iw(yVt((aM(),K8t))))}return t},xVt.ul=function(t){var e;switch(t){case 100:e=32&~this.e?(dVt(),iDe):JGt("Nd",!0);break;case 68:e=32&~this.e?(dVt(),lDe):JGt("Nd",!1);break;case 119:e=32&~this.e?(dVt(),bDe):JGt("IsWord",!0);break;case 87:e=32&~this.e?(dVt(),hDe):JGt("IsWord",!1);break;case 115:e=32&~this.e?(dVt(),dDe):JGt("IsSpace",!0);break;case 83:e=32&~this.e?(dVt(),uDe):JGt("IsSpace",!1);break;default:throw Um(new dy(ste+t.toString(16)))}return e},xVt.vl=function(t){var e,n,r,i,a,o,s,c,l,u,h;for(this.b=1,WXt(this),e=null,0==this.c&&94==this.a?(WXt(this),t?(dVt(),dVt(),l=new C0(5)):(dVt(),dVt(),qFt(e=new C0(4),0,ote),l=new C0(4))):(dVt(),dVt(),l=new C0(4)),i=!0;1!=(h=this.c)&&(0!=h||93!=this.a||i);){if(i=!1,n=this.a,r=!1,10==h)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:cHt(l,this.ul(n)),r=!0;break;case 105:case 73:case 99:case 67:(n=this.Ll(l,n))<0&&(r=!0);break;case 112:case 80:if(!(u=FSt(this,n)))throw Um(new iw(yVt((aM(),S8t))));cHt(l,u),r=!0;break;default:n=this.tl()}else if(20==h){if((a=uF(this.i,58,this.d))<0)throw Um(new iw(yVt((aM(),L8t))));if(o=!0,94==lW(this.i,this.d)&&(++this.d,o=!1),!(s=h7(lF(this.i,this.d,a),o,!(512&~this.e))))throw Um(new iw(yVt((aM(),M8t))));if(cHt(l,s),r=!0,a+1>=this.j||93!=lW(this.i,a+1))throw Um(new iw(yVt((aM(),L8t))));this.d=a+2}if(WXt(this),!r)if(0!=this.c||45!=this.a)qFt(l,n,n);else{if(WXt(this),1==(h=this.c))throw Um(new iw(yVt((aM(),I8t))));0==h&&93==this.a?(qFt(l,n,n),qFt(l,45,45)):(c=this.a,10==h&&(c=this.tl()),WXt(this),qFt(l,n,c))}(this.e&y6t)==y6t&&0==this.c&&44==this.a&&WXt(this)}if(1==this.c)throw Um(new iw(yVt((aM(),I8t))));return e&&(XKt(e,l),l=e),CMt(l),HHt(l),this.b=0,WXt(this),l},xVt.wl=function(){var t,e,n,r;for(n=this.vl(!1);7!=(r=this.c);){if(t=this.a,(0!=r||45!=t&&38!=t)&&4!=r)throw Um(new iw(yVt((aM(),R8t))));if(WXt(this),9!=this.c)throw Um(new iw(yVt((aM(),P8t))));if(e=this.vl(!1),4==r)cHt(n,e);else if(45==t)XKt(n,e);else{if(38!=t)throw Um(new dy("ASSERT"));yKt(n,e)}}return WXt(this),n},xVt.xl=function(){var t,e;return t=this.a-48,dVt(),dVt(),e=new pJ(12,null,t),!this.g&&(this.g=new Pb),Tb(this.g,new _m(t)),WXt(this),e},xVt.yl=function(){return WXt(this),dVt(),ADe},xVt.zl=function(){return WXt(this),dVt(),fDe},xVt.Al=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Bl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Cl=function(){return WXt(this),ult()},xVt.Dl=function(){return WXt(this),dVt(),pDe},xVt.El=function(){return WXt(this),dVt(),vDe},xVt.Fl=function(){var t;if(this.d>=this.j||64!=(65504&(t=lW(this.i,this.d++))))throw Um(new iw(yVt((aM(),E8t))));return WXt(this),dVt(),dVt(),new oK(0,t-64)},xVt.Gl=function(){return WXt(this),NUt()},xVt.Hl=function(){return WXt(this),dVt(),yDe},xVt.Il=function(){var t;return dVt(),dVt(),t=new oK(0,105),WXt(this),t},xVt.Jl=function(){return WXt(this),dVt(),mDe},xVt.Kl=function(){return WXt(this),dVt(),gDe},xVt.Ll=function(t,e){return this.tl()},xVt.Ml=function(){return WXt(this),dVt(),sDe},xVt.Nl=function(){var t,e,n,r,i;if(this.d+1>=this.j)throw Um(new iw(yVt((aM(),k8t))));if(r=-1,e=null,49<=(t=lW(this.i,this.d))&&t<=57){if(r=t-48,!this.g&&(this.g=new Pb),Tb(this.g,new _m(r)),++this.d,41!=lW(this.i,this.d))throw Um(new iw(yVt((aM(),v8t))));++this.d}else switch(63==t&&--this.d,WXt(this),(e=SXt(this)).e){case 20:case 21:case 22:case 23:break;case 8:if(7!=this.c)throw Um(new iw(yVt((aM(),v8t))));break;default:throw Um(new iw(yVt((aM(),C8t))))}if(WXt(this),n=null,2==(i=Vgt(this)).e){if(2!=i.em())throw Um(new iw(yVt((aM(),x8t))));n=i.am(1),i=i.am(0)}if(7!=this.c)throw Um(new iw(yVt((aM(),v8t))));return WXt(this),dVt(),dVt(),new ytt(r,e,i,n)},xVt.Ol=function(){return WXt(this),dVt(),cDe},xVt.Pl=function(){var t;if(WXt(this),t=aG(24,Vgt(this)),7!=this.c)throw Um(new iw(yVt((aM(),v8t))));return WXt(this),t},xVt.Ql=function(){var t;if(WXt(this),t=aG(20,Vgt(this)),7!=this.c)throw Um(new iw(yVt((aM(),v8t))));return WXt(this),t},xVt.Rl=function(){var t;if(WXt(this),t=aG(22,Vgt(this)),7!=this.c)throw Um(new iw(yVt((aM(),v8t))));return WXt(this),t},xVt.Sl=function(){var t,e,n,r,i;for(t=0,n=0,e=-1;this.d<this.j&&0!=(i=WLt(e=lW(this.i,this.d)));)t|=i,++this.d;if(this.d>=this.j)throw Um(new iw(yVt((aM(),y8t))));if(45==e){for(++this.d;this.d<this.j&&0!=(i=WLt(e=lW(this.i,this.d)));)n|=i,++this.d;if(this.d>=this.j)throw Um(new iw(yVt((aM(),y8t))))}if(58==e){if(++this.d,WXt(this),r=SX(Vgt(this),t,n),7!=this.c)throw Um(new iw(yVt((aM(),v8t))));WXt(this)}else{if(41!=e)throw Um(new iw(yVt((aM(),w8t))));++this.d,WXt(this),r=SX(Vgt(this),t,n)}return r},xVt.Tl=function(){var t;if(WXt(this),t=aG(21,Vgt(this)),7!=this.c)throw Um(new iw(yVt((aM(),v8t))));return WXt(this),t},xVt.Ul=function(){var t;if(WXt(this),t=aG(23,Vgt(this)),7!=this.c)throw Um(new iw(yVt((aM(),v8t))));return WXt(this),t},xVt.Vl=function(){var t,e;if(WXt(this),t=this.f++,e=oG(Vgt(this),t),7!=this.c)throw Um(new iw(yVt((aM(),v8t))));return WXt(this),e},xVt.Wl=function(){var t;if(WXt(this),t=oG(Vgt(this),0),7!=this.c)throw Um(new iw(yVt((aM(),v8t))));return WXt(this),t},xVt.Xl=function(t){return WXt(this),5==this.c?(WXt(this),AK(t,(dVt(),dVt(),new c4(9,t)))):AK(t,(dVt(),dVt(),new c4(3,t)))},xVt.Yl=function(t){var e;return WXt(this),dVt(),dVt(),e=new nM(2),5==this.c?(WXt(this),tjt(e,oDe),tjt(e,t)):(tjt(e,t),tjt(e,oDe)),e},xVt.Zl=function(t){return WXt(this),5==this.c?(WXt(this),dVt(),dVt(),new c4(9,t)):(dVt(),dVt(),new c4(3,t))},xVt.a=0,xVt.b=0,xVt.c=0,xVt.d=0,xVt.e=0,xVt.f=1,xVt.g=null,xVt.j=0,pX(ate,"RegEx/RegexParser",820),dIt(1824,820,{},Rv),xVt.sl=function(t){return!1},xVt.tl=function(){return HNt(this)},xVt.ul=function(t){return AQt(t)},xVt.vl=function(t){return JXt(this)},xVt.wl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.xl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.yl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.zl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Al=function(){return WXt(this),AQt(67)},xVt.Bl=function(){return WXt(this),AQt(73)},xVt.Cl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Dl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.El=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Fl=function(){return WXt(this),AQt(99)},xVt.Gl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Hl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Il=function(){return WXt(this),AQt(105)},xVt.Jl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Kl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Ll=function(t,e){return cHt(t,AQt(e)),-1},xVt.Ml=function(){return WXt(this),dVt(),dVt(),new oK(0,94)},xVt.Nl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Ol=function(){return WXt(this),dVt(),dVt(),new oK(0,36)},xVt.Pl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Ql=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Rl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Sl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Tl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Ul=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Vl=function(){var t;if(WXt(this),t=oG(Vgt(this),0),7!=this.c)throw Um(new iw(yVt((aM(),v8t))));return WXt(this),t},xVt.Wl=function(){throw Um(new iw(yVt((aM(),z8t))))},xVt.Xl=function(t){return WXt(this),AK(t,(dVt(),dVt(),new c4(3,t)))},xVt.Yl=function(t){var e;return WXt(this),dVt(),dVt(),tjt(e=new nM(2),t),tjt(e,oDe),e},xVt.Zl=function(t){return WXt(this),dVt(),dVt(),new c4(3,t)};var YOe=null,JOe=null;pX(ate,"RegEx/ParserForXMLSchema",1824),dIt(117,1,vte,Sm),xVt.$l=function(t){throw Um(new dy("Not supported."))},xVt._l=function(){return-1},xVt.am=function(t){return null},xVt.bm=function(){return null},xVt.cm=function(t){},xVt.dm=function(t){},xVt.em=function(){return 0},xVt.Ib=function(){return this.fm(0)},xVt.fm=function(t){return 11==this.e?".":""},xVt.e=0;var ZOe,tDe,eDe,nDe,rDe,iDe,aDe,oDe,sDe,cDe,lDe,uDe,hDe,fDe,dDe,ADe,gDe,pDe,mDe,bDe,vDe,yDe,wDe,kDe,CDe=null,xDe=null,EDe=null,TDe=pX(ate,"RegEx/Token",117);dIt(136,117,{3:1,136:1,117:1},C0),xVt.fm=function(t){var e,n,r;if(4==this.e)if(this==aDe)n=".";else if(this==iDe)n="\\d";else if(this==bDe)n="\\w";else if(this==dDe)n="\\s";else{for((r=new xw).a+="[",e=0;e<this.b.length;e+=2)t&y6t&&e>0&&(r.a+=","),this.b[e]===this.b[e+1]?rL(r,a$t(this.b[e])):(rL(r,a$t(this.b[e])),r.a+="-",rL(r,a$t(this.b[e+1])));r.a+="]",n=r.a}else if(this==lDe)n="\\D";else if(this==hDe)n="\\W";else if(this==uDe)n="\\S";else{for((r=new xw).a+="[^",e=0;e<this.b.length;e+=2)t&y6t&&e>0&&(r.a+=","),this.b[e]===this.b[e+1]?rL(r,a$t(this.b[e])):(rL(r,a$t(this.b[e])),r.a+="-",rL(r,a$t(this.b[e+1])));r.a+="]",n=r.a}return n},xVt.a=!1,xVt.c=!1,pX(ate,"RegEx/RangeToken",136),dIt(584,1,{584:1},_m),xVt.a=0,pX(ate,"RegEx/RegexParser/ReferencePosition",584),dIt(583,1,{3:1,583:1},zC),xVt.Fb=function(t){var e;return null!=t&&!!rO(t,583)&&(e=Q$(t,583),mR(this.b,e.b)&&this.a==e.a)},xVt.Hb=function(){return mbt(this.b+"/"+tFt(this.a))},xVt.Ib=function(){return this.c.fm(this.a)},xVt.a=0,pX(ate,"RegEx/RegularExpression",583),dIt(223,117,vte,oK),xVt._l=function(){return this.a},xVt.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="\\"+EP(this.a&WWt);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>=Uqt?"\\v"+lF(e="0"+(this.a>>>0).toString(16),e.length-6,e.length):""+EP(this.a&WWt)}break;case 8:n=this==sDe||this==cDe?""+EP(this.a&WWt):"\\"+EP(this.a&WWt);break;default:n=null}return n},xVt.a=0,pX(ate,"RegEx/Token/CharToken",223),dIt(309,117,vte,c4),xVt.am=function(t){return this.a},xVt.cm=function(t){this.b=t},xVt.dm=function(t){this.c=t},xVt.em=function(){return 1},xVt.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 Um(new dy("Token#toString(): CLOSURE "+this.c+QVt+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 Um(new dy("Token#toString(): NONGREEDYCLOSURE "+this.c+QVt+this.b));e=this.a.fm(t)+"{"+this.c+",}?"}return e},xVt.b=0,xVt.c=0,pX(ate,"RegEx/Token/ClosureToken",309),dIt(821,117,vte,KG),xVt.am=function(t){return 0==t?this.a:this.b},xVt.em=function(){return 2},xVt.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)},pX(ate,"RegEx/Token/ConcatToken",821),dIt(1822,117,vte,ytt),xVt.am=function(t){if(0==t)return this.d;if(1==t)return this.b;throw Um(new dy("Internal Error: "+t))},xVt.em=function(){return this.b?2:1},xVt.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},xVt.c=0,pX(ate,"RegEx/Token/ConditionToken",1822),dIt(1823,117,vte,k0),xVt.am=function(t){return this.b},xVt.em=function(){return 1},xVt.fm=function(t){return"(?"+(0==this.a?"":tFt(this.a))+(0==this.c?"":tFt(this.c))+":"+this.b.fm(t)+")"},xVt.a=0,xVt.c=0,pX(ate,"RegEx/Token/ModifierToken",1823),dIt(822,117,vte,rV),xVt.am=function(t){return this.a},xVt.em=function(){return 1},xVt.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)+")";break;case 24:e="(?>"+this.a.fm(t)+")"}return e},xVt.b=0,pX(ate,"RegEx/Token/ParenToken",822),dIt(521,117,{3:1,117:1,521:1},pJ),xVt.bm=function(){return this.b},xVt.fm=function(t){return 12==this.e?"\\"+this.a:nIt(this.b)},xVt.a=0,pX(ate,"RegEx/Token/StringToken",521),dIt(465,117,vte,nM),xVt.$l=function(t){tjt(this,t)},xVt.am=function(t){return Q$(hV(this.a,t),117)},xVt.em=function(){return this.a?this.a.a.c.length:0},xVt.fm=function(t){var e,n,r,i,a;if(1==this.e){if(2==this.a.a.c.length)e=Q$(hV(this.a,0),117),i=3==(n=Q$(hV(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 xw,r=0;r<this.a.a.c.length;r++)rL(a,Q$(hV(this.a,r),117).fm(t));i=a.a}return i}if(2==this.a.a.c.length&&7==Q$(hV(this.a,1),117).e)i=Q$(hV(this.a,0),117).fm(t)+"?";else if(2==this.a.a.c.length&&7==Q$(hV(this.a,0),117).e)i=Q$(hV(this.a,1),117).fm(t)+"??";else{for(rL(a=new xw,Q$(hV(this.a,0),117).fm(t)),r=1;r<this.a.a.c.length;r++)a.a+="|",rL(a,Q$(hV(this.a,r),117).fm(t));i=a.a}return i},pX(ate,"RegEx/Token/UnionToken",465),dIt(518,1,{592:1},KC),xVt.Ib=function(){return this.a.b},pX(yte,"XMLTypeUtil/PatternMatcherImpl",518),dIt(1622,1381,{},Pu),pX(yte,"XMLTypeValidator",1622),dIt(264,1,pWt,cz),xVt.Jc=function(t){t5(this,t)},xVt.Kc=function(){return(this.b-this.a)*this.c<0?kDe:new zO(this)},xVt.a=0,xVt.b=0,xVt.c=0,pX(kte,"ExclusiveRange",264),dIt(1068,1,iWt,Ru),xVt.Rb=function(t){Q$(t,19),uM()},xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return HC()},xVt.Ub=function(){return jC()},xVt.Wb=function(t){Q$(t,19),fM()},xVt.Ob=function(){return!1},xVt.Sb=function(){return!1},xVt.Tb=function(){return-1},xVt.Vb=function(){return-1},xVt.Qb=function(){throw Um(new Zy(Ete))},pX(kte,"ExclusiveRange/1",1068),dIt(254,1,iWt,zO),xVt.Rb=function(t){Q$(t,19),hM()},xVt.Nb=function(t){lG(this,t)},xVt.Pb=function(){return Qut(this)},xVt.Ub=function(){return _7(this)},xVt.Wb=function(t){Q$(t,19),dM()},xVt.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},xVt.Sb=function(){return this.b>0},xVt.Tb=function(){return this.b},xVt.Vb=function(){return this.b-1},xVt.Qb=function(){throw Um(new Zy(Ete))},xVt.a=0,xVt.b=0,pX(kte,"ExclusiveRange/RangeIterator",254);var BDe=FV(T7t,"C"),_De=FV(S7t,"I"),SDe=FV(IVt,"Z"),LDe=FV(L7t,"J"),IDe=FV(E7t,"B"),MDe=FV(B7t,"D"),ODe=FV(_7t,"F"),DDe=FV(I7t,"S"),FDe=hj("org.eclipse.elk.core.labels","ILabelManager"),NDe=hj(U6t,"DiagnosticChain"),PDe=hj(u9t,"ResourceSet"),RDe=pX(U6t,"InvocationTargetException",null),QDe=(Dw(),l5),UDe=UDe=lCt;Jnt(Vm),cat("permProps",[[[Tte,Bte],[_te,"gecko1_8"]],[[Tte,Bte],[_te,"ie10"]],[[Tte,Bte],[_te,"ie8"]],[[Tte,Bte],[_te,"ie9"]],[[Tte,Bte],[_te,"safari"]]]),UDe(null,"elk",null)}).call(this)}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=function(e){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,n);var a=Object.assign({},e),o=!1;try{t.resolve("web-worker"),o=!0}catch(t){}if(e.workerUrl)if(o){var s=t("web-worker");a.workerFactory=function(t){return new s(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(!a.workerFactory){var c=t("./elk-worker.min.js").Worker;a.workerFactory=function(t){return new c(t)}}return i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,a))}return a(n,e),n}(t("./elk-api.js").default);Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports=o,o.default=o},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(t,e,n){e.exports=Worker},{}]},{},[3])(3)})),nat=n(eat);const rat=new nat,iat={},aat={};let oat={};const sat=(t,e,n)=>{const r={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 r.TD=r.TB,H0.info("abc88",n,e,t),r[n][e][t]},cat=(t,e,n)=>{if(H0.info("getNextPort abc88",{node:t,edgeDirection:e,graphDirection:n}),!iat[t])switch(n){case"TB":case"TD":iat[t]={inPosition:"north",outPosition:"south"};break;case"BT":iat[t]={inPosition:"south",outPosition:"north"};break;case"RL":iat[t]={inPosition:"east",outPosition:"west"};break;case"LR":iat[t]={inPosition:"west",outPosition:"east"}}const r="in"===e?iat[t].inPosition:iat[t].outPosition;return"in"===e?iat[t].inPosition=sat(iat[t].inPosition,e,n):iat[t].outPosition=sat(iat[t].outPosition,e,n),r},lat=function(t,e,n,r){H0.info("abc78 edges = ",t);const i=r.insert("g").attr("class","edgeLabels");let a,o,s={},c=e.db.getDirection();if(void 0!==t.defaultStyle){const e=l4(t.defaultStyle);a=e.style,o=e.labelStyle}return t.forEach((function(e){var r="L-"+e.start+"-"+e.end;void 0===s[r]?(s[r]=0,H0.info("abc78 new entry",r,s[r])):(s[r]++,H0.info("abc78 new entry",r,s[r]));let l=r+"-"+s[r];H0.info("abc78 new link id to be used is",r,l,s[r]);var u="LS-"+e.start,h="LE-"+e.end;const f={style:"",labelStyle:""};switch(f.minlen=e.length||1,"arrow_open"===e.type?f.arrowhead="none":f.arrowhead="normal",f.arrowTypeStart="arrow_open",f.arrowTypeEnd="arrow_open",e.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="",A="";switch(e.stroke){case"normal":d="fill:none;",void 0!==a&&(d=a),void 0!==o&&(A=o),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;"}if(void 0!==e.style){const t=l4(e.style);d=t.style,A=t.labelStyle}f.style=f.style+=d,f.labelStyle=f.labelStyle+=A,void 0!==e.interpolate?f.curve=s4(e.interpolate,yz):void 0!==t.defaultInterpolate?f.curve=s4(t.defaultInterpolate,yz):f.curve=s4(aat.curve,yz),void 0===e.text?void 0!==e.style&&(f.arrowheadStyle="fill: #333"):(f.arrowheadStyle="fill: #333",f.labelpos="c"),f.labelType="text",f.label=e.text.replace(Z0.lineBreakRegex,"\n"),void 0===e.style&&(f.style=f.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),f.labelStyle=f.labelStyle.replace("color:","fill:"),f.id=l,f.classes="flowchart-link "+u+" "+h;const g=m7(i,f),{source:p,target:m}=((t,e)=>{let n=t.start,r=t.end;const i=oat[n],a=oat[r];return i&&a?("diamond"===i.type&&(n=`${n}-${cat(n,"out",e)}`),"diamond"===a.type&&(r=`${r}-${cat(r,"in",e)}`),{source:n,target:r}):{source:n,target:r}})(e,c);H0.debug("abc78 source and target",p,m),n.edges.push({id:"e"+e.start+e.end,sources:[p],targets:[m],labelEl:g,labels:[{width:f.width,height:f.height,orgWidth:f.width,orgHeight:f.height,text:f.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:f})})),n},uat=function(t,e,n){const r=((t,e,n)=>{const{parentById:r}=n,i=new Set;let a=t;for(;a;){if(i.add(a),a===e)return a;a=r[a]}for(a=e;a;){if(i.has(a))return a;a=r[a]}return"root"})(t,e,n);if(void 0===r||"root"===r)return{x:0,y:0};const i=oat[r].offset;return{x:i.posX,y:i.posY}},hat=function(t,e,n,r,i){const a=uat(e.sources[0],e.targets[0],i),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])),l=[[o.x+a.x,o.y+a.y],...c,[s.x+a.x,s.y+a.y]],u=Cz().curve(yz),h=t.insert("path").attr("d",u(l)).attr("class","path").attr("fill","none"),f=t.insert("g").attr("class","edgeLabel"),d=JR(f.node().appendChild(e.labelEl)),A=d.node().firstChild.getBoundingClientRect();d.attr("width",A.width),d.attr("height",A.height),f.attr("transform",`translate(${e.labels[0].x+a.x}, ${e.labels[0].y+a.y})`),function(t,e,n,r){let i="";switch(r&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),e.arrowTypeStart){case"arrow_cross":t.attr("marker-start","url("+i+"#"+n+"-crossStart)");break;case"arrow_point":t.attr("marker-start","url("+i+"#"+n+"-pointStart)");break;case"arrow_barb":t.attr("marker-start","url("+i+"#"+n+"-barbStart)");break;case"arrow_circle":t.attr("marker-start","url("+i+"#"+n+"-circleStart)");break;case"aggregation":t.attr("marker-start","url("+i+"#"+n+"-aggregationStart)");break;case"extension":t.attr("marker-start","url("+i+"#"+n+"-extensionStart)");break;case"composition":t.attr("marker-start","url("+i+"#"+n+"-compositionStart)");break;case"dependency":t.attr("marker-start","url("+i+"#"+n+"-dependencyStart)");break;case"lollipop":t.attr("marker-start","url("+i+"#"+n+"-lollipopStart)")}switch(e.arrowTypeEnd){case"arrow_cross":t.attr("marker-end","url("+i+"#"+n+"-crossEnd)");break;case"arrow_point":t.attr("marker-end","url("+i+"#"+n+"-pointEnd)");break;case"arrow_barb":t.attr("marker-end","url("+i+"#"+n+"-barbEnd)");break;case"arrow_circle":t.attr("marker-end","url("+i+"#"+n+"-circleEnd)");break;case"aggregation":t.attr("marker-end","url("+i+"#"+n+"-aggregationEnd)");break;case"extension":t.attr("marker-end","url("+i+"#"+n+"-extensionEnd)");break;case"composition":t.attr("marker-end","url("+i+"#"+n+"-compositionEnd)");break;case"dependency":t.attr("marker-end","url("+i+"#"+n+"-dependencyEnd)");break;case"lollipop":t.attr("marker-end","url("+i+"#"+n+"-lollipopEnd)")}}(h,n,r.type,r.arrowMarkerAbsolute)},fat=(t,e)=>{t.forEach((t=>{t.children||(t.children=[]);const n=e.childrenById[t.id];n&&n.forEach((e=>{t.children.push(oat[e])})),fat(t.children,e)}))},dat=(t,e,n,r,i,a,o)=>{n.forEach((function(n){if(n)if(oat[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 r=i.insert("g").attr("class","subgraph");r.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=r.insert("g").attr("class","label");a.attr("transform",`translate(${n.labels[0].x+t+n.x}, ${n.labels[0].y+e+n.y})`),a.node().appendChild(n.labelData.labelNode),H0.info("Id (UGH)= ",n.type,n.labels)}else H0.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&&dat(t+n.x,e+n.y,n.children,r,i,a,o+1)}))},Aat={getClasses:function(t,e){H0.info("Extracting classes"),e.db.clear("ver-2");try{return e.parse(t),e.db.getClasses()}catch(t){return{}}},draw:async function(t,e,n,r){var i;r.db.clear(),oat={},r.db.setGen("gen-2"),r.parser.parse(t);const a=JR("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(H0.info("Drawing flowchart using v3 renderer",rat),r.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}=D4();let l;"sandbox"===s&&(l=JR("#i"+e));const u=JR("sandbox"===s?l.nodes()[0].contentDocument.body:"body"),h="sandbox"===s?l.nodes()[0].contentDocument:document,f=u.select(`[id="${e}"]`);Q8(f,["point","circle","cross"],r.type,r.arrowMarkerAbsolute);const d=r.db.getVertices();let A;const g=r.db.getSubGraphs();H0.info("Subgraphs - ",g);for(let t=g.length-1;t>=0;t--)A=g[t],r.db.addVertex(A.id,A.title,"group",void 0,A.classes,A.dir);const p=f.insert("g").attr("class","subgraphs"),m=function(t){const e={parentById:{},childrenById:{}},n=t.getSubGraphs();return H0.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}(r.db);o=function(t,e,n,r,i,a,o){const s=n.select(`[id="${e}"]`),c=s.insert("g").attr("class","nodes");return Object.keys(t).forEach((function(e){const n=t[e];let o="default";n.classes.length>0&&(o=n.classes.join(" "));const l=l4(n.styles);let u,h=void 0!==n.text?n.text:n.id;const f={width:0,height:0};if(Y0(D4().flowchart.htmlLabels)){const t={label:h.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`))};u=P0(s,t).node();const e=u.getBBox();f.width=e.width,f.height=e.height,f.labelNode=u,u.parentNode.removeChild(u)}else{const t=r.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",l.labelStyle.replace("color:","fill:"));const e=h.split(Z0.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;const n=u.getBBox();f.width=n.width,f.height=n.height,f.labelNode=u}const d=[{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 A=0,g="",p={};switch(n.type){case"round":A=5,g="rect";break;case"square":case"group":default:g="rect";break;case"diamond":g="question",p={portConstraints:"FIXED_SIDE"};break;case"hexagon":g="hexagon";break;case"odd":case"odd_right":g="rect_left_inv_arrow";break;case"lean_right":g="lean_right";break;case"lean_left":g="lean_left";break;case"trapezoid":g="trapezoid";break;case"inv_trapezoid":g="inv_trapezoid";break;case"circle":g="circle";break;case"ellipse":g="ellipse";break;case"stadium":g="stadium";break;case"subroutine":g="subroutine";break;case"cylinder":g="cylinder";break;case"doublecircle":g="doublecircle"}const m={labelStyle:l.labelStyle,shape:g,labelText:h,rx:A,ry:A,class:o,style:l.style,id:n.id,link:n.link,linkTarget:n.linkTarget,tooltip:i.db.getTooltip(n.id)||"",domId:i.db.lookUpDomId(n.id),haveCallback:n.haveCallback,width:"group"===n.type?500:void 0,dir:n.dir,type:n.type,props:n.props,padding:D4().flowchart.padding};let b,v;"group"!==m.type&&(v=h7(c,m,n.dir),b=v.node().getBBox());const y={id:n.id,ports:"diamond"===n.type?d:[],layoutOptions:p,labelText:h,labelData:f,domId:i.db.lookUpDomId(n.id),width:null==b?void 0:b.width,height:null==b?void 0:b.height,type:n.type,el:v,parent:a.parentById[n.id]};oat[m.id]=y})),o}(d,e,u,h,r,m,o);const b=f.insert("g").attr("class","edges edgePath"),v=r.db.getEdges();o=lat(v,r,o,f);Object.keys(oat).forEach((t=>{const e=oat[t];e.parent||o.children.push(e),void 0!==m.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)})),fat(o.children,m),H0.info("after layout",JSON.stringify(o,null,2));const y=await rat.layout(o);dat(0,0,y.children,f,p,r,0),H0.info("after layout",y),null==(i=y.edges)||i.map((t=>{hat(b,t,t.edgeData,r,m)})),H4({},f,c.diagramPadding,c.useMaxWidth),a.remove()}},gat=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.5;\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 ${(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`,pat={db:z9,renderer:Aat,parser:G7,styles:gat};var mat=Object.freeze({__proto__:null,diagram:pat}),bat=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,2],r=[1,5],i=[6,9,11,17,18,20,22,23,26,27,28],a=[1,15],o=[1,16],s=[1,17],c=[1,18],l=[1,19],u=[1,23],h=[1,24],f=[1,27],d=[4,6,9,11,17,18,20,22,23,26,27,28],A={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,r,i,a,o){var s=a.length-1;switch(i){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:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 19:r.addTask(a[s],0,""),this.$=a[s];break;case 20:r.addEvent(a[s].substr(2)),this.$=a[s];break;case 21:r.parseDirective("%%{","open_directive");break;case 22:r.parseDirective(a[s],"type_directive");break;case 23:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 24:r.parseDirective("}%%","close_directive","timeline")}},table:[{3:1,4:n,7:3,12:4,28:r},{1:[3]},e(i,[2,3],{5:6}),{3:7,4:n,7:3,12:4,28:r},{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:a,18:o,20:s,22:c,23:l,24:20,25:21,26:u,27:h,28:r},{1:[2,2]},{14:25,15:[1,26],31:f},e([15,31],[2,22]),e(i,[2,8],{1:[2,1]}),e(i,[2,4]),{7:22,10:28,12:4,17:a,18:o,20:s,22:c,23:l,24:20,25:21,26:u,27:h,28:r},e(i,[2,6]),e(i,[2,7]),e(i,[2,11]),{19:[1,29]},{21:[1,30]},e(i,[2,14]),e(i,[2,15]),e(i,[2,16]),e(i,[2,17]),e(i,[2,18]),e(i,[2,19]),e(i,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},e(i,[2,5]),e(i,[2,12]),e(i,[2,13]),e(d,[2,9]),{14:34,31:f},{31:[2,23]},{11:[1,35]},e(d,[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},g=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){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}}},t);function p(){this.yy={}}return A.lexer=g,p.prototype=A,A.Parser=p,new p}();bat.parser=bat;const vat=bat;let yat="",wat=0;const kat=[],Cat=[],xat=[],Eat=()=>g5,Tat=(t,e,n)=>{m5(globalThis,t,e,n)},Bat=function(){kat.length=0,Cat.length=0,yat="",xat.length=0,s5()},_at=function(t){yat=t,kat.push(t)},Sat=function(){return kat},Lat=function(){let t=Dat();let e=0;for(;!t&&e<100;)t=Dat(),e++;return Cat.push(...xat),Cat},Iat=function(t,e,n){const r={id:wat++,section:yat,type:yat,task:t,score:e||0,events:n?[n]:[]};xat.push(r)},Mat=function(t){const e=xat.find((t=>t.id===wat-1));e.events.push(t)},Oat=function(t){const e={section:yat,type:yat,description:t,task:t,classes:[]};Cat.push(e)},Dat=function(){let t=!0;for(const[e,n]of xat.entries())xat[e].processed,t=t&&n.processed;return t},Fat={clear:Bat,getCommonDb:Eat,addSection:_at,getSections:Sat,getTasks:Lat,addTask:Iat,addTaskOrg:Oat,addEvent:Mat,parseDirective:Tat},Nat=Object.freeze(Object.defineProperty({__proto__:null,addEvent:Mat,addSection:_at,addTask:Iat,addTaskOrg:Oat,clear:Bat,default:Fat,getCommonDb:Eat,getSections:Sat,getTasks:Lat,parseDirective:Tat},Symbol.toStringTag,{value:"Module"}));!function(){function t(t,e,n,i,a,o,s,c){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c,l){const{taskFontSize:u,taskFontFamily:h}=c,f=t.split(/<br\s*\/?>/gi);for(let t=0;t<f.length;t++){const c=t*u-u*(f.length-1)/2,d=e.append("text").attr("x",n+a/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",u).style("font-family",h);d.append("tspan").attr("x",n+a/2).attr("dy",c).text(f[t]),d.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(d,s)}}function n(t,n,i,a,o,s,c,l){const u=n.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,a,o,s,c,l),r(h,c)}function r(t,e){for(const n in e)n in e&&t.attr(n,e[n])}}();function Pat(t,e){t.each((function(){var t,n=JR(this),r=n.text().split(/(\s+|<br>)/).reverse(),i=[],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;o<r.length;o++)t=r[r.length-1-o],i.push(t),s.text(i.join(" ").trim()),(s.node().getComputedTextLength()>e||"<br>"===t)&&(i.pop(),s.text(i.join(" ").trim()),i="<br>"===t?[""]:[t],s=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))}))}const Rat=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)},Qat=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")},Uat=function(t,e,n,r){const i=n%12-1,a=t.append("g");e.section=i,a.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+i);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(Pat,e.width).node().getBBox(),l=r.fontSize&&r.fontSize.replace?r.fontSize.replace("px",""):r.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+")"),Rat(o,e,i),e},$at=function(t,e,n){const r=t.append("g"),i=r.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Pat,e.width).node().getBBox(),a=n.fontSize&&n.fontSize.replace?n.fontSize.replace("px",""):n.fontSize;return r.remove(),i.height+1.1*a*.5+e.padding},Hat=function(t,e,n,r,i,a,o,s,c,l,u){for(const s of e){const e={descr:s.task,section:n,number:n,width:150,padding:20,maxHeight:a};H0.debug("taskNode",e);const h=t.append("g").attr("class","taskWrapper"),f=Uat(h,e,n,o).height;if(H0.debug("taskHeight after draw",f),h.attr("transform",`translate(${r}, ${i})`),a=Math.max(a,f),s.events){const e=t.append("g").attr("class","lineWrapper");let h=a;i+=100,h+=jat(t,s.events,n,r,i,o),i-=100,e.append("line").attr("x1",r+95).attr("y1",i+a).attr("x2",r+95).attr("y2",i+a+(u?a:l)+c+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}r+=200,u&&!D4().timeline.disableMulticolor&&n++}i-=10},jat=function(t,e,n,r,i,a){let o=0;const s=i;i+=100;for(const s of e){const e={descr:s,section:n,number:n,width:150,padding:20,maxHeight:50};H0.debug("eventNode",e);const c=t.append("g").attr("class","eventWrapper"),l=Uat(c,e,n,a).height;o+=l,c.attr("transform",`translate(${r}, ${i})`),i=i+10+l}return i=s,o},Kat={setConf:function(t){Object.keys(t).forEach((function(e){conf[e]=t[e]}))},draw:function(t,e,n,r){const i=D4(),a=i.leftMargin?i.leftMargin:50;r.db.clear(),r.parser.parse(t+"\n"),H0.debug("timeline",r.db);const o=i.securityLevel;let s;"sandbox"===o&&(s=JR("#i"+e));const c=JR("sandbox"===o?s.nodes()[0].contentDocument.body:"body").select("#"+e);c.append("g");const l=r.db.getTasks(),u=r.db.getCommonDb().getDiagramTitle();H0.debug("task",l),Qat(c);const h=r.db.getSections();H0.debug("sections",h);let f=0,d=0,A=0,g=0,p=50+a,m=50;g=50;let b=0,v=!0;h.forEach((function(t){const e=$at(c,{number:b,descr:t,section:b,width:150,padding:20,maxHeight:f},i);H0.debug("sectionHeight before draw",e),f=Math.max(f,e+20)}));let y=0,w=0;H0.debug("tasks.length",l.length);for(const[t,e]of l.entries()){const n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:d},r=$at(c,n,i);H0.debug("taskHeight before draw",r),d=Math.max(d,r+20),y=Math.max(y,e.events.length);let a=0;for(let t=0;t<e.events.length;t++){const n={descr:e.events[t],section:e.section,number:e.section,width:150,padding:20,maxHeight:50};a+=$at(c,n,i)}w=Math.max(w,a)}H0.debug("maxSectionHeight before draw",f),H0.debug("maxTaskHeight before draw",d),h&&h.length>0?h.forEach((t=>{const e={number:b,descr:t,section:b,width:150,padding:20,maxHeight:f};H0.debug("sectionNode",e);const n=c.append("g"),r=Uat(n,e,b,i);H0.debug("sectionNode output",r),n.attr("transform",`translate(${p}, 50)`),m+=f+50;const a=l.filter((e=>e.section===t));a.length>0&&Hat(c,a,b,p,m,d,i,y,w,f,!1),p+=200*Math.max(a.length,1),m=50,b++})):(v=!1,Hat(c,l,b,p,m,d,i,y,w,f,!0));const k=c.node().getBBox();H0.debug("bounds",k),u&&c.append("text").text(u).attr("x",k.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),A=v?f+d+150:d+100;c.append("g").attr("class","lineWrapper").append("line").attr("x1",a).attr("y1",A).attr("x2",k.width+3*a).attr("y2",A).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),H4(void 0,c,i.timeline.padding?i.timeline.padding:50,!!i.timeline.useMaxWidth&&i.timeline.useMaxWidth)}},zat=t=>`\n .edge {\n stroke-width: 3;\n }\n ${(t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],OG(t["lineColor"+e])?t["lineColor"+e]=FG(t["lineColor"+e],20):t["lineColor"+e]=NG(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const r=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${r};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return e})(t)}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`,Gat={db:Nat,renderer:Kat,parser:vat,styles:zat};var Xat=Object.freeze({__proto__:null,diagram:Gat}),Vat=r((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},t(e)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){return s(t)||c(t,e)||l(t,e)||h()}function s(t){if(Array.isArray(t))return t}function c(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}var d="undefined"==typeof window?null:window,A=d?d.navigator:null;d&&d.document;var g=t(""),p=t({}),m=t((function(){})),b="undefined"==typeof HTMLElement?"undefined":t(HTMLElement),v=function(t){return t&&t.instanceString&&w(t.instanceString)?t.instanceString():null},y=function(e){return null!=e&&t(e)==g},w=function(e){return null!=e&&t(e)===m},k=function(t){return!_(t)&&(Array.isArray?Array.isArray(t):null!=t&&t instanceof Array)},C=function(e){return null!=e&&t(e)===p&&!k(e)&&e.constructor===Object},x=function(e){return null!=e&&t(e)===p},E=function(e){return null!=e&&t(e)===t(1)&&!isNaN(e)},T=function(t){return E(t)&&Math.floor(t)===t},B=function(t){return"undefined"===b?void 0:null!=t&&t instanceof HTMLElement},_=function(t){return S(t)||L(t)},S=function(t){return"collection"===v(t)&&t._private.single},L=function(t){return"collection"===v(t)&&!t._private.single},I=function(t){return"core"===v(t)},M=function(t){return"stylesheet"===v(t)},O=function(t){return"event"===v(t)},D=function(t){return null==t||!(""!==t&&!t.match(/^\s+$/))},F=function(t){return"undefined"!=typeof HTMLElement&&t instanceof HTMLElement},N=function(t){return C(t)&&E(t.x1)&&E(t.x2)&&E(t.y1)&&E(t.y2)},P=function(t){return x(t)&&w(t.then)},R=function(){return A&&A.userAgent.match(/msie|trident|edge/i)},Q=function(t,e){e||(e=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);return t.join("$")});var n=function n(){var r,i=this,a=arguments,o=e.apply(i,a),s=n.cache;return(r=s[o])||(r=s[o]=t.apply(i,a)),r};return n.cache={},n},U=Q((function(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))})),$=Q((function(t){return t.replace(/(-\w)/g,(function(t){return t[1].toUpperCase()}))})),H=Q((function(t,e){return t+e[0].toUpperCase()+e.substring(1)}),(function(t,e){return t+"$"+e})),j=function(t){return D(t)?t:t.charAt(0).toUpperCase()+t.substring(1)},K="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",z="rgb[a]?\\(("+K+"[%]?)\\s*,\\s*("+K+"[%]?)\\s*,\\s*("+K+"[%]?)(?:\\s*,\\s*("+K+"))?\\)",G="rgb[a]?\\((?:"+K+"[%]?)\\s*,\\s*(?:"+K+"[%]?)\\s*,\\s*(?:"+K+"[%]?)(?:\\s*,\\s*(?:"+K+"))?\\)",X="hsl[a]?\\(("+K+")\\s*,\\s*("+K+"[%])\\s*,\\s*("+K+"[%])(?:\\s*,\\s*("+K+"))?\\)",V="hsl[a]?\\((?:"+K+")\\s*,\\s*(?:"+K+"[%])\\s*,\\s*(?:"+K+"[%])(?:\\s*,\\s*(?:"+K+"))?\\)",W="\\#[0-9a-fA-F]{3}",q="\\#[0-9a-fA-F]{6}",Y=function(t,e){return t<e?-1:t>e?1:0},J=function(t,e){return-1*Y(t,e)},Z=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments,n=1;n<e.length;n++){var r=e[n];if(null!=r)for(var i=Object.keys(r),a=0;a<i.length;a++){var o=i[a];t[o]=r[o]}}return t},tt=function(t){if((4===t.length||7===t.length)&&"#"===t[0]){var e,n,r,i=16;return 4===t.length?(e=parseInt(t[1]+t[1],i),n=parseInt(t[2]+t[2],i),r=parseInt(t[3]+t[3],i)):(e=parseInt(t[1]+t[2],i),n=parseInt(t[3]+t[4],i),r=parseInt(t[5]+t[6],i)),[e,n,r]}},et=function(t){var e,n,r,i,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("^"+X+"$").exec(t);if(u){if((n=parseInt(u[1]))<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,(r=parseFloat(u[2]))<0||r>100)return;if(r/=100,(i=parseFloat(u[3]))<0||i>100)return;if(i/=100,void 0!==(a=u[4])&&((a=parseFloat(a))<0||a>1))return;if(0===r)o=s=c=Math.round(255*i);else{var h=i<.5?i*(1+r):i+r-i*r,f=2*i-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},nt=function(t){var e,n=new RegExp("^"+z+"$").exec(t);if(n){e=[];for(var r=[],i=1;i<=3;i++){var a=n[i];if("%"===a[a.length-1]&&(r[i]=!0),a=parseFloat(a),r[i]&&(a=a/100*255),a<0||a>255)return;e.push(Math.floor(a))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[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},rt=function(t){return at[t.toLowerCase()]},it=function(t){return(k(t)?t:null)||rt(t)||tt(t)||nt(t)||et(t)},at={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]},ot=function(t){for(var e=t.map,n=t.keys,r=n.length,i=0;i<r;i++){var a=n[i];if(C(a))throw Error("Tried to set map with object key");i<n.length-1?(null==e[a]&&(e[a]={}),e=e[a]):e[a]=t.value}},st=function(t){for(var e=t.map,n=t.keys,r=n.length,i=0;i<r;i++){var a=n[i];if(C(a))throw Error("Tried to get map with object key");if(null==(e=e[a]))return e}return e};function ct(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var lt=ct,ut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function ht(t,e){return t(e={exports:{}},e.exports),e.exports}var ft="object"==typeof ut&&ut&&ut.Object===Object&&ut,dt=ft,At="object"==typeof self&&self&&self.Object===Object&&self,gt=dt||At||Function("return this")(),pt=gt,mt=function(){return pt.Date.now()},bt=mt,vt=/\s/;function yt(t){for(var e=t.length;e--&&vt.test(t.charAt(e)););return e}var wt=yt,kt=/^\s+/;function Ct(t){return t?t.slice(0,wt(t)+1).replace(kt,""):t}var xt=Ct,Et=pt.Symbol,Tt=Et,Bt=Object.prototype,_t=Bt.hasOwnProperty,St=Bt.toString,Lt=Tt?Tt.toStringTag:void 0;function It(t){var e=_t.call(t,Lt),n=t[Lt];try{t[Lt]=void 0;var r=!0}catch(t){}var i=St.call(t);return r&&(e?t[Lt]=n:delete t[Lt]),i}var Mt=It,Ot=Object.prototype,Dt=Ot.toString;function Ft(t){return Dt.call(t)}var Nt=Ft,Pt="[object Null]",Rt="[object Undefined]",Qt=Tt?Tt.toStringTag:void 0;function Ut(t){return null==t?void 0===t?Rt:Pt:Qt&&Qt in Object(t)?Mt(t):Nt(t)}var $t=Ut;function Ht(t){return null!=t&&"object"==typeof t}var jt=Ht,Kt="[object Symbol]";function zt(t){return"symbol"==typeof t||jt(t)&&$t(t)==Kt}var Gt=zt,Xt=NaN,Vt=/^[-+]0x[0-9a-f]+$/i,Wt=/^0b[01]+$/i,qt=/^0o[0-7]+$/i,Yt=parseInt;function Jt(t){if("number"==typeof t)return t;if(Gt(t))return Xt;if(lt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=lt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=xt(t);var n=Wt.test(t);return n||qt.test(t)?Yt(t.slice(2),n?2:8):Vt.test(t)?Xt:+t}var Zt=Jt,te="Expected a function",ee=Math.max,ne=Math.min;function re(t,e,n){var r,i,a,o,s,c,l=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(te);function d(e){var n=r,a=i;return r=i=void 0,l=e,o=t.apply(a,n)}function A(t){return l=t,s=setTimeout(m,e),u?d(t):o}function g(t){var n=e-(t-c);return h?ne(n,a-(t-l)):n}function p(t){var n=t-c;return void 0===c||n>=e||n<0||h&&t-l>=a}function m(){var t=bt();if(p(t))return b(t);s=setTimeout(m,g(t))}function b(t){return s=void 0,f&&r?d(t):(r=i=void 0,o)}function v(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0}function y(){return void 0===s?o:b(bt())}function w(){var t=bt(),n=p(t);if(r=arguments,i=this,c=t,n){if(void 0===s)return A(c);if(h)return clearTimeout(s),s=setTimeout(m,e),d(c)}return void 0===s&&(s=setTimeout(m,e)),o}return e=Zt(e)||0,lt(n)&&(u=!!n.leading,a=(h="maxWait"in n)?ee(Zt(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),w.cancel=v,w.flush=y,w}var ie=re,ae=d?d.performance:null,oe=ae&&ae.now?function(){return ae.now()}:function(){return Date.now()},se=function(){if(d){if(d.requestAnimationFrame)return function(t){d.requestAnimationFrame(t)};if(d.mozRequestAnimationFrame)return function(t){d.mozRequestAnimationFrame(t)};if(d.webkitRequestAnimationFrame)return function(t){d.webkitRequestAnimationFrame(t)};if(d.msRequestAnimationFrame)return function(t){d.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout((function(){t(oe())}),1e3/60)}}(),ce=function(t){return se(t)},le=oe,ue=9261,he=65599,fe=5381,de=function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue;!(e=t.next()).done;)n=n*he+e.value|0;return n},Ae=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue)*he+t|0},ge=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe;return(e<<5)+e+t|0},pe=function(t,e){return 2097152*t+e},me=function(t){return 2097152*t[0]+t[1]},be=function(t,e){return[Ae(t[0],e[0]),ge(t[1],e[1])]},ve=function(t,e){var n={value:0,done:!1},r=0,i=t.length;return de({next:function(){return r<i?n.value=t[r++]:n.done=!0,n}},e)},ye=function(t,e){var n={value:0,done:!1},r=0,i=t.length;return de({next:function(){return r<i?n.value=t.charCodeAt(r++):n.done=!0,n}},e)},we=function(){return ke(arguments)},ke=function(t){for(var e,n=0;n<t.length;n++){var r=t[n];e=0===n?ye(r):ye(r,e)}return e},Ce=!0,xe=null!=console.warn,Ee=null!=console.trace,Te=Number.MAX_SAFE_INTEGER||9007199254740991,Be=function(){return!0},_e=function(){return!1},Se=function(){return 0},Le=function(){},Ie=function(t){throw new Error(t)},Me=function(t){if(void 0===t)return Ce;Ce=!!t},Oe=function(t){Me()&&(xe?console.warn(t):Ee&&console.trace())},De=function(t){return Z({},t)},Fe=function(t){return null==t?t:k(t)?t.slice():C(t)?De(t):t},Ne=function(t){return t.slice()},Pe=function(t,e){for(e=t="";t++<36;e+=51*t&52?(15^t?8^Math.random()*(20^t?16:4):4).toString(16):"-");return e},Re={},Qe=function(){return Re},Ue=function(t){var e=Object.keys(t);return function(n){for(var r={},i=0;i<e.length;i++){var a=e[i],o=null==n?void 0:n[a];r[a]=void 0===o?t[a]:o}return r}},$e=function(t,e,n){for(var r=t.length-1;r>=0&&(t[r]!==e||(t.splice(r,1),!n));r--);},He=function(t){t.splice(0,t.length)},je=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];t.push(r)}},Ke=function(t,e,n){return n&&(e=H(n,e)),t[e]},ze=function(t,e,n,r){n&&(e=H(n,e)),t[e]=r},Ge=function(){function t(){n(this,t),this._obj={}}return i(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}(),Xe="undefined"!=typeof Map?Map:Ge,Ve="undefined",We=function(){function t(e){if(n(this,t),this._obj=Object.create(null),this.size=0,null!=e){var r;r=null!=e.instanceString&&e.instanceString()===this.instanceString()?e.toArray():e;for(var i=0;i<r.length;i++)this.add(r[i])}}return i(t,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(t){var e=this._obj;1!==e[t]&&(e[t]=1,this.size++)}},{key:"delete",value:function(t){var e=this._obj;1===e[t]&&(e[t]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(t){return 1===this._obj[t]}},{key:"toArray",value:function(){var t=this;return Object.keys(this._obj).filter((function(e){return t.has(e)}))}},{key:"forEach",value:function(t,e){return this.toArray().forEach(t,e)}}]),t}(),qe=("undefined"==typeof Set?"undefined":t(Set))!==Ve?Set:We,Ye=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0!==t&&void 0!==e&&I(t)){var r=e.group;if(null==r&&(r=e.data&&null!=e.data.source&&null!=e.data.target?"edges":"nodes"),"nodes"===r||"edges"===r){this.length=1,this[0]=this;var i=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:r,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"===r:!!e.pannable,active:!1,classes:new qe,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==i.position.x&&(i.position.x=0),null==i.position.y&&(i.position.y=0),e.renderedPosition){var a=e.renderedPosition,o=t.pan(),s=t.zoom();i.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var c=[];k(e.classes)?c=e.classes:y(e.classes)&&(c=e.classes.split(/\s+/));for(var l=0,u=c.length;l<u;l++){var h=c[l];h&&""!==h&&i.classes.add(h)}this.createEmitter();var f=e.style||e.css;f&&(Oe("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(f)),(void 0===n||n)&&this.restore()}else Ie("An element must be of type `nodes` or `edges`; you specified `"+r+"`")}else Ie("An element must have a core reference and parameters set")},Je=function(t){return t={bfs:t.bfs||!t.dfs,dfs:t.dfs||!t.bfs},function(e,n,r){var i;C(e)&&!_(e)&&(e=(i=e).roots||i.root,n=i.visit,r=i.directed),r=2!==arguments.length||w(n)?r:n,n=w(n)?n:function(){};for(var a,o=this._private.cy,s=e=y(e)?this.filter(e):e,c=[],l=[],u={},h={},f={},d=0,A=this.byGroup(),g=A.nodes,p=A.edges,m=0;m<s.length;m++){var b=s[m],v=b.id();b.isNode()&&(c.unshift(b),t.bfs&&(f[v]=!0,l.push(b)),h[v]=0)}for(var k=function(){var e=t.bfs?c.shift():c.pop(),i=e.id();if(t.dfs){if(f[i])return"continue";f[i]=!0,l.push(e)}var o=h[i],s=u[i],A=null!=s?s.source():null,m=null!=s?s.target():null,b=null==s?void 0:e.same(A)?m[0]:A[0],v=void 0;if(!0===(v=n(e,s,b,d++,o)))return a=e,"break";if(!1===v)return"break";for(var y=e.connectedEdges().filter((function(t){return(!r||t.source().same(e))&&p.has(t)})),w=0;w<y.length;w++){var k=y[w],C=k.connectedNodes().filter((function(t){return!t.same(e)&&g.has(t)})),x=C.id();0===C.length||f[x]||(C=C[0],c.push(C),t.bfs&&(f[x]=!0,l.push(C)),u[x]=k,h[x]=h[i]+1)}};0!==c.length;){var x=k();if("continue"!==x&&"break"===x)break}for(var E=o.collection(),T=0;T<l.length;T++){var B=l[T],S=u[B.id()];null!=S&&E.push(S),E.push(B)}return{path:o.collection(E),found:o.collection(a)}}},Ze={breadthFirstSearch:Je({bfs:!0}),depthFirstSearch:Je({dfs:!0})};Ze.bfs=Ze.breadthFirstSearch,Ze.dfs=Ze.depthFirstSearch;var tn=ht((function(t,e){(function(){var e,n,r,i,a,o,s,c,l,u,h,f,d,A,g;r=Math.floor,u=Math.min,n=function(t,e){return t<e?-1:t>e?1:0},l=function(t,e,i,a,o){var s;if(null==i&&(i=0),null==o&&(o=n),i<0)throw new Error("lo must be non-negative");for(null==a&&(a=t.length);i<a;)o(e,t[s=r((i+a)/2)])<0?a=s:i=s+1;return[].splice.apply(t,[i,i-i].concat(e)),e},o=function(t,e,r){return null==r&&(r=n),t.push(e),A(t,0,t.length-1,r)},a=function(t,e){var r,i;return null==e&&(e=n),r=t.pop(),t.length?(i=t[0],t[0]=r,g(t,0,e)):i=r,i},c=function(t,e,r){var i;return null==r&&(r=n),i=t[0],t[0]=e,g(t,0,r),i},s=function(t,e,r){var i;return null==r&&(r=n),t.length&&r(t[0],e)<0&&(e=(i=[t[0],e])[0],t[0]=i[1],g(t,0,r)),e},i=function(t,e){var i,a,o,s,c,l;for(null==e&&(e=n),c=[],a=0,o=(s=function(){l=[];for(var e=0,n=r(t.length/2);0<=n?e<n:e>n;0<=n?e++:e--)l.push(e);return l}.apply(this).reverse()).length;a<o;a++)i=s[a],c.push(g(t,i,e));return c},d=function(t,e,r){var i;if(null==r&&(r=n),-1!==(i=t.indexOf(e)))return A(t,0,i,r),g(t,i,r)},h=function(t,e,r){var a,o,c,l,u;if(null==r&&(r=n),!(o=t.slice(0,e)).length)return o;for(i(o,r),c=0,l=(u=t.slice(e)).length;c<l;c++)a=u[c],s(o,a,r);return o.sort(r).reverse()},f=function(t,e,r){var o,s,c,h,f,d,A,g,p;if(null==r&&(r=n),10*e<=t.length){if(!(c=t.slice(0,e).sort(r)).length)return c;for(s=c[c.length-1],h=0,d=(A=t.slice(e)).length;h<d;h++)r(o=A[h],s)<0&&(l(c,o,0,null,r),c.pop(),s=c[c.length-1]);return c}for(i(t,r),p=[],f=0,g=u(e,t.length);0<=g?f<g:f>g;0<=g?++f:--f)p.push(a(t,r));return p},A=function(t,e,r,i){var a,o,s;for(null==i&&(i=n),a=t[r];r>e&&i(a,o=t[s=r-1>>1])<0;)t[r]=o,r=s;return t[r]=a},g=function(t,e,r){var i,a,o,s,c;for(null==r&&(r=n),a=t.length,c=e,o=t[e],i=2*e+1;i<a;)(s=i+1)<a&&!(r(t[i],t[s])<0)&&(i=s),t[e]=t[i],i=2*(e=i)+1;return t[e]=o,A(t,c,e,r)},e=function(){function t(t){this.cmp=null!=t?t:n,this.nodes=[]}return t.push=o,t.pop=a,t.replace=c,t.pushpop=s,t.heapify=i,t.updateItem=d,t.nlargest=h,t.nsmallest=f,t.prototype.push=function(t){return o(this.nodes,t,this.cmp)},t.prototype.pop=function(){return a(this.nodes,this.cmp)},t.prototype.peek=function(){return this.nodes[0]},t.prototype.contains=function(t){return-1!==this.nodes.indexOf(t)},t.prototype.replace=function(t){return c(this.nodes,t,this.cmp)},t.prototype.pushpop=function(t){return s(this.nodes,t,this.cmp)},t.prototype.heapify=function(){return i(this.nodes,this.cmp)},t.prototype.updateItem=function(t){return d(this.nodes,t,this.cmp)},t.prototype.clear=function(){return this.nodes=[]},t.prototype.empty=function(){return 0===this.nodes.length},t.prototype.size=function(){return this.nodes.length},t.prototype.clone=function(){var e;return(e=new t).nodes=this.nodes.slice(0),e},t.prototype.toArray=function(){return this.nodes.slice(0)},t.prototype.insert=t.prototype.push,t.prototype.top=t.prototype.peek,t.prototype.front=t.prototype.peek,t.prototype.has=t.prototype.contains,t.prototype.copy=t.prototype.clone,t}(),function(e,n){t.exports=n()}(0,(function(){return e}))}).call(ut)})),en=tn,nn=Ue({root:null,weight:function(t){return 1},directed:!1}),rn={dijkstra:function(t){if(!C(t)){var e=arguments;t={root:e[0],weight:e[1],directed:e[2]}}var n=nn(t),r=n.root,i=n.weight,a=n.directed,o=this,s=i,c=y(r)?this.filter(r)[0]:r[0],l={},u={},h={},f=this.byGroup(),d=f.nodes,A=f.edges;A.unmergeBy((function(t){return t.isLoop()}));for(var g=function(t){return l[t.id()]},p=function(t,e){l[t.id()]=e,m.updateItem(t)},m=new en((function(t,e){return g(t)-g(e)})),b=0;b<d.length;b++){var v=d[b];l[v.id()]=v.same(c)?0:1/0,m.push(v)}for(var w=function(t,e){for(var n,r=(a?t.edgesTo(e):t.edgesWith(e)).intersect(A),i=1/0,o=0;o<r.length;o++){var c=r[o],l=s(c);(l<i||!n)&&(i=l,n=c)}return{edge:n,dist:i}};m.size()>0;){var k=m.pop(),x=g(k),E=k.id();if(h[E]=x,x!==1/0)for(var T=k.neighborhood().intersect(d),B=0;B<T.length;B++){var _=T[B],S=_.id(),L=w(k,_),I=x+L.dist;I<g(_)&&(p(_,I),u[S]={node:k,edge:L.edge})}}return{distanceTo:function(t){var e=y(t)?d.filter(t)[0]:t[0];return h[e.id()]},pathTo:function(t){var e=y(t)?d.filter(t)[0]:t[0],n=[],r=e,i=r.id();if(e.length>0)for(n.unshift(e);u[i];){var a=u[i];n.unshift(a.edge),n.unshift(a.node),i=(r=a.node).id()}return o.spawn(n)}}}},an={kruskal:function(t){t=t||function(t){return 1};for(var e=this.byGroup(),n=e.nodes,r=e.edges,i=n.length,a=new Array(i),o=n,s=function(t){for(var e=0;e<a.length;e++)if(a[e].has(t))return e},c=0;c<i;c++)a[c]=this.spawn(n[c]);for(var l=r.sort((function(e,n){return t(e)-t(n)})),u=0;u<l.length;u++){var h=l[u],f=h.source()[0],d=h.target()[0],A=s(f),g=s(d),p=a[A],m=a[g];A!==g&&(o.merge(h),p.merge(m),a.splice(g,1))}return o}},on=Ue({root:null,goal:null,weight:function(t){return 1},heuristic:function(t){return 0},directed:!1}),sn={aStar:function(t){var e=this.cy(),n=on(t),r=n.root,i=n.goal,a=n.heuristic,o=n.directed,s=n.weight;r=e.collection(r)[0],i=e.collection(i)[0];var c,l,u=r.id(),h=i.id(),f={},d={},A={},g=new en((function(t,e){return d[t.id()]-d[e.id()]})),p=new qe,m={},b={},v=function(t,e){g.push(t),p.add(e)},y=function(){c=g.pop(),l=c.id(),p.delete(l)},w=function(t){return p.has(t)};v(r,u),f[u]=0,d[u]=a(r);for(var k=0;g.size()>0;){if(y(),k++,l===h){for(var C=[],x=i,E=h,T=b[E];C.unshift(x),null!=T&&C.unshift(T),null!=(x=m[E]);)T=b[E=x.id()];return{found:!0,distance:f[l],path:this.spawn(C),steps:k}}A[l]=!0;for(var B=c._private.edges,_=0;_<B.length;_++){var S=B[_];if(this.hasElementWithId(S.id())&&(!o||S.data("source")===l)){var L=S.source(),I=S.target(),M=L.id()!==l?L:I,O=M.id();if(this.hasElementWithId(O)&&!A[O]){var D=f[l]+s(S);w(O)?D<f[O]&&(f[O]=D,d[O]=D+a(M),m[O]=c,b[O]=S):(f[O]=D,d[O]=D+a(M),v(M,O),m[O]=c,b[O]=S)}}}}return{found:!1,distance:void 0,path:void 0,steps:k}}},cn=Ue({weight:function(t){return 1},directed:!1}),ln={floydWarshall:function(t){for(var e=this.cy(),n=cn(t),r=n.weight,i=n.directed,a=r,o=this.byGroup(),s=o.nodes,c=o.edges,l=s.length,u=l*l,h=function(t){return s.indexOf(t)},f=function(t){return s[t]},d=new Array(u),A=0;A<u;A++){var g=A%l,p=(A-g)/l;d[A]=p===g?0:1/0}for(var m=new Array(u),b=new Array(u),v=0;v<c.length;v++){var w=c[v],k=w.source()[0],C=w.target()[0];if(k!==C){var x=h(k),E=h(C),T=x*l+E,B=a(w);if(d[T]>B&&(d[T]=B,m[T]=E,b[T]=w),!i){var _=E*l+x;!i&&d[_]>B&&(d[_]=B,m[_]=x,b[_]=w)}}}for(var S=0;S<l;S++)for(var L=0;L<l;L++)for(var I=L*l+S,M=0;M<l;M++){var O=L*l+M,D=S*l+M;d[I]+d[D]<d[O]&&(d[O]=d[I]+d[D],m[O]=m[I])}var F=function(t){return(y(t)?e.filter(t):t)[0]},N=function(t){return h(F(t))},P={distance:function(t,e){var n=N(t),r=N(e);return d[n*l+r]},path:function(t,n){var r=N(t),i=N(n),a=f(r);if(r===i)return a.collection();if(null==m[r*l+i])return e.collection();var o,s=e.collection(),c=r;for(s.merge(a);r!==i;)c=r,r=m[r*l+i],o=b[c*l+r],s.merge(o),s.merge(f(r));return s}};return P}},un=Ue({weight:function(t){return 1},directed:!1,root:null}),hn={bellmanFord:function(t){var e=this,n=un(t),r=n.weight,i=n.directed,a=n.root,o=r,s=this,c=this.cy(),l=this.byGroup(),u=l.edges,h=l.nodes,f=h.length,d=new Xe,A=!1,g=[];a=c.collection(a)[0],u.unmergeBy((function(t){return t.isLoop()}));for(var p=u.length,m=function(t){var e=d.get(t.id());return e||(e={},d.set(t.id(),e)),e},b=function(t){return(y(t)?c.$(t):t)[0]},v=function(t){return m(b(t)).dist},w=function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,r=[],i=b(t);;){if(null==i)return e.spawn();var o=m(i),c=o.edge,l=o.pred;if(r.unshift(i[0]),i.same(n)&&r.length>0)break;null!=c&&r.unshift(c),i=l}return s.spawn(r)},k=0;k<f;k++){var C=h[k],x=m(C);C.same(a)?x.dist=0:x.dist=1/0,x.pred=null,x.edge=null}for(var E=!1,T=function(t,e,n,r,i,a){var o=r.dist+a;o<i.dist&&!n.same(r.edge)&&(i.dist=o,i.pred=t,i.edge=n,E=!0)},B=1;B<f;B++){E=!1;for(var _=0;_<p;_++){var S=u[_],L=S.source(),I=S.target(),M=o(S),O=m(L),D=m(I);T(L,I,S,O,D,M),i||T(I,L,S,D,O,M)}if(!E)break}if(E)for(var F=[],N=0;N<p;N++){var P=u[N],R=P.source(),Q=P.target(),U=o(P),$=m(R).dist,H=m(Q).dist;if($+U<H||!i&&H+U<$){if(A||(Oe("Graph contains a negative weight cycle for Bellman-Ford"),A=!0),!1===t.findNegativeWeightCycles)break;var j=[];$+U<H&&j.push(R),!i&&H+U<$&&j.push(Q);for(var K=j.length,z=0;z<K;z++){var G=j[z],X=[G];X.push(m(G).edge);for(var V=m(G).pred;-1===X.indexOf(V);)X.push(V),X.push(m(V).edge),V=m(V).pred;for(var W=(X=X.slice(X.indexOf(V)))[0].id(),q=0,Y=2;Y<X.length;Y+=2)X[Y].id()<W&&(W=X[Y].id(),q=Y);(X=X.slice(q).concat(X.slice(0,q))).push(X[0]);var J=X.map((function(t){return t.id()})).join(",");-1===F.indexOf(J)&&(g.push(s.spawn(X)),F.push(J))}}}return{distanceTo:v,pathTo:w,hasNegativeWeightCycle:A,negativeWeightCycles:g}}},fn=Math.sqrt(2),dn=function(t,e,n){0===n.length&&Ie("Karger-Stein must be run on a connected (sub)graph");for(var r=n[t],i=r[1],a=r[2],o=e[i],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;d<c.length;d++){var A=c[d];A[1]===s?(c[d]=A.slice(),c[d][1]=o):A[2]===s&&(c[d]=A.slice(),c[d][2]=o)}for(var g=0;g<e.length;g++)e[g]===s&&(e[g]=o);return c},An=function(t,e,n,r){for(;n>r;){var i=Math.floor(Math.random()*e.length);e=dn(i,t,e),n--}return e},gn={kargerStein:function(){var t=this,e=this.byGroup(),n=e.nodes,r=e.edges;r.unmergeBy((function(t){return t.isLoop()}));var i=n.length,a=r.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),s=Math.floor(i/fn);if(!(i<2)){for(var c=[],l=0;l<a;l++){var u=r[l];c.push([l,n.indexOf(u.source()),n.indexOf(u.target())])}for(var h=1/0,f=[],d=new Array(i),A=new Array(i),g=new Array(i),p=function(t,e){for(var n=0;n<i;n++)e[n]=t[n]},m=0;m<=o;m++){for(var b=0;b<i;b++)A[b]=b;var v=An(A,c.slice(),i,s),y=v.slice();p(A,g);var w=An(A,v,s,2),k=An(g,y,s,2);w.length<=k.length&&w.length<h?(h=w.length,f=w,p(A,d)):k.length<=w.length&&k.length<h&&(h=k.length,f=k,p(g,d))}for(var C=this.spawn(f.map((function(t){return r[t[0]]}))),x=this.spawn(),E=this.spawn(),T=d[0],B=0;B<d.length;B++){var _=d[B],S=n[B];_===T?x.merge(S):E.merge(S)}var L=function(e){var n=t.spawn();return e.forEach((function(e){n.merge(e),e.connectedEdges().forEach((function(e){t.contains(e)&&!C.contains(e)&&n.merge(e)}))})),n},I=[L(x),L(E)];return{cut:C,components:I,partition1:x,partition2:E}}Ie("At least 2 nodes are required for Karger-Stein algorithm")}},pn=function(t){return{x:t.x,y:t.y}},mn=function(t,e,n){return{x:t.x*e+n.x,y:t.y*e+n.y}},bn=function(t,e,n){return{x:(t.x-n.x)/e,y:(t.y-n.y)/e}},vn=function(t){return{x:t[0],y:t[1]}},yn=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,r=1/0,i=e;i<n;i++){var a=t[i];isFinite(a)&&(r=Math.min(a,r))}return r},wn=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,r=-1/0,i=e;i<n;i++){var a=t[i];isFinite(a)&&(r=Math.max(a,r))}return r},kn=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,r=0,i=0,a=e;a<n;a++){var o=t[a];isFinite(o)&&(r+=o,i++)}return r/i},Cn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(n<t.length&&t.splice(n,t.length-n),e>0&&t.splice(0,e)):t=t.slice(e,n);for(var a=0,o=t.length-1;o>=0;o--){var s=t[o];i?isFinite(s)||(t[o]=-1/0,a++):t.splice(o,1)}r&&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},xn=function(t){return Math.PI*t/180},En=function(t,e){return Math.atan2(e,t)-Math.PI/2},Tn=Math.log2||function(t){return Math.log(t)/Math.log(2)},Bn=function(t){return t>0?1:t<0?-1:0},_n=function(t,e){return Math.sqrt(Sn(t,e))},Sn=function(t,e){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r},Ln=function(t){for(var e=t.length,n=0,r=0;r<e;r++)n+=t[r];for(var i=0;i<e;i++)t[i]=t[i]/n;return t},In=function(t,e,n,r){return(1-r)*(1-r)*t+2*(1-r)*r*e+r*r*n},Mn=function(t,e,n,r){return{x:In(t.x,e.x,n.x,r),y:In(t.y,e.y,n.y,r)}},On=function(t,e,n,r){var i={x:e.x-t.x,y:e.y-t.y},a=_n(t,e),o={x:i.x/a,y:i.y/a};return n=null==n?0:n,r=null!=r?r:n*a,{x:t.x+o.x*r,y:t.y+o.y*r}},Dn=function(t,e,n){return Math.max(t,Math.min(n,e))},Fn=function(t){if(null==t)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(null!=t.x1&&null!=t.y1){if(null!=t.x2&&null!=t.y2&&t.x2>=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}}},Nn=function(t){return{x1:t.x1,x2:t.x2,w:t.w,y1:t.y1,y2:t.y2,h:t.h}},Pn=function(t){t.x1=1/0,t.y1=1/0,t.x2=-1/0,t.y2=-1/0,t.w=0,t.h=0},Rn=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}},Qn=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},Un=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},$n=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},Hn=function(t){var e,n,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===a.length)e=n=r=i=a[0];else if(2===a.length)e=r=a[0],i=n=a[1];else if(4===a.length){var s=o(a,4);e=s[0],n=s[1],r=s[2],i=s[3]}return t.x1-=i,t.x2+=n,t.y1-=e,t.y2+=r,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},jn=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},Kn=function(t,e){return!(t.x1>e.x2||e.x1>t.x2||t.x2<e.x1||e.x2<t.x1||t.y2<e.y1||e.y2<t.y1||t.y1>e.y2||e.y1>t.y2)},zn=function(t,e,n){return t.x1<=e&&e<=t.x2&&t.y1<=n&&n<=t.y2},Gn=function(t,e){return zn(t,e.x,e.y)},Xn=function(t,e){return zn(t,e.x1,e.y1)&&zn(t,e.x2,e.y2)},Vn=function(t,e,n,r,i,a,o){var s,c,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"auto",u="auto"===l?mr(i,a):l,h=i/2,f=a/2,d=(u=Math.min(u,h,f))!==h,A=u!==f;if(d){var g=r-f-o;if((s=ur(t,e,n,r,n-h+u-o,g,n+h-u+o,g,!1)).length>0)return s}if(A){var p=n+h+o;if((s=ur(t,e,n,r,p,r-f+u-o,p,r+f-u+o,!1)).length>0)return s}if(d){var m=r+f+o;if((s=ur(t,e,n,r,n-h+u-o,m,n+h-u+o,m,!1)).length>0)return s}if(A){var b=n-h-o;if((s=ur(t,e,n,r,b,r-f+u-o,b,r+f-u+o,!1)).length>0)return s}var v=n-h+u,y=r-f+u;if((c=cr(t,e,n,r,v,y,u+o)).length>0&&c[0]<=v&&c[1]<=y)return[c[0],c[1]];var w=n+h-u,k=r-f+u;if((c=cr(t,e,n,r,w,k,u+o)).length>0&&c[0]>=w&&c[1]<=k)return[c[0],c[1]];var C=n+h-u,x=r+f-u;if((c=cr(t,e,n,r,C,x,u+o)).length>0&&c[0]>=C&&c[1]>=x)return[c[0],c[1]];var E=n-h+u,T=r+f-u;return(c=cr(t,e,n,r,E,T,u+o)).length>0&&c[0]<=E&&c[1]>=T?[c[0],c[1]]:[]},Wn=function(t,e,n,r,i,a,o){var s=o,c=Math.min(n,i),l=Math.max(n,i),u=Math.min(r,a),h=Math.max(r,a);return c-s<=t&&t<=l+s&&u-s<=e&&e<=h+s},qn=function(t,e,n,r,i,a,o,s,c){var l={x1:Math.min(n,o,i)-c,x2:Math.max(n,o,i)+c,y1:Math.min(r,s,a)-c,y2:Math.max(r,s,a)+c};return!(t<l.x1||t>l.x2||e<l.y1||e>l.y2)},Yn=function(t,e,n,r){var i=e*e-4*t*(n-=r);if(i<0)return[];var a=Math.sqrt(i),o=2*t;return[(-e+a)/o,(-e-a)/o]},Jn=function(t,e,n,r,i){var a,o,s,c,l,u,h,f;return 0===t&&(t=1e-5),s=-27*(r/=t)+(e/=t)*(9*(n/=t)-e*e*2),a=(o=(3*n-e*e)/9)*o*o+(s/=54)*s,i[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),i[0]=-h+l+u,h+=(l+u)/2,i[4]=i[2]=-h,h=Math.sqrt(3)*(-u+l)/2,i[3]=h,void(i[5]=-h)):(i[5]=i[3]=0,0===a?(f=s<0?-Math.pow(-s,1/3):Math.pow(s,1/3),i[0]=2*f-h,void(i[4]=i[2]=-(f+h))):(c=(o=-o)*o*o,c=Math.acos(s/Math.sqrt(c)),f=2*Math.sqrt(o),i[0]=-h+f*Math.cos(c/3),i[2]=-h+f*Math.cos((c+2*Math.PI)/3),void(i[4]=-h+f*Math.cos((c+4*Math.PI)/3))))},Zn=function(t,e,n,r,i,a,o,s){var c=[];Jn(1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+r*r-4*r*a+2*r*s+4*a*a-4*a*s+s*s,9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*r*a-3*r*r-3*r*s-6*a*a+3*a*s,3*n*n-6*n*i+n*o-n*t+2*i*i+2*i*t-o*t+3*r*r-6*r*a+r*s-r*e+2*a*a+2*a*e-s*e,1*n*i-n*n+n*t-i*t+r*a-r*r+r*e-a*e,c);for(var l=1e-7,u=[],h=0;h<6;h+=2)Math.abs(c[h+1])<l&&c[h]>=0&&c[h]<=1&&u.push(c[h]);u.push(1),u.push(0);for(var f,d,A,g=-1,p=0;p<u.length;p++)f=Math.pow(1-u[p],2)*n+2*(1-u[p])*u[p]*i+u[p]*u[p]*o,d=Math.pow(1-u[p],2)*r+2*(1-u[p])*u[p]*a+u[p]*u[p]*s,A=Math.pow(f-t,2)+Math.pow(d-e,2),g>=0?A<g&&(g=A):g=A;return g},tr=function(t,e,n,r,i,a){var o=[t-n,e-r],s=[i-n,a-r],c=s[0]*s[0]+s[1]*s[1],l=o[0]*o[0]+o[1]*o[1],u=o[0]*s[0]+o[1]*s[1],h=u*u/c;return u<0?l:h>c?(t-i)*(t-i)+(e-a)*(e-a):l-h},er=function(t,e,n){for(var r,i,a,o,s=0,c=0;c<n.length/2;c++)if(r=n[2*c],i=n[2*c+1],c+1<n.length/2?(a=n[2*(c+1)],o=n[2*(c+1)+1]):(a=n[2*(c+1-n.length/2)],o=n[2*(c+1-n.length/2)+1]),r==t&&a==t);else{if(!(r>=t&&t>=a||r<=t&&t<=a))continue;(t-r)/(a-r)*(o-i)+i>e&&s++}return s%2!=0},nr=function(t,e,n,r,i,a,o,s,c){var l,u=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 h,f=Math.cos(-l),d=Math.sin(-l),A=0;A<u.length/2;A++)u[2*A]=a/2*(n[2*A]*f-n[2*A+1]*d),u[2*A+1]=o/2*(n[2*A+1]*f+n[2*A]*d),u[2*A]+=r,u[2*A+1]+=i;if(c>0){var g=ar(u,-c);h=ir(g)}else h=u;return er(t,e,h)},rr=function(t,e,n,r,i,a,o,s){for(var c=new Array(2*n.length),l=0;l<s.length;l++){var u=s[l];if(c[4*l+0]=u.startX,c[4*l+1]=u.startY,c[4*l+2]=u.stopX,c[4*l+3]=u.stopY,Math.pow(u.cx-t,2)+Math.pow(u.cy-e,2)<=Math.pow(u.radius,2))return!0}return er(t,e,c)},ir=function(t){for(var e,n,r,i,a,o,s,c,l=new Array(t.length/2),u=0;u<t.length/4;u++){e=t[4*u],n=t[4*u+1],r=t[4*u+2],i=t[4*u+3],u<t.length/4-1?(a=t[4*(u+1)],o=t[4*(u+1)+1],s=t[4*(u+1)+2],c=t[4*(u+1)+3]):(a=t[0],o=t[1],s=t[2],c=t[3]);var h=ur(e,n,r,i,a,o,s,c,!0);l[2*u]=h[0],l[2*u+1]=h[1]}return l},ar=function(t,e){for(var n,r,i,a,o=new Array(2*t.length),s=0;s<t.length/2;s++){n=t[2*s],r=t[2*s+1],s<t.length/2-1?(i=t[2*(s+1)],a=t[2*(s+1)+1]):(i=t[0],a=t[1]);var c=a-r,l=-(i-n),u=Math.sqrt(c*c+l*l),h=c/u,f=l/u;o[4*s]=n+h*e,o[4*s+1]=r+f*e,o[4*s+2]=i+h*e,o[4*s+3]=a+f*e}return o},or=function(t,e,n,r,i,a){var o=n-t,s=r-e;o/=i,s/=a;var c=Math.sqrt(o*o+s*s),l=c-1;if(l<0)return[];var u=l/c;return[(n-t)*u+t,(r-e)*u+e]},sr=function(t,e,n,r,i,a,o){return t-=i,e-=a,(t/=n/2+o)*t+(e/=r/2+o)*e<=1},cr=function(t,e,n,r,i,a,o){var s=[n-t,r-e],c=[t-i,e-a],l=s[0]*s[0]+s[1]*s[1],u=2*(c[0]*s[0]+c[1]*s[1]),h=u*u-4*l*(c[0]*c[0]+c[1]*c[1]-o*o);if(h<0)return[];var f=(-u+Math.sqrt(h))/(2*l),d=(-u-Math.sqrt(h))/(2*l),A=Math.min(f,d),g=Math.max(f,d),p=[];if(A>=0&&A<=1&&p.push(A),g>=0&&g<=1&&p.push(g),0===p.length)return[];var m=p[0]*s[0]+t,b=p[0]*s[1]+e;return p.length>1?p[0]==p[1]?[m,b]:[m,b,p[1]*s[0]+t,p[1]*s[1]+e]:[m,b]},lr=function(t,e,n){return e<=t&&t<=n||n<=t&&t<=e?t:t<=e&&e<=n||n<=e&&e<=t?e:n},ur=function(t,e,n,r,i,a,o,s,c){var l=t-i,u=n-t,h=o-i,f=e-a,d=r-e,A=s-a,g=h*f-A*l,p=u*f-d*l,m=A*u-h*d;if(0!==m){var b=g/m,v=p/m,y=.001,w=0-y,k=1+y;return w<=b&&b<=k&&w<=v&&v<=k||c?[t+b*u,e+b*d]:[]}return 0===g||0===p?lr(t,n,o)===o?[o,s]:lr(t,n,i)===i?[i,a]:lr(i,o,n)===n?[n,r]:[]:[]},hr=function(t,e,n,r,i,a,o,s){var c,l,u,h,f,d,A=[],g=new Array(n.length),p=!0;if(null==a&&(p=!1),p){for(var m=0;m<g.length/2;m++)g[2*m]=n[2*m]*a+r,g[2*m+1]=n[2*m+1]*o+i;if(s>0){var b=ar(g,-s);l=ir(b)}else l=g}else l=n;for(var v=0;v<l.length/2;v++)u=l[2*v],h=l[2*v+1],v<l.length/2-1?(f=l[2*(v+1)],d=l[2*(v+1)+1]):(f=l[0],d=l[1]),0!==(c=ur(t,e,r,i,u,h,f,d)).length&&A.push(c[0],c[1]);return A},fr=function(t,e,n,r,i,a,o,s,c){var l,u=[],h=new Array(2*n.length);c.forEach((function(n,a){0===a?(h[h.length-2]=n.startX,h[h.length-1]=n.startY):(h[4*a-2]=n.startX,h[4*a-1]=n.startY),h[4*a]=n.stopX,h[4*a+1]=n.stopY,0!==(l=cr(t,e,r,i,n.cx,n.cy,n.radius)).length&&u.push(l[0],l[1])}));for(var f=0;f<h.length/4;f++)0!==(l=ur(t,e,r,i,h[4*f],h[4*f+1],h[4*f+2],h[4*f+3],!1)).length&&u.push(l[0],l[1]);if(u.length>2){for(var d=[u[0],u[1]],A=Math.pow(d[0]-t,2)+Math.pow(d[1]-e,2),g=1;g<u.length/2;g++){var p=Math.pow(u[2*g]-t,2)+Math.pow(u[2*g+1]-e,2);p<=A&&(d[0]=u[2*g],d[1]=u[2*g+1],A=p)}return d}return u},dr=function(t,e,n){var r=[t[0]-e[0],t[1]-e[1]],i=Math.sqrt(r[0]*r[0]+r[1]*r[1]),a=(i-n)/i;return a<0&&(a=1e-5),[e[0]+a*r[0],e[1]+a*r[1]]},Ar=function(t,e){var n=pr(t,e);return n=gr(n)},gr=function(t){for(var e,n,r=t.length/2,i=1/0,a=1/0,o=-1/0,s=-1/0,c=0;c<r;c++)e=t[2*c],n=t[2*c+1],i=Math.min(i,e),o=Math.max(o,e),a=Math.min(a,n),s=Math.max(s,n);for(var l=2/(o-i),u=2/(s-a),h=0;h<r;h++)e=t[2*h]=t[2*h]*l,n=t[2*h+1]=t[2*h+1]*u,i=Math.min(i,e),o=Math.max(o,e),a=Math.min(a,n),s=Math.max(s,n);if(a<-1)for(var f=0;f<r;f++)n=t[2*f+1]=t[2*f+1]+(-1-a);return t},pr=function(t,e){var n=1/t*2*Math.PI,r=t%2==0?Math.PI/2+n/2:Math.PI/2;r+=e;for(var i,a=new Array(2*t),o=0;o<t;o++)i=o*n+r,a[2*o]=Math.cos(i),a[2*o+1]=Math.sin(-i);return a},mr=function(t,e){return Math.min(t/4,e/4,8)},br=function(t,e){return Math.min(t/10,e/10,8)},vr=function(){return 8},yr=function(t,e,n){return[t-2*e+n,2*(e-t),t]},wr=function(t,e){return{heightOffset:Math.min(15,.05*e),widthOffset:Math.min(100,.25*t),ctrlPtOffsetPct:.05}},kr=Ue({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(t){return 1}}),Cr={pageRank:function(t){for(var e=kr(t),n=e.dampingFactor,r=e.precision,i=e.iterations,a=e.weight,o=this._private.cy,s=this.byGroup(),c=s.nodes,l=s.edges,u=c.length,h=u*u,f=l.length,d=new Array(h),A=new Array(u),g=(1-n)/u,p=0;p<u;p++){for(var m=0;m<u;m++)d[p*u+m]=0;A[p]=0}for(var b=0;b<f;b++){var v=l[b],y=v.data("source"),w=v.data("target");if(y!==w){var k=c.indexOfId(y),C=c.indexOfId(w),x=a(v);d[C*u+k]+=x,A[k]+=x}}for(var E=1/u+g,T=0;T<u;T++)if(0===A[T])for(var B=0;B<u;B++)d[B*u+T]=E;else for(var _=0;_<u;_++){var S=_*u+T;d[S]=d[S]/A[T]+g}for(var L,I=new Array(u),M=new Array(u),O=0;O<u;O++)I[O]=1;for(var D=0;D<i;D++){for(var F=0;F<u;F++)M[F]=0;for(var N=0;N<u;N++)for(var P=0;P<u;P++){var R=N*u+P;M[N]+=d[R]*I[P]}Ln(M),L=I,I=M,M=L;for(var Q=0,U=0;U<u;U++){var $=L[U]-I[U];Q+=$*$}if(Q<r)break}var H={rank:function(t){return t=o.collection(t)[0],I[c.indexOf(t)]}};return H}},xr=Ue({root:null,weight:function(t){return 1},directed:!1,alpha:0}),Er={degreeCentralityNormalized:function(t){t=xr(t);var e=this.cy(),n=this.nodes(),r=n.length;if(t.directed){for(var i={},a={},o=0,s=0,c=0;c<r;c++){var l=n[c],u=l.id();t.root=l;var h=this.degreeCentrality(t);o<h.indegree&&(o=h.indegree),s<h.outdegree&&(s=h.outdegree),i[u]=h.indegree,a[u]=h.outdegree}return{indegree:function(t){return 0==o?0:(y(t)&&(t=e.filter(t)),i[t.id()]/o)},outdegree:function(t){return 0===s?0:(y(t)&&(t=e.filter(t)),a[t.id()]/s)}}}for(var f={},d=0,A=0;A<r;A++){var g=n[A];t.root=g;var p=this.degreeCentrality(t);d<p.degree&&(d=p.degree),f[g.id()]=p.degree}return{degree:function(t){return 0===d?0:(y(t)&&(t=e.filter(t)),f[t.id()]/d)}}},degreeCentrality:function(t){t=xr(t);var e=this.cy(),n=this,r=t,i=r.root,a=r.weight,o=r.directed,s=r.alpha;if(i=e.collection(i)[0],o){for(var c=i.connectedEdges(),l=c.filter((function(t){return t.target().same(i)&&n.has(t)})),u=c.filter((function(t){return t.source().same(i)&&n.has(t)})),h=l.length,f=u.length,d=0,A=0,g=0;g<l.length;g++)d+=a(l[g]);for(var p=0;p<u.length;p++)A+=a(u[p]);return{indegree:Math.pow(h,1-s)*Math.pow(d,s),outdegree:Math.pow(f,1-s)*Math.pow(A,s)}}for(var m=i.connectedEdges().intersection(n),b=m.length,v=0,y=0;y<m.length;y++)v+=a(m[y]);return{degree:Math.pow(b,1-s)*Math.pow(v,s)}}};Er.dc=Er.degreeCentrality,Er.dcn=Er.degreeCentralityNormalised=Er.degreeCentralityNormalized;var Tr=Ue({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),Br={closenessCentralityNormalized:function(t){for(var e=Tr(t),n=e.harmonic,r=e.weight,i=e.directed,a=this.cy(),o={},s=0,c=this.nodes(),l=this.floydWarshall({weight:r,directed:i}),u=0;u<c.length;u++){for(var h=0,f=c[u],d=0;d<c.length;d++)if(u!==d){var A=l.distance(f,c[d]);h+=n?1/A:A}n||(h=1/h),s<h&&(s=h),o[f.id()]=h}return{closeness:function(t){return 0==s?0:(t=y(t)?a.filter(t)[0].id():t.id(),o[t]/s)}}},closenessCentrality:function(t){var e=Tr(t),n=e.root,r=e.weight,i=e.directed,a=e.harmonic;n=this.filter(n)[0];for(var o=this.dijkstra({root:n,weight:r,directed:i}),s=0,c=this.nodes(),l=0;l<c.length;l++){var u=c[l];if(!u.same(n)){var h=o.distanceTo(u);s+=a?1/h:h}}return a?s:1/s}};Br.cc=Br.closenessCentrality,Br.ccn=Br.closenessCentralityNormalised=Br.closenessCentralityNormalized;var _r=Ue({weight:null,directed:!1}),Sr={betweennessCentrality:function(t){for(var e=_r(t),n=e.directed,r=e.weight,i=null!=r,a=this.cy(),o=this.nodes(),s={},c={},l=0,u={set:function(t,e){c[t]=e,e>l&&(l=e)},get:function(t){return c[t]}},h=0;h<o.length;h++){var f=o[h],d=f.id();s[d]=n?f.outgoers().nodes():f.openNeighborhood().nodes(),u.set(d,0)}for(var A=function(t){for(var e=o[t].id(),n=[],c={},l={},h={},f=new en((function(t,e){return h[t]-h[e]})),d=0;d<o.length;d++){var A=o[d].id();c[A]=[],l[A]=0,h[A]=1/0}for(l[e]=1,h[e]=0,f.push(e);!f.empty();){var g=f.pop();if(n.push(g),i)for(var p=0;p<s[g].length;p++){var m=s[g][p],b=a.getElementById(g),v=void 0;v=b.edgesTo(m).length>0?b.edgesTo(m)[0]:m.edgesTo(b)[0];var y=r(v);m=m.id(),h[m]>h[g]+y&&(h[m]=h[g]+y,f.nodes.indexOf(m)<0?f.push(m):f.updateItem(m),l[m]=0,c[m]=[]),h[m]==h[g]+y&&(l[m]=l[m]+l[g],c[m].push(g))}else for(var w=0;w<s[g].length;w++){var k=s[g][w].id();h[k]==1/0&&(f.push(k),h[k]=h[g]+1),h[k]==h[g]+1&&(l[k]=l[k]+l[g],c[k].push(g))}}for(var C={},x=0;x<o.length;x++)C[o[x].id()]=0;for(;n.length>0;){for(var E=n.pop(),T=0;T<c[E].length;T++){var B=c[E][T];C[B]=C[B]+l[B]/l[E]*(1+C[E])}E!=o[t].id()&&u.set(E,u.get(E)+C[E])}},g=0;g<o.length;g++)A(g);var p={betweenness:function(t){var e=a.collection(t).id();return u.get(e)},betweennessNormalized:function(t){if(0==l)return 0;var e=a.collection(t).id();return u.get(e)/l}};return p.betweennessNormalised=p.betweennessNormalized,p}};Sr.bc=Sr.betweennessCentrality;var Lr=Ue({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(t){return 1}]}),Ir=function(t){return Lr(t)},Mr=function(t,e){for(var n=0,r=0;r<e.length;r++)n+=e[r](t);return n},Or=function(t,e,n){for(var r=0;r<e;r++)t[r*e+r]=n},Dr=function(t,e){for(var n,r=0;r<e;r++){n=0;for(var i=0;i<e;i++)n+=t[i*e+r];for(var a=0;a<e;a++)t[a*e+r]=t[a*e+r]/n}},Fr=function(t,e,n){for(var r=new Array(n*n),i=0;i<n;i++){for(var a=0;a<n;a++)r[i*n+a]=0;for(var o=0;o<n;o++)for(var s=0;s<n;s++)r[i*n+s]+=t[i*n+o]*e[o*n+s]}return r},Nr=function(t,e,n){for(var r=t.slice(0),i=1;i<n;i++)t=Fr(t,r,e);return t},Pr=function(t,e,n){for(var r=new Array(e*e),i=0;i<e*e;i++)r[i]=Math.pow(t[i],n);return Dr(r,e),r},Rr=function(t,e,n,r){for(var i=0;i<n;i++)if(Math.round(t[i]*Math.pow(10,r))/Math.pow(10,r)!=Math.round(e[i]*Math.pow(10,r))/Math.pow(10,r))return!1;return!0},Qr=function(t,e,n,r){for(var i=[],a=0;a<e;a++){for(var o=[],s=0;s<e;s++)Math.round(1e3*t[a*e+s])/1e3>0&&o.push(n[s]);0!==o.length&&i.push(r.collection(o))}return i},Ur=function(t,e){for(var n=0;n<t.length;n++)if(!e[n]||t[n].id()!==e[n].id())return!1;return!0},$r=function(t){for(var e=0;e<t.length;e++)for(var n=0;n<t.length;n++)e!=n&&Ur(t[e],t[n])&&t.splice(n,1);return t},Hr=function(t){for(var e=this.nodes(),n=this.edges(),r=this.cy(),i=Ir(t),a={},o=0;o<e.length;o++)a[e[o].id()]=o;for(var s,c=e.length,l=c*c,u=new Array(l),h=0;h<l;h++)u[h]=0;for(var f=0;f<n.length;f++){var d=n[f],A=a[d.source().id()],g=a[d.target().id()],p=Mr(d,i.attributes);u[A*c+g]+=p,u[g*c+A]+=p}Or(u,c,i.multFactor),Dr(u,c);for(var m=!0,b=0;m&&b<i.maxIterations;)m=!1,s=Nr(u,c,i.expandFactor),u=Pr(s,c,i.inflateFactor),Rr(u,s,l,4)||(m=!0),b++;var v=Qr(u,c,e,r);return v=$r(v)},jr={markovClustering:Hr,mcl:Hr},Kr=function(t){return t},zr=function(t,e){return Math.abs(e-t)},Gr=function(t,e,n){return t+zr(e,n)},Xr=function(t,e,n){return t+Math.pow(n-e,2)},Vr=function(t){return Math.sqrt(t)},Wr=function(t,e,n){return Math.max(t,zr(e,n))},qr=function(t,e,n,r,i){for(var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Kr,o=r,s=0;s<t;s++)o=i(o,e(s),n(s));return a(o)},Yr={euclidean:function(t,e,n){return t>=2?qr(t,e,n,0,Xr,Vr):qr(t,e,n,0,Gr)},squaredEuclidean:function(t,e,n){return qr(t,e,n,0,Xr)},manhattan:function(t,e,n){return qr(t,e,n,0,Gr)},max:function(t,e,n){return qr(t,e,n,-1/0,Wr)}};function Jr(t,e,n,r,i,a){var o;return o=w(t)?t:Yr[t]||Yr.euclidean,0===e&&w(t)?o(i,a):o(e,n,r,i,a)}Yr["squared-euclidean"]=Yr.squaredEuclidean,Yr.squaredeuclidean=Yr.squaredEuclidean;var Zr=Ue({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),ti=function(t){return Zr(t)},ei=function(t,e,n,r,i){var a="kMedoids"!==i?function(t){return n[t]}:function(t){return r[t](n)},o=function(t){return r[t](e)},s=n,c=e;return Jr(t,r.length,a,o,s,c)},ni=function(t,e,n){for(var r=n.length,i=new Array(r),a=new Array(r),o=new Array(e),s=null,c=0;c<r;c++)i[c]=t.min(n[c]).value,a[c]=t.max(n[c]).value;for(var l=0;l<e;l++){s=[];for(var u=0;u<r;u++)s[u]=Math.random()*(a[u]-i[u])+i[u];o[l]=s}return o},ri=function(t,e,n,r,i){for(var a=1/0,o=0,s=0;s<e.length;s++){var c=ei(n,t,e[s],r,i);c<a&&(a=c,o=s)}return o},ii=function(t,e,n){for(var r=[],i=null,a=0;a<e.length;a++)n[(i=e[a]).id()]===t&&r.push(i);return r},ai=function(t,e,n){return Math.abs(e-t)<=n},oi=function(t,e,n){for(var r=0;r<t.length;r++)for(var i=0;i<t[r].length;i++)if(Math.abs(t[r][i]-e[r][i])>n)return!1;return!0},si=function(t,e,n){for(var r=0;r<n;r++)if(t===e[r])return!0;return!1},ci=function(t,e){var n=new Array(e);if(t.length<50)for(var r=0;r<e;r++){for(var i=t[Math.floor(Math.random()*t.length)];si(i,n,r);)i=t[Math.floor(Math.random()*t.length)];n[r]=i}else for(var a=0;a<e;a++)n[a]=t[Math.floor(Math.random()*t.length)];return n},li=function(t,e,n){for(var r=0,i=0;i<e.length;i++)r+=ei("manhattan",e[i],t,n,"kMedoids");return r},ui=function(e){var n,r=this.cy(),i=this.nodes(),a=null,o=ti(e),s=new Array(o.k),c={};o.testMode?"number"==typeof o.testCentroids?(o.testCentroids,n=ni(i,o.k,o.attributes)):n="object"===t(o.testCentroids)?o.testCentroids:ni(i,o.k,o.attributes):n=ni(i,o.k,o.attributes);for(var l=!0,u=0;l&&u<o.maxIterations;){for(var h=0;h<i.length;h++)c[(a=i[h]).id()]=ri(a,n,o.distance,o.attributes,"kMeans");l=!1;for(var f=0;f<o.k;f++){var d=ii(f,i,c);if(0!==d.length){for(var A=o.attributes.length,g=n[f],p=new Array(A),m=new Array(A),b=0;b<A;b++){m[b]=0;for(var v=0;v<d.length;v++)a=d[v],m[b]+=o.attributes[b](a);p[b]=m[b]/d.length,ai(p[b],g[b],o.sensitivityThreshold)||(l=!0)}n[f]=p,s[f]=r.collection(d)}}u++}return s},hi=function(e){var n,r,i=this.cy(),a=this.nodes(),o=null,s=ti(e),c=new Array(s.k),l={},u=new Array(s.k);s.testMode?"number"==typeof s.testCentroids||(n="object"===t(s.testCentroids)?s.testCentroids:ci(a,s.k)):n=ci(a,s.k);for(var h=!0,f=0;h&&f<s.maxIterations;){for(var d=0;d<a.length;d++)l[(o=a[d]).id()]=ri(o,n,s.distance,s.attributes,"kMedoids");h=!1;for(var A=0;A<n.length;A++){var g=ii(A,a,l);if(0!==g.length){u[A]=li(n[A],g,s.attributes);for(var p=0;p<g.length;p++)(r=li(g[p],g,s.attributes))<u[A]&&(u[A]=r,n[A]=g[p],h=!0);c[A]=i.collection(g)}}f++}return c},fi=function(t,e,n,r,i){for(var a,o,s=0;s<e.length;s++)for(var c=0;c<t.length;c++)r[s][c]=Math.pow(n[s][c],i.m);for(var l=0;l<t.length;l++)for(var u=0;u<i.attributes.length;u++){a=0,o=0;for(var h=0;h<e.length;h++)a+=r[h][l]*i.attributes[u](e[h]),o+=r[h][l];t[l][u]=a/o}},di=function(t,e,n,r,i){for(var a=0;a<t.length;a++)e[a]=t[a].slice();for(var o,s,c,l=2/(i.m-1),u=0;u<n.length;u++)for(var h=0;h<r.length;h++){o=0;for(var f=0;f<n.length;f++)s=ei(i.distance,r[h],n[u],i.attributes,"cmeans"),c=ei(i.distance,r[h],n[f],i.attributes,"cmeans"),o+=Math.pow(s/c,l);t[h][u]=1/o}},Ai=function(t,e,n,r){for(var i,a,o=new Array(n.k),s=0;s<o.length;s++)o[s]=[];for(var c=0;c<e.length;c++){i=-1/0,a=-1;for(var l=0;l<e[0].length;l++)e[c][l]>i&&(i=e[c][l],a=l);o[a].push(t[c])}for(var u=0;u<o.length;u++)o[u]=r.collection(o[u]);return o},gi=function(t){var e,n,r,i,a=this.cy(),o=this.nodes(),s=ti(t);r=new Array(o.length);for(var c=0;c<o.length;c++)r[c]=new Array(s.k);n=new Array(o.length);for(var l=0;l<o.length;l++)n[l]=new Array(s.k);for(var u=0;u<o.length;u++){for(var h=0,f=0;f<s.k;f++)n[u][f]=Math.random(),h+=n[u][f];for(var d=0;d<s.k;d++)n[u][d]=n[u][d]/h}e=new Array(s.k);for(var A=0;A<s.k;A++)e[A]=new Array(s.attributes.length);i=new Array(o.length);for(var g=0;g<o.length;g++)i[g]=new Array(s.k);for(var p=!0,m=0;p&&m<s.maxIterations;)p=!1,fi(e,o,n,i,s),di(n,r,e,o,s),oi(n,r,s.sensitivityThreshold)||(p=!0),m++;return{clusters:Ai(o,n,s,a),degreeOfMembership:n}},pi={kMeans:ui,kMedoids:hi,fuzzyCMeans:gi,fcm:gi},mi=Ue({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),bi={single:"min",complete:"max"},vi=function(t){var e=mi(t),n=bi[e.linkage];return null!=n&&(e.linkage=n),e},yi=function(t,e,n,r,i){for(var a,o=0,s=1/0,c=i.attributes,l=function(t,e){return Jr(i.distance,c.length,(function(e){return c[e](t)}),(function(t){return c[t](e)}),t,e)},u=0;u<t.length;u++){var h=t[u].key,f=n[h][r[h]];f<s&&(o=h,s=f)}if("threshold"===i.mode&&s>=i.threshold||"dendrogram"===i.mode&&1===t.length)return!1;var d,A=e[o],g=e[r[o]];d="dendrogram"===i.mode?{left:A,right:g,key:A.key}:{value:A.value.concat(g.value),key:A.key},t[A.index]=d,t.splice(g.index,1),e[A.key]=d;for(var p=0;p<t.length;p++){var m=t[p];A.key===m.key?a=1/0:"min"===i.linkage?(a=n[A.key][m.key],n[A.key][m.key]>n[g.key][m.key]&&(a=n[g.key][m.key])):"max"===i.linkage?(a=n[A.key][m.key],n[A.key][m.key]<n[g.key][m.key]&&(a=n[g.key][m.key])):a="mean"===i.linkage?(n[A.key][m.key]*A.size+n[g.key][m.key]*g.size)/(A.size+g.size):"dendrogram"===i.mode?l(m.value,A.value):l(m.value[0],A.value[0]),n[A.key][m.key]=n[m.key][A.key]=a}for(var b=0;b<t.length;b++){var v=t[b].key;if(r[v]===A.key||r[v]===g.key){for(var y=v,w=0;w<t.length;w++){var k=t[w].key;n[v][k]<n[v][y]&&(y=k)}r[v]=y}t[b].index=b}return A.key=g.key=A.index=g.index=null,!0},wi=function t(e,n,r){e&&(e.value?n.push(e.value):(e.left&&t(e.left,n),e.right&&t(e.right,n)))},ki=function t(e,n){if(!e)return"";if(e.left&&e.right){var r=t(e.left,n),i=t(e.right,n),a=n.add({group:"nodes",data:{id:r+","+i}});return n.add({group:"edges",data:{source:r,target:a.id()}}),n.add({group:"edges",data:{source:i,target:a.id()}}),a.id()}return e.value?e.value.id():void 0},Ci=function t(e,n,r){if(!e)return[];var i=[],a=[],o=[];return 0===n?(e.left&&wi(e.left,i),e.right&&wi(e.right,a),o=i.concat(a),[r.collection(o)]):1===n?e.value?[r.collection(e.value)]:(e.left&&wi(e.left,i),e.right&&wi(e.right,a),[r.collection(i),r.collection(a)]):e.value?[r.collection(e.value)]:(e.left&&(i=t(e.left,n-1,r)),e.right&&(a=t(e.right,n-1,r)),i.concat(a))},xi=function(t){for(var e=this.cy(),n=this.nodes(),r=vi(t),i=r.attributes,a=function(t,e){return Jr(r.distance,i.length,(function(e){return i[e](t)}),(function(t){return i[t](e)}),t,e)},o=[],s=[],c=[],l=[],u=0;u<n.length;u++){var h={value:"dendrogram"===r.mode?n[u]:[n[u]],key:u,index:u};o[u]=h,l[u]=h,s[u]=[],c[u]=0}for(var f=0;f<o.length;f++)for(var d=0;d<=f;d++){var A=void 0;A="dendrogram"===r.mode?f===d?1/0:a(o[f].value,o[d].value):f===d?1/0:a(o[f].value[0],o[d].value[0]),s[f][d]=A,s[d][f]=A,A<s[f][c[f]]&&(c[f]=d)}for(var g,p=yi(o,l,s,c,r);p;)p=yi(o,l,s,c,r);return"dendrogram"===r.mode?(g=Ci(o[0],r.dendrogramDepth,e),r.addDendrogram&&ki(o[0],e)):(g=new Array(o.length),o.forEach((function(t,n){t.key=t.index=null,g[n]=e.collection(t.value)}))),g},Ei={hierarchicalClustering:xi,hca:xi},Ti=Ue({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),Bi=function(t){var e=t.damping,n=t.preference;.5<=e&&e<1||Ie("Damping must range on [0.5, 1). Got: ".concat(e));var r=["median","mean","min","max"];return r.some((function(t){return t===n}))||E(n)||Ie("Preference must be one of [".concat(r.map((function(t){return"'".concat(t,"'")})).join(", "),"] or a number. Got: ").concat(n)),Ti(t)},_i=function(t,e,n,r){var i=function(t,e){return r[e](t)};return-Jr(t,r.length,(function(t){return i(e,t)}),(function(t){return i(n,t)}),e,n)},Si=function(t,e){return"median"===e?Cn(t):"mean"===e?kn(t):"min"===e?yn(t):"max"===e?wn(t):e},Li=function(t,e,n){for(var r=[],i=0;i<t;i++)e[i*t+i]+n[i*t+i]>0&&r.push(i);return r},Ii=function(t,e,n){for(var r=[],i=0;i<t;i++){for(var a=-1,o=-1/0,s=0;s<n.length;s++){var c=n[s];e[i*t+c]>o&&(a=c,o=e[i*t+c])}a>0&&r.push(a)}for(var l=0;l<n.length;l++)r[n[l]]=n[l];return r},Mi=function(t,e,n){for(var r=Ii(t,e,n),i=0;i<n.length;i++){for(var a=[],o=0;o<r.length;o++)r[o]===n[i]&&a.push(o);for(var s=-1,c=-1/0,l=0;l<a.length;l++){for(var u=0,h=0;h<a.length;h++)u+=e[a[h]*t+a[l]];u>c&&(s=l,c=u)}n[i]=a[s]}return r=Ii(t,e,n)},Oi=function(t){for(var e,n,r,i,a,o,s=this.cy(),c=this.nodes(),l=Bi(t),u={},h=0;h<c.length;h++)u[c[h].id()]=h;n=(e=c.length)*e,r=new Array(n);for(var f=0;f<n;f++)r[f]=-1/0;for(var d=0;d<e;d++)for(var A=0;A<e;A++)d!==A&&(r[d*e+A]=_i(l.distance,c[d],c[A],l.attributes));i=Si(r,l.preference);for(var g=0;g<e;g++)r[g*e+g]=i;a=new Array(n);for(var p=0;p<n;p++)a[p]=0;o=new Array(n);for(var m=0;m<n;m++)o[m]=0;for(var b=new Array(e),v=new Array(e),y=new Array(e),w=0;w<e;w++)b[w]=0,v[w]=0,y[w]=0;for(var k,C=new Array(e*l.minIterations),x=0;x<C.length;x++)C[x]=0;for(k=0;k<l.maxIterations;k++){for(var E=0;E<e;E++){for(var T=-1/0,B=-1/0,_=-1,S=0,L=0;L<e;L++)b[L]=a[E*e+L],(S=o[E*e+L]+r[E*e+L])>=T?(B=T,T=S,_=L):S>B&&(B=S);for(var I=0;I<e;I++)a[E*e+I]=(1-l.damping)*(r[E*e+I]-T)+l.damping*b[I];a[E*e+_]=(1-l.damping)*(r[E*e+_]-B)+l.damping*b[_]}for(var M=0;M<e;M++){for(var O=0,D=0;D<e;D++)b[D]=o[D*e+M],v[D]=Math.max(0,a[D*e+M]),O+=v[D];O-=v[M],v[M]=a[M*e+M],O+=v[M];for(var F=0;F<e;F++)o[F*e+M]=(1-l.damping)*Math.min(0,O-v[F])+l.damping*b[F];o[M*e+M]=(1-l.damping)*(O-v[M])+l.damping*b[M]}for(var N=0,P=0;P<e;P++){var R=o[P*e+P]+a[P*e+P]>0?1:0;C[k%l.minIterations*e+P]=R,N+=R}if(N>0&&(k>=l.minIterations-1||k==l.maxIterations-1)){for(var Q=0,U=0;U<e;U++){y[U]=0;for(var $=0;$<l.minIterations;$++)y[U]+=C[$*e+U];0!==y[U]&&y[U]!==l.minIterations||Q++}if(Q===e)break}}for(var H=Li(e,a,o),j=Mi(e,r,H),K={},z=0;z<H.length;z++)K[H[z]]=[];for(var G=0;G<c.length;G++){var X=j[u[c[G].id()]];null!=X&&K[X].push(c[G])}for(var V=new Array(H.length),W=0;W<H.length;W++)V[W]=s.collection(K[H[W]]);return V},Di={affinityPropagation:Oi,ap:Oi},Fi=Ue({root:void 0,directed:!1}),Ni={hierholzer:function(t){if(!C(t)){var e=arguments;t={root:e[0],directed:e[1]}}var n,r,i,a=Fi(t),o=a.root,s=a.directed,c=this,l=!1;o&&(i=y(o)?this.filter(o)[0].id():o[0].id());var u={},h={};s?c.forEach((function(t){var e=t.id();if(t.isNode()){var i=t.indegree(!0),a=t.outdegree(!0),o=i-a,s=a-i;1==o?n?l=!0:n=e:1==s?r?l=!0:r=e:(s>1||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?r?l=!0:r=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(r&&n)if(s){if(i&&r!=i)return f;i=r}else{if(i&&r!=i&&n!=i)return f;i||(i=r)}else i||(i=c[0].id());var d=function(t){for(var e,n,r,i=t,a=[t];u[i].length;)e=u[i].shift(),n=h[e][0],i!=(r=h[e][1])?(u[r]=u[r].filter((function(t){return t!=e})),i=r):s||i==n||(u[n]=u[n].filter((function(t){return t!=e})),i=n),a.unshift(e),a.unshift(i);return a},A=[],g=[];for(g=d(i);1!=g.length;)0==u[g[0]].length?(A.unshift(c.getElementById(g.shift())),A.unshift(c.getElementById(g.shift()))):g=d(g.shift()).concat(g);for(var p in A.unshift(c.getElementById(g.shift())),u)if(u[p].length)return f;return f.found=!0,f.trail=this.spawn(A,!0),f}},Pi=function(){var t=this,e={},n=0,r=0,i=[],a=[],o={},s=function(n,r){for(var o=a.length-1,s=[],c=t.spawn();a[o].x!=n||a[o].y!=r;)s.push(a.pop().edge),o--;s.push(a.pop().edge),s.forEach((function(n){var r=n.connectedNodes().intersection(t);c.merge(n),r.forEach((function(n){var r=n.id(),i=n.connectedEdges().intersection(t);c.merge(n),e[r].cutVertex?c.merge(i.filter((function(t){return t.isLoop()}))):c.merge(i)}))})),i.push(c)},c=function c(l,u,h){l===h&&(r+=1),e[u]={id:n,low:n++,cutVertex:!1};var f,d,A,g,p=t.getElementById(u).connectedEdges().intersection(t);0===p.size()?i.push(t.spawn(t.getElementById(u))):p.forEach((function(t){f=t.source().id(),d=t.target().id(),(A=f===u?d:f)!==h&&(g=t.id(),o[g]||(o[g]=!0,a.push({x:u,y:A,edge:t})),A in e?e[u].low=Math.min(e[u].low,e[A].id):(c(l,A,u),e[u].low=Math.min(e[u].low,e[A].low),e[u].id<=e[A].low&&(e[u].cutVertex=!0,s(u,A))))}))};t.forEach((function(t){if(t.isNode()){var n=t.id();n in e||(r=0,c(n,n),e[n].cutVertex=r>1)}}));var l=Object.keys(e).filter((function(t){return e[t].cutVertex})).map((function(e){return t.getElementById(e)}));return{cut:t.spawn(l),components:i}},Ri=function(){var t=this,e={},n=0,r=[],i=[],a=t.spawn(t),o=function o(s){if(i.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=i.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);r.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:r}},Qi={};[Ze,rn,an,sn,ln,hn,gn,Cr,Er,Br,Sr,jr,pi,Ei,Di,Ni,{hopcroftTarjanBiconnected:Pi,htbc:Pi,htb:Pi,hopcroftTarjanBiconnectedComponents:Pi},{tarjanStronglyConnected:Ri,tsc:Ri,tscc:Ri,tarjanStronglyConnectedComponents:Ri}].forEach((function(t){Z(Qi,t)}));var Ui=0,$i=1,Hi=2,ji=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Ui,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))};ji.prototype={fulfill:function(t){return Ki(this,$i,"fulfillValue",t)},reject:function(t){return Ki(this,Hi,"rejectReason",t)},then:function(t,e){var n=this,r=new ji;return n.onFulfilled.push(Xi(t,r,"fulfill")),n.onRejected.push(Xi(e,r,"reject")),zi(n),r.proxy}};var Ki=function(t,e,n,r){return t.state===Ui&&(t.state=e,t[n]=r,zi(t)),t},zi=function(t){t.state===$i?Gi(t,"onFulfilled",t.fulfillValue):t.state===Hi&&Gi(t,"onRejected",t.rejectReason)},Gi=function(t,e,n){if(0!==t[e].length){var r=t[e];t[e]=[];var i=function(){for(var t=0;t<r.length;t++)r[t](n)};"function"==typeof setImmediate?setImmediate(i):setTimeout(i,0)}},Xi=function(t,e,n){return function(r){if("function"!=typeof t)e[n].call(e,r);else{var i;try{i=t(r)}catch(t){return void e.reject(t)}Vi(e,i)}}},Vi=function e(n,r){if(n!==r&&n.proxy!==r){var i;if("object"===t(r)&&null!==r||"function"==typeof r)try{i=r.then}catch(t){return void n.reject(t)}if("function"!=typeof i)n.fulfill(r);else{var a=!1;try{i.call(r,(function(t){a||(a=!0,t===r?n.reject(new TypeError("circular thenable chain")):e(n,t))}),(function(t){a||(a=!0,n.reject(t))}))}catch(t){a||n.reject(t)}}}else n.reject(new TypeError("cannot resolve promise with itself"))};ji.all=function(t){return new ji((function(e,n){for(var r=new Array(t.length),i=0,a=function(n,a){r[n]=a,++i===t.length&&e(r)},o=0;o<t.length;o++)!function(e){var r=t[e];null!=r&&null!=r.then?r.then((function(t){a(e,t)}),(function(t){n(t)})):a(e,r)}(o)}))},ji.resolve=function(t){return new ji((function(e,n){e(t)}))},ji.reject=function(t){return new ji((function(e,n){n(t)}))};var Wi="undefined"!=typeof Promise?Promise:ji,qi=function(t,e,n){var r=I(t),i=!r,a=this._private=Z({duration:1e3},e,n);if(a.target=t,a.style=a.style||a.css,a.started=!1,a.playing=!1,a.hooked=!1,a.applying=!1,a.progress=0,a.completes=[],a.frames=[],a.complete&&w(a.complete)&&a.completes.push(a.complete),i){var o=t.position();a.startPosition=a.startPosition||{x:o.x,y:o.y},a.startStyle=a.startStyle||t.cy().style().getAnimationStartStyle(t,a.style)}if(r){var s=t.pan();a.startPan={x:s.x,y:s.y},a.startZoom=t.zoom()}this.length=1,this[0]=this},Yi=qi.prototype;Z(Yi,{instanceString:function(){return"animation"},hook:function(){var t=this._private;if(!t.hooked){var e=t.target._private.animation;(t.queue?e.queue:e.current).push(this),_(t.target)&&t.target.cy().addToAnimationPool(t.target),t.hooked=!0}return this},play:function(){var t=this._private;return 1===t.progress&&(t.progress=0),t.playing=!0,t.started=!1,t.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var t=this._private;return t.applying=!0,t.started=!1,t.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var t=this._private;return t.playing=!1,t.started=!1,this},stop:function(){var t=this._private;return t.playing=!1,t.started=!1,t.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(t){var e=this._private;return void 0===t?e.progress*e.duration:this.progress(t/e.duration)},progress:function(t){var e=this._private,n=e.playing;return void 0===t?e.progress:(n&&this.pause(),e.progress=t,e.started=!1,n&&this.play(),this)},completed:function(){return 1===this._private.progress},reverse:function(){var t=this._private,e=t.playing;e&&this.pause(),t.progress=1-t.progress,t.started=!1;var n=function(e,n){var r=t[e];null!=r&&(t[e]=t[n],t[n]=r)};if(n("zoom","startZoom"),n("pan","startPan"),n("position","startPosition"),t.style)for(var r=0;r<t.style.length;r++){var i=t.style[r],a=i.name,o=t.startStyle[a];t.startStyle[a]=i,t.style[r]=o}return e&&this.play(),this},promise:function(t){var e,n=this._private;return e="frame"===t?n.frames:n.completes,new Wi((function(t,n){e.push((function(){t()}))}))}}),Yi.complete=Yi.completed,Yi.run=Yi.play,Yi.running=Yi.playing;var Ji={animated:function(){return function(){var t=this,e=void 0!==t.length?t:[t];if(!(this._private.cy||this).styleEnabled())return!1;var n=e[0];return n?n._private.animation.current.length>0: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<e.length;n++)e[n]._private.animation.queue=[];return this}},delay:function(){return function(t,e){return(this._private.cy||this).styleEnabled()?this.animate({delay:t,duration:t,complete:e}):this}},delayAnimation:function(){return function(t,e){return(this._private.cy||this).styleEnabled()?this.animation({delay:t,duration:t,complete:e}):this}},animation:function(){return function(t,e){var n=this,r=void 0!==n.length,i=r?n:[n],a=this._private.cy||this,o=!r,s=!o;if(!a.styleEnabled())return this;var c=a.style();if(t=Z({},t,e),0===Object.keys(t).length)return new qi(i[0],t);switch(void 0===t.duration&&(t.duration=400),t.duration){case"slow":t.duration=600;break;case"fast":t.duration=200}if(s&&(t.style=c.getPropsList(t.style||t.css),t.css=void 0),s&&null!=t.renderedPosition){var l=t.renderedPosition,u=a.pan(),h=a.zoom();t.position=bn(l,h,u)}if(o&&null!=t.panBy){var f=t.panBy,d=a.pan();t.pan={x:d.x+f.x,y:d.y+f.y}}var A=t.center||t.centre;if(o&&null!=A){var g=a.getCenterPan(A.eles,t.zoom);null!=g&&(t.pan=g)}if(o&&null!=t.fit){var p=t.fit,m=a.getFitViewport(p.eles||p.boundingBox,p.padding);null!=m&&(t.pan=m.pan,t.zoom=m.zoom)}if(o&&C(t.zoom)){var b=a.getZoomedViewport(t.zoom);null!=b?(b.zoomed&&(t.zoom=b.zoom),b.panned&&(t.pan=b.pan)):t.zoom=null}return new qi(i[0],t)}},animate:function(){return function(t,e){var n=this,r=void 0!==n.length?n:[n];if(!(this._private.cy||this).styleEnabled())return this;e&&(t=Z({},t,e));for(var i=0;i<r.length;i++){var a=r[i],o=a.animated()&&(void 0===t.queue||t.queue);a.animation(t,o?{queue:!0}:void 0).play()}return this}},stop:function(){return function(t,e){var n=this,r=void 0!==n.length?n:[n],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var a=0;a<r.length;a++){for(var o=r[a]._private,s=o.animation.current,c=0;c<s.length;c++){var l=s[c]._private;e&&(l.duration=0)}t&&(o.animation.queue=[]),e||(o.animation.current=[])}return i.notify("draw"),this}}},Zi=Array.isArray,ta=Zi,ea=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,na=/^\w*$/;function ra(t,e){if(ta(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Gt(t))||na.test(t)||!ea.test(t)||null!=e&&t in Object(e)}var ia=ra,aa="[object AsyncFunction]",oa="[object Function]",sa="[object GeneratorFunction]",ca="[object Proxy]";function la(t){if(!lt(t))return!1;var e=$t(t);return e==oa||e==sa||e==aa||e==ca}var ua=la,ha=pt["__core-js_shared__"],fa=ha,da=function(){var t=/[^.]+$/.exec(fa&&fa.keys&&fa.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Aa(t){return!!da&&da in t}var ga=Aa,pa=Function.prototype,ma=pa.toString;function ba(t){if(null!=t){try{return ma.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var va=ba,ya=/[\\^$.*+?()[\]{}|]/g,wa=/^\[object .+?Constructor\]$/,ka=Function.prototype,Ca=Object.prototype,xa=ka.toString,Ea=Ca.hasOwnProperty,Ta=RegExp("^"+xa.call(Ea).replace(ya,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ba(t){return!(!lt(t)||ga(t))&&(ua(t)?Ta:wa).test(va(t))}var _a=Ba;function Sa(t,e){return null==t?void 0:t[e]}var La=Sa;function Ia(t,e){var n=La(t,e);return _a(n)?n:void 0}var Ma=Ia,Oa=Ma(Object,"create"),Da=Oa;function Fa(){this.__data__=Da?Da(null):{},this.size=0}var Na=Fa;function Pa(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ra=Pa,Qa="__lodash_hash_undefined__",Ua=Object.prototype,$a=Ua.hasOwnProperty;function Ha(t){var e=this.__data__;if(Da){var n=e[t];return n===Qa?void 0:n}return $a.call(e,t)?e[t]:void 0}var ja=Ha,Ka=Object.prototype,za=Ka.hasOwnProperty;function Ga(t){var e=this.__data__;return Da?void 0!==e[t]:za.call(e,t)}var Xa=Ga,Va="__lodash_hash_undefined__";function Wa(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Da&&void 0===e?Va:e,this}var qa=Wa;function Ya(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ya.prototype.clear=Na,Ya.prototype.delete=Ra,Ya.prototype.get=ja,Ya.prototype.has=Xa,Ya.prototype.set=qa;var Ja=Ya;function Za(){this.__data__=[],this.size=0}var to=Za;function eo(t,e){return t===e||t!=t&&e!=e}var no=eo;function ro(t,e){for(var n=t.length;n--;)if(no(t[n][0],e))return n;return-1}var io=ro,ao=Array.prototype,oo=ao.splice;function so(t){var e=this.__data__,n=io(e,t);return!(n<0||(n==e.length-1?e.pop():oo.call(e,n,1),--this.size,0))}var co=so;function lo(t){var e=this.__data__,n=io(e,t);return n<0?void 0:e[n][1]}var uo=lo;function ho(t){return io(this.__data__,t)>-1}var fo=ho;function Ao(t,e){var n=this.__data__,r=io(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var go=Ao;function po(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}po.prototype.clear=to,po.prototype.delete=co,po.prototype.get=uo,po.prototype.has=fo,po.prototype.set=go;var mo=po,bo=Ma(pt,"Map"),vo=bo;function yo(){this.size=0,this.__data__={hash:new Ja,map:new(vo||mo),string:new Ja}}var wo=yo;function ko(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var Co=ko;function xo(t,e){var n=t.__data__;return Co(e)?n["string"==typeof e?"string":"hash"]:n.map}var Eo=xo;function To(t){var e=Eo(this,t).delete(t);return this.size-=e?1:0,e}var Bo=To;function _o(t){return Eo(this,t).get(t)}var So=_o;function Lo(t){return Eo(this,t).has(t)}var Io=Lo;function Mo(t,e){var n=Eo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var Oo=Mo;function Do(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Do.prototype.clear=wo,Do.prototype.delete=Bo,Do.prototype.get=So,Do.prototype.has=Io,Do.prototype.set=Oo;var Fo=Do,No="Expected a function";function Po(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(No);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Po.Cache||Fo),n}Po.Cache=Fo;var Ro=Po,Qo=500;function Uo(t){var e=Ro(t,(function(t){return n.size===Qo&&n.clear(),t})),n=e.cache;return e}var $o=Uo,Ho=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jo=/\\(\\)?/g,Ko=$o((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ho,(function(t,n,r,i){e.push(r?i.replace(jo,"$1"):n||t)})),e})),zo=Ko;function Go(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Xo=Go,Vo=1/0,Wo=Tt?Tt.prototype:void 0,qo=Wo?Wo.toString:void 0;function Yo(t){if("string"==typeof t)return t;if(ta(t))return Xo(t,Yo)+"";if(Gt(t))return qo?qo.call(t):"";var e=t+"";return"0"==e&&1/t==-Vo?"-0":e}var Jo=Yo;function Zo(t){return null==t?"":Jo(t)}var ts=Zo;function es(t,e){return ta(t)?t:ia(t,e)?[t]:zo(ts(t))}var ns=es,rs=1/0;function is(t){if("string"==typeof t||Gt(t))return t;var e=t+"";return"0"==e&&1/t==-rs?"-0":e}var as=is;function os(t,e){for(var n=0,r=(e=ns(e,t)).length;null!=t&&n<r;)t=t[as(e[n++])];return n&&n==r?t:void 0}var ss=os;function cs(t,e,n){var r=null==t?void 0:ss(t,e);return void 0===r?n:r}var ls=cs,us=function(){try{var t=Ma(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),hs=us;function fs(t,e,n){"__proto__"==e&&hs?hs(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var ds=fs,As=Object.prototype,gs=As.hasOwnProperty;function ps(t,e,n){var r=t[e];gs.call(t,e)&&no(r,n)&&(void 0!==n||e in t)||ds(t,e,n)}var ms=ps,bs=9007199254740991,vs=/^(?:0|[1-9]\d*)$/;function ys(t,e){var n=typeof t;return!!(e=null==e?bs:e)&&("number"==n||"symbol"!=n&&vs.test(t))&&t>-1&&t%1==0&&t<e}var ws=ys;function ks(t,e,n,r){if(!lt(t))return t;for(var i=-1,a=(e=ns(e,t)).length,o=a-1,s=t;null!=s&&++i<a;){var c=as(e[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=o){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=lt(u)?u:ws(e[i+1])?[]:{})}ms(s,c,l),s=s[c]}return t}var Cs=ks;function xs(t,e,n){return null==t?t:Cs(t,e,n)}var Es=xs;function Ts(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Bs=Ts;function _s(t){return ta(t)?Xo(t,as):Gt(t)?[t]:Bs(zo(ts(t)))}var Ss=_s,Ls={data:function(t){return t=Z({},{field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(t){},beforeSet:function(t,e){},onSet:function(t){},canSet:function(t){return!0}},t),function(e,n){var r=t,i=this,o=void 0!==i.length,s=o?i:[i],c=o?i[0]:i;if(y(e)){var l,u=-1!==e.indexOf(".")&&Ss(e);if(r.allowGetting&&void 0===n)return c&&(r.beforeGet(c),l=u&&void 0===c._private[r.field][e]?ls(c._private[r.field],u):c._private[r.field][e]),l;if(r.allowSetting&&void 0!==n&&!r.immutableKeys[e]){var h=a({},e,n);r.beforeSet(i,h);for(var f=0,d=s.length;f<d;f++){var A=s[f];r.canSet(A)&&(u&&void 0===c._private[r.field][e]?Es(A._private[r.field],u,n):A._private[r.field][e]=n)}r.updateStyle&&i.updateStyle(),r.onSet(i),r.settingTriggersEvent&&i[r.triggerFnName](r.settingEvent)}}else if(r.allowSetting&&C(e)){var g,p,m=e,b=Object.keys(m);r.beforeSet(i,m);for(var v=0;v<b.length;v++)if(p=m[g=b[v]],!r.immutableKeys[g])for(var k=0;k<s.length;k++){var x=s[k];r.canSet(x)&&(x._private[r.field][g]=p)}r.updateStyle&&i.updateStyle(),r.onSet(i),r.settingTriggersEvent&&i[r.triggerFnName](r.settingEvent)}else if(r.allowBinding&&w(e)){var E=e;i.on(r.bindingEvent,E)}else if(r.allowGetting&&void 0===e){var T;return c&&(r.beforeGet(c),T=c._private[r.field]),T}return i}},removeData:function(t){return t=Z({},{field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}},t),function(e){var n=t,r=this,i=void 0!==r.length?r:[r];if(y(e)){for(var a=e.split(/\s+/),o=a.length,s=0;s<o;s++){var c=a[s];if(!D(c)&&!n.immutableKeys[c])for(var l=0,u=i.length;l<u;l++)i[l]._private[n.field][c]=void 0}n.triggerEvent&&r[n.triggerFnName](n.event)}else if(void 0===e){for(var h=0,f=i.length;h<f;h++)for(var d=i[h]._private[n.field],A=Object.keys(d),g=0;g<A.length;g++){var p=A[g];!n.immutableKeys[p]&&(d[p]=void 0)}n.triggerEvent&&r[n.triggerFnName](n.event)}return r}}},Is={eventAliasesOn:function(t){var e=t;e.addListener=e.listen=e.bind=e.on,e.unlisten=e.unbind=e.off=e.removeListener,e.trigger=e.emit,e.pon=e.promiseOn=function(t,e){var n=this,r=Array.prototype.slice.call(arguments,0);return new Wi((function(t,e){var i=function(e){n.off.apply(n,o),t(e)},a=r.concat([i]),o=a.concat([]);n.on.apply(n,a)}))}}},Ms={};[Ji,Ls,Is].forEach((function(t){Z(Ms,t)}));var Os={animate:Ms.animate(),animation:Ms.animation(),animated:Ms.animated(),clearQueue:Ms.clearQueue(),delay:Ms.delay(),delayAnimation:Ms.delayAnimation(),stop:Ms.stop()},Ds={classes:function(t){var e=this;if(void 0===t){var n=[];return e[0]._private.classes.forEach((function(t){return n.push(t)})),n}k(t)||(t=(t||"").match(/\S+/g)||[]);for(var r=[],i=new qe(t),a=0;a<e.length;a++){for(var o=e[a],s=o._private,c=s.classes,l=!1,u=0;u<t.length;u++){var h=t[u];if(!c.has(h)){l=!0;break}}l||(l=c.size!==t.length),l&&(s.classes=i,r.push(o))}return r.length>0&&this.spawn(r).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){k(t)||(t=t.match(/\S+/g)||[]);for(var n=this,r=void 0===e,i=[],a=0,o=n.length;a<o;a++)for(var s=n[a],c=s._private.classes,l=!1,u=0;u<t.length;u++){var h=t[u],f=c.has(h),d=!1;e||r&&!f?(c.add(h),d=!0):(!e||r&&f)&&(c.delete(h),d=!0),!l&&d&&(i.push(s),l=!0)}return i.length>0&&this.spawn(i).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}};Ds.className=Ds.classNames=Ds.classes;var Fs={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:K,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Fs.variable="(?:[\\w-.]|(?:\\\\"+Fs.metaChar+"))+",Fs.className="(?:[\\w-]|(?:\\\\"+Fs.metaChar+"))+",Fs.value=Fs.string+"|"+Fs.number,Fs.id=Fs.variable,function(){var t,e,n;for(t=Fs.comparatorOp.split("|"),n=0;n<t.length;n++)e=t[n],Fs.comparatorOp+="|@"+e;for(t=Fs.comparatorOp.split("|"),n=0;n<t.length;n++)(e=t[n]).indexOf("!")>=0||"="!==e&&(Fs.comparatorOp+="|\\!"+e)}();var Ns=function(){return{checks:[]}},Ps={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},Rs=[{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 J(t.selector,e.selector)})),Qs=function(){for(var t,e={},n=0;n<Rs.length;n++)e[(t=Rs[n]).selector]=t.matches;return e}(),Us=function(t,e){return Qs[t](e)},$s="("+Rs.map((function(t){return t.selector})).join("|")+")",Hs=function(t){return t.replace(new RegExp("\\\\("+Fs.metaChar+")","g"),(function(t,e){return e}))},js=function(t,e,n){t[t.length-1]=n},Ks=[{name:"group",query:!0,regex:"("+Fs.group+")",populate:function(t,e,n){var r=o(n,1)[0];e.checks.push({type:Ps.GROUP,value:"*"===r?r:r+"s"})}},{name:"state",query:!0,regex:$s,populate:function(t,e,n){var r=o(n,1)[0];e.checks.push({type:Ps.STATE,value:r})}},{name:"id",query:!0,regex:"\\#("+Fs.id+")",populate:function(t,e,n){var r=o(n,1)[0];e.checks.push({type:Ps.ID,value:Hs(r)})}},{name:"className",query:!0,regex:"\\.("+Fs.className+")",populate:function(t,e,n){var r=o(n,1)[0];e.checks.push({type:Ps.CLASS,value:Hs(r)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+Fs.variable+")\\s*\\]",populate:function(t,e,n){var r=o(n,1)[0];e.checks.push({type:Ps.DATA_EXIST,field:Hs(r)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+Fs.variable+")\\s*("+Fs.comparatorOp+")\\s*("+Fs.value+")\\s*\\]",populate:function(t,e,n){var r=o(n,3),i=r[0],a=r[1],s=r[2];s=null!=new RegExp("^"+Fs.string+"$").exec(s)?s.substring(1,s.length-1):parseFloat(s),e.checks.push({type:Ps.DATA_COMPARE,field:Hs(i),operator:a,value:s})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+Fs.boolOp+")\\s*("+Fs.variable+")\\s*\\]",populate:function(t,e,n){var r=o(n,2),i=r[0],a=r[1];e.checks.push({type:Ps.DATA_BOOL,field:Hs(a),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+Fs.meta+")\\s*("+Fs.comparatorOp+")\\s*("+Fs.number+")\\s*\\]\\]",populate:function(t,e,n){var r=o(n,3),i=r[0],a=r[1],s=r[2];e.checks.push({type:Ps.META_COMPARE,field:Hs(i),operator:a,value:parseFloat(s)})}},{name:"nextQuery",separator:!0,regex:Fs.separator,populate:function(t,e){var n=t.currentSubject,r=t.edgeCount,i=t.compoundCount,a=t[t.length-1];return null!=n&&(a.subject=n,t.currentSubject=null),a.edgeCount=r,a.compoundCount=i,t.edgeCount=0,t.compoundCount=0,t[t.length++]=Ns()}},{name:"directedEdge",separator:!0,regex:Fs.directedEdge,populate:function(t,e){if(null==t.currentSubject){var n=Ns(),r=e,i=Ns();return n.checks.push({type:Ps.DIRECTED_EDGE,source:r,target:i}),js(t,e,n),t.edgeCount++,i}var a=Ns(),o=e,s=Ns();return a.checks.push({type:Ps.NODE_SOURCE,source:o,target:s}),js(t,e,a),t.edgeCount++,s}},{name:"undirectedEdge",separator:!0,regex:Fs.undirectedEdge,populate:function(t,e){if(null==t.currentSubject){var n=Ns(),r=e,i=Ns();return n.checks.push({type:Ps.UNDIRECTED_EDGE,nodes:[r,i]}),js(t,e,n),t.edgeCount++,i}var a=Ns(),o=e,s=Ns();return a.checks.push({type:Ps.NODE_NEIGHBOR,node:o,neighbor:s}),js(t,e,a),s}},{name:"child",separator:!0,regex:Fs.child,populate:function(t,e){if(null==t.currentSubject){var n=Ns(),r=Ns(),i=t[t.length-1];return n.checks.push({type:Ps.CHILD,parent:i,child:r}),js(t,e,n),t.compoundCount++,r}if(t.currentSubject===e){var a=Ns(),o=t[t.length-1],s=Ns(),c=Ns(),l=Ns(),u=Ns();return a.checks.push({type:Ps.COMPOUND_SPLIT,left:o,right:s,subject:c}),c.checks=e.checks,e.checks=[{type:Ps.TRUE}],u.checks.push({type:Ps.TRUE}),s.checks.push({type:Ps.PARENT,parent:u,child:l}),js(t,o,a),t.currentSubject=c,t.compoundCount++,l}var h=Ns(),f=Ns(),d=[{type:Ps.PARENT,parent:h,child:f}];return h.checks=e.checks,e.checks=d,t.compoundCount++,f}},{name:"descendant",separator:!0,regex:Fs.descendant,populate:function(t,e){if(null==t.currentSubject){var n=Ns(),r=Ns(),i=t[t.length-1];return n.checks.push({type:Ps.DESCENDANT,ancestor:i,descendant:r}),js(t,e,n),t.compoundCount++,r}if(t.currentSubject===e){var a=Ns(),o=t[t.length-1],s=Ns(),c=Ns(),l=Ns(),u=Ns();return a.checks.push({type:Ps.COMPOUND_SPLIT,left:o,right:s,subject:c}),c.checks=e.checks,e.checks=[{type:Ps.TRUE}],u.checks.push({type:Ps.TRUE}),s.checks.push({type:Ps.ANCESTOR,ancestor:u,descendant:l}),js(t,o,a),t.currentSubject=c,t.compoundCount++,l}var h=Ns(),f=Ns(),d=[{type:Ps.ANCESTOR,ancestor:h,descendant:f}];return h.checks=e.checks,e.checks=d,t.compoundCount++,f}},{name:"subject",modifier:!0,regex:Fs.subject,populate:function(t,e){if(null!=t.currentSubject&&t.currentSubject!==e)return Oe("Redefinition of subject in selector `"+t.toString()+"`"),!1;t.currentSubject=e;var n=t[t.length-1].checks[0],r=null==n?null:n.type;r===Ps.DIRECTED_EDGE?n.type=Ps.NODE_TARGET:r===Ps.UNDIRECTED_EDGE&&(n.type=Ps.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];Ks.forEach((function(t){return t.regexObj=new RegExp("^"+t.regex)}));var zs=function(t){for(var e,n,r,i=0;i<Ks.length;i++){var a=Ks[i],o=a.name,s=t.match(a.regexObj);if(null!=s){n=s,e=a,r=o;var c=s[0];t=t.substring(c.length);break}}return{expr:e,match:n,name:r,remaining:t}},Gs=function(t){var e=t.match(/^\s+/);if(e){var n=e[0];t=t.substring(n.length)}return t},Xs=function(t){var e=this,n=e.inputText=t,r=e[0]=Ns();for(e.length=1,n=Gs(n);;){var i=zs(n);if(null==i.expr)return Oe("The selector `"+t+"`is invalid"),!1;var a=i.match.slice(1),o=i.expr.populate(e,r,a);if(!1===o)return!1;if(null!=o&&(r=o),(n=i.remaining).match(/^\s*$/))break}var s=e[e.length-1];null!=e.currentSubject&&(s.subject=e.currentSubject),s.edgeCount=e.edgeCount,s.compoundCount=e.compoundCount;for(var c=0;c<e.length;c++){var l=e[c];if(l.compoundCount>0&&l.edgeCount>0)return Oe("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(l.edgeCount>1)return Oe("The selector `"+t+"` is invalid because it uses multiple edge selectors"),!1;1===l.edgeCount&&Oe("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},Vs=function(){if(null!=this.toStringCache)return this.toStringCache;for(var t=function(t){return null==t?"":t},e=function(e){return y(e)?'"'+e+'"':t(e)},n=function(t){return" "+t+" "},r=function(r,a){var o=r.type,s=r.value;switch(o){case Ps.GROUP:var c=t(s);return c.substring(0,c.length-1);case Ps.DATA_COMPARE:var l=r.field,u=r.operator;return"["+l+n(t(u))+e(s)+"]";case Ps.DATA_BOOL:var h=r.operator,f=r.field;return"["+t(h)+f+"]";case Ps.DATA_EXIST:return"["+r.field+"]";case Ps.META_COMPARE:var d=r.operator;return"[["+r.field+n(t(d))+e(s)+"]]";case Ps.STATE:return s;case Ps.ID:return"#"+s;case Ps.CLASS:return"."+s;case Ps.PARENT:case Ps.CHILD:return i(r.parent,a)+n(">")+i(r.child,a);case Ps.ANCESTOR:case Ps.DESCENDANT:return i(r.ancestor,a)+" "+i(r.descendant,a);case Ps.COMPOUND_SPLIT:var A=i(r.left,a),g=i(r.subject,a),p=i(r.right,a);return A+(A.length>0?" ":"")+g+p;case Ps.TRUE:return""}},i=function(t,e){return t.checks.reduce((function(n,i,a){return n+(e===t&&0===a?"$":"")+r(i,e)}),"")},a="",o=0;o<this.length;o++){var s=this[o];a+=i(s,s.subject),this.length>1&&o<this.length-1&&(a+=", ")}return this.toStringCache=a,a},Ws={parse:Xs,toString:Vs},qs=function(t,e,n){var r,i,a,o=y(t),s=E(t),c=y(n),l=!1,u=!1,h=!1;switch(e.indexOf("!")>=0&&(e=e.replace("!",""),u=!0),e.indexOf("@")>=0&&(e=e.replace("@",""),l=!0),(o||c||l)&&(i=o||s?""+t:"",a=""+n),l&&(t=i=i.toLowerCase(),n=a=a.toLowerCase()),e){case"*=":r=i.indexOf(a)>=0;break;case"$=":r=i.indexOf(a,i.length-a.length)>=0;break;case"^=":r=0===i.indexOf(a);break;case"=":r=t===n;break;case">":h=!0,r=t>n;break;case">=":h=!0,r=t>=n;break;case"<":h=!0,r=t<n;break;case"<=":h=!0,r=t<=n;break;default:r=!1}return!u||null==t&&h||(r=!r),r},Ys=function(t,e){switch(e){case"?":return!!t;case"!":return!t;case"^":return void 0===t}},Js=function(t){return void 0!==t},Zs=function(t,e){return t.data(e)},tc=function(t,e){return t[e]()},ec=[],nc=function(t,e){return t.checks.every((function(t){return ec[t.type](t,e)}))};ec[Ps.GROUP]=function(t,e){var n=t.value;return"*"===n||n===e.group()},ec[Ps.STATE]=function(t,e){var n=t.value;return Us(n,e)},ec[Ps.ID]=function(t,e){var n=t.value;return e.id()===n},ec[Ps.CLASS]=function(t,e){var n=t.value;return e.hasClass(n)},ec[Ps.META_COMPARE]=function(t,e){var n=t.field,r=t.operator,i=t.value;return qs(tc(e,n),r,i)},ec[Ps.DATA_COMPARE]=function(t,e){var n=t.field,r=t.operator,i=t.value;return qs(Zs(e,n),r,i)},ec[Ps.DATA_BOOL]=function(t,e){var n=t.field,r=t.operator;return Ys(Zs(e,n),r)},ec[Ps.DATA_EXIST]=function(t,e){var n=t.field;return t.operator,Js(Zs(e,n))},ec[Ps.UNDIRECTED_EDGE]=function(t,e){var n=t.nodes[0],r=t.nodes[1],i=e.source(),a=e.target();return nc(n,i)&&nc(r,a)||nc(r,i)&&nc(n,a)},ec[Ps.NODE_NEIGHBOR]=function(t,e){return nc(t.node,e)&&e.neighborhood().some((function(e){return e.isNode()&&nc(t.neighbor,e)}))},ec[Ps.DIRECTED_EDGE]=function(t,e){return nc(t.source,e.source())&&nc(t.target,e.target())},ec[Ps.NODE_SOURCE]=function(t,e){return nc(t.source,e)&&e.outgoers().some((function(e){return e.isNode()&&nc(t.target,e)}))},ec[Ps.NODE_TARGET]=function(t,e){return nc(t.target,e)&&e.incomers().some((function(e){return e.isNode()&&nc(t.source,e)}))},ec[Ps.CHILD]=function(t,e){return nc(t.child,e)&&nc(t.parent,e.parent())},ec[Ps.PARENT]=function(t,e){return nc(t.parent,e)&&e.children().some((function(e){return nc(t.child,e)}))},ec[Ps.DESCENDANT]=function(t,e){return nc(t.descendant,e)&&e.ancestors().some((function(e){return nc(t.ancestor,e)}))},ec[Ps.ANCESTOR]=function(t,e){return nc(t.ancestor,e)&&e.descendants().some((function(e){return nc(t.descendant,e)}))},ec[Ps.COMPOUND_SPLIT]=function(t,e){return nc(t.subject,e)&&nc(t.left,e)&&nc(t.right,e)},ec[Ps.TRUE]=function(){return!0},ec[Ps.COLLECTION]=function(t,e){return t.value.has(e)},ec[Ps.FILTER]=function(t,e){return(0,t.value)(e)};var rc=function(t){var e=this;if(1===e.length&&1===e[0].checks.length&&e[0].checks[0].type===Ps.ID)return t.getElementById(e[0].checks[0].value).collection();var n=function(t){for(var n=0;n<e.length;n++){var r=e[n];if(nc(r,t))return!0}return!1};return null==e.text()&&(n=function(){return!0}),t.filter(n)},ic={matches:function(t){for(var e=this,n=0;n<e.length;n++){var r=e[n];if(nc(r,t))return!0}return!1},filter:rc},ac=function(t){this.inputText=t,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,null==t||y(t)&&t.match(/^\s*$/)||(_(t)?this.addQuery({checks:[{type:Ps.COLLECTION,value:t.collection()}]}):w(t)?this.addQuery({checks:[{type:Ps.FILTER,value:t}]}):y(t)?this.parse(t)||(this.invalid=!0):Ie("A selector must be created from a string; found "))},oc=ac.prototype;[Ws,ic].forEach((function(t){return Z(oc,t)})),oc.text=function(){return this.inputText},oc.size=function(){return this.length},oc.eq=function(t){return this[t]},oc.sameText=function(t){return!this.invalid&&!t.invalid&&this.text()===t.text()},oc.addQuery=function(t){this[this.length++]=t},oc.selector=oc.toString;var sc={allAre:function(t){var e=new ac(t);return this.every((function(t){return e.matches(t)}))},is:function(t){var e=new ac(t);return this.some((function(t){return e.matches(t)}))},some:function(t,e){for(var n=0;n<this.length;n++)if(e?t.apply(e,[this[n],n,this]):t(this[n],n,this))return!0;return!1},every:function(t,e){for(var n=0;n<this.length;n++)if(!(e?t.apply(e,[this[n],n,this]):t(this[n],n,this)))return!1;return!0},same:function(t){if(this===t)return!0;t=this.cy().collection(t);var e=this.length;return e===t.length&&(1===e?this[0]===t[0]:this.every((function(e){return t.hasElementWithId(e.id())})))},anySame:function(t){return t=this.cy().collection(t),this.some((function(e){return t.hasElementWithId(e.id())}))},allAreNeighbors:function(t){t=this.cy().collection(t);var e=this.neighborhood();return t.every((function(t){return e.hasElementWithId(t.id())}))},contains:function(t){t=this.cy().collection(t);var e=this;return t.every((function(t){return e.hasElementWithId(t.id())}))}};sc.allAreNeighbours=sc.allAreNeighbors,sc.has=sc.contains,sc.equal=sc.equals=sc.same;var cc,lc,uc=function(t,e){return function(n,r,i,a){var o,s=n,c=this;if(null==s?o="":_(s)&&1===s.length&&(o=s.id()),1===c.length&&o){var l=c[0]._private,u=l.traversalCache=l.traversalCache||{},h=u[e]=u[e]||[],f=ye(o),d=h[f];return d||(h[f]=t.call(c,n,r,i,a))}return t.call(c,n,r,i,a)}},hc={parent:function(t){var e=[];if(1===this.length){var n=this[0]._private.parent;if(n)return n}for(var r=0;r<this.length;r++){var i=this[r]._private.parent;i&&e.push(i)}return this.spawn(e,!0).filter(t)},parents:function(t){for(var e=[],n=this.parent();n.nonempty();){for(var r=0;r<n.length;r++){var i=n[r];e.push(i)}n=n.parent()}return this.spawn(e,!0).filter(t)},commonAncestors:function(t){for(var e,n=0;n<this.length;n++){var r=this[n].parents();e=(e=e||r).intersect(r)}return e.filter(t)},orphans:function(t){return this.stdFilter((function(t){return t.isOrphan()})).filter(t)},nonorphans:function(t){return this.stdFilter((function(t){return t.isChild()})).filter(t)},children:uc((function(t){for(var e=[],n=0;n<this.length;n++)for(var r=this[n]._private.children,i=0;i<r.length;i++)e.push(r[i]);return this.spawn(e,!0).filter(t)}),"children"),siblings:function(t){return this.parent().children().not(this).filter(t)},isParent:function(){var t=this[0];if(t)return t.isNode()&&0!==t._private.children.length},isChildless:function(){var t=this[0];if(t)return t.isNode()&&0===t._private.children.length},isChild:function(){var t=this[0];if(t)return t.isNode()&&null!=t._private.parent},isOrphan:function(){var t=this[0];if(t)return t.isNode()&&null==t._private.parent},descendants:function(t){var e=[];function n(t){for(var r=0;r<t.length;r++){var i=t[r];e.push(i),i.children().nonempty()&&n(i.children())}}return n(this.children()),this.spawn(e,!0).filter(t)}};function fc(t,e,n,r){for(var i=[],a=new qe,o=t.cy().hasCompoundNodes(),s=0;s<t.length;s++){var c=t[s];n?i.push(c):o&&r(i,a,c)}for(;i.length>0;){var l=i.shift();e(l),a.add(l.id()),o&&r(i,a,l)}return t}function dc(t,e,n){if(n.isParent())for(var r=n._private.children,i=0;i<r.length;i++){var a=r[i];e.has(a.id())||t.push(a)}}function Ac(t,e,n){if(n.isChild()){var r=n._private.parent;e.has(r.id())||t.push(r)}}function gc(t,e,n){Ac(t,e,n),dc(t,e,n)}hc.forEachDown=function(t){return fc(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],dc)},hc.forEachUp=function(t){return fc(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ac)},hc.forEachUpAndDown=function(t){return fc(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],gc)},hc.ancestors=hc.parents,(cc=lc={data:Ms.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:Ms.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Ms.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Ms.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Ms.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Ms.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var t=this[0];if(t)return t._private.data.id}}).attr=cc.data,cc.removeAttr=cc.removeData;var pc,mc,bc=lc,vc={};function yc(t){return function(e){var n=this;if(void 0===e&&(e=!0),0!==n.length&&n.isNode()&&!n.removed()){for(var r=0,i=n[0],a=i._private.edges,o=0;o<a.length;o++){var s=a[o];!e&&s.isLoop()||(r+=t(i,s))}return r}}}function wc(t,e){return function(n){for(var r,i=this.nodes(),a=0;a<i.length;a++){var o=i[a][t](n);void 0===o||void 0!==r&&!e(o,r)||(r=o)}return r}}Z(vc,{degree:yc((function(t,e){return e.source().same(e.target())?2:1})),indegree:yc((function(t,e){return e.target().same(t)?1:0})),outdegree:yc((function(t,e){return e.source().same(t)?1:0}))}),Z(vc,{minDegree:wc("degree",(function(t,e){return t<e})),maxDegree:wc("degree",(function(t,e){return t>e})),minIndegree:wc("indegree",(function(t,e){return t<e})),maxIndegree:wc("indegree",(function(t,e){return t>e})),minOutdegree:wc("outdegree",(function(t,e){return t<e})),maxOutdegree:wc("outdegree",(function(t,e){return t>e}))}),Z(vc,{totalDegree:function(t){for(var e=0,n=this.nodes(),r=0;r<n.length;r++)e+=n[r].degree(t);return e}});var kc=function(t,e,n){for(var r=0;r<t.length;r++){var i=t[r];if(!i.locked()){var a=i._private.position,o={x:null!=e.x?e.x-a.x:0,y:null!=e.y?e.y-a.y:0};!i.isParent()||0===o.x&&0===o.y||i.children().shift(o,n),i.dirtyBoundingBoxCache()}}},Cc={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(t){t.updateCompoundBounds()},beforeSet:function(t,e){kc(t,e,!1)},onSet:function(t){t.dirtyCompoundBoundsCache()},canSet:function(t){return!t.locked()}};pc=mc={position:Ms.data(Cc),silentPosition:Ms.data(Z({},Cc,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(t,e){kc(t,e,!0)},onSet:function(t){t.dirtyCompoundBoundsCache()}})),positions:function(t,e){if(C(t))e?this.silentPosition(t):this.position(t);else if(w(t)){var n=t,r=this.cy();r.startBatch();for(var i=0;i<this.length;i++){var a=this[i],o=void 0;(o=n(a,i))&&(e?a.silentPosition(o):a.position(o))}r.endBatch()}return this},silentPositions:function(t){return this.positions(t,!0)},shift:function(t,e,n){var r;if(C(t)?(r={x:E(t.x)?t.x:0,y:E(t.y)?t.y:0},n=e):y(t)&&E(e)&&((r={x:0,y:0})[t]=e),null!=r){var i=this.cy();i.startBatch();for(var a=0;a<this.length;a++){var o=this[a];if(!(i.hasCompoundNodes()&&o.isChild()&&o.ancestors().anySame(this))){var s=o.position(),c={x:s.x+r.x,y:s.y+r.y};n?o.silentPosition(c):o.position(c)}}i.endBatch()}return this},silentShift:function(t,e){return C(t)?this.shift(t,!0):y(t)&&E(e)&&this.shift(t,e,!0),this},renderedPosition:function(t,e){var n=this[0],r=this.cy(),i=r.zoom(),a=r.pan(),o=C(t)?t:void 0,s=void 0!==o||void 0!==e&&y(t);if(n&&n.isNode()){if(!s){var c=n.position();return o=mn(c,i,a),void 0===t?o:o[t]}for(var l=0;l<this.length;l++){var u=this[l];void 0!==e?u.position(t,(e-a[t])/i):void 0!==o&&u.position(bn(o,i,a))}}else if(!s)return;return this},relativePosition:function(t,e){var n=this[0],r=this.cy(),i=C(t)?t:void 0,a=void 0!==i||void 0!==e&&y(t),o=r.hasCompoundNodes();if(n&&n.isNode()){if(!a){var s=n.position(),c=o?n.parent():null,l=c&&c.length>0,u=l;l&&(c=c[0]);var h=u?c.position():{x:0,y:0};return i={x:s.x-h.x,y:s.y-h.y},void 0===t?i:i[t]}for(var f=0;f<this.length;f++){var d=this[f],A=o?d.parent():null,g=A&&A.length>0,p=g;g&&(A=A[0]);var m=p?A.position():{x:0,y:0};void 0!==e?d.position(t,e+m[t]):void 0!==i&&d.position({x:i.x+m.x,y:i.y+m.y})}}else if(!a)return;return this}},pc.modelPosition=pc.point=pc.position,pc.modelPositions=pc.points=pc.positions,pc.renderedPoint=pc.renderedPosition,pc.relativePoint=pc.relativePosition;var xc,Ec,Tc=mc;xc=Ec={},Ec.renderedBoundingBox=function(t){var e=this.boundingBox(t),n=this.cy(),r=n.zoom(),i=n.pan(),a=e.x1*r+i.x,o=e.x2*r+i.x,s=e.y1*r+i.y,c=e.y2*r+i.y;return{x1:a,x2:o,y1:s,y2:c,w:o-a,h:c-s}},Ec.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},Ec.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(),r="include"===t.pstyle("compound-sizing-wrt-labels").value,i={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:r,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=i.width.left.value;"px"===i.width.left.units&&i.width.val>0&&(s=100*s/i.width.val);var c=i.width.right.value;"px"===i.width.right.units&&i.width.val>0&&(c=100*c/i.width.val);var l=i.height.top.value;"px"===i.height.top.units&&i.height.val>0&&(l=100*l/i.height.val);var u=i.height.bottom.value;"px"===i.height.bottom.units&&i.height.val>0&&(u=100*u/i.height.val);var h=m(i.width.val-a.w,s,c),f=h.biasDiff,d=h.biasComplementDiff,A=m(i.height.val-a.h,l,u),g=A.biasDiff,p=A.biasComplementDiff;e.autoPadding=b(a.w,a.h,t.pstyle("padding"),t.pstyle("padding-relative-to").value),e.autoWidth=Math.max(a.w,i.width.val),o.x=(-f+a.x1+a.x2+d)/2,e.autoHeight=Math.max(a.h,i.height.val),o.y=(-g+a.y1+a.y2+p)/2}function m(t,e,n){var r=0,i=0,a=e+n;return t>0&&a>0&&(r=e/a*t,i=n/a*t),{biasDiff:r,biasComplementDiff:i}}function b(t,e,n,r){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(r){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}}}for(var r=0;r<this.length;r++){var i=this[r],a=i._private;a.compoundBoundsClean&&!t||(n(i),e.batching()||(a.compoundBoundsClean=!0))}return this};var Bc=function(t){return t===1/0||t===-1/0?0:t},_c=function(t,e,n,r,i){r-e!=0&&i-n!=0&&null!=e&&null!=n&&null!=r&&null!=i&&(t.x1=e<t.x1?e:t.x1,t.x2=r>t.x2?r:t.x2,t.y1=n<t.y1?n:t.y1,t.y2=i>t.y2?i:t.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1)},Sc=function(t,e){return null==e?t:_c(t,e.x1,e.y1,e.x2,e.y2)},Lc=function(t,e,n){return Ke(t,e,n)},Ic=function(t,e,n){if(!e.cy().headless()){var r,i,a=e._private,o=a.rstyle,s=o.arrowWidth/2;if("none"!==e.pstyle(n+"-arrow-shape").value){"source"===n?(r=o.srcX,i=o.srcY):"target"===n?(r=o.tgtX,i=o.tgtY):(r=o.midX,i=o.midY);var c=a.arrowBounds=a.arrowBounds||{},l=c[n]=c[n]||{};l.x1=r-s,l.y1=i-s,l.x2=r+s,l.y2=i+s,l.w=l.x2-l.x1,l.h=l.y2-l.y1,$n(l,1),_c(t,l.x1,l.y1,l.x2,l.y2)}}},Mc=function(t,e,n){if(!e.cy().headless()){var r;r=n?n+"-":"";var i=e._private,a=i.rstyle;if(e.pstyle(r+"label").strValue){var o,s,c,l,u=e.pstyle("text-halign"),h=e.pstyle("text-valign"),f=Lc(a,"labelWidth",n),d=Lc(a,"labelHeight",n),A=Lc(a,"labelX",n),g=Lc(a,"labelY",n),p=e.pstyle(r+"text-margin-x").pfValue,m=e.pstyle(r+"text-margin-y").pfValue,b=e.isEdge(),v=e.pstyle(r+"text-rotation"),y=e.pstyle("text-outline-width").pfValue,w=e.pstyle("text-border-width").pfValue/2,k=e.pstyle("text-background-padding").pfValue,C=2,x=d,E=f,T=E/2,B=x/2;if(b)o=A-T,s=A+T,c=g-B,l=g+B;else{switch(u.value){case"left":o=A-E,s=A;break;case"center":o=A-T,s=A+T;break;case"right":o=A,s=A+E}switch(h.value){case"top":c=g-x,l=g;break;case"center":c=g-B,l=g+B;break;case"bottom":c=g,l=g+x}}o+=p-Math.max(y,w)-k-C,s+=p+Math.max(y,w)+k+C,c+=m-Math.max(y,w)-k-C,l+=m+Math.max(y,w)+k+C;var _=n||"main",S=i.labelBounds,L=S[_]=S[_]||{};L.x1=o,L.y1=c,L.x2=s,L.y2=l,L.w=s-o,L.h=l-c;var I=b&&"autorotate"===v.strValue,M=null!=v.pfValue&&0!==v.pfValue;if(I||M){var O=I?Lc(i.rstyle,"labelAngle",n):v.pfValue,D=Math.cos(O),F=Math.sin(O),N=(o+s)/2,P=(c+l)/2;if(!b){switch(u.value){case"left":N=s;break;case"right":N=o}switch(h.value){case"top":P=l;break;case"bottom":P=c}}var R=function(t,e){return{x:(t-=N)*D-(e-=P)*F+N,y:t*F+e*D+P}},Q=R(o,c),U=R(o,l),$=R(s,c),H=R(s,l);o=Math.min(Q.x,U.x,$.x,H.x),s=Math.max(Q.x,U.x,$.x,H.x),c=Math.min(Q.y,U.y,$.y,H.y),l=Math.max(Q.y,U.y,$.y,H.y)}var j=_+"Rot",K=S[j]=S[j]||{};K.x1=o,K.y1=c,K.x2=s,K.y2=l,K.w=s-o,K.h=l-c,_c(t,o,c,s,l),_c(i.labelBounds.all,o,c,s,l)}return t}},Oc=function(t,e){if(!e.cy().headless()){var n=e.pstyle("outline-opacity").value,r=e.pstyle("outline-width").value;if(n>0&&r>0){var i=e.pstyle("outline-offset").value,a=e.pstyle("shape").value,o=r+i,s=(t.w+2*o)/t.w,c=(t.h+2*o)/t.h,l=0,u=0;["diamond","pentagon","round-triangle"].includes(a)?(s=(t.w+2.4*o)/t.w,u=-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,u=-o/3.8):"triangle"===a?(s=(t.w+2.8*o)/t.w,c=(t.h+2.4*o)/t.h,u=-o/1.4):"vee"===a&&(s=(t.w+4.4*o)/t.w,c=(t.h+3.8*o)/t.h,u=.5*-o);var h=t.h*c-t.h,f=t.w*s-t.w;if(Hn(t,[Math.ceil(h/2),Math.ceil(f/2)]),0!=l||0!==u){var d=Rn(t,l,u);Qn(t,d)}}}},Dc=function(t,e){var n,r,i,a,o,s,c=t._private.cy,l=c.styleEnabled(),u=c.headless(),h=Fn(),f=t._private,d=t.isNode(),A=t.isEdge(),g=f.rstyle,p=d&&l?t.pstyle("bounds-expansion").pfValue:[0],m=function(t){return"none"!==t.pstyle("display").value},b=!l||m(t)&&(!A||m(t.source())&&m(t.target()));if(b){var v=0;l&&e.includeOverlays&&0!==t.pstyle("overlay-opacity").value&&(v=t.pstyle("overlay-padding").value);var y=0;l&&e.includeUnderlays&&0!==t.pstyle("underlay-opacity").value&&(y=t.pstyle("underlay-padding").value);var w=Math.max(v,y),k=0;if(l&&(k=t.pstyle("width").pfValue/2),d&&e.includeNodes){var C=t.position();o=C.x,s=C.y;var x=t.outerWidth()/2,E=t.outerHeight()/2;_c(h,n=o-x,i=s-E,r=o+x,a=s+E),l&&e.includeOutlines&&Oc(h,t)}else if(A&&e.includeEdges)if(l&&!u){var T=t.pstyle("curve-style").strValue;if(n=Math.min(g.srcX,g.midX,g.tgtX),r=Math.max(g.srcX,g.midX,g.tgtX),i=Math.min(g.srcY,g.midY,g.tgtY),a=Math.max(g.srcY,g.midY,g.tgtY),_c(h,n-=k,i-=k,r+=k,a+=k),"haystack"===T){var B=g.haystackPts;if(B&&2===B.length){if(n=B[0].x,i=B[0].y,n>(r=B[1].x)){var _=n;n=r,r=_}if(i>(a=B[1].y)){var S=i;i=a,a=S}_c(h,n-k,i-k,r+k,a+k)}}else if("bezier"===T||"unbundled-bezier"===T||T.endsWith("segments")||T.endsWith("taxi")){var L;switch(T){case"bezier":case"unbundled-bezier":L=g.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":L=g.linePts}if(null!=L)for(var I=0;I<L.length;I++){var M=L[I];n=M.x-k,r=M.x+k,i=M.y-k,a=M.y+k,_c(h,n,i,r,a)}}}else{var O=t.source().position(),D=t.target().position();if((n=O.x)>(r=D.x)){var F=n;n=r,r=F}if((i=O.y)>(a=D.y)){var N=i;i=a,a=N}_c(h,n-=k,i-=k,r+=k,a+=k)}if(l&&e.includeEdges&&A&&(Ic(h,t,"mid-source"),Ic(h,t,"mid-target"),Ic(h,t,"source"),Ic(h,t,"target")),l&&"yes"===t.pstyle("ghost").value){var P=t.pstyle("ghost-offset-x").pfValue,R=t.pstyle("ghost-offset-y").pfValue;_c(h,h.x1+P,h.y1+R,h.x2+P,h.y2+R)}var Q=f.bodyBounds=f.bodyBounds||{};jn(Q,h),Hn(Q,p),$n(Q,1),l&&(n=h.x1,r=h.x2,i=h.y1,a=h.y2,_c(h,n-w,i-w,r+w,a+w));var U=f.overlayBounds=f.overlayBounds||{};jn(U,h),Hn(U,p),$n(U,1);var $=f.labelBounds=f.labelBounds||{};null!=$.all?Pn($.all):$.all=Fn(),l&&e.includeLabels&&(e.includeMainLabels&&Mc(h,t,null),A&&(e.includeSourceLabels&&Mc(h,t,"source"),e.includeTargetLabels&&Mc(h,t,"target")))}return h.x1=Bc(h.x1),h.y1=Bc(h.y1),h.x2=Bc(h.x2),h.y2=Bc(h.y2),h.w=Bc(h.x2-h.x1),h.h=Bc(h.y2-h.y1),h.w>0&&h.h>0&&b&&(Hn(h,p),$n(h,1)),h},Fc=function(t){var e=0,n=function(t){return(t?1:0)<<e++},r=0;return r+=n(t.incudeNodes),r+=n(t.includeEdges),r+=n(t.includeLabels),r+=n(t.includeMainLabels),r+=n(t.includeSourceLabels),r+=n(t.includeTargetLabels),r+=n(t.includeOverlays),r+=n(t.includeOutlines)},Nc=function(t){if(t.isEdge()){var e=t.source().position(),n=t.target().position(),r=function(t){return Math.round(t)};return ve([r(e.x),r(e.y),r(n.x),r(n.y)])}return 0},Pc=function(t,e){var n,r=t._private,i=t.isEdge(),a=(null==e?Qc:Fc(e))===Qc,o=Nc(t),s=r.bbCachePosKey===o,c=e.useCache&&s,l=function(t){return null==t._private.bbCache||t._private.styleDirty};if(!c||l(t)||i&&l(t.source())||l(t.target())?(s||t.recalculateRenderedStyle(c),n=Dc(t,Rc),r.bbCache=n,r.bbCachePosKey=o):n=r.bbCache,!a){var u=t.isNode();n=Fn(),(e.includeNodes&&u||e.includeEdges&&!u)&&(e.includeOverlays?Sc(n,r.overlayBounds):Sc(n,r.bodyBounds)),e.includeLabels&&(e.includeMainLabels&&(!i||e.includeSourceLabels&&e.includeTargetLabels)?Sc(n,r.labelBounds.all):(e.includeMainLabels&&Sc(n,r.labelBounds.mainRot),e.includeSourceLabels&&Sc(n,r.labelBounds.sourceRot),e.includeTargetLabels&&Sc(n,r.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},Rc={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},Qc=Fc(Rc),Uc=Ue(Rc);Ec.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=Fn();var n=Uc(t=t||Rc),r=this;if(r.cy().styleEnabled())for(var i=0;i<r.length;i++){var a=r[i],o=a._private,s=Nc(a),c=o.bbCachePosKey===s,l=n.useCache&&c&&!o.styleDirty;a.recalculateRenderedStyle(l)}this.updateCompoundBounds(!t.useCache);for(var u=0;u<r.length;u++){var h=r[u];Sc(e,Pc(h,n))}}else t=void 0===t?Rc:Uc(t),e=Pc(this[0],t);return e.x1=Bc(e.x1),e.y1=Bc(e.y1),e.x2=Bc(e.x2),e.y2=Bc(e.y2),e.w=Bc(e.x2-e.x1),e.h=Bc(e.y2-e.y1),e},Ec.dirtyBoundingBoxCache=function(){for(var t=0;t<this.length;t++){var e=this[t]._private;e.bbCache=null,e.bbCachePosKey=null,e.bodyBounds=null,e.overlayBounds=null,e.labelBounds.all=null,e.labelBounds.source=null,e.labelBounds.target=null,e.labelBounds.main=null,e.labelBounds.sourceRot=null,e.labelBounds.targetRot=null,e.labelBounds.mainRot=null,e.arrowBounds.source=null,e.arrowBounds.target=null,e.arrowBounds["mid-source"]=null,e.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},Ec.boundingBoxAt=function(t){var e=this.nodes(),n=this.cy(),r=n.hasCompoundNodes(),i=n.collection();if(r&&(i=e.filter((function(t){return t.isParent()})),e=e.not(i)),C(t)){var a=t;t=function(){return a}}var o=function(e,n){return e._private.bbAtOldPos=t(e,n)},s=function(t){return t._private.bbAtOldPos};n.startBatch(),e.forEach(o).silentPositions(t),r&&(i.dirtyCompoundBoundsCache(),i.dirtyBoundingBoxCache(),i.updateCompoundBounds(!0));var c=Nn(this.boundingBox({useCache:!1}));return e.silentPositions(s),r&&(i.dirtyCompoundBoundsCache(),i.dirtyBoundingBoxCache(),i.updateCompoundBounds(!0)),n.endBatch(),c},xc.boundingbox=xc.bb=xc.boundingBox,xc.renderedBoundingbox=xc.renderedBoundingBox;var $c,Hc,jc=Ec;$c=Hc={};var Kc=function(t){t.uppercaseName=j(t.name),t.autoName="auto"+t.uppercaseName,t.labelName="label"+t.uppercaseName,t.outerName="outer"+t.uppercaseName,t.uppercaseOuterName=j(t.outerName),$c[t.name]=function(){var e=this[0],n=e._private,r=n.cy._private.styleEnabled;if(e){if(r){if(e.isParent())return e.updateCompoundBounds(),n[t.autoName]||0;var i=e.pstyle(t.name);return"label"===i.strValue?(e.recalculateRenderedStyle(),n.rstyle[t.labelName]||0):i.pfValue}return 1}},$c["outer"+t.uppercaseName]=function(){var e=this[0],n=e._private.cy._private.styleEnabled;if(e)return n?e[t.name]()+e.pstyle("border-width").pfValue+2*e.padding():1},$c["rendered"+t.uppercaseName]=function(){var e=this[0];if(e)return e[t.name]()*this.cy().zoom()},$c["rendered"+t.uppercaseOuterName]=function(){var e=this[0];if(e)return e[t.outerName]()*this.cy().zoom()}};Kc({name:"width"}),Kc({name:"height"}),Hc.padding=function(){var t=this[0],e=t._private;return t.isParent()?(t.updateCompoundBounds(),void 0!==e.autoPadding?e.autoPadding:t.pstyle("padding").pfValue):t.pstyle("padding").pfValue},Hc.paddedHeight=function(){var t=this[0];return t.height()+2*t.padding()},Hc.paddedWidth=function(){var t=this[0];return t.width()+2*t.padding()};var zc=Hc,Gc=function(t,e){if(t.isEdge())return e(t)},Xc=function(t,e){if(t.isEdge()){var n=t.cy();return mn(e(t),n.zoom(),n.pan())}},Vc=function(t,e){if(t.isEdge()){var n=t.cy(),r=n.pan(),i=n.zoom();return e(t).map((function(t){return mn(t,i,r)}))}},Wc=function(t){return t.renderer().getControlPoints(t)},qc={controlPoints:{get:Wc,mult:!0},segmentPoints:{get:function(t){return t.renderer().getSegmentPoints(t)},mult:!0},sourceEndpoint:{get:function(t){return t.renderer().getSourceEndpoint(t)}},targetEndpoint:{get:function(t){return t.renderer().getTargetEndpoint(t)}},midpoint:{get:function(t){return t.renderer().getEdgeMidpoint(t)}}},Yc=function(t){return"rendered"+t[0].toUpperCase()+t.substr(1)},Jc=Object.keys(qc).reduce((function(t,e){var n=qc[e],r=Yc(e);return t[e]=function(){return Gc(this,n.get)},n.mult?t[r]=function(){return Vc(this,n.get)}:t[r]=function(){return Xc(this,n.get)},t}),{}),Zc=Z({},Tc,jc,zc,Jc),tl=function(t,e){this.recycle(t,e)};function el(){return!1}function nl(){return!0}tl.prototype={instanceString:function(){return"event"},recycle:function(t,e){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=el,null!=t&&t.preventDefault?(this.type=t.type,this.isDefaultPrevented=t.defaultPrevented?nl:el):null!=t&&t.type?e=t:this.type=t,null!=e&&(this.originalEvent=e.originalEvent,this.type=null!=e.type?e.type:this.type,this.cy=e.cy,this.target=e.target,this.position=e.position,this.renderedPosition=e.renderedPosition,this.namespace=e.namespace,this.layout=e.layout),null!=this.cy&&null!=this.position&&null==this.renderedPosition){var n=this.position,r=this.cy.zoom(),i=this.cy.pan();this.renderedPosition={x:n.x*r+i.x,y:n.y*r+i.y}}this.timeStamp=t&&t.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=nl;var t=this.originalEvent;t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){this.isPropagationStopped=nl;var t=this.originalEvent;t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=nl,this.stopPropagation()},isDefaultPrevented:el,isPropagationStopped:el,isImmediatePropagationStopped:el};var rl=/^([^.]+)(\.(?:[^.]+))?$/,il=".*",al={qualifierCompare:function(t,e){return t===e},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(t){return t},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},ol=Object.keys(al),sl={};function cl(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sl,e=arguments.length>1?arguments[1]:void 0,n=0;n<ol.length;n++){var r=ol[n];this[r]=t[r]||al[r]}this.context=e||this.context,this.listeners=[],this.emitting=0}var ll=cl.prototype,ul=function(t,e,n,r,i,a,o){w(r)&&(i=r,r=null),o&&(a=null==a?o:Z({},a,o));for(var s=k(n)?n:n.split(/\s+/),c=0;c<s.length;c++){var l=s[c];if(!D(l)){var u=l.match(rl);if(u&&!1===e(t,l,u[1],u[2]?u[2]:null,r,i,a))break}}},hl=function(t,e){return t.addEventFields(t.context,e),new tl(e.type,e)},fl=function(t,e,n){if(O(n))e(t,n);else if(C(n))e(t,hl(t,n));else for(var r=k(n)?n:n.split(/\s+/),i=0;i<r.length;i++){var a=r[i];if(!D(a)){var o=a.match(rl);if(o){var s=o[1],c=o[2]?o[2]:null;e(t,hl(t,{type:s,namespace:c,target:t.context}))}}}};ll.on=ll.addListener=function(t,e,n,r,i){return ul(this,(function(t,e,n,r,i,a,o){w(a)&&t.listeners.push({event:e,callback:a,type:n,namespace:r,qualifier:i,conf:o})}),t,e,n,r,i),this},ll.one=function(t,e,n,r){return this.on(t,e,n,r,{one:!0})},ll.removeListener=ll.off=function(t,e,n,r){var i=this;0!==this.emitting&&(this.listeners=Ne(this.listeners));for(var a=this.listeners,o=function(o){var s=a[o];ul(i,(function(e,n,r,i,c,l){if((s.type===r||"*"===t)&&(!i&&".*"!==s.namespace||s.namespace===i)&&(!c||e.qualifierCompare(s.qualifier,c))&&(!l||s.callback===l))return a.splice(o,1),!1}),t,e,n,r)},s=a.length-1;s>=0;s--)o(s);return this},ll.removeAllListeners=function(){return this.removeListener("*")},ll.emit=ll.trigger=function(t,e,n){var r=this.listeners,i=r.length;return this.emitting++,k(e)||(e=[e]),fl(this,(function(t,a){null!=n&&(r=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}],i=r.length);for(var o=function(n){var i=r[n];if(i.type===a.type&&(!i.namespace||i.namespace===a.namespace||i.namespace===il)&&t.eventMatches(t.context,i,a)){var o=[a];null!=e&&je(o,e),t.beforeEmit(t.context,i,a),i.conf&&i.conf.one&&(t.listeners=t.listeners.filter((function(t){return t!==i})));var s=t.callbackContext(t.context,i,a),c=i.callback.apply(s,o);t.afterEmit(t.context,i,a),!1===c&&(a.stopPropagation(),a.preventDefault())}},s=0;s<i;s++)o(s);t.bubble(t.context)&&!a.isPropagationStopped()&&t.parent(t.context).emit(a,e)}),t),this.emitting--,this};var dl={qualifierCompare:function(t,e){return null==t||null==e?null==t&&null==e:t.sameText(e)},eventMatches:function(t,e,n){var r=e.qualifier;return null==r||t!==n.target&&S(n.target)&&r.matches(n.target)},addEventFields:function(t,e){e.cy=t.cy(),e.target=t},callbackContext:function(t,e,n){return null!=e.qualifier?n.target:t},beforeEmit:function(t,e){e.conf&&e.conf.once&&e.conf.onceCollection.removeListener(e.event,e.qualifier,e.callback)},bubble:function(){return!0},parent:function(t){return t.isChild()?t.parent():t.cy()}},Al=function(t){return y(t)?new ac(t):t},gl={createEmitter:function(){for(var t=0;t<this.length;t++){var e=this[t],n=e._private;n.emitter||(n.emitter=new cl(dl,e))}return this},emitter:function(){return this._private.emitter},on:function(t,e,n){for(var r=Al(e),i=0;i<this.length;i++)this[i].emitter().on(t,r,n);return this},removeListener:function(t,e,n){for(var r=Al(e),i=0;i<this.length;i++)this[i].emitter().removeListener(t,r,n);return this},removeAllListeners:function(){for(var t=0;t<this.length;t++)this[t].emitter().removeAllListeners();return this},one:function(t,e,n){for(var r=Al(e),i=0;i<this.length;i++)this[i].emitter().one(t,r,n);return this},once:function(t,e,n){for(var r=Al(e),i=0;i<this.length;i++)this[i].emitter().on(t,r,n,{once:!0,onceCollection:this})},emit:function(t,e){for(var n=0;n<this.length;n++)this[n].emitter().emit(t,e);return this},emitAndNotify:function(t,e){if(0!==this.length)return this.cy().notify(t,this),this.emit(t,e),this}};Ms.eventAliasesOn(gl);var pl={nodes:function(t){return this.filter((function(t){return t.isNode()})).filter(t)},edges:function(t){return this.filter((function(t){return t.isEdge()})).filter(t)},byGroup:function(){for(var t=this.spawn(),e=this.spawn(),n=0;n<this.length;n++){var r=this[n];r.isNode()?t.push(r):e.push(r)}return{nodes:t,edges:e}},filter:function(t,e){if(void 0===t)return this;if(y(t)||_(t))return new ac(t).filter(this);if(w(t)){for(var n=this.spawn(),r=this,i=0;i<r.length;i++){var a=r[i];(e?t.apply(e,[a,i,r]):t(a,i,r))&&n.push(a)}return n}return this.spawn()},not:function(t){if(t){y(t)&&(t=this.filter(t));for(var e=this.spawn(),n=0;n<this.length;n++){var r=this[n];t.has(r)||e.push(r)}return e}return this},absoluteComplement:function(){return this.cy().mutableElements().not(this)},intersect:function(t){if(y(t)){var e=t;return this.filter(e)}for(var n=this.spawn(),r=this,i=t,a=this.length<t.length,o=a?r:i,s=a?i:r,c=0;c<o.length;c++){var l=o[c];s.has(l)&&n.push(l)}return n},xor:function(t){var e=this._private.cy;y(t)&&(t=e.$(t));var n=this.spawn(),r=this,i=t,a=function(t,e){for(var r=0;r<t.length;r++){var i=t[r],a=i._private.data.id;e.hasElementWithId(a)||n.push(i)}};return a(r,i),a(i,r),n},diff:function(t){var e=this._private.cy;y(t)&&(t=e.$(t));var n=this.spawn(),r=this.spawn(),i=this.spawn(),a=this,o=t,s=function(t,e,n){for(var r=0;r<t.length;r++){var a=t[r],o=a._private.data.id;e.hasElementWithId(o)?i.merge(a):n.push(a)}};return s(a,o,n),s(o,a,r),{left:n,right:r,both:i}},add:function(t){var e=this._private.cy;if(!t)return this;if(y(t)){var n=t;t=e.mutableElements().filter(n)}for(var r=this.spawnSelf(),i=0;i<t.length;i++){var a=t[i],o=!this.has(a);o&&r.push(a)}return r},merge:function(t){var e=this._private,n=e.cy;if(!t)return this;if(t&&y(t)){var r=t;t=n.mutableElements().filter(r)}for(var i=e.map,a=0;a<t.length;a++){var o=t[a],s=o._private.data.id;if(!i.has(s)){var c=this.length++;this[c]=o,i.set(s,{ele:o,index:c})}}return this},unmergeAt:function(t){var e=this[t].id(),n=this._private.map;this[t]=void 0,n.delete(e);var r=t===this.length-1;if(this.length>1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=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,r=e.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(t){var e=this._private.cy;if(!t)return this;if(t&&y(t)){var n=t;t=e.mutableElements().filter(n)}for(var r=0;r<t.length;r++)this.unmergeOne(t[r]);return this},unmergeBy:function(t){for(var e=this.length-1;e>=0;e--)t(this[e])&&this.unmergeAt(e);return this},map:function(t,e){for(var n=[],r=this,i=0;i<r.length;i++){var a=r[i],o=e?t.apply(e,[a,i,r]):t(a,i,r);n.push(o)}return n},reduce:function(t,e){for(var n=e,r=this,i=0;i<r.length;i++)n=t(n,r[i],i,r);return n},max:function(t,e){for(var n,r=-1/0,i=this,a=0;a<i.length;a++){var o=i[a],s=e?t.apply(e,[o,a,i]):t(o,a,i);s>r&&(r=s,n=o)}return{value:r,ele:n}},min:function(t,e){for(var n,r=1/0,i=this,a=0;a<i.length;a++){var o=i[a],s=e?t.apply(e,[o,a,i]):t(o,a,i);s<r&&(r=s,n=o)}return{value:r,ele:n}}},ml=pl;ml.u=ml["|"]=ml["+"]=ml.union=ml.or=ml.add,ml["\\"]=ml["!"]=ml["-"]=ml.difference=ml.relativeComplement=ml.subtract=ml.not,ml.n=ml["&"]=ml["."]=ml.and=ml.intersection=ml.intersect,ml["^"]=ml["(+)"]=ml["(-)"]=ml.symmetricDifference=ml.symdiff=ml.xor,ml.fnFilter=ml.filterFn=ml.stdFilter=ml.filter,ml.complement=ml.abscomp=ml.absoluteComplement;var bl={isNode:function(){return"nodes"===this.group()},isEdge:function(){return"edges"===this.group()},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var t=this[0];if(t)return t._private.group}},vl=function(t,e){var n=t.cy().hasCompoundNodes();function r(t){var e=t.pstyle("z-compound-depth");return"auto"===e.value?n?t.zDepth():0:"bottom"===e.value?-1:"top"===e.value?Te:0}var i=r(t)-r(e);if(0!==i)return i;function a(t){return"auto"===t.pstyle("z-index-compare").value&&t.isNode()?1:0}var o=a(t)-a(e);if(0!==o)return o;var s=t.pstyle("z-index").value-e.pstyle("z-index").value;return 0!==s?s:t.poolIndex()-e.poolIndex()},yl={forEach:function(t,e){if(w(t))for(var n=this.length,r=0;r<n;r++){var i=this[r];if(!1===(e?t.apply(e,[i,r,this]):t(i,r,this)))break}return this},toArray:function(){for(var t=[],e=0;e<this.length;e++)t.push(this[e]);return t},slice:function(t,e){var n=[],r=this.length;null==e&&(e=r),null==t&&(t=0),t<0&&(t=r+t),e<0&&(e=r+e);for(var i=t;i>=0&&i<e&&i<r;i++)n.push(this[i]);return this.spawn(n)},size:function(){return this.length},eq:function(t){return this[t]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return 0===this.length},nonempty:function(){return!this.empty()},sort:function(t){if(!w(t))return this;var e=this.toArray().sort(t);return this.spawn(e)},sortByZIndex:function(){return this.sort(vl)},zDepth:function(){var t=this[0];if(t){var e=t._private;if("nodes"===e.group){var n=e.data.parent?t.parents().size():0;return t.isParent()?n:Te-1}var r=e.source,i=e.target,a=r.zDepth(),o=i.zDepth();return Math.max(a,o,0)}}};yl.each=yl.forEach;var wl=function(){var e="undefined";("undefined"==typeof Symbol?"undefined":t(Symbol))!=e&&t(Symbol.iterator)!=e&&(yl[Symbol.iterator]=function(){var t=this,e={value:void 0,done:!1},n=0,r=this.length;return a({next:function(){return n<r?e.value=t[n++]:(e.value=void 0,e.done=!0),e}},Symbol.iterator,(function(){return this}))})};wl();var kl=Ue({nodeDimensionsIncludeLabels:!1}),Cl={layoutDimensions:function(t){var e;if(t=kl(t),this.takesUpSpace())if(t.nodeDimensionsIncludeLabels){var n=this.boundingBox();e={w:n.w,h:n.h}}else e={w:this.outerWidth(),h:this.outerHeight()};else e={w:0,h:0};return 0!==e.w&&0!==e.h||(e.w=e.h=1),e},layoutPositions:function(t,e,n){var r=this.nodes().filter((function(t){return!t.isParent()})),i=this.cy(),a=e.eles,o=function(t){return t.id()},s=Q(n,o);t.emit({type:"layoutstart",layout:t}),t.animations=[];var c=function(t,e,n){var r={x:e.x1+e.w/2,y:e.y1+e.h/2},i={x:(n.x-r.x)*t,y:(n.y-r.y)*t};return{x:r.x+i.x,y:r.y+i.y}},l=e.spacingFactor&&1!==e.spacingFactor,u=function(){if(!l)return null;for(var t=Fn(),e=0;e<r.length;e++){var n=r[e],i=s(n,e);Un(t,i.x,i.y)}return t},h=u(),f=Q((function(t,n){var r=s(t,n);if(l){var i=Math.abs(e.spacingFactor);r=c(i,h,r)}return null!=e.transform&&(r=e.transform(t,r)),r}),o);if(e.animate){for(var d=0;d<r.length;d++){var A=r[d],g=f(A,d);if(null==e.animateFilter||e.animateFilter(A,d)){var p=A.animation({position:g,duration:e.animationDuration,easing:e.animationEasing});t.animations.push(p)}else A.position(g)}if(e.fit){var m=i.animation({fit:{boundingBox:a.boundingBoxAt(f),padding:e.padding},duration:e.animationDuration,easing:e.animationEasing});t.animations.push(m)}else if(void 0!==e.zoom&&void 0!==e.pan){var b=i.animation({zoom:e.zoom,pan:e.pan,duration:e.animationDuration,easing:e.animationEasing});t.animations.push(b)}t.animations.forEach((function(t){return t.play()})),t.one("layoutready",e.ready),t.emit({type:"layoutready",layout:t}),Wi.all(t.animations.map((function(t){return t.promise()}))).then((function(){t.one("layoutstop",e.stop),t.emit({type:"layoutstop",layout:t})}))}else r.positions(f),e.fit&&i.fit(e.eles,e.padding),null!=e.zoom&&i.zoom(e.zoom),e.pan&&i.pan(e.pan),t.one("layoutready",e.ready),t.emit({type:"layoutready",layout:t}),t.one("layoutstop",e.stop),t.emit({type:"layoutstop",layout:t});return this},layout:function(t){return this.cy().makeLayout(Z({},t,{eles:this}))}};function xl(t,e,n){var r,i=n._private,a=i.styleCache=i.styleCache||[];return null!=(r=a[t])?r:r=a[t]=e(n)}function El(t,e){return t=ye(t),function(n){return xl(t,e,n)}}function Tl(t,e){t=ye(t);var n=function(t){return e.call(t)};return function(){var e=this[0];if(e)return xl(t,n,e)}}Cl.createLayout=Cl.makeLayout=Cl.layout;var Bl={recalculateRenderedStyle:function(t){var e=this.cy(),n=e.renderer(),r=e.styleEnabled();return n&&r&&n.recalculateRenderedStyle(this,t),this},dirtyStyleCache:function(){var t,e=this.cy(),n=function(t){return t._private.styleCache=null};return e.hasCompoundNodes()?((t=this.spawnSelf().merge(this.descendants()).merge(this.parents())).merge(t.connectedEdges()),t.forEach(n)):this.forEach((function(t){n(t),t.connectedEdges().forEach(n)})),this},updateStyle:function(t){var e=this._private.cy;if(!e.styleEnabled())return this;if(e.batching())return e._private.batchStyleEles.merge(this),this;var n=this;t=!(!t&&void 0!==t),e.hasCompoundNodes()&&(n=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var r=n;return t?r.emitAndNotify("style"):r.emit("style"),n.forEach((function(t){return t._private.styleDirty=!0})),this},cleanStyle:function(){var t=this.cy();if(t.styleEnabled())for(var e=0;e<this.length;e++){var n=this[e];n._private.styleDirty&&(n._private.styleDirty=!1,t.style().apply(n))}},parsedStyle:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this[0],r=n.cy();if(r.styleEnabled()&&n){this.cleanStyle();var i=n._private.style[t];return null!=i?i:e?r.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())return e?e.pstyle(t).units:void 0},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 r=!1,i=n.style();if(C(t)){var a=t;i.applyBypass(this,a,r),this.emitAndNotify("style")}else if(y(t)){if(void 0===e){var o=this[0];return o?i.getStylePropertyValue(o,t):void 0}i.applyBypass(this,t,e,r),this.emitAndNotify("style")}else if(void 0===t){var s=this[0];return s?i.getRawStyle(s):void 0}return this},removeStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=!1,r=e.style(),i=this;if(void 0===t)for(var a=0;a<i.length;a++){var o=i[a];r.removeAllBypasses(o,n)}else{t=t.split(/\s+/);for(var s=0;s<i.length;s++){var c=i[s];r.removeBypasses(c,t,n)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var t=this.cy();if(!t.styleEnabled())return 1;var e=t.hasCompoundNodes(),n=this[0];if(n){var r=n._private,i=n.pstyle("opacity").value;if(!e)return i;var a=r.data.parent?n.parents():null;if(a)for(var o=0;o<a.length;o++)i*=a[o].pstyle("opacity").value;return i}},transparent:function(){if(!this.cy().styleEnabled())return!1;var t=this[0],e=t.cy().hasCompoundNodes();return t?e?0===t.effectiveOpacity():0===t.pstyle("opacity").value:void 0},backgrounding:function(){return!!this.cy().styleEnabled()&&!!this[0]._private.backgrounding}};function _l(t,e){var n=t._private.data.parent?t.parents():null;if(n)for(var r=0;r<n.length;r++)if(!e(n[r]))return!1;return!0}function Sl(t){var e=t.ok,n=t.edgeOkViaNode||t.ok,r=t.parentOk||t.ok;return function(){var t=this.cy();if(!t.styleEnabled())return!0;var i=this[0],a=t.hasCompoundNodes();if(i){var o=i._private;if(!e(i))return!1;if(i.isNode())return!a||_l(i,r);var s=o.source,c=o.target;return n(s)&&(!a||_l(s,n))&&(s===c||n(c)&&(!a||_l(c,n)))}}}var Ll=El("eleTakesUpSpace",(function(t){return"element"===t.pstyle("display").value&&0!==t.width()&&(!t.isNode()||0!==t.height())}));Bl.takesUpSpace=Tl("takesUpSpace",Sl({ok:Ll}));var Il=El("eleInteractive",(function(t){return"yes"===t.pstyle("events").value&&"visible"===t.pstyle("visibility").value&&Ll(t)})),Ml=El("parentInteractive",(function(t){return"visible"===t.pstyle("visibility").value&&Ll(t)}));Bl.interactive=Tl("interactive",Sl({ok:Il,parentOk:Ml,edgeOkViaNode:Ll})),Bl.noninteractive=function(){var t=this[0];if(t)return!t.interactive()};var Ol=El("eleVisible",(function(t){return"visible"===t.pstyle("visibility").value&&0!==t.pstyle("opacity").pfValue&&Ll(t)})),Dl=Ll;Bl.visible=Tl("visible",Sl({ok:Ol,edgeOkViaNode:Dl})),Bl.hidden=function(){var t=this[0];if(t)return!t.visible()},Bl.isBundledBezier=Tl("isBundledBezier",(function(){return!!this.cy().styleEnabled()&&!this.removed()&&"bezier"===this.pstyle("curve-style").value&&this.takesUpSpace()})),Bl.bypass=Bl.css=Bl.style,Bl.renderedCss=Bl.renderedStyle,Bl.removeBypass=Bl.removeCss=Bl.removeStyle,Bl.pstyle=Bl.parsedStyle;var Fl={};function Nl(t){return function(){var e=arguments,n=[];if(2===e.length){var r=e[0],i=e[1];this.on(t.event,r,i)}else if(1===e.length&&w(e[0])){var a=e[0];this.on(t.event,a)}else if(0===e.length||1===e.length&&k(e[0])){for(var o=1===e.length?e[0]:null,s=0;s<this.length;s++){var c=this[s],l=!t.ableField||c._private[t.ableField],u=c._private[t.field]!=t.value;if(t.overrideAble){var h=t.overrideAble(c);if(void 0!==h&&(l=h,!h))return this}l&&(c._private[t.field]=t.value,u&&n.push(c))}var f=this.spawn(n);f.updateStyle(),f.emit(t.event),o&&f.emit(o)}return this}}function Pl(t){Fl[t.field]=function(){var e=this[0];if(e){if(t.overrideField){var n=t.overrideField(e);if(void 0!==n)return n}return e._private[t.field]}},Fl[t.on]=Nl({event:t.on,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!0}),Fl[t.off]=Nl({event:t.off,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!1})}Pl({field:"locked",overrideField:function(t){return!!t.cy().autolock()||void 0},on:"lock",off:"unlock"}),Pl({field:"grabbable",overrideField:function(t){return!t.cy().autoungrabify()&&!t.pannable()&&void 0},on:"grabify",off:"ungrabify"}),Pl({field:"selected",ableField:"selectable",overrideAble:function(t){return!t.cy().autounselectify()&&void 0},on:"select",off:"unselect"}),Pl({field:"selectable",overrideField:function(t){return!t.cy().autounselectify()&&void 0},on:"selectify",off:"unselectify"}),Fl.deselect=Fl.unselect,Fl.grabbed=function(){var t=this[0];if(t)return t._private.grabbed},Pl({field:"active",on:"activate",off:"unactivate"}),Pl({field:"pannable",on:"panify",off:"unpanify"}),Fl.inactive=function(){var t=this[0];if(t)return!t._private.active};var Rl={},Ql=function(t){return function(e){for(var n=this,r=[],i=0;i<n.length;i++){var a=n[i];if(a.isNode()){for(var o=!1,s=a.connectedEdges(),c=0;c<s.length;c++){var l=s[c],u=l.source(),h=l.target();if(t.noIncomingEdges&&h===a&&u!==a||t.noOutgoingEdges&&u===a&&h!==a){o=!0;break}}o||r.push(a)}}return this.spawn(r,!0).filter(e)}},Ul=function(t){return function(e){for(var n=this,r=[],i=0;i<n.length;i++){var a=n[i];if(a.isNode())for(var o=a.connectedEdges(),s=0;s<o.length;s++){var c=o[s],l=c.source(),u=c.target();t.outgoing&&l===a?(r.push(c),r.push(u)):t.incoming&&u===a&&(r.push(c),r.push(l))}}return this.spawn(r,!0).filter(e)}},$l=function(t){return function(e){for(var n=this,r=[],i={};;){var a=t.outgoing?n.outgoers():n.incomers();if(0===a.length)break;for(var o=!1,s=0;s<a.length;s++){var c=a[s],l=c.id();i[l]||(i[l]=!0,r.push(c),o=!0)}if(!o)break;n=a}return this.spawn(r,!0).filter(e)}};function Hl(t){return function(e){for(var n=[],r=0;r<this.length;r++){var i=this[r]._private[t.attr];i&&n.push(i)}return this.spawn(n,!0).filter(e)}}function jl(t){return function(e){var n=[],r=this._private.cy,i=t||{};y(e)&&(e=r.$(e));for(var a=0;a<e.length;a++)for(var o=e[a]._private.edges,s=0;s<o.length;s++){var c=o[s],l=c._private.data,u=this.hasElementWithId(l.source)&&e.hasElementWithId(l.target),h=e.hasElementWithId(l.source)&&this.hasElementWithId(l.target);if(u||h){if(i.thisIsSrc||i.thisIsTgt){if(i.thisIsSrc&&!u)continue;if(i.thisIsTgt&&!h)continue}n.push(c)}}return this.spawn(n,!0)}}function Kl(t){return t=Z({},{codirected:!1},t),function(e){for(var n=[],r=this.edges(),i=t,a=0;a<r.length;a++)for(var o=r[a]._private,s=o.source,c=s._private.data.id,l=o.data.target,u=s._private.edges,h=0;h<u.length;h++){var f=u[h],d=f._private.data,A=d.target,g=d.source,p=A===l&&g===c,m=c===A&&l===g;(i.codirected&&p||!i.codirected&&(p||m))&&n.push(f)}return this.spawn(n,!0).filter(e)}}Rl.clearTraversalCache=function(){for(var t=0;t<this.length;t++)this[t]._private.traversalCache=null},Z(Rl,{roots:Ql({noIncomingEdges:!0}),leaves:Ql({noOutgoingEdges:!0}),outgoers:uc(Ul({outgoing:!0}),"outgoers"),successors:$l({outgoing:!0}),incomers:uc(Ul({incoming:!0}),"incomers"),predecessors:$l({incoming:!0})}),Z(Rl,{neighborhood:uc((function(t){for(var e=[],n=this.nodes(),r=0;r<n.length;r++)for(var i=n[r],a=i.connectedEdges(),o=0;o<a.length;o++){var s=a[o],c=s.source(),l=s.target(),u=i===c?l:c;u.length>0&&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)}}),Rl.neighbourhood=Rl.neighborhood,Rl.closedNeighbourhood=Rl.closedNeighborhood,Rl.openNeighbourhood=Rl.openNeighborhood,Z(Rl,{source:uc((function(t){var e,n=this[0];return n&&(e=n._private.source||n.cy().collection()),e&&t?e.filter(t):e}),"source"),target:uc((function(t){var e,n=this[0];return n&&(e=n._private.target||n.cy().collection()),e&&t?e.filter(t):e}),"target"),sources:Hl({attr:"source"}),targets:Hl({attr:"target"})}),Z(Rl,{edgesWith:uc(jl(),"edgesWith"),edgesTo:uc(jl({thisIsSrc:!0}),"edgesTo")}),Z(Rl,{connectedEdges:uc((function(t){for(var e=[],n=this,r=0;r<n.length;r++){var i=n[r];if(i.isNode())for(var a=i._private.edges,o=0;o<a.length;o++){var s=a[o];e.push(s)}}return this.spawn(e,!0).filter(t)}),"connectedEdges"),connectedNodes:uc((function(t){for(var e=[],n=this,r=0;r<n.length;r++){var i=n[r];i.isEdge()&&(e.push(i.source()[0]),e.push(i.target()[0]))}return this.spawn(e,!0).filter(t)}),"connectedNodes"),parallelEdges:uc(Kl(),"parallelEdges"),codirectedEdges:uc(Kl({codirected:!0}),"codirectedEdges")}),Z(Rl,{components:function(t){var e=this,n=e.cy(),r=n.collection(),i=null==t?e.nodes():t.nodes(),a=[];null!=t&&i.empty()&&(i=t.sources());var o=function(t,e){r.merge(t),i.unmerge(t),e.merge(t)};if(i.empty())return e.spawn();var s=function(){var t=n.collection();a.push(t);var r=i[0];o(r,t),e.bfs({directed:!1,roots:r,visit:function(e){return o(e,t)}}),t.forEach((function(n){n.connectedEdges().forEach((function(n){e.has(n)&&t.has(n.source())&&t.has(n.target())&&t.merge(n)}))}))};do{s()}while(i.length>0);return a},component:function(){var t=this[0];return t.cy().mutableElements().components(t)[0]}}),Rl.componentsOf=Rl.components;var zl=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==t){var i=new Xe,a=!1;if(e){if(e.length>0&&C(e[0])&&!S(e[0])){a=!0;for(var o=[],s=new qe,c=0,l=e.length;c<l;c++){var u=e[c];null==u.data&&(u.data={});var h=u.data;if(null==h.id)h.id=Pe();else if(t.hasElementWithId(h.id)||s.has(h.id))continue;var f=new Ye(t,u,!1);o.push(f),s.add(h.id)}e=o}}else e=[];this.length=0;for(var d=0,A=e.length;d<A;d++){var g=e[d][0];if(null!=g){var p=g._private.data.id;n&&i.has(p)||(n&&i.set(p,{index:this.length,ele:g}),this[this.length]=g,this.length++)}}this._private={eles:this,cy:t,get map(){return null==this.lazyMap&&this.rebuildMap(),this.lazyMap},set map(t){this.lazyMap=t},rebuildMap:function(){for(var t=this.lazyMap=new Xe,e=this.eles,n=0;n<e.length;n++){var r=e[n];t.set(r.id(),{index:n,ele:r})}}},n&&(this._private.map=i),a&&!r&&this.restore()}else Ie("A collection must have a reference to the core")},Gl=Ye.prototype=zl.prototype=Object.create(Array.prototype);Gl.instanceString=function(){return"collection"},Gl.spawn=function(t,e){return new zl(this.cy(),t,e)},Gl.spawnSelf=function(){return this.spawn(this)},Gl.cy=function(){return this._private.cy},Gl.renderer=function(){return this._private.cy.renderer()},Gl.element=function(){return this[0]},Gl.collection=function(){return L(this)?this:new zl(this._private.cy,[this])},Gl.unique=function(){return new zl(this._private.cy,this,!0)},Gl.hasElementWithId=function(t){return t=""+t,this._private.map.has(t)},Gl.getElementById=function(t){t=""+t;var e=this._private.cy,n=this._private.map.get(t);return n?n.ele:new zl(e)},Gl.$id=Gl.getElementById,Gl.poolIndex=function(){var t=this._private.cy._private.elements,e=this[0]._private.data.id;return t._private.map.get(e).index},Gl.indexOf=function(t){var e=t[0]._private.data.id;return this._private.map.get(e).index},Gl.indexOfId=function(t){return t=""+t,this._private.map.get(t).index},Gl.json=function(t){var e=this.element(),n=this.cy();if(null==e&&t)return this;if(null!=e){var r=e._private;if(C(t)){if(n.startBatch(),t.data){e.data(t.data);var i=r.data;if(e.isEdge()){var a=!1,o={},s=t.data.source,c=t.data.target;null!=s&&s!=i.source&&(o.source=""+s,a=!0),null!=c&&c!=i.target&&(o.target=""+c,a=!0),a&&(e=e.move(o))}else{var l="parent"in t.data,u=t.data.parent;!l||null==u&&null==i.parent||u==i.parent||(void 0===u&&(u=null),null!=u&&(u=""+u),e=e.move({parent:u}))}}t.position&&e.position(t.position);var h=function(n,i,a){var o=t[n];null!=o&&o!==r[n]&&(o?e[i]():e[a]())};return h("removed","remove","restore"),h("selected","select","unselect"),h("selectable","selectify","unselectify"),h("locked","lock","unlock"),h("grabbable","grabify","ungrabify"),h("pannable","panify","unpanify"),null!=t.classes&&e.classes(t.classes),n.endBatch(),this}if(void 0===t){var f={data:Fe(r.data),position:Fe(r.position),group:r.group,removed:r.removed,selected:r.selected,selectable:r.selectable,locked:r.locked,grabbable:r.grabbable,pannable:r.pannable,classes:null};f.classes="";var d=0;return r.classes.forEach((function(t){return f.classes+=0==d++?t:" "+t})),f}}},Gl.jsons=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e].json();t.push(n)}return t},Gl.clone=function(){for(var t=this.cy(),e=[],n=0;n<this.length;n++){var r=this[n].json(),i=new Ye(t,r,!1);e.push(i)}return new zl(t,e)},Gl.copy=Gl.clone,Gl.restore=function(){for(var t,e,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,a=i.cy(),o=a._private,s=[],c=[],l=0,u=i.length;l<u;l++){var h=i[l];r&&!h.removed()||(h.isNode()?s.push(h):c.push(h))}t=s.concat(c);var f=function(){t.splice(e,1),e--};for(e=0;e<t.length;e++){var d=t[e],A=d._private,g=A.data;if(d.clearTraversalCache(),r||A.removed)if(void 0===g.id)g.id=Pe();else if(E(g.id))g.id=""+g.id;else{if(D(g.id)||!y(g.id)){Ie("Can not create element with invalid string ID `"+g.id+"`"),f();continue}if(a.hasElementWithId(g.id)){Ie("Can not create second element with ID `"+g.id+"`"),f();continue}}var p=g.id;if(d.isNode()){var m=A.position;null==m.x&&(m.x=0),null==m.y&&(m.y=0)}if(d.isEdge()){for(var b=d,v=["source","target"],w=v.length,k=!1,C=0;C<w;C++){var x=v[C],T=g[x];E(T)&&(T=g[x]=""+g[x]),null==T||""===T?(Ie("Can not create edge `"+p+"` with unspecified "+x),k=!0):a.hasElementWithId(T)||(Ie("Can not create edge `"+p+"` with nonexistant "+x+" `"+T+"`"),k=!0)}if(k){f();continue}var B=a.getElementById(g.source),_=a.getElementById(g.target);B.same(_)?B._private.edges.push(b):(B._private.edges.push(b),_._private.edges.push(b)),b._private.source=B,b._private.target=_}A.map=new Xe,A.map.set(p,{ele:d,index:0}),A.removed=!1,r&&a.addToPool(d)}for(var S=0;S<s.length;S++){var L=s[S],I=L._private.data;E(I.parent)&&(I.parent=""+I.parent);var M=I.parent;if(null!=M||L._private.parent){var O=L._private.parent?a.collection().merge(L._private.parent):a.getElementById(M);if(O.empty())I.parent=void 0;else if(O[0].removed())Oe("Node added with missing parent, reference to parent removed"),I.parent=void 0,L._private.parent=null;else{for(var F=!1,N=O;!N.empty();){if(L.same(N)){F=!0,I.parent=void 0;break}N=N.parent()}F||(O[0]._private.children.push(L),L._private.parent=O[0],o.hasCompoundNodes=!0)}}}if(t.length>0){for(var P=t.length===i.length?i:new zl(a,t),R=0;R<P.length;R++){var Q=P[R];Q.isNode()||(Q.parallelEdges().clearTraversalCache(),Q.source().clearTraversalCache(),Q.target().clearTraversalCache())}(o.hasCompoundNodes?a.collection().merge(P).merge(P.connectedNodes()).merge(P.parent()):P).dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(n),n?P.emitAndNotify("add"):r&&P.emit("add")}return i},Gl.removed=function(){var t=this[0];return t&&t._private.removed},Gl.inside=function(){var t=this[0];return t&&!t._private.removed},Gl.remove=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=[],i={},a=n._private.cy;function o(t){for(var e=t._private.edges,n=0;n<e.length;n++)c(e[n])}function s(t){for(var e=t._private.children,n=0;n<e.length;n++)c(e[n])}function c(t){var n=i[t.id()];e&&t.removed()||n||(i[t.id()]=!0,t.isNode()?(r.push(t),o(t),s(t)):r.unshift(t))}for(var l=0,u=n.length;l<u;l++)c(n[l]);function h(t,e){var n=t._private.edges;$e(n,e),t.clearTraversalCache()}function f(t){t.clearTraversalCache()}var d=[];function A(t,e){e=e[0];var n=(t=t[0])._private.children,r=t.id();$e(n,e),e._private.parent=null,d.ids[r]||(d.ids[r]=!0,d.push(t))}d.ids={},n.dirtyCompoundBoundsCache(),e&&a.removeFromPool(r);for(var g=0;g<r.length;g++){var p=r[g];if(p.isEdge()){var m=p.source()[0],b=p.target()[0];h(m,p),h(b,p);for(var v=p.parallelEdges(),y=0;y<v.length;y++){var w=v[y];f(w),w.isBundledBezier()&&w.dirtyBoundingBoxCache()}}else{var k=p.parent();0!==k.length&&A(k,p)}e&&(p._private.removed=!0)}var C=a._private.elements;a._private.hasCompoundNodes=!1;for(var x=0;x<C.length;x++)if(C[x].isParent()){a._private.hasCompoundNodes=!0;break}var E=new zl(this.cy(),r);E.size()>0&&(t?E.emitAndNotify("remove"):e&&E.emit("remove"));for(var T=0;T<d.length;T++){var B=d[T];e&&B.removed()||B.updateStyle()}return E},Gl.move=function(t){var e=this._private.cy,n=this,r=!1,i=!1,a=function(t){return null==t?t:""+t};if(void 0!==t.source||void 0!==t.target){var o=a(t.source),s=a(t.target),c=null!=o&&e.hasElementWithId(o),l=null!=s&&e.hasElementWithId(s);(c||l)&&(e.batch((function(){n.remove(r,i),n.emitAndNotify("moveout");for(var t=0;t<n.length;t++){var e=n[t],a=e._private.data;e.isEdge()&&(c&&(a.source=o),l&&(a.target=s))}n.restore(r,i)})),n.emitAndNotify("move"))}else if(void 0!==t.parent){var u=a(t.parent);if(null===u||e.hasElementWithId(u)){var h=null===u?void 0:u;e.batch((function(){var t=n.remove(r,i);t.emitAndNotify("moveout");for(var e=0;e<n.length;e++){var a=n[e],o=a._private.data;a.isNode()&&(o.parent=h)}t.restore(r,i)})),n.emitAndNotify("move")}}return this},[Qi,Os,Ds,sc,hc,bc,vc,Zc,gl,pl,bl,yl,Cl,Bl,Fl,Rl].forEach((function(t){Z(Gl,t)}));var Xl={add:function(t){var e,n=this;if(_(t)){var r=t;if(r._private.cy===n)e=r.restore();else{for(var i=[],a=0;a<r.length;a++){var o=r[a];i.push(o.json())}e=new zl(n,i)}}else if(k(t))e=new zl(n,t);else if(C(t)&&(k(t.nodes)||k(t.edges))){for(var s=t,c=[],l=["nodes","edges"],u=0,h=l.length;u<h;u++){var f=l[u],d=s[f];if(k(d))for(var A=0,g=d.length;A<g;A++){var p=Z({group:f},d[A]);c.push(p)}}e=new zl(n,c)}else e=new Ye(n,t).collection();return e},remove:function(t){if(_(t));else if(y(t)){var e=t;t=this.$(e)}return t.remove()}};function Vl(t,e,n,r){var i=4,a=.001,o=1e-7,s=10,c=11,l=1/(c-1),u="undefined"!=typeof Float32Array;if(4!==arguments.length)return!1;for(var h=0;h<4;++h)if("number"!=typeof arguments[h]||isNaN(arguments[h])||!isFinite(arguments[h]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var f=u?new Float32Array(c):new Array(c);function d(t,e){return 1-3*e+3*t}function A(t,e){return 3*e-6*t}function g(t){return 3*t}function p(t,e,n){return((d(e,n)*t+A(e,n))*t+g(e))*t}function m(t,e,n){return 3*d(e,n)*t*t+2*A(e,n)*t+g(e)}function b(e,r){for(var a=0;a<i;++a){var o=m(r,t,n);if(0===o)return r;r-=(p(r,t,n)-e)/o}return r}function v(){for(var e=0;e<c;++e)f[e]=p(e*l,t,n)}function y(e,r,i){var a,c,l=0;do{(a=p(c=r+(i-r)/2,t,n)-e)>0?i=c:r=c}while(Math.abs(a)>o&&++l<s);return c}function w(e){for(var r=0,i=1,o=c-1;i!==o&&f[i]<=e;++i)r+=l;--i;var s=r+(e-f[i])/(f[i+1]-f[i])*l,u=m(s,t,n);return u>=a?b(e,s):0===u?s:y(e,r,r+l)}var k=!1;function C(){k=!0,t===e&&n===r||v()}var x=function(i){return k||C(),t===e&&n===r?i:0===i?0:1===i?1:p(w(i),e,r)};x.getControlPoints=function(){return[{x:t,y:e},{x:n,y:r}]};var E="generateBezier("+[t,e,n,r]+")";return x.toString=function(){return E},x}var Wl=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,n,r){var i={x:e.x+r.dx*n,v:e.v+r.dv*n,tension:e.tension,friction:e.friction};return{dx:i.v,dv:t(i)}}function n(n,r){var i={dx:n.v,dv:t(n)},a=e(n,.5*r,i),o=e(n,.5*r,a),s=e(n,r,o),c=1/6*(i.dx+2*(a.dx+o.dx)+s.dx),l=1/6*(i.dv+2*(a.dv+o.dv)+s.dv);return n.x=n.x+c*r,n.v=n.v+l*r,n}return function t(e,r,i){var a,o,s,c={x:-1,v:0,tension:null,friction:null},l=[0],u=0,h=1e-4,f=.016;for(e=parseFloat(e)||500,r=parseFloat(r)||20,i=i||null,c.tension=e,c.friction=r,o=(a=null!==i)?(u=t(e,r))/i*f:f;s=n(s||c,o),l.push(1+s.x),u+=16,Math.abs(s.x)>h&&Math.abs(s.v)>h;);return a?function(t){return l[t*(l.length-1)|0]}:u}}(),ql=function(t,e,n,r){var i=Vl(t,e,n,r);return function(t,e,n){return t+(e-t)*i(n)}},Yl={linear:function(t,e,n){return t+(e-t)*n},ease:ql(.25,.1,.25,1),"ease-in":ql(.42,0,1,1),"ease-out":ql(0,0,.58,1),"ease-in-out":ql(.42,0,.58,1),"ease-in-sine":ql(.47,0,.745,.715),"ease-out-sine":ql(.39,.575,.565,1),"ease-in-out-sine":ql(.445,.05,.55,.95),"ease-in-quad":ql(.55,.085,.68,.53),"ease-out-quad":ql(.25,.46,.45,.94),"ease-in-out-quad":ql(.455,.03,.515,.955),"ease-in-cubic":ql(.55,.055,.675,.19),"ease-out-cubic":ql(.215,.61,.355,1),"ease-in-out-cubic":ql(.645,.045,.355,1),"ease-in-quart":ql(.895,.03,.685,.22),"ease-out-quart":ql(.165,.84,.44,1),"ease-in-out-quart":ql(.77,0,.175,1),"ease-in-quint":ql(.755,.05,.855,.06),"ease-out-quint":ql(.23,1,.32,1),"ease-in-out-quint":ql(.86,0,.07,1),"ease-in-expo":ql(.95,.05,.795,.035),"ease-out-expo":ql(.19,1,.22,1),"ease-in-out-expo":ql(1,0,0,1),"ease-in-circ":ql(.6,.04,.98,.335),"ease-out-circ":ql(.075,.82,.165,1),"ease-in-out-circ":ql(.785,.135,.15,.86),spring:function(t,e,n){if(0===n)return Yl.linear;var r=Wl(t,e,n);return function(t,e,n){return t+(e-t)*r(n)}},"cubic-bezier":ql};function Jl(t,e,n,r,i){if(1===r)return n;if(e===n)return n;var a=i(e,n,r);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 Zl(t,e){return null!=t.pfValue||null!=t.value?null==t.pfValue||null!=e&&"%"===e.type.units?t.value:t.pfValue:t}function tu(t,e,n,r,i){var a=null!=i?i.type:null;n<0?n=0:n>1&&(n=1);var o=Zl(t,i),s=Zl(e,i);if(E(o)&&E(s))return Jl(a,o,s,n,r);if(k(o)&&k(s)){for(var c=[],l=0;l<s.length;l++){var u=o[l],h=s[l];if(null!=u&&null!=h){var f=Jl(a,u,h,n,r);c.push(f)}else c.push(h)}return c}}function eu(t,e,n,r){var i=!r,a=t._private,o=e._private,s=o.easing,c=o.startTime,l=(r?t:t.cy()).style();if(!o.easingImpl)if(null==s)o.easingImpl=Yl.linear;else{var u,h,f;u=y(s)?l.parse("transition-timing-function",s).value:s,y(u)?(h=u,f=[]):(h=u[1],f=u.slice(2).map((function(t){return+t}))),f.length>0?("spring"===h&&f.push(o.duration),o.easingImpl=Yl[h].apply(null,f)):o.easingImpl=Yl[h]}var d,A=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 g=o.startPosition,p=o.position;if(p&&i&&!t.locked()){var m={};nu(g.x,p.x)&&(m.x=tu(g.x,p.x,d,A)),nu(g.y,p.y)&&(m.y=tu(g.y,p.y,d,A)),t.position(m)}var b=o.startPan,v=o.pan,w=a.pan,k=null!=v&&r;k&&(nu(b.x,v.x)&&(w.x=tu(b.x,v.x,d,A)),nu(b.y,v.y)&&(w.y=tu(b.y,v.y,d,A)),t.emit("pan"));var C=o.startZoom,x=o.zoom,E=null!=x&&r;E&&(nu(C,x)&&(a.zoom=Dn(a.minZoom,tu(C,x,d,A),a.maxZoom)),t.emit("zoom")),(k||E)&&t.emit("viewport");var T=o.style;if(T&&T.length>0&&i){for(var B=0;B<T.length;B++){var _=T[B],S=_.name,L=_,I=o.startStyle[S],M=tu(I,L,d,A,l.properties[I.name]);l.overrideBypass(t,S,M)}t.emit("style")}}return o.progress=d,d}function nu(t,e){return!!(null!=t&&null!=e&&(E(t)&&E(e)||t&&e))}function ru(t,e,n,r){var i=e._private;i.started=!0,i.startTime=n-i.progress*i.duration}function iu(t,e){var n=e._private.aniEles,r=[];function i(e,n){var i=e._private,a=i.animation.current,o=i.animation.queue,s=!1;if(0===a.length){var c=o.shift();c&&a.push(c)}for(var l=function(t){for(var e=t.length-1;e>=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||ru(e,h,t),eu(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||r.push(e),s}for(var a=!1,o=0;o<n.length;o++){var s=i(n[o]);a=a||s}var c=i(e,!0);(a||c)&&(n.length>0?e.notify("draw",n):e.notify("draw")),n.unmerge(r),e.emit("step")}var au={animate:Ms.animate(),animation:Ms.animation(),animated:Ms.animated(),clearQueue:Ms.clearQueue(),delay:Ms.delay(),delayAnimation:Ms.delayAnimation(),stop:Ms.stop(),addToAnimationPool:function(t){var e=this;e.styleEnabled()&&e._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){iu(n,t)}),e.beforeRenderPriorities.animations):n()}function n(){t._private.animationsRunning&&ce((function(e){iu(e,t),n()}))}}},ou={qualifierCompare:function(t,e){return null==t||null==e?null==t&&null==e:t.sameText(e)},eventMatches:function(t,e,n){var r=e.qualifier;return null==r||t!==n.target&&S(n.target)&&r.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}},su=function(t){return y(t)?new ac(t):t},cu={createEmitter:function(){var t=this._private;return t.emitter||(t.emitter=new cl(ou,this)),this},emitter:function(){return this._private.emitter},on:function(t,e,n){return this.emitter().on(t,su(e),n),this},removeListener:function(t,e,n){return this.emitter().removeListener(t,su(e),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(t,e,n){return this.emitter().one(t,su(e),n),this},once:function(t,e,n){return this.emitter().one(t,su(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}};Ms.eventAliasesOn(cu);var lu={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)}};lu.jpeg=lu.jpg;var uu={layout:function(t){var e=this;if(null!=t)if(null!=t.name){var n=t.name,r=e.extension("layout",n);if(null!=r){var i;i=y(t.eles)?e.$(t.eles):null!=t.eles?t.eles:e.$();var a=new r(Z({},t,{cy:e,eles:i}));return a}Ie("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?")}else Ie("A `name` must be specified to make a layout");else Ie("Layout options must be specified to make a layout")}};uu.createLayout=uu.makeLayout=uu.layout;var hu={notify:function(t,e){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[t]=n.batchNotifications[t]||this.collection();null!=e&&r.merge(e)}else if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.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 r=t.batchNotifications[n];r.empty()?e.notify(n):e.notify(n,r)}))}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),r=0;r<n.length;r++){var i=n[r],a=t[i];e.getElementById(i).data(a)}}))}},fu=Ue({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1}),du={renderTo:function(t,e,n,r){return this._private.renderer.renderTo(t,e,n,r),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(t){var e=this,n=e.extension("renderer",t.name);if(null!=n){void 0!==t.wheelSensitivity&&Oe("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var r=fu(t);r.cy=e,e._private.renderer=new n(r),this.notify("init")}else Ie("Can not initialise: No such renderer `".concat(t.name,"` found. Did you forget to import it and `cytoscape.use()` it?"))},destroyRenderer:function(){var t=this;t.notify("destroy");var e=t.container();if(e)for(e._cyreg=null;e.childNodes.length>0;)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)}};du.invalidateDimensions=du.resize;var Au={collection:function(t,e){return y(t)?this.$(t):_(t)?t.collection():k(t)?(e||(e={}),new zl(this,t,e.unique,e.removed)):new zl(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}};Au.elements=Au.filter=Au.$;var gu={},pu="t",mu="f";gu.apply=function(t){for(var e=this,n=e._private.cy.collection(),r=0;r<t.length;r++){var i=t[r],a=e.getContextMeta(i);if(!a.empty){var o=e.getContextStyle(a),s=e.applyContextStyle(a,o,i);i._private.appliedInitStyle?e.updateTransitions(i,s.diffProps):i._private.appliedInitStyle=!0,e.updateStyleHints(i)&&n.push(i)}}return n},gu.getPropertiesDiff=function(t,e){var n=this,r=n._private.propDiffs=n._private.propDiffs||{},i=t+"-"+e,a=r[i];if(a)return a;for(var o=[],s={},c=0;c<n.length;c++){var l=n[c],u=t[c]===pu,h=e[c]===pu,f=u!==h,d=l.mappedProperties.length>0;if(f||h&&d){var A=void 0;f&&d||f?A=l.properties:d&&(A=l.mappedProperties);for(var g=0;g<A.length;g++){for(var p=A[g],m=p.name,b=!1,v=c+1;v<n.length;v++){var y=n[v];if(e[v]===pu&&(b=null!=y.properties[p.name]))break}s[m]||b||(s[m]=!0,o.push(m))}}}return r[i]=o,o},gu.getContextMeta=function(t){for(var e,n=this,r="",i=t._private.styleCxtKey||"",a=0;a<n.length;a++){var o=n[a];r+=o.selector&&o.selector.matches(t)?pu:mu}return e=n.getPropertiesDiff(i,r),t._private.styleCxtKey=r,{key:r,diffPropNames:e,empty:0===e.length}},gu.getContextStyle=function(t){var e=t.key,n=this,r=this._private.contextStyles=this._private.contextStyles||{};if(r[e])return r[e];for(var i={_private:{key:e}},a=0;a<n.length;a++){var o=n[a];if(e[a]===pu)for(var s=0;s<o.properties.length;s++){var c=o.properties[s];i[c.name]=c}}return r[e]=i,i},gu.applyContextStyle=function(t,e,n){for(var r=this,i=t.diffPropNames,a={},o=r.types,s=0;s<i.length;s++){var c=i[s],l=e[c],u=n.pstyle(c);if(!l){if(!u)continue;l=u.bypass?{name:c,deleteBypassed:!0}:{name:c,delete:!0}}if(u!==l){if(l.mapped===o.fn&&null!=u&&null!=u.mapping&&u.mapping.value===l.value){var h=u.mapping;if((h.fnValue=l.value(n))===h.prevFnValue)continue}var f=a[c]={prev:u};r.applyParsedProperty(n,l),f.next=n.pstyle(c),f.next&&f.next.bypass&&(f.next=f.next.bypassed)}}return{diffProps:a}},gu.updateStyleHints=function(t){var e=t._private,n=this,r=n.propertyGroupNames,i=n.propertyGroupKeys,a=function(t,e,r){return n.getPropertiesHash(t,e,r)},o=e.styleKey;if(t.removed())return!1;var s="nodes"===e.group,c=t._private.style;r=Object.keys(c);for(var l=0;l<i.length;l++){var u=i[l];e.styleKeys[u]=[ue,fe]}for(var h=function(t,n){return e.styleKeys[n][0]=Ae(t,e.styleKeys[n][0])},f=function(t,n){return e.styleKeys[n][1]=ge(t,e.styleKeys[n][1])},d=function(t,e){h(t,e),f(t,e)},A=function(t,e){for(var n=0;n<t.length;n++){var r=t.charCodeAt(n);h(r,e),f(r,e)}},g=2e9,p=function(t){return-128<t&&t<128&&Math.floor(t)!==t?g-(1024*t|0):t},m=0;m<r.length;m++){var b=r[m],v=c[b];if(null!=v){var y=this.properties[b],w=y.type,k=y.groupKey,C=void 0;null!=y.hashOverride?C=y.hashOverride(t,v):null!=v.pfValue&&(C=v.pfValue);var x=null==y.enums?v.value:null,E=null!=C,T=E||null!=x,B=v.units;w.number&&T&&!w.multiple?(d(p(E?C:x),k),E||null==B||A(B,k)):A(v.strValue,k)}}for(var _=[ue,fe],S=0;S<i.length;S++){var L=i[S],I=e.styleKeys[L];_[0]=Ae(I[0],_[0]),_[1]=ge(I[1],_[1])}e.styleKey=pe(_[0],_[1]);var M=e.styleKeys;e.labelDimsKey=me(M.labelDimensions);var O=a(t,["label"],M.labelDimensions);if(e.labelKey=me(O),e.labelStyleKey=me(be(M.commonLabel,O)),!s){var D=a(t,["source-label"],M.labelDimensions);e.sourceLabelKey=me(D),e.sourceLabelStyleKey=me(be(M.commonLabel,D));var F=a(t,["target-label"],M.labelDimensions);e.targetLabelKey=me(F),e.targetLabelStyleKey=me(be(M.commonLabel,F))}if(s){var N=e.styleKeys,P=N.nodeBody,R=N.nodeBorder,Q=N.nodeOutline,U=N.backgroundImage,$=N.compound,H=N.pie,j=[P,R,Q,U,$,H].filter((function(t){return null!=t})).reduce(be,[ue,fe]);e.nodeKey=me(j),e.hasPie=null!=H&&H[0]!==ue&&H[1]!==fe}return o!==e.styleKey},gu.clearStyleHints=function(t){var e=t._private;e.styleCxtKey="",e.styleKeys={},e.styleKey=null,e.labelKey=null,e.labelStyleKey=null,e.sourceLabelKey=null,e.sourceLabelStyleKey=null,e.targetLabelKey=null,e.targetLabelStyleKey=null,e.nodeKey=null,e.hasPie=null},gu.applyParsedProperty=function(t,e){var n,r=this,i=e,a=t._private.style,o=r.types,s=r.properties[i.name].type,c=i.bypass,l=a[i.name],u=l&&l.bypass,h=t._private,f="mapping",d=function(t){return null==t?null:null!=t.pfValue?t.pfValue:t.value},A=function(){var e=d(l),n=d(i);r.checkTriggers(t,i.name,e,n)};if("curve-style"===e.name&&t.isEdge()&&("bezier"!==e.value&&t.isLoop()||"haystack"===e.value&&(t.source().isParent()||t.target().isParent()))&&(i=e=this.parse(e.name,"bezier",c)),i.delete)return a[i.name]=void 0,A(),!0;if(i.deleteBypassed)return l?!!l.bypass&&(l.bypassed=void 0,A(),!0):(A(),!0);if(i.deleteBypass)return l?!!l.bypass&&(a[i.name]=l.bypassed,A(),!0):(A(),!0);var g=function(){Oe("Do not assign mappings to elements without corresponding data (i.e. ele `"+t.id()+"` has no mapping for property `"+i.name+"` with data field `"+i.field+"`); try a `["+i.field+"]` selector to limit scope to elements with `"+i.field+"` defined")};switch(i.mapped){case o.mapData:for(var p,m=i.field.split("."),b=h.data,v=0;v<m.length&&b;v++)b=b[m[v]];if(null==b)return g(),!1;if(!E(b))return Oe("Do not use continuous mappers without specifying numeric data (i.e. `"+i.field+": "+b+"` for `"+t.id()+"` is non-numeric)"),!1;var y=i.fieldMax-i.fieldMin;if((p=0===y?0:(b-i.fieldMin)/y)<0?p=0:p>1&&(p=1),s.color){var w=i.valueMin[0],k=i.valueMax[0],C=i.valueMin[1],x=i.valueMax[1],T=i.valueMin[2],B=i.valueMax[2],_=null==i.valueMin[3]?1:i.valueMin[3],S=null==i.valueMax[3]?1:i.valueMax[3],L=[Math.round(w+(k-w)*p),Math.round(C+(x-C)*p),Math.round(T+(B-T)*p),Math.round(_+(S-_)*p)];n={bypass:i.bypass,name:i.name,value:L,strValue:"rgb("+L[0]+", "+L[1]+", "+L[2]+")"}}else{if(!s.number)return!1;var I=i.valueMin+(i.valueMax-i.valueMin)*p;n=this.parse(i.name,I,i.bypass,f)}if(!n)return g(),!1;n.mapping=i,i=n;break;case o.data:for(var M=i.field.split("."),O=h.data,D=0;D<M.length&&O;D++)O=O[M[D]];if(null!=O&&(n=this.parse(i.name,O,i.bypass,f)),!n)return g(),!1;n.mapping=i,i=n;break;case o.fn:var F=i.value,N=null!=i.fnValue?i.fnValue:F(t);if(i.prevFnValue=N,null==N)return Oe("Custom function mappers may not return null (i.e. `"+i.name+"` for ele `"+t.id()+"` is null)"),!1;if(!(n=this.parse(i.name,N,i.bypass,f)))return Oe("Custom function mappers may not return invalid values for the property type (i.e. `"+i.name+"` for ele `"+t.id()+"` is invalid)"),!1;n.mapping=Fe(i),i=n;break;case void 0:break;default:return!1}return c?(i.bypassed=u?l.bypassed:l,a[i.name]=i):u?l.bypassed=i:a[i.name]=i,A(),!0},gu.cleanElements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(this.clearStyleHints(r),r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache(),e)for(var i=r._private.style,a=Object.keys(i),o=0;o<a.length;o++){var s=a[o],c=i[s];null!=c&&(c.bypass?c.bypassed=null:i[s]=null)}else r._private.style={}}},gu.update=function(){this._private.cy.mutableElements().updateStyle()},gu.updateTransitions=function(t,e){var n=this,r=t._private,i=t.pstyle("transition-property").value,a=t.pstyle("transition-duration").pfValue,o=t.pstyle("transition-delay").pfValue;if(i.length>0&&a>0){for(var s={},c=!1,l=0;l<i.length;l++){var u=i[l],h=t.pstyle(u),f=e[u];if(f){var d=f.prev,A=null!=f.next?f.next:h,g=!1,p=void 0,m=1e-6;d&&(E(d.pfValue)&&E(A.pfValue)?(g=A.pfValue-d.pfValue,p=d.pfValue+m*g):E(d.value)&&E(A.value)?(g=A.value-d.value,p=d.value+m*g):k(d.value)&&k(A.value)&&(g=d.value[0]!==A.value[0]||d.value[1]!==A.value[1]||d.value[2]!==A.value[2],p=d.strValue),g&&(s[u]=A.strValue,this.applyBypass(t,u,p),c=!0))}}if(!c)return;r.transitioning=!0,new Wi((function(e){o>0?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,i),t.emitAndNotify("style"),r.transitioning=!1}))}else r.transitioning&&(this.removeBypasses(t,i),t.emitAndNotify("style"),r.transitioning=!1)},gu.checkTrigger=function(t,e,n,r,i,a){var o=this.properties[e],s=i(o);null!=s&&s(n,r)&&a(o)},gu.checkZOrderTrigger=function(t,e,n,r){var i=this;this.checkTrigger(t,e,n,r,(function(t){return t.triggersZOrder}),(function(){i._private.cy.notify("zorder",t)}))},gu.checkBoundsTrigger=function(t,e,n,r){this.checkTrigger(t,e,n,r,(function(t){return t.triggersBounds}),(function(i){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),!i.triggersBoundsOfParallelBeziers||"curve-style"!==e||"bezier"!==n&&"bezier"!==r||t.parallelEdges().forEach((function(t){t.isBundledBezier()&&t.dirtyBoundingBoxCache()})),!i.triggersBoundsOfConnectedEdges||"display"!==e||"none"!==n&&"none"!==r||t.connectedEdges().forEach((function(t){t.dirtyBoundingBoxCache()}))}))},gu.checkTriggers=function(t,e,n,r){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,n,r),this.checkBoundsTrigger(t,e,n,r)};var bu={applyBypass:function(t,e,n,r){var i=this,a=[],o=!0;if("*"===e||"**"===e){if(void 0!==n)for(var s=0;s<i.properties.length;s++){var c=i.properties[s].name,l=this.parse(c,n,!0);l&&a.push(l)}}else if(y(e)){var u=this.parse(e,n,!0);u&&a.push(u)}else{if(!C(e))return!1;var h=e;r=n;for(var f=Object.keys(h),d=0;d<f.length;d++){var A=f[d],g=h[A];if(void 0===g&&(g=h[$(A)]),void 0!==g){var p=this.parse(A,g,!0);p&&a.push(p)}}}if(0===a.length)return!1;for(var m=!1,b=0;b<t.length;b++){for(var v=t[b],w={},k=void 0,x=0;x<a.length;x++){var E=a[x];if(r){var T=v.pstyle(E.name);k=w[E.name]={prev:T}}m=this.applyParsedProperty(v,Fe(E))||m,r&&(k.next=v.pstyle(E.name))}m&&this.updateStyleHints(v),r&&this.updateTransitions(v,w,o)}return m},overrideBypass:function(t,e,n){e=U(e);for(var r=0;r<t.length;r++){var i=t[r],a=i._private.style[e],o=this.properties[e].type,s=o.color,c=o.mutiple,l=a?null!=a.pfValue?a.pfValue:a.value:null;a&&a.bypass?(a.value=n,null!=a.pfValue&&(a.pfValue=n),a.strValue=s?"rgb("+n.join(",")+")":c?n.join(" "):""+n,this.updateStyleHints(i)):this.applyBypass(i,e,n),this.checkTriggers(i,e,l,n)}},removeAllBypasses:function(t,e){return this.removeBypasses(t,this.propertyNames,e)},removeBypasses:function(t,e,n){for(var r=!0,i=0;i<t.length;i++){for(var a=t[i],o={},s=0;s<e.length;s++){var c=e[s],l=this.properties[c],u=a.pstyle(l.name);if(u&&u.bypass){var h="",f=this.parse(c,h,!0),d=o[l.name]={prev:u};this.applyParsedProperty(a,f),d.next=a.pstyle(l.name)}}this.updateStyleHints(a),n&&this.updateTransitions(a,o,r)}}},vu={getEmSizeInPixels:function(){var t=this.containerCss("font-size");return null!=t?parseFloat(t):1},containerCss:function(t){var e=this._private.cy,n=e.container(),r=e.window();if(r&&n&&r.getComputedStyle)return r.getComputedStyle(n).getPropertyValue(t)}},yu={getRenderedStyle:function(t,e){return e?this.getStylePropertyValue(t,e,!0):this.getRawStyle(t,!0)},getRawStyle:function(t,e){var n=this;if(t=t[0]){for(var r={},i=0;i<n.properties.length;i++){var a=n.properties[i],o=n.getStylePropertyValue(t,a.name,e);null!=o&&(r[a.name]=o,r[$(a.name)]=o)}return r}},getIndexedStyle:function(t,e,n,r){var i=t.pstyle(e)[n][r];return null!=i?i:t.cy().style().getDefaultProperty(e)[n][0]},getStylePropertyValue:function(t,e,n){var r=this;if(t=t[0]){var i=r.properties[e];i.alias&&(i=i.pointsTo);var a=i.type,o=t.pstyle(i.name);if(o){var s=o.value,c=o.units,l=o.strValue;if(n&&a.number&&null!=s&&E(s)){var u=t.cy().zoom(),h=function(t){return t*u},f=function(t,e){return h(t)+e},d=k(s);return(d?c.every((function(t){return null!=t})):null!=c)?d?s.map((function(t,e){return f(t,c[e])})).join(" "):f(s,c):d?s.map((function(t){return y(t)?t:""+h(t)})).join(" "):""+h(s)}if(null!=l)return l}return null}},getAnimationStartStyle:function(t,e){for(var n={},r=0;r<e.length;r++){var i=e[r].name,a=t.pstyle(i);void 0!==a&&(a=C(a)?this.parse(i,a.strValue):this.parse(i,a)),a&&(n[i]=a)}return n},getPropsList:function(t){var e=[],n=t,r=this.properties;if(n)for(var i=Object.keys(n),a=0;a<i.length;a++){var o=i[a],s=n[o],c=r[o]||r[U(o)],l=this.parse(c.name,s);l&&e.push(l)}return e},getNonDefaultPropertiesHash:function(t,e,n){var r,i,a,o,s,c,l=n.slice();for(s=0;s<e.length;s++)if(r=e[s],null!=(i=t.pstyle(r,!1)))if(null!=i.pfValue)l[0]=Ae(o,l[0]),l[1]=ge(o,l[1]);else for(a=i.strValue,c=0;c<a.length;c++)o=a.charCodeAt(c),l[0]=Ae(o,l[0]),l[1]=ge(o,l[1]);return l}};yu.getPropertiesHash=yu.getNonDefaultPropertiesHash;var wu={appendFromJson:function(t){for(var e=this,n=0;n<t.length;n++){var r=t[n],i=r.selector,a=r.style||r.css,o=Object.keys(a);e.selector(i);for(var s=0;s<o.length;s++){var c=o[s],l=a[c];e.css(c,l)}}return e},fromJson:function(t){var e=this;return e.resetToDefault(),e.appendFromJson(t),e},json:function(){for(var t=[],e=this.defaultLength;e<this.length;e++){for(var n=this[e],r=n.selector,i=n.properties,a={},o=0;o<i.length;o++){var s=i[o];a[s.name]=s.strValue}t.push({selector:r?r.toString():"core",style:a})}return t}},ku={appendFromString:function(t){var e,n,r,i=this,a=this,o=""+t;function s(){o=o.length>e.length?o.substr(e.length):""}function c(){n=n.length>r.length?n.substr(r.length):""}for(o=o.replace(/[/][*](\s|.)+?[*][/]/g,"");!o.match(/^\s*$/);){var l=o.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!l){Oe("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+o);break}e=l[0];var u=l[1];if("core"!==u&&new ac(u).invalid)Oe("Skipping parsing of block: Invalid selector found in string stylesheet: "+u),s();else{var h=l[2],f=!1;n=h;for(var d=[];!n.match(/^\s*$/);){var A=n.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!A){Oe("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+h),f=!0;break}r=A[0];var g=A[1],p=A[2];i.properties[g]?a.parse(g,p)?(d.push({name:g,val:p}),c()):(Oe("Skipping property: Invalid property definition in: "+r),c()):(Oe("Skipping property: Invalid property name in: "+r),c())}if(f){s();break}a.selector(u);for(var m=0;m<d.length;m++){var b=d[m];a.css(b.name,b.val)}s()}}return a},fromString:function(t){var e=this;return e.resetToDefault(),e.appendFromString(t),e}},Cu={};(function(){var t=K,e=G,n=V,r=W,i=q,a=function(t){return"^"+t+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},o=function(a){var o=t+"|\\w+|"+e+"|"+n+"|"+r+"|"+i;return"^"+a+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+t+")\\s*\\,\\s*("+t+")\\s*,\\s*("+o+")\\s*\\,\\s*("+o+")\\)$"},s=["^url\\s*\\(\\s*['\"]?(.+?)['\"]?\\s*\\)$","^(none)$","^(.+)$"];Cu.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},linePosition:{enums:["center","inside","outside"]},lineJoin:{enums:["round","bevel","miter"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi","round-segments","round-taxi"]},radiusType:{enums:["arc-radius","influence-radius"],multiple:!0},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},cornerRadius:{number:!0,min:0,units:"px|em",implicitUnits:"px",enums:["auto"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:a("data")},layoutData:{mapping:!0,regex:a("layoutData")},scratch:{mapping:!0,regex:a("scratch")},mapData:{mapping:!0,regex:o("mapData")},mapLayoutData:{mapping:!0,regex:o("mapLayoutData")},mapScratch:{mapping:!0,regex:o("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:s,singleRegexMatchValue:!0},urls:{regexes:s,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(t,e){switch(t.length){case 2:return"deg"!==e[0]&&"rad"!==e[0]&&"deg"!==e[1]&&"rad"!==e[1];case 1:return y(t[0])||"deg"===e[0]||"rad"===e[0];default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(t){var e=t.length;return 1===e||2===e||4===e}}};var c={zeroNonZero:function(t,e){return(null==t||null==e)&&t!==e||0==t&&0!=e||0!=t&&0==e},any:function(t,e){return t!=e},emptyNonEmpty:function(t,e){var n=D(t),r=D(e);return n&&!r||!n&&r}},l=Cu.types,u=[{name:"label",type:l.text,triggersBounds:c.any,triggersZOrder:c.emptyNonEmpty},{name:"text-rotation",type:l.textRotation,triggersBounds:c.any},{name:"text-margin-x",type:l.bidirectionalSize,triggersBounds:c.any},{name:"text-margin-y",type:l.bidirectionalSize,triggersBounds:c.any}],h=[{name:"source-label",type:l.text,triggersBounds:c.any},{name:"source-text-rotation",type:l.textRotation,triggersBounds:c.any},{name:"source-text-margin-x",type:l.bidirectionalSize,triggersBounds:c.any},{name:"source-text-margin-y",type:l.bidirectionalSize,triggersBounds:c.any},{name:"source-text-offset",type:l.size,triggersBounds:c.any}],f=[{name:"target-label",type:l.text,triggersBounds:c.any},{name:"target-text-rotation",type:l.textRotation,triggersBounds:c.any},{name:"target-text-margin-x",type:l.bidirectionalSize,triggersBounds:c.any},{name:"target-text-margin-y",type:l.bidirectionalSize,triggersBounds:c.any},{name:"target-text-offset",type:l.size,triggersBounds:c.any}],d=[{name:"font-family",type:l.fontFamily,triggersBounds:c.any},{name:"font-style",type:l.fontStyle,triggersBounds:c.any},{name:"font-weight",type:l.fontWeight,triggersBounds:c.any},{name:"font-size",type:l.size,triggersBounds:c.any},{name:"text-transform",type:l.textTransform,triggersBounds:c.any},{name:"text-wrap",type:l.textWrap,triggersBounds:c.any},{name:"text-overflow-wrap",type:l.textOverflowWrap,triggersBounds:c.any},{name:"text-max-width",type:l.size,triggersBounds:c.any},{name:"text-outline-width",type:l.size,triggersBounds:c.any},{name:"line-height",type:l.positiveNumber,triggersBounds:c.any}],A=[{name:"text-valign",type:l.valign,triggersBounds:c.any},{name:"text-halign",type:l.halign,triggersBounds:c.any},{name:"color",type:l.color},{name:"text-outline-color",type:l.color},{name:"text-outline-opacity",type:l.zeroOneNumber},{name:"text-background-color",type:l.color},{name:"text-background-opacity",type:l.zeroOneNumber},{name:"text-background-padding",type:l.size,triggersBounds:c.any},{name:"text-border-opacity",type:l.zeroOneNumber},{name:"text-border-color",type:l.color},{name:"text-border-width",type:l.size,triggersBounds:c.any},{name:"text-border-style",type:l.borderStyle,triggersBounds:c.any},{name:"text-background-shape",type:l.textBackgroundShape,triggersBounds:c.any},{name:"text-justification",type:l.justification}],g=[{name:"events",type:l.bool,triggersZOrder:c.any},{name:"text-events",type:l.bool,triggersZOrder:c.any}],p=[{name:"display",type:l.display,triggersZOrder:c.any,triggersBounds:c.any,triggersBoundsOfConnectedEdges:!0},{name:"visibility",type:l.visibility,triggersZOrder:c.any},{name:"opacity",type:l.zeroOneNumber,triggersZOrder:c.zeroNonZero},{name:"text-opacity",type:l.zeroOneNumber},{name:"min-zoomed-font-size",type:l.size},{name:"z-compound-depth",type:l.zCompoundDepth,triggersZOrder:c.any},{name:"z-index-compare",type:l.zIndexCompare,triggersZOrder:c.any},{name:"z-index",type:l.number,triggersZOrder:c.any}],m=[{name:"overlay-padding",type:l.size,triggersBounds:c.any},{name:"overlay-color",type:l.color},{name:"overlay-opacity",type:l.zeroOneNumber,triggersBounds:c.zeroNonZero},{name:"overlay-shape",type:l.overlayShape,triggersBounds:c.any},{name:"overlay-corner-radius",type:l.cornerRadius}],b=[{name:"underlay-padding",type:l.size,triggersBounds:c.any},{name:"underlay-color",type:l.color},{name:"underlay-opacity",type:l.zeroOneNumber,triggersBounds:c.zeroNonZero},{name:"underlay-shape",type:l.overlayShape,triggersBounds:c.any},{name:"underlay-corner-radius",type:l.cornerRadius}],v=[{name:"transition-property",type:l.propList},{name:"transition-duration",type:l.time},{name:"transition-delay",type:l.time},{name:"transition-timing-function",type:l.easing}],w=function(t,e){return"label"===e.value?-t.poolIndex():e.pfValue},k=[{name:"height",type:l.nodeSize,triggersBounds:c.any,hashOverride:w},{name:"width",type:l.nodeSize,triggersBounds:c.any,hashOverride:w},{name:"shape",type:l.nodeShape,triggersBounds:c.any},{name:"shape-polygon-points",type:l.polygonPointList,triggersBounds:c.any},{name:"corner-radius",type:l.cornerRadius},{name:"background-color",type:l.color},{name:"background-fill",type:l.fill},{name:"background-opacity",type:l.zeroOneNumber},{name:"background-blacken",type:l.nOneOneNumber},{name:"background-gradient-stop-colors",type:l.colors},{name:"background-gradient-stop-positions",type:l.percentages},{name:"background-gradient-direction",type:l.gradientDirection},{name:"padding",type:l.sizeMaybePercent,triggersBounds:c.any},{name:"padding-relative-to",type:l.paddingRelativeTo,triggersBounds:c.any},{name:"bounds-expansion",type:l.boundsExpansion,triggersBounds:c.any}],C=[{name:"border-color",type:l.color},{name:"border-opacity",type:l.zeroOneNumber},{name:"border-width",type:l.size,triggersBounds:c.any},{name:"border-style",type:l.borderStyle},{name:"border-cap",type:l.lineCap},{name:"border-join",type:l.lineJoin},{name:"border-dash-pattern",type:l.numbers},{name:"border-dash-offset",type:l.number},{name:"border-position",type:l.linePosition}],x=[{name:"outline-color",type:l.color},{name:"outline-opacity",type:l.zeroOneNumber},{name:"outline-width",type:l.size,triggersBounds:c.any},{name:"outline-style",type:l.borderStyle},{name:"outline-offset",type:l.size,triggersBounds:c.any}],E=[{name:"background-image",type:l.urls},{name:"background-image-crossorigin",type:l.bgCrossOrigin},{name:"background-image-opacity",type:l.zeroOneNumbers},{name:"background-image-containment",type:l.bgContainment},{name:"background-image-smoothing",type:l.bools},{name:"background-position-x",type:l.bgPos},{name:"background-position-y",type:l.bgPos},{name:"background-width-relative-to",type:l.bgRelativeTo},{name:"background-height-relative-to",type:l.bgRelativeTo},{name:"background-repeat",type:l.bgRepeat},{name:"background-fit",type:l.bgFit},{name:"background-clip",type:l.bgClip},{name:"background-width",type:l.bgWH},{name:"background-height",type:l.bgWH},{name:"background-offset-x",type:l.bgPos},{name:"background-offset-y",type:l.bgPos}],T=[{name:"position",type:l.position,triggersBounds:c.any},{name:"compound-sizing-wrt-labels",type:l.compoundIncludeLabels,triggersBounds:c.any},{name:"min-width",type:l.size,triggersBounds:c.any},{name:"min-width-bias-left",type:l.sizeMaybePercent,triggersBounds:c.any},{name:"min-width-bias-right",type:l.sizeMaybePercent,triggersBounds:c.any},{name:"min-height",type:l.size,triggersBounds:c.any},{name:"min-height-bias-top",type:l.sizeMaybePercent,triggersBounds:c.any},{name:"min-height-bias-bottom",type:l.sizeMaybePercent,triggersBounds:c.any}],B=[{name:"line-style",type:l.lineStyle},{name:"line-color",type:l.color},{name:"line-fill",type:l.fill},{name:"line-cap",type:l.lineCap},{name:"line-opacity",type:l.zeroOneNumber},{name:"line-dash-pattern",type:l.numbers},{name:"line-dash-offset",type:l.number},{name:"line-gradient-stop-colors",type:l.colors},{name:"line-gradient-stop-positions",type:l.percentages},{name:"curve-style",type:l.curveStyle,triggersBounds:c.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:l.zeroOneNumber,triggersBounds:c.any},{name:"source-endpoint",type:l.edgeEndpoint,triggersBounds:c.any},{name:"target-endpoint",type:l.edgeEndpoint,triggersBounds:c.any},{name:"control-point-step-size",type:l.size,triggersBounds:c.any},{name:"control-point-distances",type:l.bidirectionalSizes,triggersBounds:c.any},{name:"control-point-weights",type:l.numbers,triggersBounds:c.any},{name:"segment-distances",type:l.bidirectionalSizes,triggersBounds:c.any},{name:"segment-weights",type:l.numbers,triggersBounds:c.any},{name:"segment-radii",type:l.numbers,triggersBounds:c.any},{name:"radius-type",type:l.radiusType,triggersBounds:c.any},{name:"taxi-turn",type:l.bidirectionalSizeMaybePercent,triggersBounds:c.any},{name:"taxi-turn-min-distance",type:l.size,triggersBounds:c.any},{name:"taxi-direction",type:l.axisDirection,triggersBounds:c.any},{name:"taxi-radius",type:l.number,triggersBounds:c.any},{name:"edge-distances",type:l.edgeDistances,triggersBounds:c.any},{name:"arrow-scale",type:l.positiveNumber,triggersBounds:c.any},{name:"loop-direction",type:l.angle,triggersBounds:c.any},{name:"loop-sweep",type:l.angle,triggersBounds:c.any},{name:"source-distance-from-node",type:l.size,triggersBounds:c.any},{name:"target-distance-from-node",type:l.size,triggersBounds:c.any}],_=[{name:"ghost",type:l.bool,triggersBounds:c.any},{name:"ghost-offset-x",type:l.bidirectionalSize,triggersBounds:c.any},{name:"ghost-offset-y",type:l.bidirectionalSize,triggersBounds:c.any},{name:"ghost-opacity",type:l.zeroOneNumber}],S=[{name:"selection-box-color",type:l.color},{name:"selection-box-opacity",type:l.zeroOneNumber},{name:"selection-box-border-color",type:l.color},{name:"selection-box-border-width",type:l.size},{name:"active-bg-color",type:l.color},{name:"active-bg-opacity",type:l.zeroOneNumber},{name:"active-bg-size",type:l.size},{name:"outside-texture-bg-color",type:l.color},{name:"outside-texture-bg-opacity",type:l.zeroOneNumber}],L=[];Cu.pieBackgroundN=16,L.push({name:"pie-size",type:l.sizeMaybePercent});for(var I=1;I<=Cu.pieBackgroundN;I++)L.push({name:"pie-"+I+"-background-color",type:l.color}),L.push({name:"pie-"+I+"-background-size",type:l.percent}),L.push({name:"pie-"+I+"-background-opacity",type:l.zeroOneNumber});var M=[],O=Cu.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:l.arrowShape,triggersBounds:c.any},{name:"arrow-color",type:l.color},{name:"arrow-fill",type:l.arrowFill},{name:"arrow-width",type:l.arrowWidth}].forEach((function(t){O.forEach((function(e){var n=e+"-"+t.name,r=t.type,i=t.triggersBounds;M.push({name:n,type:r,triggersBounds:i})}))}),{});var F=Cu.properties=[].concat(g,v,p,m,b,_,A,d,u,h,f,k,C,x,E,L,T,B,M,S),N=Cu.propertyGroups={behavior:g,transition:v,visibility:p,overlay:m,underlay:b,ghost:_,commonLabel:A,labelDimensions:d,mainLabel:u,sourceLabel:h,targetLabel:f,nodeBody:k,nodeBorder:C,nodeOutline:x,backgroundImage:E,pie:L,compound:T,edgeLine:B,edgeArrow:M,core:S},P=Cu.propertyGroupNames={};(Cu.propertyGroupKeys=Object.keys(N)).forEach((function(t){P[t]=N[t].map((function(t){return t.name})),N[t].forEach((function(e){return e.groupKey=t}))}));var R=Cu.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"segment-distance",pointsTo:"segment-distances"},{name:"segment-weight",pointsTo:"segment-weights"},{name:"segment-radius",pointsTo:"segment-radii"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];Cu.propertyNames=F.map((function(t){return t.name}));for(var Q=0;Q<F.length;Q++){var U=F[Q];F[U.name]=U}for(var $=0;$<R.length;$++){var H=R[$],j=F[H.pointsTo],z={name:H.name,alias:!0,pointsTo:j};F.push(z),F[H.name]=z}})(),Cu.getDefaultProperty=function(t){return this.getDefaultProperties()[t]},Cu.getDefaultProperties=function(){var t=this._private;if(null!=t.defaultProperties)return t.defaultProperties;for(var e=Z({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","overlay-corner-radius":"auto","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","underlay-corner-radius":"auto","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","border-dash-pattern":[4,2],"border-dash-offset":0,"border-cap":"butt","border-join":"miter","border-position":"center","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","corner-radius":"auto","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce((function(t,e){for(var n=1;n<=Cu.pieBackgroundN;n++){var r=e.name.replace("{{i}}",n),i=e.value;t[r]=i}return t}),{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"segment-radii":15,"radius-type":"arc-radius","taxi-turn":"50%","taxi-radius":15,"taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce((function(t,e){return Cu.arrowPrefixes.forEach((function(n){var r=n+"-"+e.name,i=e.value;t[r]=i})),t}),{})),n={},r=0;r<this.properties.length;r++){var i=this.properties[r];if(!i.pointsTo){var a=i.name,o=e[a],s=this.parse(a,o);n[a]=s}}return t.defaultProperties=n,t.defaultProperties},Cu.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var xu={parse:function(t,e,n,r){var i=this;if(w(e))return i.parseImplWarn(t,e,n,r);var a,o=we(t,""+e,n?"t":"f","mapping"===r||!0===r||!1===r||null==r?"dontcare":r),s=i.propCache=i.propCache||[];return(a=s[o])||(a=s[o]=i.parseImplWarn(t,e,n,r)),(n||"mapping"===r)&&(a=Fe(a))&&(a.value=Fe(a.value)),a},parseImplWarn:function(t,e,n,r){var i=this.parseImpl(t,e,n,r);return i||null==e||Oe("The style property `".concat(t,": ").concat(e,"` is invalid")),!i||"width"!==i.name&&"height"!==i.name||"label"!==e||Oe("The style value of `label` is deprecated for `"+i.name+"`"),i},parseImpl:function(t,e,n,r){var i=this;t=U(t);var a=i.properties[t],o=e,s=i.types;if(!a)return null;if(void 0===e)return null;a.alias&&(a=a.pointsTo,t=a.name);var c=y(e);c&&(e=e.trim());var l,u,h=a.type;if(!h)return null;if(n&&(""===e||null===e))return{name:t,value:e,bypass:!0,deleteBypass:!0};if(w(e))return{name:t,value:e,strValue:"fn",mapped:s.fn,bypass:n};if(!c||r||e.length<7||"a"!==e[1]);else{if(e.length>=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)return!1;if(h.multiple)return!1;var d=s.mapData;if(!h.color&&!h.number)return!1;var A=this.parse(t,u[4]);if(!A||A.mapped)return!1;var g=this.parse(t,u[5]);if(!g||g.mapped)return!1;if(A.pfValue===g.pfValue||A.strValue===g.strValue)return Oe("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+A.strValue+"`"),this.parse(t,A.strValue);if(h.color){var p=A.value,m=g.value;if(!(p[0]!==m[0]||p[1]!==m[1]||p[2]!==m[2]||p[3]!==m[3]&&(null!=p[3]&&1!==p[3]||null!=m[3]&&1!==m[3])))return!1}return{name:t,value:u,strValue:""+e,mapped:d,field:u[1],fieldMin:parseFloat(u[2]),fieldMax:parseFloat(u[3]),valueMin:A.value,valueMax:g.value,bypass:n}}}if(h.multiple&&"multiple"!==r){var b;if(b=c?e.split(/\s+/):k(e)?e:[e],h.evenMultiple&&b.length%2!=0)return null;for(var v=[],C=[],x=[],E="",B=!1,_=0;_<b.length;_++){var S=i.parse(t,b[_],n,"multiple");B=B||y(S.value),v.push(S.value),x.push(null!=S.pfValue?S.pfValue:S.value),C.push(S.units),E+=(_>0?" ":"")+S.strValue}return h.validate&&!h.validate(v,C)?null:h.singleEnum&&B?1===v.length&&y(v[0])?{name:t,value:v[0],strValue:v[0],bypass:n}:null:{name:t,value:v,pfValue:x,strValue:E,bypass:n,units:C}}var L=function(){for(var r=0;r<h.enums.length;r++)if(h.enums[r]===e)return{name:t,value:e,strValue:""+e,bypass:n};return null};if(h.number){var I,M="px";if(h.units&&(I=h.units),h.implicitUnits&&(M=h.implicitUnits),!h.unitless)if(c){var O="px|em"+(h.allowPercent?"|\\%":"");I&&(O=I);var D=e.match("^("+K+")("+O+")?$");D&&(e=D[1],I=D[2]||M)}else I&&!h.implicitUnits||(I=M);if(e=parseFloat(e),isNaN(e)&&void 0===h.enums)return null;if(isNaN(e)&&void 0!==h.enums)return e=o,L();if(h.integer&&!T(e))return null;if(void 0!==h.min&&(e<h.min||h.strictMin&&e===h.min)||void 0!==h.max&&(e>h.max||h.strictMax&&e===h.max))return null;var F={name:t,value:e,strValue:""+e+(I||""),units:I,bypass:n};return h.unitless||"px"!==I&&"em"!==I?F.pfValue=e:F.pfValue="px"!==I&&I?this.getEmSizeInPixels()*e:e,"ms"!==I&&"s"!==I||(F.pfValue="ms"===I?e:1e3*e),"deg"!==I&&"rad"!==I||(F.pfValue="rad"===I?e:xn(e)),"%"===I&&(F.pfValue=e/100),F}if(h.propList){var N=[],P=""+e;if("none"===P);else{for(var R=P.split(/\s*,\s*|\s+/),Q=0;Q<R.length;Q++){var $=R[Q].trim();i.properties[$]?N.push($):Oe("`"+$+"` is not a valid property name")}if(0===N.length)return null}return{name:t,value:N,strValue:0===N.length?"none":N.join(" "),bypass:n}}if(h.color){var H=it(e);return H?{name:t,value:H,pfValue:H,strValue:"rgb("+H[0]+","+H[1]+","+H[2]+")",bypass:n}:null}if(h.regex||h.regexes){if(h.enums){var j=L();if(j)return j}for(var z=h.regexes?h.regexes:[h.regex],G=0;G<z.length;G++){var X=new RegExp(z[G]).exec(e);if(X)return{name:t,value:h.singleRegexMatchValue?X[1]:X,strValue:""+e,bypass:n}}return null}return h.string?{name:t,value:""+e,strValue:""+e,bypass:n}:h.enums?L():null}},Eu=function t(e){if(!(this instanceof t))return new t(e);I(e)?(this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()):Ie("A style must have a core reference")},Tu=Eu.prototype;Tu.instanceString=function(){return"style"},Tu.clear=function(){for(var t=this._private,e=t.cy.elements(),n=0;n<this.length;n++)this[n]=void 0;return this.length=0,t.contextStyles={},t.propDiffs={},this.cleanElements(e,!0),e.forEach((function(t){var e=t[0]._private;e.styleDirty=!0,e.appliedInitStyle=!1})),this},Tu.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},Tu.core=function(t){return this._private.coreStyle[t]||this.getDefaultProperty(t)},Tu.selector=function(t){var e="core"===t?null:new ac(t),n=this.length++;return this[n]={selector:e,properties:[],mappedProperties:[],index:n},this},Tu.css=function(){var t=this,e=arguments;if(1===e.length)for(var n=e[0],r=0;r<t.properties.length;r++){var i=t.properties[r],a=n[i.name];void 0===a&&(a=n[$(i.name)]),void 0!==a&&this.cssRule(i.name,a)}else 2===e.length&&this.cssRule(e[0],e[1]);return this},Tu.style=Tu.css,Tu.cssRule=function(t,e){var n=this.parse(t,e);if(n){var r=this.length-1;this[r].properties.push(n),this[r].properties[n.name]=n,n.name.match(/pie-(\d+)-background-size/)&&n.value&&(this._private.hasPie=!0),n.mapped&&this[r].mappedProperties.push(n),!this[r].selector&&(this._private.coreStyle[n.name]=n)}return this},Tu.append=function(t){return M(t)?t.appendToStyle(this):k(t)?this.appendFromJson(t):y(t)&&this.appendFromString(t),this},Eu.fromJson=function(t,e){var n=new Eu(t);return n.fromJson(e),n},Eu.fromString=function(t,e){return new Eu(t).fromString(e)},[gu,bu,vu,yu,wu,ku,Cu,xu].forEach((function(t){Z(Tu,t)})),Eu.types=Tu.types,Eu.properties=Tu.properties,Eu.propertyGroups=Tu.propertyGroups,Eu.propertyGroupNames=Tu.propertyGroupNames,Eu.propertyGroupKeys=Tu.propertyGroupKeys;var Bu={style:function(t){return t&&this.setStyle(t).update(),this._private.style},setStyle:function(t){var e=this._private;return M(t)?e.style=t.generateStyle(this):k(t)?e.style=Eu.fromJson(this,t):y(t)?e.style=Eu.fromString(this,t):e.style=Eu(this),e.style},updateStyle:function(){this.mutableElements().updateStyle()}},_u="single",Su={autolock:function(t){return void 0===t?this._private.autolock:(this._private.autolock=!!t,this)},autoungrabify:function(t){return void 0===t?this._private.autoungrabify:(this._private.autoungrabify=!!t,this)},autounselectify:function(t){return void 0===t?this._private.autounselectify:(this._private.autounselectify=!!t,this)},selectionType:function(t){var e=this._private;return null==e.selectionType&&(e.selectionType=_u),void 0===t?e.selectionType:("additive"!==t&&"single"!==t||(e.selectionType=t),this)},panningEnabled:function(t){return void 0===t?this._private.panningEnabled:(this._private.panningEnabled=!!t,this)},userPanningEnabled:function(t){return void 0===t?this._private.userPanningEnabled:(this._private.userPanningEnabled=!!t,this)},zoomingEnabled:function(t){return void 0===t?this._private.zoomingEnabled:(this._private.zoomingEnabled=!!t,this)},userZoomingEnabled:function(t){return void 0===t?this._private.userZoomingEnabled:(this._private.userZoomingEnabled=!!t,this)},boxSelectionEnabled:function(t){return void 0===t?this._private.boxSelectionEnabled:(this._private.boxSelectionEnabled=!!t,this)},pan:function(){var t,e,n,r,i,a=arguments,o=this._private.pan;switch(a.length){case 0:return o;case 1:if(y(a[0]))return o[t=a[0]];if(C(a[0])){if(!this._private.panningEnabled)return this;r=(n=a[0]).x,i=n.y,E(r)&&(o.x=r),E(i)&&(o.y=i),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;t=a[0],e=a[1],"x"!==t&&"y"!==t||!E(e)||(o[t]=e),this.emit("pan viewport")}return this.notify("viewport"),this},panBy:function(t,e){var n,r,i,a,o,s=arguments,c=this._private.pan;if(!this._private.panningEnabled)return this;switch(s.length){case 1:C(t)&&(a=(i=s[0]).x,o=i.y,E(a)&&(c.x+=a),E(o)&&(c.y+=o),this.emit("pan viewport"));break;case 2:r=e,"x"!==(n=t)&&"y"!==n||!E(r)||(c[n]+=r),this.emit("pan viewport")}return this.notify("viewport"),this},fit:function(t,e){var n=this.getFitViewport(t,e);if(n){var r=this._private;r.zoom=n.zoom,r.pan=n.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(t,e){if(E(t)&&void 0===e&&(e=t,t=void 0),this._private.panningEnabled&&this._private.zoomingEnabled){var n;if(y(t)){var r=t;t=this.$(r)}else if(N(t)){var i=t;(n={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2}).w=n.x2-n.x1,n.h=n.y2-n.y1}else _(t)||(t=this.mutableElements());if(!_(t)||!t.empty()){n=n||t.boundingBox();var a,o=this.width(),s=this.height();if(e=E(e)?e:0,!isNaN(o)&&!isNaN(s)&&o>0&&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)<this._private.minZoom?this._private.minZoom:a,pan:{x:(o-a*(n.x1+n.x2))/2,y:(s-a*(n.y1+n.y2))/2}}}}},zoomRange:function(t,e){var n=this._private;if(null==e){var r=t;t=r.min,e=r.max}return E(t)&&E(e)&&t<=e?(n.minZoom=t,n.maxZoom=e):E(t)&&void 0===e&&t<=n.maxZoom?n.minZoom=t:E(e)&&void 0===t&&e>=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,r=this._private,i=r.pan,a=r.zoom,o=!1;if(r.zoomingEnabled||(o=!0),E(t)?n=t:C(t)&&(n=t.level,null!=t.position?e=mn(t.position,a,i):null!=t.renderedPosition&&(e=t.renderedPosition),null==e||r.panningEnabled||(o=!0)),n=(n=n>r.maxZoom?r.maxZoom:n)<r.minZoom?r.minZoom:n,o||!E(n)||n===a||null!=e&&(!E(e.x)||!E(e.y)))return null;if(null!=e){var s=i,c=a,l=n;return{zoomed:!0,panned:!0,zoom:l,pan:{x:-l/c*(e.x-s.x)+e.x,y:-l/c*(e.y-s.y)+e.y}}}return{zoomed:!0,panned:!1,zoom:n,pan:i}},zoom:function(t){if(void 0===t)return this._private.zoom;var e=this.getZoomedViewport(t),n=this._private;return null!=e&&e.zoomed?(n.zoom=e.zoom,e.panned&&(n.pan.x=e.pan.x,n.pan.y=e.pan.y),this.emit("zoom"+(e.panned?" pan":"")+" viewport"),this.notify("viewport"),this):this},viewport:function(t){var e=this._private,n=!0,r=!0,i=[],a=!1,o=!1;if(!t)return this;if(E(t.zoom)||(n=!1),C(t.pan)||(r=!1),!n&&!r)return this;if(n){var s=t.zoom;s<e.minZoom||s>e.maxZoom||!e.zoomingEnabled?a=!0:(e.zoom=s,i.push("zoom"))}if(r&&(!a||!t.cancelOnFailedZoom)&&e.panningEnabled){var c=t.pan;E(c.x)&&(e.pan.x=c.x,o=!1),E(c.y)&&(e.pan.y=c.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.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(y(t)){var n=t;t=this.mutableElements().filter(n)}else _(t)||(t=this.mutableElements());if(0!==t.length){var r=t.boundingBox(),i=this.width(),a=this.height();return{x:(i-(e=void 0===e?this._private.zoom:e)*(r.x1+r.x2))/2,y:(a-e*(r.y1+r.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,r=n.container,i=this;return n.sizeCache=n.sizeCache||(r?(t=i.window().getComputedStyle(r),e=function(e){return parseFloat(t.getPropertyValue(e))},{width:r.clientWidth-e("padding-left")-e("padding-right"),height:r.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(),r={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 r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},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}};Su.centre=Su.center,Su.autolockNodes=Su.autolock,Su.autoungrabifyNodes=Su.autoungrabify;var Lu={data:Ms.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Ms.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Ms.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Ms.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Lu.attr=Lu.data,Lu.removeAttr=Lu.removeData;var Iu=function(t){var e=this,n=(t=Z({},t)).container;n&&!B(n)&&B(n[0])&&(n=n[0]);var r=n?n._cyreg:null;(r=r||{})&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=e;var a=void 0!==d&&void 0!==n&&!t.headless,o=t;o.layout=Z({name:a?"grid":"null"},o.layout),o.renderer=Z({name:a?"canvas":"null"},o.renderer);var s=function(t,e,n){return void 0!==e?e:void 0!==n?n:t},c=this._private={container:n,ready:!1,options:o,elements:new zl(this),listeners:[],aniEles:new zl(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:E(o.zoom)?o.zoom:1,pan:{x:C(o.pan)&&E(o.pan.x)?o.pan.x:0,y:C(o.pan)&&E(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});var l=function(t,e){if(t.some(P))return Wi.all(t).then(e);e(t)};c.styleEnabled&&e.setStyle([]);var u=Z({},o,o.renderer);e.initRenderer(u);var h=function(t,n,r){e.notifications(!1);var i=e.mutableElements();i.length>0&&i.remove(),null!=t&&(C(t)||k(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",r),e.emit("done")}));var a=Z({},e._private.options.layout);a.eles=e.elements(),e.layout(a).run()};l([o.style,o.elements],(function(t){var n=t[0],a=t[1];c.styleEnabled&&e.style().append(n),h(a,(function(){e.startAnimationLoop(),c.ready=!0,w(o.ready)&&e.on("ready",o.ready);for(var t=0;t<i.length;t++){var n=i[t];e.on("ready",n)}r&&(r.readies=[]),e.emit("ready")}),o.done)}))},Mu=Iu.prototype;Z(Mu,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(t){return this.isReady()?this.emitter().emit("ready",[],t):this.on("ready",t),this},destroy:function(){var t=this;if(!t.destroyed())return t.stopAnimationLoop(),t.destroyRenderer(),this.emit("destroy"),t._private.destroyed=!0,t},hasElementWithId:function(t){return this._private.elements.hasElementWithId(t)},getElementById:function(t){return this._private.elements.getElementById(t)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(t){return this._private.elements.merge(t),this},removeFromPool:function(t){return this._private.elements.unmerge(t),this},container:function(){return this._private.container||null},window:function(){if(null==this._private.container)return d;var t=this._private.container.ownerDocument;return void 0===t||null==t?d:t.defaultView||d},mount:function(t){if(null!=t){var e=this,n=e._private,r=n.options;return!B(t)&&B(t[0])&&(t=t[0]),e.stopAnimationLoop(),e.destroyRenderer(),n.container=t,n.styleEnabled=!0,e.invalidateSize(),e.initRenderer(Z({},r,r.renderer,{name:"null"===r.renderer.name?"canvas":r.renderer.name})),e.startAnimationLoop(),e.style(r.style),e.emit("mount"),e}},unmount:function(){var t=this;return t.stopAnimationLoop(),t.destroyRenderer(),t.initRenderer({name:"null"}),t.emit("unmount"),t},options:function(){return Fe(this._private.options)},json:function(t){var e=this,n=e._private,r=e.mutableElements(),i=function(t){return e.getElementById(t.id())};if(C(t)){if(e.startBatch(),t.elements){var a={},o=function(t,n){for(var r=[],i=[],o=0;o<t.length;o++){var s=t[o];if(s.data.id){var c=""+s.data.id,l=e.getElementById(c);a[c]=!0,0!==l.length?i.push({ele:l,json:s}):n?(s.group=n,r.push(s)):r.push(s)}else Oe("cy.json() cannot handle elements without an ID attribute")}e.add(r);for(var u=0;u<i.length;u++){var h=i[u],f=h.ele,d=h.json;f.json(d)}};if(k(t.elements))o(t.elements);else for(var s=["nodes","edges"],c=0;c<s.length;c++){var l=s[c],u=t.elements[l];k(u)&&o(u,l)}var h=e.collection();r.filter((function(t){return!a[t.id()]})).forEach((function(t){t.isParent()?h.merge(t):t.remove()})),h.forEach((function(t){return t.children().move({parent:null})})),h.forEach((function(t){return i(t).remove()}))}t.style&&e.style(t.style),null!=t.zoom&&t.zoom!==n.zoom&&e.zoom(t.zoom),t.pan&&(t.pan.x===n.pan.x&&t.pan.y===n.pan.y||e.pan(t.pan)),t.data&&e.data(t.data);for(var f=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],d=0;d<f.length;d++){var A=f[d];null!=t[A]&&e[A](t[A])}return e.endBatch(),this}var g={};t?g.elements=this.elements().map((function(t){return t.json()})):(g.elements={},r.forEach((function(t){var e=t.group();g.elements[e]||(g.elements[e]=[]),g.elements[e].push(t.json())}))),this._private.styleEnabled&&(g.style=e.style().json()),g.data=Fe(e.data());var p=n.options;return g.zoomingEnabled=n.zoomingEnabled,g.userZoomingEnabled=n.userZoomingEnabled,g.zoom=n.zoom,g.minZoom=n.minZoom,g.maxZoom=n.maxZoom,g.panningEnabled=n.panningEnabled,g.userPanningEnabled=n.userPanningEnabled,g.pan=Fe(n.pan),g.boxSelectionEnabled=n.boxSelectionEnabled,g.renderer=Fe(p.renderer),g.hideEdgesOnViewport=p.hideEdgesOnViewport,g.textureOnViewport=p.textureOnViewport,g.wheelSensitivity=p.wheelSensitivity,g.motionBlur=p.motionBlur,g.multiClickDebounceTime=p.multiClickDebounceTime,g}}),Mu.$id=Mu.getElementById,[Xl,au,cu,lu,uu,hu,du,Au,Bu,Su,Lu].forEach((function(t){Z(Mu,t)}));var Ou={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}},Du={maximal:!1,acyclic:!1},Fu=function(t){return t.scratch("breadthfirst")},Nu=function(t,e){return t.scratch("breadthfirst",e)};function Pu(t){this.options=Z({},Ou,Du,t)}Pu.prototype.run=function(){var t,e=this.options,n=e,r=e.cy,i=n.eles,a=i.nodes().filter((function(t){return!t.isParent()})),o=i,s=n.directed,c=n.acyclic||n.maximal||n.maximalAdjustments>0,l=Fn(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(_(n.roots))t=n.roots;else if(k(n.roots)){for(var u=[],h=0;h<n.roots.length;h++){var f=n.roots[h],d=r.getElementById(f);u.push(d)}t=r.collection(u)}else if(y(n.roots))t=r.$(n.roots);else if(s)t=a.roots();else{var A=i.components();t=r.collection();for(var g=function(e){var n=A[e],r=n.maxDegree(!1),i=n.filter((function(t){return t.degree(!1)===r}));t=t.add(i)},p=0;p<A.length;p++)g(p)}var m=[],b={},v=function(t,e){null==m[e]&&(m[e]=[]);var n=m[e].length;m[e].push(t),Nu(t,{index:n,depth:e})},w=function(t,e){var n=Fu(t),r=n.depth,i=n.index;m[r][i]=null,v(t,e)};o.bfs({roots:t,directed:n.directed,visit:function(t,e,n,r,i){var a=t[0],o=a.id();v(a,i),b[o]=!0}});for(var C=[],x=0;x<a.length;x++){var E=a[x];b[E.id()]||C.push(E)}var T=function(t){for(var e=m[t],n=0;n<e.length;n++){var r=e[n];null!=r?Nu(r,{depth:t,index:n}):(e.splice(n,1),n--)}},B=function(){for(var t=0;t<m.length;t++)T(t)},S=function(t,e){for(var r=Fu(t),a=t.incomers().filter((function(t){return t.isNode()&&i.has(t)})),o=-1,s=t.id(),c=0;c<a.length;c++){var l=a[c],u=Fu(l);o=Math.max(o,u.depth)}if(r.depth<=o){if(!n.acyclic&&e[s])return null;var h=o+1;return w(t,h),e[s]=h,!0}return!1};if(s&&c){var L=[],I={},M=function(t){return L.push(t)},O=function(){return L.shift()};for(a.forEach((function(t){return L.push(t)}));L.length>0;){var D=O(),F=S(D,I);if(F)D.outgoers().filter((function(t){return t.isNode()&&i.has(t)})).forEach(M);else if(null===F){Oe("Detected double maximal shift for node `"+D.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}B();var N=0;if(n.avoidOverlap)for(var P=0;P<a.length;P++){var R=a[P].layoutDimensions(n),Q=R.w,U=R.h;N=Math.max(N,Q,U)}var $={},H=function(t){if($[t.id()])return $[t.id()];for(var e=Fu(t).depth,n=t.neighborhood(),r=0,i=0,o=0;o<n.length;o++){var s=n[o];if(!s.isEdge()&&!s.isParent()&&a.has(s)){var c=Fu(s);if(null!=c){var l=c.index,u=c.depth;if(null!=l&&null!=u){var h=m[u].length;u<e&&(r+=l/h,i++)}}}}return r/=i=Math.max(1,i),0===i&&(r=0),$[t.id()]=r,r},j=function(t,e){var n=H(t)-H(e);return 0===n?Y(t.id(),e.id()):n};void 0!==n.depthSort&&(j=n.depthSort);for(var K=0;K<m.length;K++)m[K].sort(j),T(K);for(var z=[],G=0;G<C.length;G++)z.push(C[G]);m.unshift(z),B();for(var X=0,V=0;V<m.length;V++)X=Math.max(m[V].length,X);var W={x:l.x1+l.w/2,y:l.x1+l.h/2},q=m.reduce((function(t,e){return Math.max(t,e.length)}),0),J=function(t){var e=Fu(t),r=e.depth,i=e.index,a=m[r].length,o=Math.max(l.w/((n.grid?q:a)+1),N),s=Math.max(l.h/(m.length+1),N),c=Math.min(l.w/2/m.length,l.h/2/m.length);if(c=Math.max(c,N),n.circle){var u=c*r+c-(m.length>0&&m[0].length<=3?c/2:0),h=2*Math.PI/m[r].length*i;return 0===r&&1===m[0].length&&(u=1),{x:W.x+u*Math.cos(h),y:W.y+u*Math.sin(h)}}return{x:W.x+(i+1-(a+1)/2)*o,y:(r+1)*s}};return i.nodes().layoutPositions(this,n,J),this};var Ru={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 Qu(t){this.options=Z({},Ru,t)}Qu.prototype.run=function(){var t=this.options,e=t,n=t.cy,r=e.eles,i=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,a=r.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var o,s=Fn(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;h<a.length;h++){var f=a[h].layoutDimensions(e),d=f.w,A=f.h;u=Math.max(u,d,A)}if(o=E(e.radius)?e.radius:a.length<=1?0:Math.min(s.h,s.w)/2-u,a.length>1&&e.avoidOverlap){u*=1.75;var g=Math.cos(l)-Math.cos(0),p=Math.sin(l)-Math.sin(0),m=Math.sqrt(u*u/(g*g+p*p));o=Math.max(m,o)}var b=function(t,n){var r=e.startAngle+n*l*(i?1:-1),a=o*Math.cos(r),s=o*Math.sin(r);return{x:c.x+a,y:c.y+s}};return r.nodes().layoutPositions(this,e,b),this};var Uu,$u={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 Hu(t){this.options=Z({},$u,t)}Hu.prototype.run=function(){for(var t=this.options,e=t,n=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,r=t.cy,i=e.eles,a=i.nodes().not(":parent"),o=Fn(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},c=[],l=0,u=0;u<a.length;u++){var h=a[u],f=void 0;f=e.concentric(h),c.push({value:f,node:h}),h._private.scratch.concentric=f}a.updateStyle();for(var d=0;d<a.length;d++){var A=a[d].layoutDimensions(e);l=Math.max(l,A.w,A.h)}c.sort((function(t,e){return e.value-t.value}));for(var g=e.levelWidth(a),p=[[]],m=p[0],b=0;b<c.length;b++){var v=c[b];m.length>0&&Math.abs(m[0].value-v.value)>=g&&(m=[],p.push(m)),m.push(v)}var y=l+e.minNodeSpacing;if(!e.avoidOverlap){var w=p.length>0&&p[0].length>1,k=(Math.min(o.w,o.h)/2-y)/(p.length+w?1:0);y=Math.min(y,k)}for(var C=0,x=0;x<p.length;x++){var E=p[x],T=void 0===e.sweep?2*Math.PI-2*Math.PI/E.length:e.sweep,B=E.dTheta=T/Math.max(1,E.length-1);if(E.length>1&&e.avoidOverlap){var _=Math.cos(B)-Math.cos(0),S=Math.sin(B)-Math.sin(0),L=Math.sqrt(y*y/(_*_+S*S));C=Math.max(L,C)}E.r=C,C+=y}if(e.equidistant){for(var I=0,M=0,O=0;O<p.length;O++){var D=p[O].r-M;I=Math.max(I,D)}M=0;for(var F=0;F<p.length;F++){var N=p[F];0===F&&(M=N.r),N.r=M,M+=I}}for(var P={},R=0;R<p.length;R++)for(var Q=p[R],U=Q.dTheta,$=Q.r,H=0;H<Q.length;H++){var j=Q[H],K=e.startAngle+(n?1:-1)*U*H,z={x:s.x+$*Math.cos(K),y:s.y+$*Math.sin(K)};P[j.node.id()]=z}return i.nodes().layoutPositions(this,e,(function(t){var e=t.id();return P[e]})),this};var ju={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(t,e){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(t){return 2048},nodeOverlap:4,idealEdgeLength:function(t){return 32},edgeElasticity:function(t){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function Ku(t){this.options=Z({},ju,t),this.options.layout=this;var e=this.options.eles.nodes(),n=this.options.eles.edges().filter((function(t){var n=t.source().data("id"),r=t.target().data("id"),i=e.some((function(t){return t.data("id")===n})),a=e.some((function(t){return t.data("id")===r}));return!i||!a}));this.options.eles=this.options.eles.not(n)}Ku.prototype.run=function(){var t=this.options,e=t.cy,n=this;n.stopped=!1,!0!==t.animate&&!1!==t.animate||n.emit({type:"layoutstart",layout:n}),Uu=!0===t.debug;var r=Gu(e,n,t);Uu&&zu(r),t.randomize&&Wu(r);var i=le(),a=function(){Yu(r,e,t),!0===t.fit&&e.fit(t.padding)},o=function(e){return!(n.stopped||e>=t.numIter||(Ju(r,t),r.temperature=r.temperature*t.coolingFactor,r.temperature<t.minTemp))},s=function(){if(!0===t.animate||!1===t.animate)a(),n.one("layoutstop",t.stop),n.emit({type:"layoutstop",layout:n});else{var e=t.eles.nodes(),i=qu(r,t,e);e.layoutPositions(n,t,i)}},c=0,l=!0;if(!0===t.animate){var u=function e(){for(var n=0;l&&n<t.refresh;)l=o(c),c++,n++;l?(le()-i>=t.animationThreshold&&a(),ce(e)):(uh(r,t),s())};u()}else{for(;l;)l=o(c),c++;uh(r,t),s()}return this},Ku.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},Ku.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var zu,Gu=function(t,e,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a=Fn(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),o={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:a.w,clientHeight:a.h,boundingBox:a},s=n.eles.components(),c={},l=0;l<s.length;l++)for(var u=s[l],h=0;h<u.length;h++)c[u[h].id()]=l;for(l=0;l<o.nodeSize;l++){var f=(m=i[l]).layoutDimensions(n);(D={}).isLocked=m.locked(),D.id=m.data("id"),D.parentId=m.data("parent"),D.cmptId=c[m.id()],D.children=[],D.positionX=m.position("x"),D.positionY=m.position("y"),D.offsetX=0,D.offsetY=0,D.height=f.w,D.width=f.h,D.maxX=D.positionX+D.width/2,D.minX=D.positionX-D.width/2,D.maxY=D.positionY+D.height/2,D.minY=D.positionY-D.height/2,D.padLeft=parseFloat(m.style("padding")),D.padRight=parseFloat(m.style("padding")),D.padTop=parseFloat(m.style("padding")),D.padBottom=parseFloat(m.style("padding")),D.nodeRepulsion=w(n.nodeRepulsion)?n.nodeRepulsion(m):n.nodeRepulsion,o.layoutNodes.push(D),o.idToIndex[D.id]=l}var d=[],A=0,g=-1,p=[];for(l=0;l<o.nodeSize;l++){var m,b=(m=o.layoutNodes[l]).parentId;null!=b?o.layoutNodes[o.idToIndex[b]].children.push(m.id):(d[++g]=m.id,p.push(m.id))}for(o.graphSet.push(p);A<=g;){var v=d[A++],y=o.idToIndex[v],k=o.layoutNodes[y].children;if(k.length>0)for(o.graphSet.push(k),l=0;l<k.length;l++)d[++g]=k[l]}for(l=0;l<o.graphSet.length;l++){var C=o.graphSet[l];for(h=0;h<C.length;h++){var x=o.idToIndex[C[h]];o.indexToGraph[x]=l}}for(l=0;l<o.edgeSize;l++){var E=r[l],T={};T.id=E.data("id"),T.sourceId=E.data("source"),T.targetId=E.data("target");var B=w(n.idealEdgeLength)?n.idealEdgeLength(E):n.idealEdgeLength,_=w(n.edgeElasticity)?n.edgeElasticity(E):n.edgeElasticity,S=o.idToIndex[T.sourceId],L=o.idToIndex[T.targetId];if(o.indexToGraph[S]!=o.indexToGraph[L]){for(var I=Xu(T.sourceId,T.targetId,o),M=o.graphSet[I],O=0,D=o.layoutNodes[S];-1===M.indexOf(D.id);)D=o.layoutNodes[o.idToIndex[D.parentId]],O++;for(D=o.layoutNodes[L];-1===M.indexOf(D.id);)D=o.layoutNodes[o.idToIndex[D.parentId]],O++;B*=O*n.nestingFactor}T.idealLength=B,T.elasticity=_,o.layoutEdges.push(T)}return o},Xu=function(t,e,n){var r=Vu(t,e,0,n);return 2>r.count?0:r.graph},Vu=function t(e,n,r,i){var a=i.graphSet[r];if(-1<a.indexOf(e)&&-1<a.indexOf(n))return{count:2,graph:r};for(var o=0,s=0;s<a.length;s++){var c=a[s],l=i.idToIndex[c],u=i.layoutNodes[l].children;if(0!==u.length){var h=t(e,n,i.indexToGraph[i.idToIndex[u[0]]],i);if(0!==h.count){if(1!==h.count)return h;if(2==++o)break}}}return{count:o,graph:r}},Wu=function(t,e){for(var n=t.clientWidth,r=t.clientHeight,i=0;i<t.nodeSize;i++){var a=t.layoutNodes[i];0!==a.children.length||a.isLocked||(a.positionX=Math.random()*n,a.positionY=Math.random()*r)}},qu=function(t,e,n){var r=t.boundingBox,i={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return e.boundingBox&&(n.forEach((function(e){var n=t.layoutNodes[t.idToIndex[e.data("id")]];i.x1=Math.min(i.x1,n.positionX),i.x2=Math.max(i.x2,n.positionX),i.y1=Math.min(i.y1,n.positionY),i.y2=Math.max(i.y2,n.positionY)})),i.w=i.x2-i.x1,i.h=i.y2-i.y1),function(n,a){var o=t.layoutNodes[t.idToIndex[n.data("id")]];if(e.boundingBox){var s=(o.positionX-i.x1)/i.w,c=(o.positionY-i.y1)/i.h;return{x:r.x1+s*r.w,y:r.y1+c*r.h}}return{x:o.positionX,y:o.positionY}}},Yu=function(t,e,n){var r=n.layout,i=n.eles.nodes(),a=qu(t,n,i);i.positions(a),!0!==t.ready&&(t.ready=!0,r.one("layoutready",n.ready),r.emit({type:"layoutready",layout:this}))},Ju=function(t,e,n){Zu(t,e),ih(t),ah(t,e),oh(t),sh(t)},Zu=function(t,e){for(var n=0;n<t.graphSet.length;n++)for(var r=t.graphSet[n],i=r.length,a=0;a<i;a++)for(var o=t.layoutNodes[t.idToIndex[r[a]]],s=a+1;s<i;s++){var c=t.layoutNodes[t.idToIndex[r[s]]];eh(o,c,t,e)}},th=function(t){return-t+2*t*Math.random()},eh=function(t,e,n,r){if(t.cmptId===e.cmptId||n.isCompound){var i=e.positionX-t.positionX,a=e.positionY-t.positionY,o=1;0===i&&0===a&&(i=th(o),a=th(o));var s=nh(t,e,i,a);if(s>0)var c=(u=r.nodeOverlap*s)*i/(p=Math.sqrt(i*i+a*a)),l=u*a/p;else{var u,h=rh(t,i,a),f=rh(e,-1*i,-1*a),d=f.x-h.x,A=f.y-h.y,g=d*d+A*A,p=Math.sqrt(g);c=(u=(t.nodeRepulsion+e.nodeRepulsion)/g)*d/p,l=u*A/p}t.isLocked||(t.offsetX-=c,t.offsetY-=l),e.isLocked||(e.offsetX+=c,e.offsetY+=l)}},nh=function(t,e,n,r){if(n>0)var i=t.maxX-e.minX;else i=e.maxX-t.minX;if(r>0)var a=t.maxY-e.minY;else a=e.maxY-t.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},rh=function(t,e,n){var r=t.positionX,i=t.positionY,a=t.height||1,o=t.width||1,s=n/e,c=a/o,l={};return 0===e&&0<n||0===e&&0>n?(l.x=r,l.y=i+a/2,l):0<e&&-1*c<=s&&s<=c?(l.x=r+o/2,l.y=i+o*n/2/e,l):0>e&&-1*c<=s&&s<=c?(l.x=r-o/2,l.y=i-o*n/2/e,l):0<n&&(s<=-1*c||s>=c)?(l.x=r+a*e/2/n,l.y=i+a/2,l):0>n&&(s<=-1*c||s>=c)?(l.x=r-a*e/2/n,l.y=i-a/2,l):l},ih=function(t,e){for(var n=0;n<t.edgeSize;n++){var r=t.layoutEdges[n],i=t.idToIndex[r.sourceId],a=t.layoutNodes[i],o=t.idToIndex[r.targetId],s=t.layoutNodes[o],c=s.positionX-a.positionX,l=s.positionY-a.positionY;if(0!==c||0!==l){var u=rh(a,c,l),h=rh(s,-1*c,-1*l),f=h.x-u.x,d=h.y-u.y,A=Math.sqrt(f*f+d*d),g=Math.pow(r.idealLength-A,2)/r.elasticity;if(0!==A)var p=g*f/A,m=g*d/A;else p=0,m=0;a.isLocked||(a.offsetX+=p,a.offsetY+=m),s.isLocked||(s.offsetX-=p,s.offsetY-=m)}}},ah=function(t,e){if(0!==e.gravity)for(var n=1,r=0;r<t.graphSet.length;r++){var i=t.graphSet[r],a=i.length;if(0===r)var o=t.clientHeight/2,s=t.clientWidth/2;else{var c=t.layoutNodes[t.idToIndex[i[0]]],l=t.layoutNodes[t.idToIndex[c.parentId]];o=l.positionX,s=l.positionY}for(var u=0;u<a;u++){var h=t.layoutNodes[t.idToIndex[i[u]]];if(!h.isLocked){var f=o-h.positionX,d=s-h.positionY,A=Math.sqrt(f*f+d*d);if(A>n){var g=e.gravity*f/A,p=e.gravity*d/A;h.offsetX+=g,h.offsetY+=p}}}}},oh=function(t,e){var n=[],r=0,i=-1;for(n.push.apply(n,t.graphSet[0]),i+=t.graphSet[0].length;r<=i;){var a=n[r++],o=t.idToIndex[a],s=t.layoutNodes[o],c=s.children;if(0<c.length&&!s.isLocked){for(var l=s.offsetX,u=s.offsetY,h=0;h<c.length;h++){var f=t.layoutNodes[t.idToIndex[c[h]]];f.offsetX+=l,f.offsetY+=u,n[++i]=c[h]}s.offsetX=0,s.offsetY=0}}},sh=function(t,e){for(var n=0;n<t.nodeSize;n++)0<(i=t.layoutNodes[n]).children.length&&(i.maxX=void 0,i.minX=void 0,i.maxY=void 0,i.minY=void 0);for(n=0;n<t.nodeSize;n++)if(!(0<(i=t.layoutNodes[n]).children.length||i.isLocked)){var r=ch(i.offsetX,i.offsetY,t.temperature);i.positionX+=r.x,i.positionY+=r.y,i.offsetX=0,i.offsetY=0,i.minX=i.positionX-i.width,i.maxX=i.positionX+i.width,i.minY=i.positionY-i.height,i.maxY=i.positionY+i.height,lh(i,t)}for(n=0;n<t.nodeSize;n++){var i;0<(i=t.layoutNodes[n]).children.length&&!i.isLocked&&(i.positionX=(i.maxX+i.minX)/2,i.positionY=(i.maxY+i.minY)/2,i.width=i.maxX-i.minX,i.height=i.maxY-i.minY)}},ch=function(t,e,n){var r=Math.sqrt(t*t+e*e);if(r>n)var i={x:n*t/r,y:n*e/r};else i={x:t,y:e};return i},lh=function t(e,n){var r=e.parentId;if(null!=r){var i=n.layoutNodes[n.idToIndex[r]],a=!1;return(null==i.maxX||e.maxX+i.padRight>i.maxX)&&(i.maxX=e.maxX+i.padRight,a=!0),(null==i.minX||e.minX-i.padLeft<i.minX)&&(i.minX=e.minX-i.padLeft,a=!0),(null==i.maxY||e.maxY+i.padBottom>i.maxY)&&(i.maxY=e.maxY+i.padBottom,a=!0),(null==i.minY||e.minY-i.padTop<i.minY)&&(i.minY=e.minY-i.padTop,a=!0),a?t(i,n):void 0}},uh=function(t,e){for(var n=t.layoutNodes,r=[],i=0;i<n.length;i++){var a=n[i],o=a.cmptId;(r[o]=r[o]||[]).push(a)}var s=0;for(i=0;i<r.length;i++)if(g=r[i]){g.x1=1/0,g.x2=-1/0,g.y1=1/0,g.y2=-1/0;for(var c=0;c<g.length;c++){var l=g[c];g.x1=Math.min(g.x1,l.positionX-l.width/2),g.x2=Math.max(g.x2,l.positionX+l.width/2),g.y1=Math.min(g.y1,l.positionY-l.height/2),g.y2=Math.max(g.y2,l.positionY+l.height/2)}g.w=g.x2-g.x1,g.h=g.y2-g.y1,s+=g.w*g.h}r.sort((function(t,e){return e.w*e.h-t.w*t.h}));var u=0,h=0,f=0,d=0,A=Math.sqrt(s)*t.clientWidth/t.clientHeight;for(i=0;i<r.length;i++){var g;if(g=r[i]){for(c=0;c<g.length;c++)(l=g[c]).isLocked||(l.positionX+=u-g.x1,l.positionY+=h-g.y1);u+=g.w+e.componentSpacing,f+=g.w+e.componentSpacing,d=Math.max(d,g.h),f>A&&(h+=d+e.componentSpacing,u=0,f=0,d=0)}}},hh={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 fh(t){this.options=Z({},hh,t)}fh.prototype.run=function(){var t=this.options,e=t,n=t.cy,r=e.eles,i=r.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));var a=Fn(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===a.h||0===a.w)r.nodes().layoutPositions(this,e,(function(t){return{x:a.x1,y:a.y1}}));else{var o=i.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 A=u(),g=h();(A-1)*g>=o?u(A-1):(g-1)*A>=o&&h(g-1)}else for(;l*c<o;){var p=u(),m=h();(m+1)*p>=o?h(m+1):u(p+1)}var b=a.w/l,v=a.h/c;if(e.condense&&(b=0,v=0),e.avoidOverlap)for(var y=0;y<i.length;y++){var w=i[y],k=w._private.position;null!=k.x&&null!=k.y||(k.x=0,k.y=0);var C=w.layoutDimensions(e),x=e.avoidOverlapPadding,E=C.w+x,T=C.h+x;b=Math.max(b,E),v=Math.max(v,T)}for(var B={},_=function(t,e){return!!B["c-"+t+"-"+e]},S=function(t,e){B["c-"+t+"-"+e]=!0},L=0,I=0,M=function(){++I>=l&&(I=0,L++)},O={},D=0;D<i.length;D++){var F=i[D],N=e.position(F);if(N&&(void 0!==N.row||void 0!==N.col)){var P={row:N.row,col:N.col};if(void 0===P.col)for(P.col=0;_(P.row,P.col);)P.col++;else if(void 0===P.row)for(P.row=0;_(P.row,P.col);)P.row++;O[F.id()]=P,S(P.row,P.col)}}var R=function(t,e){var n,r;if(t.locked()||t.isParent())return!1;var i=O[t.id()];if(i)n=i.col*b+b/2+a.x1,r=i.row*v+v/2+a.y1;else{for(;_(L,I);)M();n=I*b+b/2+a.x1,r=L*v+v/2+a.y1,S(L,I),M()}return{x:n,y:r}};i.layoutPositions(this,e,R)}return this};var dh={ready:function(){},stop:function(){}};function Ah(t){this.options=Z({},dh,t)}Ah.prototype.run=function(){var t=this.options,e=t.eles,n=this;return t.cy,n.emit("layoutstart"),e.nodes().positions((function(){return{x:0,y:0}})),n.one("layoutready",t.ready),n.emit("layoutready"),n.one("layoutstop",t.stop),n.emit("layoutstop"),this},Ah.prototype.stop=function(){return this};var gh={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor: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 ph(t){this.options=Z({},gh,t)}ph.prototype.run=function(){var t=this.options,e=t.eles.nodes(),n=w(t.positions);function r(e){if(null==t.positions)return pn(e.position());if(n)return t.positions(e);var r=t.positions[e._private.data.id];return null==r?null:r}return e.layoutPositions(this,t,(function(t,e){var n=r(t);return!t.locked()&&null!=n&&n})),this};var mh={fit:!0,padding:30,boundingBox: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 bh(t){this.options=Z({},mh,t)}bh.prototype.run=function(){var t=this.options,e=t.cy,n=t.eles,r=Fn(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),i=function(t,e){return{x:r.x1+Math.round(Math.random()*r.w),y:r.y1+Math.round(Math.random()*r.h)}};return n.nodes().layoutPositions(this,t,i),this};var vh=[{name:"breadthfirst",impl:Pu},{name:"circle",impl:Qu},{name:"concentric",impl:Hu},{name:"cose",impl:Ku},{name:"grid",impl:fh},{name:"null",impl:Ah},{name:"preset",impl:ph},{name:"random",impl:bh}];function yh(t){this.options=t,this.notifications=0}var wh=function(){},kh=function(){throw new Error("A headless instance can not render images")};yh.prototype={recalculateRenderedStyle:wh,notify:function(){this.notifications++},init:wh,isHeadless:function(){return!0},png:kh,jpg:kh};var Ch={arrowShapeWidth:.3,registerArrowShapes:function(){var t=this.arrowShapes={},e=this,n=function(t,e,n,r,i,a,o){var s=i.x-n/2-o,c=i.x+n/2+o,l=i.y-n/2-o,u=i.y+n/2+o;return s<=t&&t<=c&&l<=e&&e<=u},r=function(t,e,n,r,i){var a=t*Math.cos(r)-e*Math.sin(r),o=(t*Math.sin(r)+e*Math.cos(r))*n;return{x:a*n+i.x,y:o+i.y}},i=function(t,e,n,i){for(var a=[],o=0;o<t.length;o+=2){var s=t[o],c=t[o+1];a.push(r(s,c,e,n,i))}return a},a=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];e.push(r.x,r.y)}return e},o=function(t){return t.pstyle("width").pfValue*t.pstyle("arrow-scale").pfValue*2},s=function(r,s){y(s)&&(s=t[s]),t[r]=Z({name:r,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(t,e,n,r,o,s){var c=a(i(this.points,n+2*s,r,o));return er(t,e,c)},roughCollide:n,draw:function(t,n,r,a){var o=i(this.points,n,r,a);e.arrowShapeImpl("polygon")(t,o)},spacing:function(t){return 0},gap:o},s)};s("none",{collide:_e,roughCollide:_e,draw:Le,spacing:Se,gap:Se}),s("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),s("arrow","triangle"),s("triangle-backcurve",{points:t.triangle.points,controlPoint:[0,-.15],roughCollide:n,draw:function(t,n,a,o,s){var c=i(this.points,n,a,o),l=this.controlPoint,u=r(l[0],l[1],n,a,o);e.arrowShapeImpl(this.name)(t,c,u)},gap:function(t){return.8*o(t)}}),s("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(t,e,n,r,o,s,c){var l=a(i(this.points,n+2*c,r,o)),u=a(i(this.pointsTee,n+2*c,r,o));return er(t,e,l)||er(t,e,u)},draw:function(t,n,r,a,o){var s=i(this.points,n,r,a),c=i(this.pointsTee,n,r,a);e.arrowShapeImpl(this.name)(t,s,c)}}),s("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(t,e,n,r,o,s,c){var l=o,u=Math.pow(l.x-t,2)+Math.pow(l.y-e,2)<=Math.pow((n+2*c)*this.radius,2),h=a(i(this.points,n+2*c,r,o));return er(t,e,h)||u},draw:function(t,n,r,a,o){var s=i(this.pointsTr,n,r,a);e.arrowShapeImpl(this.name)(t,s,a.x,a.y,this.radius*n)},spacing:function(t){return e.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.radius}}),s("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(t,e){var n=this.baseCrossLinePts.slice(),r=e/t,i=3,a=5;return n[i]=n[i]-r,n[a]=n[a]-r,n},collide:function(t,e,n,r,o,s,c){var l=a(i(this.points,n+2*c,r,o)),u=a(i(this.crossLinePts(n,s),n+2*c,r,o));return er(t,e,l)||er(t,e,u)},draw:function(t,n,r,a,o){var s=i(this.points,n,r,a),c=i(this.crossLinePts(n,o),n,r,a);e.arrowShapeImpl(this.name)(t,s,c)}}),s("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(t){return.525*o(t)}}),s("circle",{radius:.15,collide:function(t,e,n,r,i,a,o){var s=i;return Math.pow(s.x-t,2)+Math.pow(s.y-e,2)<=Math.pow((n+2*o)*this.radius,2)},draw:function(t,n,r,i,a){e.arrowShapeImpl(this.name)(t,i.x,i.y,this.radius*n)},spacing:function(t){return e.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.radius}}),s("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(t){return 1},gap:function(t){return 1}}),s("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),s("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(t){return t.pstyle("width").pfValue*t.pstyle("arrow-scale").value}}),s("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(t){return.95*t.pstyle("width").pfValue*t.pstyle("arrow-scale").value}})}},xh={projectIntoViewport:function(t,e){var n=this.cy,r=this.findContainerClientCoords(),i=r[0],a=r[1],o=r[4],s=n.pan(),c=n.zoom();return[((t-i)/o-s.x)/c,((e-a)/o-s.y)/c]},findContainerClientCoords:function(){if(this.containerBB)return this.containerBB;var t=this.container,e=t.getBoundingClientRect(),n=this.cy.window().getComputedStyle(t),r=function(t){return parseFloat(n.getPropertyValue(t))},i={left:r("padding-left"),right:r("padding-right"),top:r("padding-top"),bottom:r("padding-bottom")},a={left:r("border-left-width"),right:r("border-right-width"),top:r("border-top-width"),bottom:r("border-bottom-width")},o=t.clientWidth,s=t.clientHeight,c=i.left+i.right,l=i.top+i.bottom,u=a.left+a.right,h=e.width/(o+u),f=o-c,d=s-l,A=e.left+i.left+a.left,g=e.top+i.top+a.top;return this.containerBB=[A,g,f,d,h]},invalidateContainerClientCoordsCache:function(){this.containerBB=null},findNearestElement:function(t,e,n,r){return this.findNearestElements(t,e,n,r)[0]},findNearestElements:function(t,e,n,r){var i,a,o=this,s=this,c=s.getCachedZSortedEles(),l=[],u=s.cy.zoom(),h=s.cy.hasCompoundNodes(),f=(r?24:8)/u,d=(r?8:2)/u,A=(r?8:2)/u,g=1/0;function p(t,e){if(t.isNode()){if(a)return;a=t,l.push(t)}if(t.isEdge()&&(null==e||e<g))if(i){if(i.pstyle("z-compound-depth").value===t.pstyle("z-compound-depth").value&&i.pstyle("z-compound-depth").value===t.pstyle("z-compound-depth").value)for(var n=0;n<l.length;n++)if(l[n].isEdge()){l[n]=t,i=t,g=null!=e?e:g;break}}else l.push(t),i=t,g=null!=e?e:g}function m(n){var r=n.outerWidth()+2*d,i=n.outerHeight()+2*d,a=r/2,c=i/2,l=n.position(),u="auto"===n.pstyle("corner-radius").value?"auto":n.pstyle("corner-radius").pfValue,h=n._private.rscratch;if(l.x-a<=t&&t<=l.x+a&&l.y-c<=e&&e<=l.y+c&&s.nodeShapes[o.getNodeShape(n)].checkPoint(t,e,0,r,i,l.x,l.y,u,h))return p(n,0),!0}function b(n){var r,i=n._private,a=i.rscratch,c=n.pstyle("width").pfValue,u=n.pstyle("arrow-scale").value,d=c/2+f,A=d*d,g=2*d,b=i.source,v=i.target;if("segments"===a.edgeType||"straight"===a.edgeType||"haystack"===a.edgeType){for(var y=a.allpts,w=0;w+3<y.length;w+=2)if(Wn(t,e,y[w],y[w+1],y[w+2],y[w+3],g)&&A>(r=tr(t,e,y[w],y[w+1],y[w+2],y[w+3])))return p(n,r),!0}else if("bezier"===a.edgeType||"multibezier"===a.edgeType||"self"===a.edgeType||"compound"===a.edgeType)for(y=a.allpts,w=0;w+5<a.allpts.length;w+=4)if(qn(t,e,y[w],y[w+1],y[w+2],y[w+3],y[w+4],y[w+5],g)&&A>(r=Zn(t,e,y[w],y[w+1],y[w+2],y[w+3],y[w+4],y[w+5])))return p(n,r),!0;b=b||i.source,v=v||i.target;var k=o.getArrowWidth(c,u),C=[{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(w=0;w<C.length;w++){var x=C[w],E=s.arrowShapes[n.pstyle(x.name+"-arrow-shape").value],T=n.pstyle("width").pfValue;if(E.roughCollide(t,e,k,x.angle,{x:x.x,y:x.y},T,f)&&E.collide(t,e,k,x.angle,{x:x.x,y:x.y},T,f))return p(n),!0}h&&l.length>0&&(m(b),m(v))}function v(t,e,n){return Ke(t,e,n)}function y(n,r){var i,a=n._private,o=A;i=r?r+"-":"",n.boundingBox();var s=a.labelBounds[r||"main"],c=n.pstyle(i+"label").value;if("yes"===n.pstyle("text-events").strValue&&c){var l=v(a.rscratch,"labelX",r),u=v(a.rscratch,"labelY",r),h=v(a.rscratch,"labelAngle",r),f=n.pstyle(i+"text-margin-x").pfValue,d=n.pstyle(i+"text-margin-y").pfValue,g=s.x1-o-f,m=s.x2+o-f,b=s.y1-o-d,y=s.y2+o-d;if(h){var w=Math.cos(h),k=Math.sin(h),C=function(t,e){return{x:(t-=l)*w-(e-=u)*k+l,y:t*k+e*w+u}},x=C(g,b),E=C(g,y),T=C(m,b),B=C(m,y),_=[x.x+f,x.y+d,T.x+f,T.y+d,B.x+f,B.y+d,E.x+f,E.y+d];if(er(t,e,_))return p(n),!0}else if(zn(s,t,e))return p(n),!0}}n&&(c=c.interactive);for(var w=c.length-1;w>=0;w--){var k=c[w];k.isNode()?m(k)||y(k):b(k)||y(k)||y(k,"source")||y(k,"target")}return l},getAllInBox:function(t,e,n,r){for(var i=this.getCachedZSortedEles().interactive,a=[],o=Math.min(t,n),s=Math.max(t,n),c=Math.min(e,r),l=Math.max(e,r),u=Fn({x1:t=o,y1:e=c,x2:n=s,y2:r=l}),h=0;h<i.length;h++){var f=i[h];if(f.isNode()){var d=f,A=d.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});Kn(u,A)&&!Xn(A,u)&&a.push(d)}else{var g=f,p=g._private,m=p.rscratch;if(null!=m.startX&&null!=m.startY&&!zn(u,m.startX,m.startY))continue;if(null!=m.endX&&null!=m.endY&&!zn(u,m.endX,m.endY))continue;if("bezier"===m.edgeType||"multibezier"===m.edgeType||"self"===m.edgeType||"compound"===m.edgeType||"segments"===m.edgeType||"haystack"===m.edgeType){for(var b=p.rstyle.bezierPts||p.rstyle.linePts||p.rstyle.haystackPts,v=!0,y=0;y<b.length;y++)if(!Gn(u,b[y])){v=!1;break}v&&a.push(g)}else"haystack"!==m.edgeType&&"straight"!==m.edgeType||a.push(g)}}return a}},Eh={calculateArrowAngles:function(t){var e,n,r,i,a,o,s=t._private.rscratch,c="haystack"===s.edgeType,l="bezier"===s.edgeType,u="multibezier"===s.edgeType,h="segments"===s.edgeType,f="compound"===s.edgeType,d="self"===s.edgeType;if(c?(r=s.haystackPts[0],i=s.haystackPts[1],a=s.haystackPts[2],o=s.haystackPts[3]):(r=s.arrowStartX,i=s.arrowStartY,a=s.arrowEndX,o=s.arrowEndY),g=s.midX,p=s.midY,h)e=r-s.segpts[0],n=i-s.segpts[1];else if(u||f||d||l){var A=s.allpts;e=r-In(A[0],A[2],A[4],.1),n=i-In(A[1],A[3],A[5],.1)}else e=r-g,n=i-p;s.srcArrowAngle=En(e,n);var g=s.midX,p=s.midY;if(c&&(g=(r+a)/2,p=(i+o)/2),e=a-r,n=o-i,h)if((A=s.allpts).length/2%2==0){var m=(E=A.length/2)-2;e=A[E]-A[m],n=A[E+1]-A[m+1]}else s.isRound?(e=s.midVector[1],n=-s.midVector[0]):(m=(E=A.length/2-1)-2,e=A[E]-A[m],n=A[E+1]-A[m+1]);else if(u||f||d){var b,v,y,w,A=s.allpts;if(s.ctrlpts.length/2%2==0){var k=2+(C=2+(x=A.length/2-1));b=In(A[x],A[C],A[k],0),v=In(A[x+1],A[C+1],A[k+1],0),y=In(A[x],A[C],A[k],1e-4),w=In(A[x+1],A[C+1],A[k+1],1e-4)}else{var C,x;k=2+(C=A.length/2-1),b=In(A[x=C-2],A[C],A[k],.4999),v=In(A[x+1],A[C+1],A[k+1],.4999),y=In(A[x],A[C],A[k],.5),w=In(A[x+1],A[C+1],A[k+1],.5)}e=y-b,n=w-v}if(s.midtgtArrowAngle=En(e,n),s.midDispX=e,s.midDispY=n,e*=-1,n*=-1,h)if((A=s.allpts).length/2%2==0);else if(!s.isRound){var E,T=2+(E=A.length/2-1);e=-(A[T]-A[E]),n=-(A[T+1]-A[E+1])}if(s.midsrcArrowAngle=En(e,n),h)e=a-s.segpts[s.segpts.length-2],n=o-s.segpts[s.segpts.length-1];else if(u||f||d||l){var B=(A=s.allpts).length;e=a-In(A[B-6],A[B-4],A[B-2],.9),n=o-In(A[B-5],A[B-3],A[B-1],.9)}else e=a-g,n=o-p;s.tgtArrowAngle=En(e,n)}};Eh.getArrowWidth=Eh.getArrowHeight=function(t,e){var n=this.arrowWidthCache=this.arrowWidthCache||{},r=n[t+", "+e];return r||(r=Math.max(Math.pow(13.37*t,.9),29)*e,n[t+", "+e]=r,r)};var Th,Bh,_h,Sh,Lh,Ih,Mh,Oh,Dh,Fh,Nh,Ph,Rh,Qh,Uh,$h,Hh,jh={},Kh={},zh=function(t,e,n){n.x=e.x-t.x,n.y=e.y-t.y,n.len=Math.sqrt(n.x*n.x+n.y*n.y),n.nx=n.x/n.len,n.ny=n.y/n.len,n.ang=Math.atan2(n.ny,n.nx)},Gh=function(t,e){e.x=-1*t.x,e.y=-1*t.y,e.nx=-1*t.nx,e.ny=-1*t.ny,e.ang=t.ang>0?-(Math.PI-t.ang):Math.PI+t.ang},Xh=function(t,e,n,r,i){if(t!==Hh?zh(e,t,jh):Gh(Kh,jh),zh(e,n,Kh),_h=jh.nx*Kh.ny-jh.ny*Kh.nx,Sh=jh.nx*Kh.nx-jh.ny*-Kh.ny,Mh=Math.asin(Math.max(-1,Math.min(1,_h))),Math.abs(Mh)<1e-6)return Th=e.x,Bh=e.y,void(Dh=Nh=0);Lh=1,Ih=!1,Sh<0?Mh<0?Mh=Math.PI+Mh:(Mh=Math.PI-Mh,Lh=-1,Ih=!0):Mh>0&&(Lh=-1,Ih=!0),Nh=void 0!==e.radius?e.radius:r,Oh=Mh/2,Ph=Math.min(jh.len/2,Kh.len/2),i?(Fh=Math.abs(Math.cos(Oh)*Nh/Math.sin(Oh)))>Ph?(Fh=Ph,Dh=Math.abs(Fh*Math.sin(Oh)/Math.cos(Oh))):Dh=Nh:(Fh=Math.min(Ph,Nh),Dh=Math.abs(Fh*Math.sin(Oh)/Math.cos(Oh))),Uh=e.x+Kh.nx*Fh,$h=e.y+Kh.ny*Fh,Th=Uh-Kh.ny*Dh*Lh,Bh=$h+Kh.nx*Dh*Lh,Rh=e.x+jh.nx*Fh,Qh=e.y+jh.ny*Fh,Hh=e};function Vh(t,e){0===e.radius?t.lineTo(e.cx,e.cy):t.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function Wh(t,e,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return 0===r||0===e.radius?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(Xh(t,e,n,r,i),{cx:Th,cy:Bh,radius:Dh,startX:Rh,startY:Qh,stopX:Uh,stopY:$h,startAngle:jh.ang+Math.PI/2*Lh,endAngle:Kh.ang-Math.PI/2*Lh,counterClockwise:Ih})}var qh={};function Yh(t){var e=[];if(null!=t){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e.push({x:r,y:i})}return e}}qh.findMidptPtsEtc=function(t,e){var n,r=e.posPts,i=e.intersectionPts,a=e.vectorNormInverse,s=t.pstyle("source-endpoint"),c=t.pstyle("target-endpoint"),l=null!=s.units&&null!=c.units,u=function(t,e,n,r){var i=r-e,a=n-t,o=Math.sqrt(a*a+i*i);return{x:-i/o,y:a/o}};switch(t.pstyle("edge-distances").value){case"node-position":n=r;break;case"intersection":n=i;break;case"endpoints":if(l){var h=o(this.manualEndptToPx(t.source()[0],s),2),f=h[0],d=h[1],A=o(this.manualEndptToPx(t.target()[0],c),2),g=A[0],p=A[1],m={x1:f,y1:d,x2:g,y2:p};a=u(f,d,g,p),n=m}else Oe("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),n=i}return{midptPts:n,vectorNormInverse:a}},qh.findHaystackPoints=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n._private,i=r.rscratch;if(!i.haystack){var a=2*Math.random()*Math.PI;i.source={x:Math.cos(a),y:Math.sin(a)},a=2*Math.random()*Math.PI,i.target={x:Math.cos(a),y:Math.sin(a)}}var o=r.source,s=r.target,c=o.position(),l=s.position(),u=o.width(),h=s.width(),f=o.height(),d=s.height(),A=n.pstyle("haystack-radius").value/2;i.haystackPts=i.allpts=[i.source.x*u*A+c.x,i.source.y*f*A+c.y,i.target.x*h*A+l.x,i.target.y*d*A+l.y],i.midX=(i.allpts[0]+i.allpts[2])/2,i.midY=(i.allpts[1]+i.allpts[3])/2,i.edgeType="haystack",i.haystack=!0,this.storeEdgeProjections(n),this.calculateArrowAngles(n),this.recalculateEdgeLabelProjections(n),this.calculateLabelAngles(n)}},qh.findSegmentsPoints=function(t,e){var n=t._private.rscratch,r=t.pstyle("segment-weights"),i=t.pstyle("segment-distances"),a=t.pstyle("segment-radii"),o=t.pstyle("radius-type"),s=Math.min(r.pfValue.length,i.pfValue.length),c=a.pfValue[a.pfValue.length-1],l=o.pfValue[o.pfValue.length-1];n.edgeType="segments",n.segpts=[],n.radii=[],n.isArcRadius=[];for(var u=0;u<s;u++){var h=r.pfValue[u],f=i.pfValue[u],d=1-h,A=h,g=this.findMidptPtsEtc(t,e),p=g.midptPts,m=g.vectorNormInverse,b={x:p.x1*d+p.x2*A,y:p.y1*d+p.y2*A};n.segpts.push(b.x+m.x*f,b.y+m.y*f),n.radii.push(void 0!==a.pfValue[u]?a.pfValue[u]:c),n.isArcRadius.push("arc-radius"===(void 0!==o.pfValue[u]?o.pfValue[u]:l))}},qh.findLoopPoints=function(t,e,n,r){var i=t._private.rscratch,a=e.dirCounts,o=e.srcPos,s=t.pstyle("control-point-distances"),c=s?s.pfValue[0]:void 0,l=t.pstyle("loop-direction").pfValue,u=t.pstyle("loop-sweep").pfValue,h=t.pstyle("control-point-step-size").pfValue;i.edgeType="self";var f=n,d=h;r&&(f=0,d=c);var A=l-Math.PI/2,g=A-u/2,p=A+u/2,m=String(l+"_"+u);f=void 0===a[m]?a[m]=0:++a[m],i.ctrlpts=[o.x+1.4*Math.cos(g)*d*(f/3+1),o.y+1.4*Math.sin(g)*d*(f/3+1),o.x+1.4*Math.cos(p)*d*(f/3+1),o.y+1.4*Math.sin(p)*d*(f/3+1)]},qh.findCompoundLoopPoints=function(t,e,n,r){var i=t._private.rscratch;i.edgeType="compound";var a=e.srcPos,o=e.tgtPos,s=e.srcW,c=e.srcH,l=e.tgtW,u=e.tgtH,h=t.pstyle("control-point-step-size").pfValue,f=t.pstyle("control-point-distances"),d=f?f.pfValue[0]:void 0,A=n,g=h;r&&(A=0,g=d);var p=50,m={x:a.x-s/2,y:a.y-c/2},b={x:o.x-l/2,y:o.y-u/2},v={x:Math.min(m.x,b.x),y:Math.min(m.y,b.y)},y=.5,w=Math.max(y,Math.log(.01*s)),k=Math.max(y,Math.log(.01*l));i.ctrlpts=[v.x,v.y-(1+Math.pow(p,1.12)/100)*g*(A/3+1)*w,v.x-(1+Math.pow(p,1.12)/100)*g*(A/3+1)*k,v.y]},qh.findStraightEdgePoints=function(t){t._private.rscratch.edgeType="straight"},qh.findBezierPoints=function(t,e,n,r,i){var a=t._private.rscratch,o=t.pstyle("control-point-step-size").pfValue,s=t.pstyle("control-point-distances"),c=t.pstyle("control-point-weights"),l=s&&c?Math.min(s.value.length,c.value.length):1,u=s?s.pfValue[0]:void 0,h=c.value[0],f=r;a.edgeType=f?"multibezier":"bezier",a.ctrlpts=[];for(var d=0;d<l;d++){var A=(.5-e.eles.length/2+n)*o*(i?-1:1),g=void 0,p=Bn(A);f&&(u=s?s.pfValue[d]:o,h=c.value[d]);var m=void 0!==(g=r?u:void 0!==u?p*u:void 0)?g:A,b=1-h,v=h,y=this.findMidptPtsEtc(t,e),w=y.midptPts,k=y.vectorNormInverse,C={x:w.x1*b+w.x2*v,y:w.y1*b+w.y2*v};a.ctrlpts.push(C.x+k.x*m,C.y+k.y*m)}},qh.findTaxiPoints=function(t,e){var n=t._private.rscratch;n.edgeType="segments";var r="vertical",i="horizontal",a="leftward",o="rightward",s="downward",c="upward",l="auto",u=e.posPts,h=e.srcW,f=e.srcH,d=e.tgtW,A=e.tgtH,g="node-position"!==t.pstyle("edge-distances").value,p=t.pstyle("taxi-direction").value,m=p,b=t.pstyle("taxi-turn"),v="%"===b.units,y=b.pfValue,w=y<0,k=t.pstyle("taxi-turn-min-distance").pfValue,C=g?(h+d)/2:0,x=g?(f+A)/2:0,E=u.x2-u.x1,T=u.y2-u.y1,B=function(t,e){return t>0?Math.max(t-e,0):Math.min(t+e,0)},_=B(E,C),S=B(T,x),L=!1;m===l?p=Math.abs(_)>Math.abs(S)?i:r:m===c||m===s?(p=r,L=!0):m!==a&&m!==o||(p=i,L=!0);var I,M=p===r,O=M?S:_,D=M?T:E,F=Bn(D),N=!1;L&&(v||w)||!(m===s&&D<0||m===c&&D>0||m===a&&D>0||m===o&&D<0)||(O=(F*=-1)*Math.abs(O),N=!0);var P=function(t){return Math.abs(t)<k||Math.abs(t)>=Math.abs(O)},R=P(I=v?(y<0?1+y:y)*O:(y<0?O:0)+y*F),Q=P(Math.abs(O)-Math.abs(I));if(!R&&!Q||N)if(M){var U=u.y1+I+(g?f/2*F:0),$=u.x1,H=u.x2;n.segpts=[$,U,H,U]}else{var j=u.x1+I+(g?h/2*F:0),K=u.y1,z=u.y2;n.segpts=[j,K,j,z]}else if(M){var G=Math.abs(D)<=f/2,X=Math.abs(E)<=d/2;if(G){var V=(u.x1+u.x2)/2,W=u.y1,q=u.y2;n.segpts=[V,W,V,q]}else if(X){var Y=(u.y1+u.y2)/2,J=u.x1,Z=u.x2;n.segpts=[J,Y,Z,Y]}else n.segpts=[u.x1,u.y2]}else{var tt=Math.abs(D)<=h/2,et=Math.abs(T)<=A/2;if(tt){var nt=(u.y1+u.y2)/2,rt=u.x1,it=u.x2;n.segpts=[rt,nt,it,nt]}else if(et){var at=(u.x1+u.x2)/2,ot=u.y1,st=u.y2;n.segpts=[at,ot,at,st]}else n.segpts=[u.x2,u.y1]}if(n.isRound){var ct=t.pstyle("taxi-radius").value,lt="arc-radius"===t.pstyle("radius-type").value[0];n.radii=new Array(n.segpts.length/2).fill(ct),n.isArcRadius=new Array(n.segpts.length/2).fill(lt)}},qh.tryToCorrectInvalidPoints=function(t,e){var n=t._private.rscratch;if("bezier"===n.edgeType){var r=e.srcPos,i=e.tgtPos,a=e.srcW,o=e.srcH,s=e.tgtW,c=e.tgtH,l=e.srcShape,u=e.tgtShape,h=e.srcCornerRadius,f=e.tgtCornerRadius,d=e.srcRs,A=e.tgtRs,g=!E(n.startX)||!E(n.startY),p=!E(n.arrowStartX)||!E(n.arrowStartY),m=!E(n.endX)||!E(n.endY),b=!E(n.arrowEndX)||!E(n.arrowEndY),v=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth*3,y=_n({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),w=y<v,k=_n({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.endX,y:n.endY}),C=k<v,x=!1;if(g||p||w){x=!0;var T={x:n.ctrlpts[0]-r.x,y:n.ctrlpts[1]-r.y},B=Math.sqrt(T.x*T.x+T.y*T.y),_={x:T.x/B,y:T.y/B},S=Math.max(a,o),L={x:n.ctrlpts[0]+2*_.x*S,y:n.ctrlpts[1]+2*_.y*S},I=l.intersectLine(r.x,r.y,a,o,L.x,L.y,0,h,d);w?(n.ctrlpts[0]=n.ctrlpts[0]+_.x*(v-y),n.ctrlpts[1]=n.ctrlpts[1]+_.y*(v-y)):(n.ctrlpts[0]=I[0]+_.x*v,n.ctrlpts[1]=I[1]+_.y*v)}if(m||b||C){x=!0;var M={x:n.ctrlpts[0]-i.x,y:n.ctrlpts[1]-i.y},O=Math.sqrt(M.x*M.x+M.y*M.y),D={x:M.x/O,y:M.y/O},F=Math.max(a,o),N={x:n.ctrlpts[0]+2*D.x*F,y:n.ctrlpts[1]+2*D.y*F},P=u.intersectLine(i.x,i.y,s,c,N.x,N.y,0,f,A);C?(n.ctrlpts[0]=n.ctrlpts[0]+D.x*(v-k),n.ctrlpts[1]=n.ctrlpts[1]+D.y*(v-k)):(n.ctrlpts[0]=P[0]+D.x*v,n.ctrlpts[1]=P[1]+D.y*v)}x&&this.findEndpoints(t)}},qh.storeAllpts=function(t){var e=t._private.rscratch;if("multibezier"===e.edgeType||"bezier"===e.edgeType||"self"===e.edgeType||"compound"===e.edgeType){e.allpts=[],e.allpts.push(e.startX,e.startY);for(var n=0;n+1<e.ctrlpts.length;n+=2)e.allpts.push(e.ctrlpts[n],e.ctrlpts[n+1]),n+3<e.ctrlpts.length&&e.allpts.push((e.ctrlpts[n]+e.ctrlpts[n+2])/2,(e.ctrlpts[n+1]+e.ctrlpts[n+3])/2);var r,i;e.allpts.push(e.endX,e.endY),e.ctrlpts.length/2%2==0?(r=e.allpts.length/2-1,e.midX=e.allpts[r],e.midY=e.allpts[r+1]):(r=e.allpts.length/2-3,i=.5,e.midX=In(e.allpts[r],e.allpts[r+2],e.allpts[r+4],i),e.midY=In(e.allpts[r+1],e.allpts[r+3],e.allpts[r+5],i))}else if("straight"===e.edgeType)e.allpts=[e.startX,e.startY,e.endX,e.endY],e.midX=(e.startX+e.endX+e.arrowStartX+e.arrowEndX)/4,e.midY=(e.startY+e.endY+e.arrowStartY+e.arrowEndY)/4;else if("segments"===e.edgeType){if(e.allpts=[],e.allpts.push(e.startX,e.startY),e.allpts.push.apply(e.allpts,e.segpts),e.allpts.push(e.endX,e.endY),e.isRound){e.roundCorners=[];for(var a=2;a+3<e.allpts.length;a+=2){var o=e.radii[a/2-1],s=e.isArcRadius[a/2-1];e.roundCorners.push(Wh({x:e.allpts[a-2],y:e.allpts[a-1]},{x:e.allpts[a],y:e.allpts[a+1],radius:o},{x:e.allpts[a+2],y:e.allpts[a+3]},o,s))}}if(e.segpts.length%4==0){var c=e.segpts.length/2,l=c-2;e.midX=(e.segpts[l]+e.segpts[c])/2,e.midY=(e.segpts[l+1]+e.segpts[c+1])/2}else{var u=e.segpts.length/2-1;if(e.isRound){var h={x:e.segpts[u],y:e.segpts[u+1]},f=e.roundCorners[u/2],d=[h.x-f.cx,h.y-f.cy],A=f.radius/Math.sqrt(Math.pow(d[0],2)+Math.pow(d[1],2));d=d.map((function(t){return t*A})),e.midX=f.cx+d[0],e.midY=f.cy+d[1],e.midVector=d}else e.midX=e.segpts[u],e.midY=e.segpts[u+1]}}},qh.checkForInvalidEdgeWarning=function(t){var e=t[0]._private.rscratch;e.nodesOverlap||E(e.startX)&&E(e.startY)&&E(e.endX)&&E(e.endY)?e.loggedErr=!1:e.loggedErr||(e.loggedErr=!0,Oe("Edge `"+t.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},qh.findEdgeControlPoints=function(t){var e=this;if(t&&0!==t.length){for(var n=this,r=n.cy.hasCompoundNodes(),i={map:new Xe,get:function(t){var e=this.map.get(t[0]);return null!=e?e.get(t[1]):null},set:function(t,e){var n=this.map.get(t[0]);null==n&&(n=new Xe,this.map.set(t[0],n)),n.set(t[1],e)}},a=[],o=[],s=0;s<t.length;s++){var c=t[s],l=c._private,u=c.pstyle("curve-style").value;if(!c.removed()&&c.takesUpSpace())if("haystack"!==u){var h="unbundled-bezier"===u||u.endsWith("segments")||"straight"===u||"straight-triangle"===u||u.endsWith("taxi"),f="unbundled-bezier"===u||"bezier"===u,d=l.source,A=l.target,g=[d.poolIndex(),A.poolIndex()].sort(),p=i.get(g);null==p&&(p={eles:[]},i.set(g,p),a.push(g)),p.eles.push(c),h&&(p.hasUnbundled=!0),f&&(p.hasBezier=!0)}else o.push(c)}for(var m=function(t){var o=a[t],s=i.get(o),c=void 0;if(!s.hasUnbundled){var l=s.eles[0].parallelEdges().filter((function(t){return t.isBundledBezier()}));He(s.eles),l.forEach((function(t){return s.eles.push(t)})),s.eles.sort((function(t,e){return t.poolIndex()-e.poolIndex()}))}var u=s.eles[0],h=u.source(),f=u.target();if(h.poolIndex()>f.poolIndex()){var d=h;h=f,f=d}var A=s.srcPos=h.position(),g=s.tgtPos=f.position(),p=s.srcW=h.outerWidth(),m=s.srcH=h.outerHeight(),b=s.tgtW=f.outerWidth(),v=s.tgtH=f.outerHeight(),y=s.srcShape=n.nodeShapes[e.getNodeShape(h)],w=s.tgtShape=n.nodeShapes[e.getNodeShape(f)],k=s.srcCornerRadius="auto"===h.pstyle("corner-radius").value?"auto":h.pstyle("corner-radius").pfValue,C=s.tgtCornerRadius="auto"===f.pstyle("corner-radius").value?"auto":f.pstyle("corner-radius").pfValue,x=s.tgtRs=f._private.rscratch,T=s.srcRs=h._private.rscratch;s.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var B=0;B<s.eles.length;B++){var _=s.eles[B],S=_[0]._private.rscratch,L=_.pstyle("curve-style").value,I="unbundled-bezier"===L||L.endsWith("segments")||L.endsWith("taxi"),M=!h.same(_.source());if(!s.calculatedIntersection&&h!==f&&(s.hasBezier||s.hasUnbundled)){s.calculatedIntersection=!0;var O=y.intersectLine(A.x,A.y,p,m,g.x,g.y,0,k,T),D=s.srcIntn=O,F=w.intersectLine(g.x,g.y,b,v,A.x,A.y,0,C,x),N=s.tgtIntn=F,P=s.intersectionPts={x1:O[0],x2:F[0],y1:O[1],y2:F[1]},R=s.posPts={x1:A.x,x2:g.x,y1:A.y,y2:g.y},Q=F[1]-O[1],U=F[0]-O[0],$=Math.sqrt(U*U+Q*Q),H=s.vector={x:U,y:Q},j=s.vectorNorm={x:H.x/$,y:H.y/$},K={x:-j.y,y:j.x};s.nodesOverlap=!E($)||w.checkPoint(O[0],O[1],0,b,v,g.x,g.y,C,x)||y.checkPoint(F[0],F[1],0,p,m,A.x,A.y,k,T),s.vectorNormInverse=K,c={nodesOverlap:s.nodesOverlap,dirCounts:s.dirCounts,calculatedIntersection:!0,hasBezier:s.hasBezier,hasUnbundled:s.hasUnbundled,eles:s.eles,srcPos:g,tgtPos:A,srcW:b,srcH:v,tgtW:p,tgtH:m,srcIntn:N,tgtIntn:D,srcShape:w,tgtShape:y,posPts:{x1:R.x2,y1:R.y2,x2:R.x1,y2:R.y1},intersectionPts:{x1:P.x2,y1:P.y2,x2:P.x1,y2:P.y1},vector:{x:-H.x,y:-H.y},vectorNorm:{x:-j.x,y:-j.y},vectorNormInverse:{x:-K.x,y:-K.y}}}var z=M?c:s;S.nodesOverlap=z.nodesOverlap,S.srcIntn=z.srcIntn,S.tgtIntn=z.tgtIntn,S.isRound=L.startsWith("round"),r&&(h.isParent()||h.isChild()||f.isParent()||f.isChild())&&(h.parents().anySame(f)||f.parents().anySame(h)||h.same(f)&&h.isParent())?e.findCompoundLoopPoints(_,z,B,I):h===f?e.findLoopPoints(_,z,B,I):L.endsWith("segments")?e.findSegmentsPoints(_,z):L.endsWith("taxi")?e.findTaxiPoints(_,z):"straight"===L||!I&&s.eles.length%2==1&&B===Math.floor(s.eles.length/2)?e.findStraightEdgePoints(_):e.findBezierPoints(_,z,B,I,M),e.findEndpoints(_),e.tryToCorrectInvalidPoints(_,z),e.checkForInvalidEdgeWarning(_),e.storeAllpts(_),e.storeEdgeProjections(_),e.calculateArrowAngles(_),e.recalculateEdgeLabelProjections(_),e.calculateLabelAngles(_)}},b=0;b<a.length;b++)m(b);this.findHaystackPoints(o)}},qh.getSegmentPoints=function(t){var e=t[0]._private.rscratch;if("segments"===e.edgeType)return this.recalculateRenderedStyle(t),Yh(e.segpts)},qh.getControlPoints=function(t){var e=t[0]._private.rscratch,n=e.edgeType;if("bezier"===n||"multibezier"===n||"self"===n||"compound"===n)return this.recalculateRenderedStyle(t),Yh(e.ctrlpts)},qh.getEdgeMidpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),{x:e.midX,y:e.midY}};var Jh={manualEndptToPx:function(t,e){var n=this,r=t.position(),i=t.outerWidth(),a=t.outerHeight(),o=t._private.rscratch;if(2===e.value.length){var s=[e.pfValue[0],e.pfValue[1]];return"%"===e.units[0]&&(s[0]=s[0]*i),"%"===e.units[1]&&(s[1]=s[1]*a),s[0]+=r.x,s[1]+=r.y,s}var c=e.pfValue[0];c=-Math.PI/2+c;var l=2*Math.max(i,a),u=[r.x+Math.cos(c)*l,r.y+Math.sin(c)*l];return n.nodeShapes[this.getNodeShape(t)].intersectLine(r.x,r.y,i,a,u[0],u[1],0,"auto"===t.pstyle("corner-radius").value?"auto":t.pstyle("corner-radius").pfValue,o)},findEndpoints:function(t){var e,n,r,i,a,o=this,s=t.source()[0],c=t.target()[0],l=s.position(),u=c.position(),h=t.pstyle("target-arrow-shape").value,f=t.pstyle("source-arrow-shape").value,d=t.pstyle("target-distance-from-node").pfValue,A=t.pstyle("source-distance-from-node").pfValue,g=s._private.rscratch,p=c._private.rscratch,m=t.pstyle("curve-style").value,b=t._private.rscratch,v=b.edgeType,y="self"===v||"compound"===v,w="bezier"===v||"multibezier"===v||y,k="bezier"!==v,C="straight"===v||"segments"===v,x="segments"===v,T=w||k||C,B=y||"taxi"===m,_=t.pstyle("source-endpoint"),S=B?"outside-to-node":_.value,L="auto"===s.pstyle("corner-radius").value?"auto":s.pstyle("corner-radius").pfValue,I=t.pstyle("target-endpoint"),M=B?"outside-to-node":I.value,O="auto"===c.pstyle("corner-radius").value?"auto":c.pstyle("corner-radius").pfValue;if(b.srcManEndpt=_,b.tgtManEndpt=I,w){var D=[b.ctrlpts[0],b.ctrlpts[1]];n=k?[b.ctrlpts[b.ctrlpts.length-2],b.ctrlpts[b.ctrlpts.length-1]]:D,r=D}else if(C){var F=x?b.segpts.slice(0,2):[u.x,u.y];n=x?b.segpts.slice(b.segpts.length-2):[l.x,l.y],r=F}if("inside-to-node"===M)e=[u.x,u.y];else if(I.units)e=this.manualEndptToPx(c,I);else if("outside-to-line"===M)e=b.tgtIntn;else if("outside-to-node"===M||"outside-to-node-or-label"===M?i=n:"outside-to-line"!==M&&"outside-to-line-or-label"!==M||(i=[l.x,l.y]),e=o.nodeShapes[this.getNodeShape(c)].intersectLine(u.x,u.y,c.outerWidth(),c.outerHeight(),i[0],i[1],0,O,p),"outside-to-node-or-label"===M||"outside-to-line-or-label"===M){var N=c._private.rscratch,P=N.labelWidth,R=N.labelHeight,Q=N.labelX,U=N.labelY,$=P/2,H=R/2,j=c.pstyle("text-valign").value;"top"===j?U-=H:"bottom"===j&&(U+=H);var K=c.pstyle("text-halign").value;"left"===K?Q-=$:"right"===K&&(Q+=$);var z=hr(i[0],i[1],[Q-$,U-H,Q+$,U-H,Q+$,U+H,Q-$,U+H],u.x,u.y);if(z.length>0){var G=l,X=Sn(G,vn(e)),V=Sn(G,vn(z)),W=X;V<X&&(e=z,W=V),z.length>2&&Sn(G,{x:z[2],y:z[3]})<W&&(e=[z[2],z[3]])}}var q=dr(e,n,o.arrowShapes[h].spacing(t)+d),Y=dr(e,n,o.arrowShapes[h].gap(t)+d);if(b.endX=Y[0],b.endY=Y[1],b.arrowEndX=q[0],b.arrowEndY=q[1],"inside-to-node"===S)e=[l.x,l.y];else if(_.units)e=this.manualEndptToPx(s,_);else if("outside-to-line"===S)e=b.srcIntn;else if("outside-to-node"===S||"outside-to-node-or-label"===S?a=r:"outside-to-line"!==S&&"outside-to-line-or-label"!==S||(a=[u.x,u.y]),e=o.nodeShapes[this.getNodeShape(s)].intersectLine(l.x,l.y,s.outerWidth(),s.outerHeight(),a[0],a[1],0,L,g),"outside-to-node-or-label"===S||"outside-to-line-or-label"===S){var J=s._private.rscratch,Z=J.labelWidth,tt=J.labelHeight,et=J.labelX,nt=J.labelY,rt=Z/2,it=tt/2,at=s.pstyle("text-valign").value;"top"===at?nt-=it:"bottom"===at&&(nt+=it);var ot=s.pstyle("text-halign").value;"left"===ot?et-=rt:"right"===ot&&(et+=rt);var st=hr(a[0],a[1],[et-rt,nt-it,et+rt,nt-it,et+rt,nt+it,et-rt,nt+it],l.x,l.y);if(st.length>0){var ct=u,lt=Sn(ct,vn(e)),ut=Sn(ct,vn(st)),ht=lt;ut<lt&&(e=[st[0],st[1]],ht=ut),st.length>2&&Sn(ct,{x:st[2],y:st[3]})<ht&&(e=[st[2],st[3]])}}var ft=dr(e,r,o.arrowShapes[f].spacing(t)+A),dt=dr(e,r,o.arrowShapes[f].gap(t)+A);b.startX=dt[0],b.startY=dt[1],b.arrowStartX=ft[0],b.arrowStartY=ft[1],T&&(E(b.startX)&&E(b.startY)&&E(b.endX)&&E(b.endY)?b.badLine=!1:b.badLine=!0)},getSourceEndpoint:function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),"haystack"===e.edgeType?{x:e.haystackPts[0],y:e.haystackPts[1]}:{x:e.arrowStartX,y:e.arrowStartY}},getTargetEndpoint:function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),"haystack"===e.edgeType?{x:e.haystackPts[2],y:e.haystackPts[3]}:{x:e.arrowEndX,y:e.arrowEndY}}},Zh={};function tf(t,e,n){for(var r=function(t,e,n,r){return In(t,e,n,r)},i=e._private.rstyle.bezierPts,a=0;a<t.bezierProjPcts.length;a++){var o=t.bezierProjPcts[a];i.push({x:r(n[0],n[2],n[4],o),y:r(n[1],n[3],n[5],o)})}}Zh.storeEdgeProjections=function(t){var e=t._private,n=e.rscratch,r=n.edgeType;if(e.rstyle.bezierPts=null,e.rstyle.linePts=null,e.rstyle.haystackPts=null,"multibezier"===r||"bezier"===r||"self"===r||"compound"===r){e.rstyle.bezierPts=[];for(var i=0;i+5<n.allpts.length;i+=4)tf(this,t,n.allpts.slice(i,i+6))}else if("segments"===r){var a=e.rstyle.linePts=[];for(i=0;i+1<n.allpts.length;i+=2)a.push({x:n.allpts[i],y:n.allpts[i+1]})}else if("haystack"===r){var o=n.haystackPts;e.rstyle.haystackPts=[{x:o[0],y:o[1]},{x:o[2],y:o[3]}]}e.rstyle.arrowWidth=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth},Zh.recalculateEdgeProjections=function(t){this.findEdgeControlPoints(t)};var ef={recalculateNodeLabelProjection:function(t){var e=t.pstyle("label").strValue;if(!D(e)){var n,r,i=t._private,a=t.width(),o=t.height(),s=t.padding(),c=t.position(),l=t.pstyle("text-halign").strValue,u=t.pstyle("text-valign").strValue,h=i.rscratch,f=i.rstyle;switch(l){case"left":n=c.x-a/2-s;break;case"right":n=c.x+a/2+s;break;default:n=c.x}switch(u){case"top":r=c.y-o/2-s;break;case"bottom":r=c.y+o/2+s;break;default:r=c.y}h.labelX=n,h.labelY=r,f.labelX=n,f.labelY=r,this.calculateLabelAngles(t),this.applyLabelDimensions(t)}}},nf=function(t,e){var n=Math.atan(e/t);return 0===t&&n<0&&(n*=-1),n},rf=function(t,e){var n=e.x-t.x,r=e.y-t.y;return nf(n,r)},af=function(t,e,n,r){var i=Dn(0,r-.001,1),a=Dn(0,r+.001,1),o=Mn(t,e,n,i),s=Mn(t,e,n,a);return rf(o,s)};ef.recalculateEdgeLabelProjections=function(t){var e,n=t._private,r=n.rscratch,i=this,a={mid:t.pstyle("label").strValue,source:t.pstyle("source-label").strValue,target:t.pstyle("target-label").strValue};if(a.mid||a.source||a.target){e={x:r.midX,y:r.midY};var o=function(t,e,r){ze(n.rscratch,t,e,r),ze(n.rstyle,t,e,r)};o("labelX",null,e.x),o("labelY",null,e.y);var s=nf(r.midDispX,r.midDispY);o("labelAutoAngle",null,s);var c=function t(){if(t.cache)return t.cache;for(var e=[],a=0;a+5<r.allpts.length;a+=4){var o={x:r.allpts[a],y:r.allpts[a+1]},s={x:r.allpts[a+2],y:r.allpts[a+3]},c={x:r.allpts[a+4],y:r.allpts[a+5]};e.push({p0:o,p1:s,p2:c,startDist:0,length:0,segments:[]})}var l=n.rstyle.bezierPts,u=i.bezierProjPcts.length;function h(t,e,n,r,i){var a=_n(e,n),o=t.segments[t.segments.length-1],s={p0:e,p1:n,t0:r,t1:i,startDist:o?o.startDist+o.length:0,length:a};t.segments.push(s),t.length+=a}for(var f=0;f<e.length;f++){var d=e[f],A=e[f-1];A&&(d.startDist=A.startDist+A.length),h(d,d.p0,l[f*u],0,i.bezierProjPcts[0]);for(var g=0;g<u-1;g++)h(d,l[f*u+g],l[f*u+g+1],i.bezierProjPcts[g],i.bezierProjPcts[g+1]);h(d,l[f*u+u-1],d.p2,i.bezierProjPcts[u-1],1)}return t.cache=e},l=function(n){var i,s="source"===n;if(a[n]){var l=t.pstyle(n+"-text-offset").pfValue;switch(r.edgeType){case"self":case"compound":case"bezier":case"multibezier":for(var u,h=c(),f=0,d=0,A=0;A<h.length;A++){for(var g=h[s?A:h.length-1-A],p=0;p<g.segments.length;p++){var m=g.segments[s?p:g.segments.length-1-p],b=A===h.length-1&&p===g.segments.length-1;if(f=d,(d+=m.length)>=l||b){u={cp:g,segment:m};break}}if(u)break}var v=u.cp,y=u.segment,w=(l-f)/y.length,k=y.t1-y.t0,C=s?y.t0+k*w:y.t1-k*w;C=Dn(0,C,1),e=Mn(v.p0,v.p1,v.p2,C),i=af(v.p0,v.p1,v.p2,C);break;case"straight":case"segments":case"haystack":for(var x,E,T,B,_=0,S=r.allpts.length,L=0;L+3<S&&(s?(T={x:r.allpts[L],y:r.allpts[L+1]},B={x:r.allpts[L+2],y:r.allpts[L+3]}):(T={x:r.allpts[S-2-L],y:r.allpts[S-1-L]},B={x:r.allpts[S-4-L],y:r.allpts[S-3-L]}),E=_,!((_+=x=_n(T,B))>=l));L+=2);var I=(l-E)/x;I=Dn(0,I,1),e=On(T,B,I),i=rf(T,B)}o("labelX",n,e.x),o("labelY",n,e.y),o("labelAutoAngle",n,i)}};l("source"),l("target"),this.applyLabelDimensions(t)}},ef.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},ef.applyPrefixedLabelDimensions=function(t,e){var n=t._private,r=this.getLabelText(t,e),i=this.calculateLabelDimensions(t,r),a=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,s=Ke(n.rscratch,"labelWrapCachedLines",e)||[],c="wrap"!==o?1:Math.max(s.length,1),l=i.height/c,u=l*a,h=i.width,f=i.height+(c-1)*(a-1)*l;ze(n.rstyle,"labelWidth",e,h),ze(n.rscratch,"labelWidth",e,h),ze(n.rstyle,"labelHeight",e,f),ze(n.rscratch,"labelHeight",e,f),ze(n.rscratch,"labelLineHeight",e,u)},ef.getLabelText=function(t,e){var n=t._private,r=e?e+"-":"",i=t.pstyle(r+"label").strValue,a=t.pstyle("text-transform").value,o=function(t,r){return r?(ze(n.rscratch,t,e,r),r):Ke(n.rscratch,t,e)};if(!i)return"";"none"==a||("uppercase"==a?i=i.toUpperCase():"lowercase"==a&&(i=i.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="​",u=i.split("\n"),h=t.pstyle("text-max-width").pfValue,f="anywhere"===t.pstyle("text-overflow-wrap").value,d=[],A=/[\s\u200b]+/,g=f?"":" ",p=0;p<u.length;p++){var m=u[p],b=this.calculateLabelDimensions(t,m).width;if(f){var v=m.split("").join(l);m=v}if(b>h){for(var y=m.split(A),w="",k=0;k<y.length;k++){var C=y[k],x=0===w.length?C:w+g+C;this.calculateLabelDimensions(t,x).width<=h?w+=C+g:(w&&d.push(w),w=C+g)}w.match(/^[\s\u200b]+$/)||d.push(w)}else d.push(m)}o("labelWrapCachedLines",d),i=o("labelWrapCachedText",d.join("\n")),o("labelWrapKey",c)}else if("ellipsis"===s){var E=t.pstyle("text-max-width").pfValue,T="",B="…",_=!1;if(this.calculateLabelDimensions(t,i).width<E)return i;for(var S=0;S<i.length&&!(this.calculateLabelDimensions(t,T+i[S]+B).width>E);S++)T+=i[S],S===i.length-1&&(_=!0);return _||(T+=B),T}return i},ef.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"}},ef.calculateLabelDimensions=function(t,e){var n=this,r=ye(e,t._private.labelDimsKey),i=n.labelDimCache||(n.labelDimCache=[]),a=i[r];if(null!=a)return a;var o=0,s=t.pstyle("font-style").strValue,c=t.pstyle("font-size").pfValue,l=t.pstyle("font-family").strValue,u=t.pstyle("font-weight").strValue,h=this.labelCalcCanvas,f=this.labelCalcCanvasContext;if(!h){h=this.labelCalcCanvas=document.createElement("canvas"),f=this.labelCalcCanvasContext=h.getContext("2d");var d=h.style;d.position="absolute",d.left="-9999px",d.top="-9999px",d.zIndex="-1",d.visibility="hidden",d.pointerEvents="none"}f.font="".concat(s," ").concat(u," ").concat(c,"px ").concat(l);for(var A=0,g=0,p=e.split("\n"),m=0;m<p.length;m++){var b=p[m],v=f.measureText(b),y=Math.ceil(v.width),w=c;A=Math.max(y,A),g+=w}return A+=o,g+=o,i[r]={width:A,height:g}},ef.calculateLabelAngle=function(t,e){var n=t._private.rscratch,r=t.isEdge(),i=e?e+"-":"",a=t.pstyle(i+"text-rotation"),o=a.strValue;return"none"===o?0:r&&"autorotate"===o?n.labelAutoAngle:"autorotate"===o?0:a.pfValue},ef.calculateLabelAngles=function(t){var e=this,n=t.isEdge(),r=t._private.rscratch;r.labelAngle=e.calculateLabelAngle(t),n&&(r.sourceLabelAngle=e.calculateLabelAngle(t,"source"),r.targetLabelAngle=e.calculateLabelAngle(t,"target"))};var of={},sf=28,cf=!1;of.getNodeShape=function(t){var e=this,n=t.pstyle("shape").value;if("cutrectangle"===n&&(t.width()<sf||t.height()<sf))return cf||(Oe("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),cf=!0),"rectangle";if(t.isParent())return"rectangle"===n||"roundrectangle"===n||"round-rectangle"===n||"cutrectangle"===n||"cut-rectangle"===n||"barrel"===n?n:"rectangle";if("polygon"===n){var r=t.pstyle("shape-polygon-points").value;return e.nodeShapes.makePolygon(r).name}return n};var lf={registerCalculationListeners:function(){var t=this.cy,e=t.collection(),n=this,r=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.merge(t),n)for(var r=0;r<t.length;r++){var i=t[r]._private.rstyle;i.clean=!1,i.cleanConnected=!1}};n.binder(t).on("bounds.* dirty.*",(function(t){var e=t.target;r(e)})).on("style.* background.*",(function(t){var e=t.target;r(e,!1)}));var i=function(i){if(i){var a=n.onUpdateEleCalcsFns;e.cleanStyle();for(var o=0;o<e.length;o++){var s=e[o],c=s._private.rstyle;s.isNode()&&!c.cleanConnected&&(r(s.connectedEdges()),c.cleanConnected=!0)}if(a)for(var l=0;l<a.length;l++)(0,a[l])(i,e);n.recalculateRenderedStyle(e),e=t.collection()}};n.flushRenderedStyleQueue=function(){i(!0)},n.beforeRender(i,n.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(t){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(t)},recalculateRenderedStyle:function(t,e){var n=function(t){return t._private.rstyle.cleanConnected},r=[],i=[];if(!this.destroyed){void 0===e&&(e=!0);for(var a=0;a<t.length;a++){var o=t[a],s=o._private,c=s.rstyle;!o.isEdge()||n(o.source())&&n(o.target())||(c.clean=!1),e&&c.clean||o.removed()||"none"!==o.pstyle("display").value&&("nodes"===s.group?i.push(o):r.push(o),c.clean=!0)}for(var l=0;l<i.length;l++){var u=i[l],h=u._private.rstyle,f=u.position();this.recalculateNodeLabelProjection(u),h.nodeX=f.x,h.nodeY=f.y,h.nodeW=u.pstyle("width").pfValue,h.nodeH=u.pstyle("height").pfValue}this.recalculateEdgeProjections(r);for(var d=0;d<r.length;d++){var A=r[d]._private,g=A.rstyle,p=A.rscratch;g.srcX=p.arrowStartX,g.srcY=p.arrowStartY,g.tgtX=p.arrowEndX,g.tgtY=p.arrowEndY,g.midX=p.midX,g.midY=p.midY,g.labelAngle=p.labelAngle,g.sourceLabelAngle=p.sourceLabelAngle,g.targetLabelAngle=p.targetLabelAngle}}}},uf={updateCachedGrabbedEles:function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],n=0;n<t.length;n++){var r=(i=t[n])._private.rscratch;i.grabbed()&&!i.isParent()?e.push(i):r.inDragLayer?t.drag.push(i):t.nondrag.push(i)}for(n=0;n<e.length;n++){var i=e[n];t.drag.push(i)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(vl),e.interactive=e.filter((function(t){return t.interactive()})),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e}},hf={};[xh,Eh,qh,Jh,Zh,ef,of,lf,uf].forEach((function(t){Z(hf,t)}));var ff={getCachedImage:function(t,e,n){var r=this,i=r.imageCache=r.imageCache||{},a=i[t];if(a)return a.image.complete||a.image.addEventListener("load",n),a.image;var o=(a=i[t]=i[t]||{}).image=new Image;o.addEventListener("load",n),o.addEventListener("error",(function(){o.error=!0}));var s="data:";return t.substring(0,s.length).toLowerCase()===s||(e="null"===e?null:e,o.crossOrigin=e),o.src=t,o}},df={registerBinding:function(t,e,n,r){var i=Array.prototype.slice.apply(arguments,[1]),a=this.binder(t);return a.on.apply(a,i)},binder:function(t){var e=this,n=e.cy.window(),r=t===n||t===n.document||t===n.document.body||F(t);if(null==e.supportsPassiveEvents){var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){return i=!0,!0}});n.addEventListener("test",null,a)}catch(t){}e.supportsPassiveEvents=i}var o=function(n,i,a){var o=Array.prototype.slice.call(arguments);return r&&e.supportsPassiveEvents&&(o[2]={capture:null!=a&&a,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()},r=function(e,n,r,i){null==e&&(e=t.cy);for(var a=0;a<n.length;a++){var o=n[a];e.emit({originalEvent:r,type:o,position:i})}},i=function(t){return t.shiftKey||t.metaKey||t.ctrlKey},a=function(e,n){var r=!0;if(t.cy.hasCompoundNodes()&&e&&e.pannable()){for(var i=0;n&&i<n.length;i++)if((e=n[i]).isNode()&&e.isParent()&&!e.pannable()){r=!1;break}}else r=!0;return r},o=function(t){t[0]._private.grabbed=!0},s=function(t){t[0]._private.grabbed=!1},c=function(t){t[0]._private.rscratch.inDragLayer=!0},l=function(t){t[0]._private.rscratch.inDragLayer=!1},u=function(t){t[0]._private.rscratch.isGrabTarget=!0},h=function(t){t[0]._private.rscratch.isGrabTarget=!1},f=function(t,e){var n=e.addToList;n.has(t)||!t.grabbable()||t.locked()||(n.merge(t),o(t))},d=function(t,e){if(t.cy().hasCompoundNodes()&&(null!=e.inDragLayer||null!=e.addToList)){var n=t.descendants();e.inDragLayer&&(n.forEach(c),n.connectedEdges().forEach(c)),e.addToList&&f(n,e)}},A=function(e,n){n=n||{};var r=e.cy().hasCompoundNodes();n.inDragLayer&&(e.forEach(c),e.neighborhood().stdFilter((function(t){return!r||t.isEdge()})).forEach(c)),n.addToList&&e.forEach((function(t){f(t,n)})),d(e,n),m(e,{inDragLayer:n.inDragLayer}),t.updateCachedGrabbedEles()},g=A,p=function(e){e&&(t.getCachedZSortedEles().forEach((function(t){s(t),l(t),h(t)})),t.updateCachedGrabbedEles())},m=function(t,e){if((null!=e.inDragLayer||null!=e.addToList)&&t.cy().hasCompoundNodes()){var n=t.ancestors().orphans();if(!n.same(t)){var r=n.descendants().spawnSelf().merge(n).unmerge(t).unmerge(t.descendants()),i=r.connectedEdges();e.inDragLayer&&(i.forEach(c),r.forEach(c)),e.addToList&&r.forEach((function(t){f(t,e)}))}}},b=function(){null!=document.activeElement&&null!=document.activeElement.blur&&document.activeElement.blur()},v="undefined"!=typeof MutationObserver,y="undefined"!=typeof ResizeObserver;v?(t.removeObserver=new MutationObserver((function(e){for(var n=0;n<e.length;n++){var r=e[n].removedNodes;if(r)for(var i=0;i<r.length;i++)if(r[i]===t.container){t.destroy();break}}})),t.container.parentNode&&t.removeObserver.observe(t.container.parentNode,{childList:!0})):t.registerBinding(t.container,"DOMNodeRemoved",(function(e){t.destroy()}));var w=ie((function(){t.cy.resize()}),100);v&&(t.styleObserver=new MutationObserver(w),t.styleObserver.observe(t.container,{attributes:!0})),t.registerBinding(e,"resize",w),y&&(t.resizeObserver=new ResizeObserver(w),t.resizeObserver.observe(t.container));var k=function(t,e){for(;null!=t;)e(t),t=t.parentNode},C=function(){t.invalidateContainerClientCoordsCache()};k(t.container,(function(e){t.registerBinding(e,"transitionend",C),t.registerBinding(e,"animationend",C),t.registerBinding(e,"scroll",C)})),t.registerBinding(t.container,"contextmenu",(function(t){t.preventDefault()}));var x,T,B,_=function(){return 0!==t.selection[4]},S=function(e){for(var n=t.findContainerClientCoords(),r=n[0],i=n[1],a=n[2],o=n[3],s=e.touches?e.touches:[e],c=!1,l=0;l<s.length;l++){var u=s[l];if(r<=u.clientX&&u.clientX<=r+a&&i<=u.clientY&&u.clientY<=i+o){c=!0;break}}if(!c)return!1;for(var h=t.container,f=e.target.parentNode,d=!1;f;){if(f===h){d=!0;break}f=f.parentNode}return!!d};t.registerBinding(t.container,"mousedown",(function(e){if(S(e)){e.preventDefault(),b(),t.hoverData.capture=!0,t.hoverData.which=e.which;var n=t.cy,i=[e.clientX,e.clientY],a=t.projectIntoViewport(i[0],i[1]),o=t.selection,s=t.findNearestElements(a[0],a[1],!0,!1),c=s[0],l=t.dragData.possibleDragElements;t.hoverData.mdownPos=a,t.hoverData.mdownGPos=i;var h=function(){t.hoverData.tapholdCancelled=!1,clearTimeout(t.hoverData.tapholdTimeout),t.hoverData.tapholdTimeout=setTimeout((function(){if(!t.hoverData.tapholdCancelled){var r=t.hoverData.down;r?r.emit({originalEvent:e,type:"taphold",position:{x:a[0],y:a[1]}}):n.emit({originalEvent:e,type:"taphold",position:{x:a[0],y:a[1]}})}}),t.tapholdDuration)};if(3==e.which){t.hoverData.cxtStarted=!0;var f={originalEvent:e,type:"cxttapstart",position:{x:a[0],y:a[1]}};c?(c.activate(),c.emit(f),t.hoverData.down=c):n.emit(f),t.hoverData.downTime=(new Date).getTime(),t.hoverData.cxtDragged=!1}else if(1==e.which){if(c&&c.activate(),null!=c&&t.nodeIsGrabbable(c)){var d=function(t){return{originalEvent:e,type:t,position:{x:a[0],y:a[1]}}},p=function(t){t.emit(d("grab"))};if(u(c),c.selected()){l=t.dragData.possibleDragElements=n.collection();var m=n.$((function(e){return e.isNode()&&e.selected()&&t.nodeIsGrabbable(e)}));A(m,{addToList:l}),c.emit(d("grabon")),m.forEach(p)}else l=t.dragData.possibleDragElements=n.collection(),g(c,{addToList:l}),c.emit(d("grabon")).emit(d("grab"));t.redrawHint("eles",!0),t.redrawHint("drag",!0)}t.hoverData.down=c,t.hoverData.downs=s,t.hoverData.downTime=(new Date).getTime(),r(c,["mousedown","tapstart","vmousedown"],e,{x:a[0],y:a[1]}),null==c?(o[4]=1,t.data.bgActivePosistion={x:a[0],y:a[1]},t.redrawHint("select",!0),t.redraw()):c.pannable()&&(o[4]=1),h()}o[0]=o[2]=a[0],o[1]=o[3]=a[1]}}),!1),t.registerBinding(e,"mousemove",(function(e){if(t.hoverData.capture||S(e)){var n=!1,o=t.cy,s=o.zoom(),c=[e.clientX,e.clientY],l=t.projectIntoViewport(c[0],c[1]),u=t.hoverData.mdownPos,h=t.hoverData.mdownGPos,f=t.selection,d=null;t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.selecting||(d=t.findNearestElement(l[0],l[1],!0,!1));var g,m=t.hoverData.last,b=t.hoverData.down,v=[l[0]-f[2],l[1]-f[3]],y=t.dragData.possibleDragElements;if(h){var w=c[0]-h[0],k=w*w,C=c[1]-h[1],x=k+C*C;t.hoverData.isOverThresholdDrag=g=x>=t.desktopTapThreshold2}var T=i(e);g&&(t.hoverData.tapholdCancelled=!0);var B=function(){var e=t.hoverData.dragDelta=t.hoverData.dragDelta||[];0===e.length?(e.push(v[0]),e.push(v[1])):(e[0]+=v[0],e[1]+=v[1])};n=!0,r(d,["mousemove","vmousemove","tapdrag"],e,{x:l[0],y:l[1]});var _=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||o.emit({originalEvent:e,type:"boxstart",position:{x:l[0],y:l[1]}}),f[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(3===t.hoverData.which){if(g){var L={originalEvent:e,type:"cxtdrag",position:{x:l[0],y:l[1]}};b?b.emit(L):o.emit(L),t.hoverData.cxtDragged=!0,t.hoverData.cxtOver&&d===t.hoverData.cxtOver||(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:l[0],y:l[1]}}),t.hoverData.cxtOver=d,d&&d.emit({originalEvent:e,type:"cxtdragover",position:{x:l[0],y:l[1]}}))}}else if(t.hoverData.dragging){if(n=!0,o.panningEnabled()&&o.userPanningEnabled()){var I;if(t.hoverData.justStartedPan){var M=t.hoverData.mdownPos;I={x:(l[0]-M[0])*s,y:(l[1]-M[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}l=t.projectIntoViewport(e.clientX,e.clientY)}else if(1!=f[4]||null!=b&&!b.pannable()){if(b&&b.pannable()&&b.active()&&b.unactivate(),b&&b.grabbed()||d==m||(m&&r(m,["mouseout","tapdragout"],e,{x:l[0],y:l[1]}),d&&r(d,["mouseover","tapdragover"],e,{x:l[0],y:l[1]}),t.hoverData.last=d),b)if(g){if(o.boxSelectionEnabled()&&T)b&&b.grabbed()&&(p(y),b.emit("freeon"),y.emit("free"),t.dragData.didDrag&&(b.emit("dragfreeon"),y.emit("dragfree"))),_();else if(b&&b.grabbed()&&t.nodeIsDraggable(b)){var O=!t.dragData.didDrag;O&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||A(y,{inDragLayer:!0});var D={x:0,y:0};if(E(v[0])&&E(v[1])&&(D.x+=v[0],D.y+=v[1],O)){var F=t.hoverData.dragDelta;F&&E(F[0])&&E(F[1])&&(D.x+=F[0],D.y+=F[1])}t.hoverData.draggingEles=!0,y.silentShift(D).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else B();n=!0}else g&&(t.hoverData.dragging||!o.boxSelectionEnabled()||!T&&o.panningEnabled()&&o.userPanningEnabled()?!t.hoverData.selecting&&o.panningEnabled()&&o.userPanningEnabled()&&a(b,t.hoverData.downs)&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,f[4]=0,t.data.bgActivePosistion=vn(u),t.redrawHint("select",!0),t.redraw()):_(),b&&b.pannable()&&b.active()&&b.unactivate());return f[2]=l[0],f[3]=l[1],n?(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1):void 0}}),!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,h=i(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 f={originalEvent:e,type:"cxttapend",position:{x:o[0],y:o[1]}};if(u?u.emit(f):a.emit(f),!t.hoverData.cxtDragged){var d={originalEvent:e,type:"cxttap",position:{x:o[0],y:o[1]}};u?u.emit(d):a.emit(d)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(1===t.hoverData.which){if(r(c,["mouseup","tapend","vmouseup"],e,{x:o[0],y:o[1]}),t.dragData.didDrag||t.hoverData.dragged||t.hoverData.selecting||t.hoverData.isOverThresholdDrag||(r(u,["click","tap","vclick"],e,{x:o[0],y:o[1]}),T=!1,e.timeStamp-B<=a.multiClickDebounceTime()?(x&&clearTimeout(x),T=!0,B=null,r(u,["dblclick","dbltap","vdblclick"],e,{x:o[0],y:o[1]})):(x=setTimeout((function(){T||r(u,["oneclick","onetap","voneclick"],e,{x:o[0],y:o[1]})}),a.multiClickDebounceTime()),B=e.timeStamp)),null!=u||t.dragData.didDrag||t.hoverData.selecting||t.hoverData.dragged||i(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()||h?c.selected()?c.unselect(["tapunselect"]):c.select(["tapselect"]):h||(a.$(n).unmerge(c).unselect(["tapunselect"]),c.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var A=a.collection(t.getAllInBox(s[0],s[1],s[2],s[3]));t.redrawHint("select",!0),A.length>0&&t.redrawHint("eles",!0),a.emit({type:"boxend",originalEvent:e,position:{x:o[0],y:o[1]}});var g=function(t){return t.selectable()&&!t.selected()};"additive"===a.selectionType()||h||a.$(n).unmerge(A).unselect(),A.emit("box").stdFilter(g).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 m=u&&u.grabbed();p(l),m&&(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 L,I,M,O,D,F,N,P,R,Q,U,$,H,j=function(e){if(!t.scrollingPage){var n=t.cy,r=n.zoom(),i=n.pan(),a=t.projectIntoViewport(e.clientX,e.clientY),o=[a[0]*r+i.x,a[1]*r+i.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||_())e.preventDefault();else 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",j,!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||j(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 K,z,G,X,V,W,q,Y=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))},J=function(t,e,n,r){return(n-t)*(n-t)+(r-e)*(r-e)};if(t.registerBinding(t.container,"touchstart",K=function(e){if(t.hasTouchStarted=!0,S(e)){b(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var n=t.cy,i=t.touchData.now,a=t.touchData.earlier;if(e.touches[0]){var o=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);i[0]=o[0],i[1]=o[1]}if(e.touches[1]&&(o=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),i[2]=o[0],i[3]=o[1]),e.touches[2]&&(o=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),i[4]=o[0],i[5]=o[1]),e.touches[1]){t.touchData.singleTouchMoved=!0,p(t.dragData.touchDragEles);var s=t.findContainerClientCoords();R=s[0],Q=s[1],U=s[2],$=s[3],L=e.touches[0].clientX-R,I=e.touches[0].clientY-Q,M=e.touches[1].clientX-R,O=e.touches[1].clientY-Q,H=0<=L&&L<=U&&0<=M&&M<=U&&0<=I&&I<=$&&0<=O&&O<=$;var c=n.pan(),l=n.zoom();D=Y(L,I,M,O),F=J(L,I,M,O),P=[((N=[(L+M)/2,(I+O)/2])[0]-c.x)/l,(N[1]-c.y)/l];var h=200;if(F<h*h&&!e.touches[2]){var f=t.findNearestElement(i[0],i[1],!0,!0),d=t.findNearestElement(i[2],i[3],!0,!0);return f&&f.isNode()?(f.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:i[0],y:i[1]}}),t.touchData.start=f):d&&d.isNode()?(d.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:i[0],y:i[1]}}),t.touchData.start=d):n.emit({originalEvent:e,type:"cxttapstart",position:{x:i[0],y:i[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]);else if(e.touches[0]){var m=t.findNearestElements(i[0],i[1],!0,!0),v=m[0];if(null!=v&&(v.activate(),t.touchData.start=v,t.touchData.starts=m,t.nodeIsGrabbable(v))){var y=t.dragData.touchDragEles=n.collection(),w=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),v.selected()?(w=n.$((function(e){return e.selected()&&t.nodeIsGrabbable(e)})),A(w,{addToList:y})):g(v,{addToList:y}),u(v);var k=function(t){return{originalEvent:e,type:t,position:{x:i[0],y:i[1]}}};v.emit(k("grabon")),w?w.forEach((function(t){t.emit(k("grab"))})):v.emit(k("grab"))}r(v,["touchstart","tapstart","vmousedown"],e,{x:i[0],y:i[1]}),null==v&&(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||r(t.touchData.start,["taphold"],e,{x:i[0],y:i[1]})}),t.tapholdDuration)}if(e.touches.length>=1){for(var C=t.touchData.startPosition=[null,null,null,null,null,null],x=0;x<i.length;x++)C[x]=a[x]=i[x];var E=e.touches[0];t.touchData.startGPosition=[E.clientX,E.clientY]}}},!1),t.registerBinding(window,"touchmove",z=function(e){var n=t.touchData.capture;if(n||S(e)){var i=t.selection,o=t.cy,s=t.touchData.now,c=t.touchData.earlier,l=o.zoom();if(e.touches[0]){var u=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);s[0]=u[0],s[1]=u[1]}e.touches[1]&&(u=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),s[2]=u[0],s[3]=u[1]),e.touches[2]&&(u=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),s[4]=u[0],s[5]=u[1]);var h,f=t.touchData.startGPosition;if(n&&e.touches[0]&&f){for(var d=[],g=0;g<s.length;g++)d[g]=s[g]-c[g];var m=e.touches[0].clientX-f[0],b=m*m,v=e.touches[0].clientY-f[1];h=b+v*v>=t.touchTapThreshold2}if(n&&t.touchData.cxt){e.preventDefault();var y=e.touches[0].clientX-R,w=e.touches[0].clientY-Q,k=e.touches[1].clientX-R,C=e.touches[1].clientY-Q,x=J(y,w,k,C),T=150,B=1.5;if(x/F>=B*B||x>=T*T){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var _={originalEvent:e,type:"cxttapend",position:{x:s[0],y:s[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(_),t.touchData.start=null):o.emit(_)}}if(n&&t.touchData.cxt){_={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(_):o.emit(_),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var N=t.findNearestElement(s[0],s[1],!0,!0);t.touchData.cxtOver&&N===t.touchData.cxtOver||(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:s[0],y:s[1]}}),t.touchData.cxtOver=N,N&&N.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,i[4]=1,i&&0!==i.length&&void 0!==i[0]?(i[2]=(s[0]+s[2]+s[4])/3,i[3]=(s[1]+s[3]+s[5])/3):(i[0]=(s[0]+s[2]+s[4])/3,i[1]=(s[1]+s[3]+s[5])/3,i[2]=(s[0]+s[2]+s[4])/3+1,i[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),nt=t.dragData.touchDragEles){t.redrawHint("drag",!0);for(var U=0;U<nt.length;U++){var $=nt[U]._private;$.grabbed=!1,$.rscratch.inDragLayer=!1}}var j=t.touchData.start,K=(y=e.touches[0].clientX-R,w=e.touches[0].clientY-Q,k=e.touches[1].clientX-R,C=e.touches[1].clientY-Q,Y(y,w,k,C)),z=K/D;if(H){var G=(y-L+(k-M))/2,X=(w-I+(C-O))/2,V=o.zoom(),W=V*z,q=o.pan(),Z=P[0]*V+q.x,tt=P[1]*V+q.y,et={x:-W/V*(Z-q.x-G)+Z,y:-W/V*(tt-q.y-X)+tt};if(j&&j.active()){var nt=t.dragData.touchDragEles;p(nt),t.redrawHint("drag",!0),t.redrawHint("eles",!0),j.unactivate().emit("freeon"),nt.emit("free"),t.dragData.didDrag&&(j.emit("dragfreeon"),nt.emit("dragfree"))}o.viewport({zoom:W,pan:et,cancelOnFailedZoom:!0}),o.emit("pinchzoom"),D=K,L=y,I=w,M=k,O=C,t.pinching=!0}e.touches[0]&&(u=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY),s[0]=u[0],s[1]=u[1]),e.touches[1]&&(u=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),s[2]=u[0],s[3]=u[1]),e.touches[2]&&(u=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),s[4]=u[0],s[5]=u[1])}else if(e.touches[0]&&!t.touchData.didSelect){var rt=t.touchData.start,it=t.touchData.last;if(t.hoverData.draggingEles||t.swipePanning||(N=t.findNearestElement(s[0],s[1],!0,!0)),n&&null!=rt&&e.preventDefault(),n&&null!=rt&&t.nodeIsDraggable(rt))if(h){nt=t.dragData.touchDragEles;var at=!t.dragData.didDrag;at&&A(nt,{inDragLayer:!0}),t.dragData.didDrag=!0;var ot={x:0,y:0};E(d[0])&&E(d[1])&&(ot.x+=d[0],ot.y+=d[1],at&&(t.redrawHint("eles",!0),(st=t.touchData.dragDelta)&&E(st[0])&&E(st[1])&&(ot.x+=st[0],ot.y+=st[1]))),t.hoverData.draggingEles=!0,nt.silentShift(ot).emit("position drag"),t.redrawHint("drag",!0),t.touchData.startPosition[0]==c[0]&&t.touchData.startPosition[1]==c[1]&&t.redrawHint("eles",!0),t.redraw()}else{var st;0===(st=t.touchData.dragDelta=t.touchData.dragDelta||[]).length?(st.push(d[0]),st.push(d[1])):(st[0]+=d[0],st[1]+=d[1])}if(r(rt||N,["touchmove","tapdrag","vmousemove"],e,{x:s[0],y:s[1]}),rt&&rt.grabbed()||N==it||(it&&it.emit({originalEvent:e,type:"tapdragout",position:{x:s[0],y:s[1]}}),N&&N.emit({originalEvent:e,type:"tapdragover",position:{x:s[0],y:s[1]}})),t.touchData.last=N,n)for(U=0;U<s.length;U++)s[U]&&t.touchData.startPosition[U]&&h&&(t.touchData.singleTouchMoved=!0);n&&(null==rt||rt.pannable())&&o.panningEnabled()&&o.userPanningEnabled()&&(a(rt,t.touchData.starts)&&(e.preventDefault(),t.data.bgActivePosistion||(t.data.bgActivePosistion=vn(t.touchData.startPosition)),t.swipePanning?(o.panBy({x:d[0]*l,y:d[1]*l}),o.emit("dragpan")):h&&(t.swipePanning=!0,o.panBy({x:m*l,y:v*l}),o.emit("dragpan"),rt&&(rt.unactivate(),t.redrawHint("select",!0),t.touchData.start=null))),u=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY),s[0]=u[0],s[1]=u[1])}for(g=0;g<s.length;g++)c[g]=s[g];n&&e.touches.length>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",G=function(e){var n=t.touchData.start;t.touchData.capture=!1,n&&n.unactivate()}),t.registerBinding(e,"touchend",X=function(e){var i=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 h=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);l[0]=h[0],l[1]=h[1]}if(e.touches[1]&&(h=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),l[2]=h[0],l[3]=h[1]),e.touches[2]&&(h=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),l[4]=h[0],l[5]=h[1]),i&&i.unactivate(),t.touchData.cxt){if(o={originalEvent:e,type:"cxttapend",position:{x:l[0],y:l[1]}},i?i.emit(o):s.emit(o),!t.touchData.cxtDragged){var f={originalEvent:e,type:"cxttap",position:{x:l[0],y:l[1]}};i?i.emit(f):s.emit(f)}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 d=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]}});var A=function(t){return t.selectable()&&!t.selected()};d.emit("box").stdFilter(A).select().emit("boxselect"),d.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(null!=i&&i.unactivate(),e.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(e.touches[1]);else if(e.touches[0]);else if(!e.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var g=t.dragData.touchDragEles;if(null!=i){var m=i._private.grabbed;p(g),t.redrawHint("drag",!0),t.redrawHint("eles",!0),m&&(i.emit("freeon"),g.emit("free"),t.dragData.didDrag&&(i.emit("dragfreeon"),g.emit("dragfree"))),r(i,["touchend","tapend","vmouseup","tapdragout"],e,{x:l[0],y:l[1]}),i.unactivate(),t.touchData.start=null}else{var b=t.findNearestElement(l[0],l[1],!0,!0);r(b,["touchend","tapend","vmouseup","tapdragout"],e,{x:l[0],y:l[1]})}var v=t.touchData.startPosition[0]-l[0],y=v*v,w=t.touchData.startPosition[1]-l[1],k=(y+w*w)*c*c;t.touchData.singleTouchMoved||(i||s.$(":selected").unselect(["tapunselect"]),r(i,["tap","vclick"],e,{x:l[0],y:l[1]}),V=!1,e.timeStamp-q<=s.multiClickDebounceTime()?(W&&clearTimeout(W),V=!0,q=null,r(i,["dbltap","vdblclick"],e,{x:l[0],y:l[1]})):(W=setTimeout((function(){V||r(i,["onetap","voneclick"],e,{x:l[0],y:l[1]})}),s.multiClickDebounceTime()),q=e.timeStamp)),null!=i&&!t.dragData.didDrag&&i._private.selectable&&k<t.touchTapThreshold2&&!t.pinching&&("single"===s.selectionType()?(s.$(n).unmerge(i).unselect(["tapunselect"]),i.select(["tapselect"])):i.selected()?i.unselect(["tapunselect"]):i.select(["tapselect"]),t.redrawHint("eles",!0)),t.touchData.singleTouchMoved=!0}for(var C=0;C<l.length;C++)u[C]=l[C];t.dragData.didDrag=!1,0===e.touches.length&&(t.touchData.dragDelta=[],t.touchData.startPosition=[null,null,null,null,null,null],t.touchData.startGPosition=null,t.touchData.didSelect=!1),e.touches.length<2&&(1===e.touches.length&&(t.touchData.startGPosition=[e.touches[0].clientX,e.touches[0].clientY]),t.pinching=!1,t.redrawHint("eles",!0),t.redraw())}},!1),"undefined"==typeof TouchEvent){var Z=[],tt=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}},et=function(t){return{event:t,touch:tt(t)}},nt=function(t){Z.push(et(t))},rt=function(t){for(var e=0;e<Z.length;e++)if(Z[e].event.pointerId===t.pointerId)return void Z.splice(e,1)},it=function(t){var e=Z.filter((function(e){return e.event.pointerId===t.pointerId}))[0];e.event=t,e.touch=tt(t)},at=function(t){t.touches=Z.map((function(t){return t.touch}))},ot=function(t){return"mouse"===t.pointerType||4===t.pointerType};t.registerBinding(t.container,"pointerdown",(function(t){ot(t)||(t.preventDefault(),nt(t),at(t),K(t))})),t.registerBinding(t.container,"pointerup",(function(t){ot(t)||(rt(t),at(t),X(t))})),t.registerBinding(t.container,"pointercancel",(function(t){ot(t)||(rt(t),at(t),G(t))})),t.registerBinding(t.container,"pointermove",(function(t){ot(t)||(t.preventDefault(),it(t),at(t),z(t))}))}}},Af={generatePolygon:function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,draw:function(t,e,n,r,i,a){this.renderer.nodeShapeImpl("polygon",t,e,n,r,i,this.points)},intersectLine:function(t,e,n,r,i,a,o,s){return hr(i,a,this.points,t,e,n/2,r/2,o)},checkPoint:function(t,e,n,r,i,a,o,s){return nr(t,e,this.points,a,o,r,i,[0,-1],n)}}},generateEllipse:function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(t,e,n,r,i,a){this.renderer.nodeShapeImpl(this.name,t,e,n,r,i)},intersectLine:function(t,e,n,r,i,a,o,s){return or(i,a,t,e,n/2+o,r/2+o)},checkPoint:function(t,e,n,r,i,a,o,s){return sr(t,e,r,i,a,o,n)}}},generateRoundPolygon:function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,getOrCreateCorners:function(t,n,r,i,a,o,s){if(void 0!==o[s]&&o[s+"-cx"]===t&&o[s+"-cy"]===n)return o[s];o[s]=new Array(e.length/2),o[s+"-cx"]=t,o[s+"-cy"]=n;var c=r/2,l=i/2;a="auto"===a?br(r,i):a;for(var u=new Array(e.length/2),h=0;h<e.length/2;h++)u[h]={x:t+c*e[2*h],y:n+l*e[2*h+1]};var f,d,A,g,p=u.length;for(d=u[p-1],f=0;f<p;f++)A=u[f%p],g=u[(f+1)%p],o[s][f]=Wh(d,A,g,a),d=A,A=g;return o[s]},draw:function(t,e,n,r,i,a,o){this.renderer.nodeShapeImpl("round-polygon",t,e,n,r,i,this.points,this.getOrCreateCorners(e,n,r,i,a,o,"drawCorners"))},intersectLine:function(t,e,n,r,i,a,o,s,c){return fr(i,a,this.points,t,e,n,r,o,this.getOrCreateCorners(t,e,n,r,s,c,"corners"))},checkPoint:function(t,e,n,r,i,a,o,s,c){return rr(t,e,this.points,a,o,r,i,this.getOrCreateCorners(a,o,r,i,s,c,"corners"))}}},generateRoundRectangle:function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Ar(4,0),draw:function(t,e,n,r,i,a){this.renderer.nodeShapeImpl(this.name,t,e,n,r,i,this.points,a)},intersectLine:function(t,e,n,r,i,a,o,s){return Vn(i,a,t,e,n,r,o,s)},checkPoint:function(t,e,n,r,i,a,o,s){var c=r/2,l=i/2;s="auto"===s?mr(r,i):s;var u=2*(s=Math.min(c,l,s));return!!(nr(t,e,this.points,a,o,r,i-u,[0,-1],n)||nr(t,e,this.points,a,o,r-u,i,[0,-1],n)||sr(t,e,u,u,a-c+s,o-l+s,n)||sr(t,e,u,u,a+c-s,o-l+s,n)||sr(t,e,u,u,a+c-s,o+l-s,n)||sr(t,e,u,u,a-c+s,o+l-s,n))}}},generateCutRectangle:function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:vr(),points:Ar(4,0),draw:function(t,e,n,r,i,a){this.renderer.nodeShapeImpl(this.name,t,e,n,r,i,null,a)},generateCutTrianglePts:function(t,e,n,r,i){var a="auto"===i?this.cornerLength:i,o=e/2,s=t/2,c=n-s,l=n+s,u=r-o,h=r+o;return{topLeft:[c,u+a,c+a,u,c+a,u+a],topRight:[l-a,u,l,u+a,l-a,u+a],bottomRight:[l,h-a,l-a,h,l-a,h-a],bottomLeft:[c+a,h,c,h-a,c+a,h-a]}},intersectLine:function(t,e,n,r,i,a,o,s){var c=this.generateCutTrianglePts(n+2*o,r+2*o,t,e,s),l=[].concat.apply([],[c.topLeft.splice(0,4),c.topRight.splice(0,4),c.bottomRight.splice(0,4),c.bottomLeft.splice(0,4)]);return hr(i,a,l,t,e)},checkPoint:function(t,e,n,r,i,a,o,s){var c="auto"===s?this.cornerLength:s;if(nr(t,e,this.points,a,o,r,i-2*c,[0,-1],n))return!0;if(nr(t,e,this.points,a,o,r-2*c,i,[0,-1],n))return!0;var l=this.generateCutTrianglePts(r,i,a,o);return er(t,e,l.topLeft)||er(t,e,l.topRight)||er(t,e,l.bottomRight)||er(t,e,l.bottomLeft)}}},generateBarrel:function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Ar(4,0),draw:function(t,e,n,r,i,a){this.renderer.nodeShapeImpl(this.name,t,e,n,r,i)},intersectLine:function(t,e,n,r,i,a,o,s){var c=.15,l=.5,u=.85,h=this.generateBarrelBezierPts(n+2*o,r+2*o,t,e),f=function(t){var e=Mn({x:t[0],y:t[1]},{x:t[2],y:t[3]},{x:t[4],y:t[5]},c),n=Mn({x:t[0],y:t[1]},{x:t[2],y:t[3]},{x:t[4],y:t[5]},l),r=Mn({x:t[0],y:t[1]},{x:t[2],y:t[3]},{x:t[4],y:t[5]},u);return[t[0],t[1],e.x,e.y,n.x,n.y,r.x,r.y,t[4],t[5]]},d=[].concat(f(h.topLeft),f(h.topRight),f(h.bottomRight),f(h.bottomLeft));return hr(i,a,d,t,e)},generateBarrelBezierPts:function(t,e,n,r){var i=e/2,a=t/2,o=n-a,s=n+a,c=r-i,l=r+i,u=wr(t,e),h=u.heightOffset,f=u.widthOffset,d=u.ctrlPtOffsetPct*t,A={topLeft:[o,c+h,o+d,c,o+f,c],topRight:[s-f,c,s-d,c,s,c+h],bottomRight:[s,l-h,s-d,l,s-f,l],bottomLeft:[o+f,l,o+d,l,o,l-h]};return A.topLeft.isTop=!0,A.topRight.isTop=!0,A.bottomLeft.isBottom=!0,A.bottomRight.isBottom=!0,A},checkPoint:function(t,e,n,r,i,a,o,s){var c=wr(r,i),l=c.heightOffset,u=c.widthOffset;if(nr(t,e,this.points,a,o,r,i-2*l,[0,-1],n))return!0;if(nr(t,e,this.points,a,o,r-2*u,i,[0,-1],n))return!0;for(var h=this.generateBarrelBezierPts(r,i,a,o),f=function(t,e,n){var r=n[4],i=n[2],a=n[0],o=n[5],s=n[1],c=Math.min(r,a),l=Math.max(r,a),u=Math.min(o,s),h=Math.max(o,s);if(c<=t&&t<=l&&u<=e&&e<=h){var f=yr(r,i,a),d=Yn(f[0],f[1],f[2],t).filter((function(t){return 0<=t&&t<=1}));if(d.length>0)return d[0]}return null},d=Object.keys(h),A=0;A<d.length;A++){var g=h[d[A]],p=f(t,e,g);if(null!=p){var m=g[5],b=g[3],v=g[1],y=In(m,b,v,p);if(g.isTop&&y<=e)return!0;if(g.isBottom&&e<=y)return!0}}return!1}}},generateBottomRoundrectangle:function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Ar(4,0),draw:function(t,e,n,r,i,a){this.renderer.nodeShapeImpl(this.name,t,e,n,r,i,this.points,a)},intersectLine:function(t,e,n,r,i,a,o,s){var c=e-(r/2+o),l=ur(i,a,t,e,t-(n/2+o),c,t+(n/2+o),c,!1);return l.length>0?l:Vn(i,a,t,e,n,r,o,s)},checkPoint:function(t,e,n,r,i,a,o,s){var c=2*(s="auto"===s?mr(r,i):s);if(nr(t,e,this.points,a,o,r,i-c,[0,-1],n))return!0;if(nr(t,e,this.points,a,o,r-c,i,[0,-1],n))return!0;var l=r/2+2*n,u=i/2+2*n;return!!er(t,e,[a-l,o-u,a-l,o,a+l,o,a+l,o-u])||!!sr(t,e,c,c,a+r/2-s,o+i/2-s,n)||!!sr(t,e,c,c,a-r/2+s,o+i/2-s,n)}}},registerNodeShapes:function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",Ar(3,0)),this.generateRoundPolygon("round-triangle",Ar(3,0)),this.generatePolygon("rectangle",Ar(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",Ar(5,0)),this.generateRoundPolygon("round-pentagon",Ar(5,0)),this.generatePolygon("hexagon",Ar(6,0)),this.generateRoundPolygon("round-hexagon",Ar(6,0)),this.generatePolygon("heptagon",Ar(7,0)),this.generateRoundPolygon("round-heptagon",Ar(7,0)),this.generatePolygon("octagon",Ar(8,0)),this.generateRoundPolygon("round-octagon",Ar(8,0));var r=new Array(20),i=pr(5,0),a=pr(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s<a.length/2;s++)a[2*s]*=o,a[2*s+1]*=o;for(s=0;s<5;s++)r[4*s]=i[2*s],r[4*s+1]=i[2*s+1],r[4*s+2]=a[2*s],r[4*s+3]=a[2*s+1];r=gr(r),this.generatePolygon("star",r),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);var c=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",c),this.generateRoundPolygon("round-tag",c),t.makePolygon=function(t){var n,r="polygon-"+t.join("$");return(n=this[r])?n:e.generatePolygon(r,t)}}},gf={timeToRender:function(){return this.redrawTotalTime/this.redrawCount},redraw:function(t){t=t||Qe();var e=this;void 0===e.averageRedrawTime&&(e.averageRedrawTime=0),void 0===e.lastRedrawTime&&(e.lastRedrawTime=0),void 0===e.lastDrawTime&&(e.lastDrawTime=0),e.requestedFrame=!0,e.renderOptions=t},beforeRender:function(t,e){if(!this.destroyed){null==e&&Ie("Priority is not optional for beforeRender");var n=this.beforeRenderCallbacks;n.push({fn:t,priority:e}),n.sort((function(t,e){return e.priority-t.priority}))}}},pf=function(t,e,n){for(var r=t.beforeRenderCallbacks,i=0;i<r.length;i++)r[i].fn(e,n)};gf.startRenderLoop=function(){var t=this,e=t.cy;if(!t.renderLoopStarted){t.renderLoopStarted=!0;var n=function n(r){if(!t.destroyed){if(e.batching());else if(t.requestedFrame&&!t.skipFrame){pf(t,!0,r);var i=le();t.render(t.renderOptions);var a=t.lastDrawTime=le();void 0===t.averageRedrawTime&&(t.averageRedrawTime=a-i),void 0===t.redrawCount&&(t.redrawCount=0),t.redrawCount++,void 0===t.redrawTotalTime&&(t.redrawTotalTime=0);var o=a-i;t.redrawTotalTime+=o,t.lastRedrawTime=o,t.averageRedrawTime=t.averageRedrawTime/2+o/2,t.requestedFrame=!1}else pf(t,!1,r);t.skipFrame=!1,ce(n)}};ce(n)}};var mf=function(t){this.init(t)},bf=mf,vf=bf.prototype;vf.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],vf.init=function(t){var e=this;e.options=t,e.cy=t.cy;var n=e.container=t.cy.container(),r=e.cy.window();if(r){var i=r.document,a=i.head,o="__________cytoscape_stylesheet",s="__________cytoscape_container",c=null!=i.getElementById(o);if(n.className.indexOf(s)<0&&(n.className=(n.className||"")+" "+s),!c){var l=i.createElement("style");l.id=o,l.textContent="."+s+" { position: relative; }",a.insertBefore(l,a.children[0])}"static"===r.getComputedStyle(n).getPropertyValue("position")&&Oe("A Cytoscape container has style position:static and so can not use UI extensions properly")}e.selection=[void 0,void 0,void 0,void 0,0],e.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],e.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},e.dragData={possibleDragElements:[]},e.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},e.redraws=0,e.showFps=t.showFps,e.debug=t.debug,e.hideEdgesOnViewport=t.hideEdgesOnViewport,e.textureOnViewport=t.textureOnViewport,e.wheelSensitivity=t.wheelSensitivity,e.motionBlurEnabled=t.motionBlur,e.forcedPixelRatio=E(t.pixelRatio)?t.pixelRatio:null,e.motionBlur=t.motionBlur,e.motionBlurOpacity=t.motionBlurOpacity,e.motionBlurTransparency=1-e.motionBlurOpacity,e.motionBlurPxRatio=1,e.mbPxRBlurry=1,e.minMbLowQualFrames=4,e.fullQualityMb=!1,e.clearedForMotionBlur=[],e.desktopTapThreshold=t.desktopTapThreshold,e.desktopTapThreshold2=t.desktopTapThreshold*t.desktopTapThreshold,e.touchTapThreshold=t.touchTapThreshold,e.touchTapThreshold2=t.touchTapThreshold*t.touchTapThreshold,e.tapholdDuration=500,e.bindings=[],e.beforeRenderCallbacks=[],e.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},e.registerNodeShapes(),e.registerArrowShapes(),e.registerCalculationListeners()},vf.notify=function(t,e){var n=this,r=n.cy;this.destroyed||("init"!==t?"destroy"!==t?(("add"===t||"remove"===t||"move"===t&&r.hasCompoundNodes()||"load"===t||"zorder"===t||"mount"===t)&&n.invalidateCachedZSortedEles(),"viewport"===t&&n.redrawHint("select",!0),"load"!==t&&"resize"!==t&&"mount"!==t||(n.invalidateContainerClientCoordsCache(),n.matchCanvasSize(n.container)),n.redrawHint("eles",!0),n.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()):n.destroy():n.load())},vf.destroy=function(){var t=this;t.destroyed=!0,t.cy.stopAnimationLoop();for(var e=0;e<t.bindings.length;e++){var n=t.bindings[e],r=n.target;(r.off||r.removeEventListener).apply(r,n.args)}if(t.bindings=[],t.beforeRenderCallbacks=[],t.onUpdateEleCalcsFns=[],t.removeObserver&&t.removeObserver.disconnect(),t.styleObserver&&t.styleObserver.disconnect(),t.resizeObserver&&t.resizeObserver.disconnect(),t.labelCalcDiv)try{document.body.removeChild(t.labelCalcDiv)}catch(t){}},vf.isHeadless=function(){return!1},[Ch,hf,ff,df,Af,gf].forEach((function(t){Z(vf,t)}));var yf=1e3/60,wf={setupDequeueing:function(t){return function(){var e=this,n=this.renderer;if(!e.dequeueingSetup){e.dequeueingSetup=!0;var r=ie((function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()}),t.deqRedrawThreshold),i=function(i,a){var o=le(),s=n.averageRedrawTime,c=n.lastRedrawTime,l=[],u=n.cy.extent(),h=n.getPixelRatio();for(i||n.flushRenderedStyleQueue();;){var f=le(),d=f-o,A=f-a;if(c<yf){var g=yf-(i?s:0);if(A>=t.deqFastCost*g)break}else if(i){if(d>=t.deqCost*c||d>=t.deqAvgCost*s)break}else if(A>=t.deqNoDrawCost*yf)break;var p=t.deq(e,h,u);if(!(p.length>0))break;for(var m=0;m<p.length;m++)l.push(p[m])}l.length>0&&(t.onDeqd(e,l),!i&&t.shouldRedraw(e,l,h,u)&&r())},a=t.priority||Le;n.beforeRender(i,a(e))}}}},kf=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_e;n(this,t),this.idsByKey=new Xe,this.keyForId=new Xe,this.cachesByLvl=new Xe,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return i(t,[{key:"getIdsFor",value:function(t){null==t&&Ie("Can not get id list for null key");var e=this.idsByKey,n=this.idsByKey.get(t);return n||(n=new qe,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),r=this.getKey(t);this.deleteIdForKey(n,e),this.addIdForKey(r,e),this.keyForId.set(e,r)}},{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,r=e.get(t);return r||(r=new Xe,e.set(t,r),n.push(t)),r}},{key:"getCache",value:function(t,e){return this.getCachesAt(e).get(t)}},{key:"get",value:function(t,e){var n=this.getKey(t),r=this.getCache(n,e);return null!=r&&this.updateKeyMappingFor(t),r}},{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 r=this.getKey(t);this.setCache(r,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 r=this.doesEleInvalidateKey(t);return r&&this.invalidateKey(n),r||0===this.getNumberOfIdsForKey(n)}}]),t}(),Cf=25,xf=50,Ef=-4,Tf=3,Bf=7.99,_f=8,Sf=1024,Lf=1024,If=1024,Mf=.2,Of=.8,Df=10,Ff=.15,Nf=.1,Pf=.9,Rf=.9,Qf=100,Uf=1,$f={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Hf=Ue({getKey:null,doesEleInvalidateKey:_e,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:Be,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),jf=function(t,e){var n=this;n.renderer=t,n.onDequeues=[];var r=Hf(e);Z(n,r),n.lookup=new kf(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},Kf=jf.prototype;Kf.reasons=$f,Kf.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},Kf.getRetiredTextureQueue=function(t){var e=this,n=e.eleImgCaches.retired=e.eleImgCaches.retired||{};return n[t]=n[t]||[]},Kf.getElementQueue=function(){var t=this;return t.eleCacheQueue=t.eleCacheQueue||new en((function(t,e){return e.reqs-t.reqs}))},Kf.getElementKeyToQueue=function(){var t=this;return t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{}},Kf.getElement=function(t,e,n,r,i){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())return null;if(!a.allowEdgeTxrCaching&&t.isEdge()||!a.allowParentTxrCaching&&t.isParent())return null;if(null==r&&(r=Math.ceil(Tn(s*n))),r<Ef)r=Ef;else if(s>=Bf||r>Tf)return null;var l=Math.pow(2,r),u=e.h*l,h=e.w*l,f=o.eleTextBiggerThanMin(t,l);if(!this.isVisible(t,f))return null;var d,A=c.get(t,r);if(A&&A.invalidated&&(A.invalidated=!1,A.texture.invalidatedWidth-=A.width),A)return A;if(d=u<=Cf?Cf:u<=xf?xf:Math.ceil(u/xf)*xf,u>If||h>Lf)return null;var g=a.getTextureQueue(d),p=g[g.length-2],m=function(){return a.recycleTexture(d,h)||a.addTexture(d,h)};p||(p=g[g.length-1]),p||(p=m()),p.width-p.usedWidth<h&&(p=m());for(var b,v=function(t){return t&&t.scaledLabelShown===f},y=i&&i===$f.dequeue,w=i&&i===$f.highQuality,k=i&&i===$f.downscale,C=r+1;C<=Tf;C++){var x=c.get(t,C);if(x){b=x;break}}var E=b&&b.level===r+1?b:null,T=function(){p.context.drawImage(E.texture.canvas,E.x,0,E.width,E.height,p.usedWidth,0,h,u)};if(p.context.setTransform(1,0,0,1,0,0),p.context.clearRect(p.usedWidth,0,h,d),v(E))T();else if(v(b)){if(!w)return a.queueElement(t,b.level-1),b;for(var B=b.level;B>r;B--)E=a.getElement(t,e,n,B,$f.downscale);T()}else{var _;if(!y&&!w&&!k)for(var S=r-1;S>=Ef;S--){var L=c.get(t,S);if(L){_=L;break}}if(v(_))return a.queueElement(t,r),_;p.context.translate(p.usedWidth,0),p.context.scale(l,l),this.drawElement(p.context,t,e,f,!1),p.context.scale(1/l,1/l),p.context.translate(-p.usedWidth,0)}return A={x:p.usedWidth,texture:p,level:r,scale:l,width:h,height:u,scaledLabelShown:f},p.usedWidth+=Math.ceil(h+_f),p.eleCaches.push(A),c.set(t,r,A),a.checkTextureFullness(p),A},Kf.invalidateElements=function(t){for(var e=0;e<t.length;e++)this.invalidateElement(t[e])},Kf.invalidateElement=function(t){var e=this,n=e.lookup,r=[];if(n.isInvalid(t)){for(var i=Ef;i<=Tf;i++){var a=n.getForCachedKey(t,i);a&&r.push(a)}if(n.invalidate(t))for(var o=0;o<r.length;o++){var s=r[o],c=s.texture;c.invalidatedWidth+=s.width,s.invalidated=!0,e.checkTextureUtility(c)}e.removeFromQueue(t)}},Kf.checkTextureUtility=function(t){t.invalidatedWidth>=Mf*t.width&&this.retireTexture(t)},Kf.checkTextureFullness=function(t){var e=this.getTextureQueue(t.height);t.usedWidth/t.width>Of&&t.fullnessChecks>=Df?$e(e,t):t.fullnessChecks++},Kf.retireTexture=function(t){var e=this,n=t.height,r=e.getTextureQueue(n),i=this.lookup;$e(r,t),t.retired=!0;for(var a=t.eleCaches,o=0;o<a.length;o++){var s=a[o];i.deleteCache(s.key,s.level)}He(a),e.getRetiredTextureQueue(n).push(t)},Kf.addTexture=function(t,e){var n=this,r={};return n.getTextureQueue(t).push(r),r.eleCaches=[],r.height=t,r.width=Math.max(Sf,e),r.usedWidth=0,r.invalidatedWidth=0,r.fullnessChecks=0,r.canvas=n.renderer.makeOffscreenCanvas(r.width,r.height),r.context=r.canvas.getContext("2d"),r},Kf.recycleTexture=function(t,e){for(var n=this,r=n.getTextureQueue(t),i=n.getRetiredTextureQueue(t),a=0;a<i.length;a++){var o=i[a];if(o.width>=e)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,He(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),$e(i,o),r.push(o),o}},Kf.queueElement=function(t,e){var n=this,r=n.getElementQueue(),i=n.getElementKeyToQueue(),a=this.getKey(t),o=i[a];if(o)o.level=Math.max(o.level,e),o.eles.merge(t),o.reqs++,r.updateItem(o);else{var s={eles:t.spawn().merge(t),level:e,reqs:1,key:a};r.push(s),i[a]=s}},Kf.dequeue=function(t){for(var e=this,n=e.getElementQueue(),r=e.getElementKeyToQueue(),i=[],a=e.lookup,o=0;o<Uf&&n.size()>0;o++){var s=n.pop(),c=s.key,l=s.eles[0],u=a.hasCache(l,s.level);if(r[c]=null,!u){i.push(s);var h=e.getBoundingBox(l);e.getElement(l,h,t,s.level,$f.dequeue)}}return i},Kf.removeFromQueue=function(t){var e=this,n=e.getElementQueue(),r=e.getElementKeyToQueue(),i=this.getKey(t),a=r[i];null!=a&&(1===a.eles.length?(a.reqs=Te,n.updateItem(a),n.pop(),r[i]=null):a.eles.unmerge(t))},Kf.onDequeue=function(t){this.onDequeues.push(t)},Kf.offDequeue=function(t){$e(this.onDequeues,t)},Kf.setupDequeueing=wf.setupDequeueing({deqRedrawThreshold:Qf,deqCost:Ff,deqAvgCost:Nf,deqNoDrawCost:Pf,deqFastCost:Rf,deq:function(t,e,n){return t.dequeue(e,n)},onDeqd:function(t,e){for(var n=0;n<t.onDequeues.length;n++)(0,t.onDequeues[n])(e)},shouldRedraw:function(t,e,n,r){for(var i=0;i<e.length;i++)for(var a=e[i].eles,o=0;o<a.length;o++){var s=a[o].boundingBox();if(Kn(s,r))return!0}return!1},priority:function(t){return t.renderer.beforeRenderPriorities.eleTxrDeq}});var zf=1,Gf=-4,Xf=2,Vf=3.99,Wf=50,qf=50,Yf=.15,Jf=.1,Zf=.9,td=.9,ed=1,nd=250,rd=16e6,id=!0,ad=function(t){var e=this,n=e.renderer=t,r=n.cy;e.layersByLevel={},e.firstGet=!0,e.lastInvalidationTime=le()-2*nd,e.skipping=!1,e.eleTxrDeqs=r.collection(),e.scheduleElementRefinement=ie((function(){e.refineElementTextures(e.eleTxrDeqs),e.eleTxrDeqs.unmerge(e.eleTxrDeqs)}),qf),n.beforeRender((function(t,n){n-e.lastInvalidationTime<=nd?e.skipping=!0:e.skipping=!1}),n.beforeRenderPriorities.lyrTxrSkip);var i=function(t,e){return e.reqs-t.reqs};e.layersQueue=new en(i),e.setupDequeueing()},od=ad.prototype,sd=0,cd=Math.pow(2,53)-1;od.makeLayer=function(t,e){var n=Math.pow(2,e),r=Math.ceil(t.w*n),i=Math.ceil(t.h*n),a=this.renderer.makeOffscreenCanvas(r,i),o={id:sd=++sd%cd,bb:t,level:e,width:r,height:i,canvas:a,context:a.getContext("2d"),eles:[],elesQueue:[],reqs:0},s=o.context,c=-o.bb.x1,l=-o.bb.y1;return s.scale(n,n),s.translate(c,l),o},od.getLayers=function(t,e,n){var r=this,i=r.renderer.cy.zoom(),a=r.firstGet;if(r.firstGet=!1,null==n)if((n=Math.ceil(Tn(i*e)))<Gf)n=Gf;else if(i>=Vf||n>Xf)return null;r.validateLayersElesOrdering(n,t);var o,s,c=r.layersByLevel,l=Math.pow(2,n),u=c[n]=c[n]||[],h=function(){var e=function(e){if(r.validateLayersElesOrdering(e,t),r.levelIsComplete(e,t))return s=c[e],!0},i=function(t){if(!s)for(var r=n+t;Gf<=r&&r<=Xf&&!e(r);r+=t);};i(1),i(-1);for(var a=u.length-1;a>=0;a--){var o=u[a];o.invalid&&$e(u,o)}};if(r.levelIsComplete(n,t))return u;h();var f=function(){if(!o){o=Fn();for(var e=0;e<t.length;e++)Qn(o,t[e].boundingBox())}return o},d=function(t){var e=(t=t||{}).after;if(f(),o.w*l*(o.h*l)>rd)return null;var i=r.makeLayer(o,n);if(null!=e){var a=u.indexOf(e)+1;u.splice(a,0,i)}else(void 0===t.insert||t.insert)&&u.unshift(i);return i};if(r.skipping&&!a)return null;for(var A=null,g=t.length/zf,p=!a,m=0;m<t.length;m++){var b=t[m],v=b._private.rscratch,y=v.imgLayerCaches=v.imgLayerCaches||{},w=y[n];if(w)A=w;else{if((!A||A.eles.length>=g||!Xn(A.bb,b.boundingBox()))&&!(A=d({insert:!0,after:A})))return null;s||p?r.queueLayer(A,b):r.drawEleInLayer(A,b,n,e),A.eles.push(b),y[n]=A}}return s||(p?null:u)},od.getEleLevelForLayerLevel=function(t,e){return t},od.drawEleInLayer=function(t,e,n,r){var i=this,a=this.renderer,o=t.context,s=e.boundingBox();0!==s.w&&0!==s.h&&e.visible()&&(n=i.getEleLevelForLayerLevel(n,r),a.setImgSmoothing(o,!1),a.drawCachedElement(o,e,null,null,n,id),a.setImgSmoothing(o,!0))},od.levelIsComplete=function(t,e){var n=this.layersByLevel[t];if(!n||0===n.length)return!1;for(var r=0,i=0;i<n.length;i++){var a=n[i];if(a.reqs>0)return!1;if(a.invalid)return!1;r+=a.eles.length}return r===e.length},od.validateLayersElesOrdering=function(t,e){var n=this.layersByLevel[t];if(n)for(var r=0;r<n.length;r++){for(var i=n[r],a=-1,o=0;o<e.length;o++)if(i.eles[0]===e[o]){a=o;break}if(a<0)this.invalidateLayer(i);else{var s=a;for(o=0;o<i.eles.length;o++)if(i.eles[o]!==e[s+o]){this.invalidateLayer(i);break}}}},od.updateElementsInLayers=function(t,e){for(var n=this,r=S(t[0]),i=0;i<t.length;i++)for(var a=r?null:t[i],o=r?t[i]:t[i].ele,s=o._private.rscratch,c=s.imgLayerCaches=s.imgLayerCaches||{},l=Gf;l<=Xf;l++){var u=c[l];u&&(a&&n.getEleLevelForLayerLevel(u.level)!==a.level||e(u,o,a))}},od.haveLayers=function(){for(var t=this,e=!1,n=Gf;n<=Xf;n++){var r=t.layersByLevel[n];if(r&&r.length>0){e=!0;break}}return e},od.invalidateElements=function(t){var e=this;0!==t.length&&(e.lastInvalidationTime=le(),0!==t.length&&e.haveLayers()&&e.updateElementsInLayers(t,(function(t,n,r){e.invalidateLayer(t)})))},od.invalidateLayer=function(t){if(this.lastInvalidationTime=le(),!t.invalid){var e=t.level,n=t.eles,r=this.layersByLevel[e];$e(r,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var i=0;i<n.length;i++){var a=n[i]._private.rscratch.imgLayerCaches;a&&(a[e]=null)}}},od.refineElementTextures=function(t){var e=this;e.updateElementsInLayers(t,(function(t,n,r){var i=t.replacement;if(i||((i=t.replacement=e.makeLayer(t.bb,t.level)).replaces=t,i.eles=t.eles),!i.reqs)for(var a=0;a<i.eles.length;a++)e.queueLayer(i,i.eles[a])}))},od.enqueueElementRefinement=function(t){this.eleTxrDeqs.merge(t),this.scheduleElementRefinement()},od.queueLayer=function(t,e){var n=this.layersQueue,r=t.elesQueue,i=r.hasId=r.hasId||{};if(!t.replacement){if(e){if(i[e.id()])return;r.push(e),i[e.id()]=!0}t.reqs?(t.reqs++,n.updateItem(t)):(t.reqs=1,n.push(t))}},od.dequeue=function(t){for(var e=this,n=e.layersQueue,r=[],i=0;i<ed&&0!==n.size();){var a=n.peek();if(a.replacement)n.pop();else if(a.replaces&&a!==a.replaces.replacement)n.pop();else if(a.invalid)n.pop();else{var o=a.elesQueue.shift();o&&(e.drawEleInLayer(a,o,a.level,t),i++),0===r.length&&r.push(!0),0===a.elesQueue.length&&(n.pop(),a.reqs=0,a.replaces&&e.applyLayerReplacement(a),e.requestRedraw())}}return r},od.applyLayerReplacement=function(t){var e=this,n=e.layersByLevel[t.level],r=t.replaces,i=n.indexOf(r);if(!(i<0||r.invalid)){n[i]=t;for(var a=0;a<t.eles.length;a++){var o=t.eles[a]._private,s=o.imgLayerCaches=o.imgLayerCaches||{};s&&(s[t.level]=t)}e.requestRedraw()}},od.requestRedraw=ie((function(){var t=this.renderer;t.redrawHint("eles",!0),t.redrawHint("drag",!0),t.redraw()}),100),od.setupDequeueing=wf.setupDequeueing({deqRedrawThreshold:Wf,deqCost:Yf,deqAvgCost:Jf,deqNoDrawCost:Zf,deqFastCost:td,deq:function(t,e){return t.dequeue(e)},onDeqd:Le,shouldRedraw:Be,priority:function(t){return t.renderer.beforeRenderPriorities.lyrTxrDeq}});var ld,ud={};function hd(t,e){for(var n=0;n<e.length;n++){var r=e[n];t.lineTo(r.x,r.y)}}function fd(t,e,n){for(var r,i=0;i<e.length;i++){var a=e[i];0===i&&(r=a),t.lineTo(a.x,a.y)}t.quadraticCurveTo(n.x,n.y,r.x,r.y)}function dd(t,e,n){t.beginPath&&t.beginPath();for(var r=e,i=0;i<r.length;i++){var a=r[i];t.lineTo(a.x,a.y)}var o=n,s=n[0];for(t.moveTo(s.x,s.y),i=1;i<o.length;i++)a=o[i],t.lineTo(a.x,a.y);t.closePath&&t.closePath()}function Ad(t,e,n,r,i){t.beginPath&&t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1);var a=e,o=a[0];t.moveTo(o.x,o.y);for(var s=0;s<a.length;s++){var c=a[s];t.lineTo(c.x,c.y)}t.closePath&&t.closePath()}function gd(t,e,n,r){t.arc(e,n,r,0,2*Math.PI,!1)}ud.arrowShapeImpl=function(t){return(ld||(ld={polygon:hd,"triangle-backcurve":fd,"triangle-tee":dd,"circle-triangle":Ad,"triangle-cross":dd,circle:gd}))[t]};var pd={drawElement:function(t,e,n,r,i,a){var o=this;e.isNode()?o.drawNode(t,e,n,r,i,a):o.drawEdge(t,e,n,r,i,a)},drawElementOverlay:function(t,e){var n=this;e.isNode()?n.drawNodeOverlay(t,e):n.drawEdgeOverlay(t,e)},drawElementUnderlay:function(t,e){var n=this;e.isNode()?n.drawNodeUnderlay(t,e):n.drawEdgeUnderlay(t,e)},drawCachedElementPortion:function(t,e,n,r,i,a,o,s){var c=this,l=n.getBoundingBox(e);if(0!==l.w&&0!==l.h){var u=n.getElement(e,l,r,i,a);if(null!=u){var h=s(c,e);if(0===h)return;var f,d,A,g,p,m,b=o(c,e),v=l.x1,y=l.y1,w=l.w,k=l.h;if(0!==b){var C=n.getRotationPoint(e);A=C.x,g=C.y,t.translate(A,g),t.rotate(b),(p=c.getImgSmoothing(t))||c.setImgSmoothing(t,!0);var x=n.getRotationOffset(e);f=x.x,d=x.y}else f=v,d=y;1!==h&&(m=t.globalAlpha,t.globalAlpha=m*h),t.drawImage(u.texture.canvas,u.x,0,u.width,u.height,f,d,w,k),1!==h&&(t.globalAlpha=m),0!==b&&(t.rotate(-b),t.translate(-A,-g),p||c.setImgSmoothing(t,!1))}else n.drawElement(t,e)}}},md=function(){return 0},bd=function(t,e){return t.getTextAngle(e,null)},vd=function(t,e){return t.getTextAngle(e,"source")},yd=function(t,e){return t.getTextAngle(e,"target")},wd=function(t,e){return e.effectiveOpacity()},kd=function(t,e){return e.pstyle("text-opacity").pfValue*e.effectiveOpacity()};pd.drawCachedElement=function(t,e,n,r,i,a){var o=this,s=o.data,c=s.eleTxrCache,l=s.lblTxrCache,u=s.slbTxrCache,h=s.tlbTxrCache,f=e.boundingBox(),d=!0===a?c.reasons.highQuality:null;if(0!==f.w&&0!==f.h&&e.visible()&&(!r||Kn(f,r))){var A=e.isEdge(),g=e.element()._private.rscratch.badLine;o.drawElementUnderlay(t,e),o.drawCachedElementPortion(t,e,c,n,i,d,md,wd),A&&g||o.drawCachedElementPortion(t,e,l,n,i,d,bd,kd),A&&!g&&(o.drawCachedElementPortion(t,e,u,n,i,d,vd,kd),o.drawCachedElementPortion(t,e,h,n,i,d,yd,kd)),o.drawElementOverlay(t,e)}},pd.drawElements=function(t,e){for(var n=this,r=0;r<e.length;r++){var i=e[r];n.drawElement(t,i)}},pd.drawCachedElements=function(t,e,n,r){for(var i=this,a=0;a<e.length;a++){var o=e[a];i.drawCachedElement(t,o,n,r)}},pd.drawCachedNodes=function(t,e,n,r){for(var i=this,a=0;a<e.length;a++){var o=e[a];o.isNode()&&i.drawCachedElement(t,o,n,r)}},pd.drawLayeredElements=function(t,e,n,r){var i=this,a=i.data.lyrTxrCache.getLayers(e,n);if(a)for(var o=0;o<a.length;o++){var s=a[o],c=s.bb;0!==c.w&&0!==c.h&&t.drawImage(s.canvas,c.x1,c.y1,c.w,c.h)}else i.drawCachedElements(t,e,n,r)};var Cd={drawEdge:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(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,A=e.pstyle("line-cap").value,g=l*u,p=l*u,m=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;"straight-triangle"===h?(o.eleStrokeStyle(t,e,n),o.drawEdgeTrianglePath(e,t,s.allpts)):(t.lineWidth=d,t.lineCap=A,o.eleStrokeStyle(t,e,n),o.drawEdgePath(e,t,s.allpts,f),t.lineCap="butt")},b=function(){i&&o.drawEdgeOverlay(t,e)},v=function(){i&&o.drawEdgeUnderlay(t,e)},y=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;o.drawArrowheads(t,e,n)},w=function(){o.drawElementText(t,e,null,r)};if(t.lineJoin="round","yes"===e.pstyle("ghost").value){var k=e.pstyle("ghost-offset-x").pfValue,C=e.pstyle("ghost-offset-y").pfValue,x=e.pstyle("ghost-opacity").value,E=g*x;t.translate(k,C),m(E),y(E),t.translate(-k,-C)}v(),m(),y(),b(),w(),n&&t.translate(c.x1,c.y1)}}},xd=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(e,n){if(n.visible()){var r=n.pstyle("".concat(t,"-opacity")).value;if(0!==r){var i=this,a=i.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",i.colorStrokeStyle(e,c[0],c[1],c[2],r),i.drawEdgePath(n,e,o.allpts,"solid")}}}};Cd.drawEdgeOverlay=xd("overlay"),Cd.drawEdgeUnderlay=xd("underlay"),Cd.drawEdgePath=function(t,e,n,r){var i,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?(i=e=a.pathCache,s=!0):(i=e=new Path2D,a.pathCacheKey=h,a.pathCache=i)}if(o.setLineDash)switch(r){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 d=2;d+3<n.length;d+=4)e.quadraticCurveTo(n[d],n[d+1],n[d+2],n[d+3]);break;case"straight":case"haystack":for(var A=2;A+1<n.length;A+=2)e.lineTo(n[A],n[A+1]);break;case"segments":if(a.isRound){var g,p=f(a.roundCorners);try{for(p.s();!(g=p.n()).done;)Vh(e,g.value)}catch(t){p.e(t)}finally{p.f()}e.lineTo(n[n.length-2],n[n.length-1])}else for(var m=2;m+1<n.length;m+=2)e.lineTo(n[m],n[m+1])}e=o,c?e.stroke(i):e.stroke(),e.setLineDash&&e.setLineDash([])},Cd.drawEdgeTrianglePath=function(t,e,n){e.fillStyle=e.strokeStyle;for(var r=t.pstyle("width").pfValue,i=0;i+1<n.length;i+=2){var a=[n[i+2]-n[i],n[i+3]-n[i+1]],o=Math.sqrt(a[0]*a[0]+a[1]*a[1]),s=[a[1]/o,-a[0]/o],c=[s[0]*r/2,s[1]*r/2];e.beginPath(),e.moveTo(n[i]-c[0],n[i+1]-c[1]),e.lineTo(n[i]+c[0],n[i+1]+c[1]),e.lineTo(n[i+2],n[i+3]),e.closePath(),e.fill()}},Cd.drawArrowheads=function(t,e,n){var r=e._private.rscratch,i="haystack"===r.edgeType;i||this.drawArrowhead(t,e,"source",r.arrowStartX,r.arrowStartY,r.srcArrowAngle,n),this.drawArrowhead(t,e,"mid-target",r.midX,r.midY,r.midtgtArrowAngle,n),this.drawArrowhead(t,e,"mid-source",r.midX,r.midY,r.midsrcArrowAngle,n),i||this.drawArrowhead(t,e,"target",r.arrowEndX,r.arrowEndY,r.tgtArrowAngle,n)},Cd.drawArrowhead=function(t,e,n,r,i,a,o){if(!(isNaN(r)||null==r||isNaN(i)||null==i||isNaN(a)||null==a)){var s=this,c=e.pstyle(n+"-arrow-shape").value;if("none"!==c){var l="hollow"===e.pstyle(n+"-arrow-fill").value?"both":"filled",u=e.pstyle(n+"-arrow-fill").value,h=e.pstyle("width").pfValue,f=e.pstyle(n+"-arrow-width"),d="match-line"===f.value?h:f.pfValue;"%"===f.units&&(d*=h);var A=e.pstyle("opacity").value;void 0===o&&(o=A);var g=t.globalCompositeOperation;1===o&&"hollow"!==u||(t.globalCompositeOperation="destination-out",s.colorFillStyle(t,255,255,255,1),s.colorStrokeStyle(t,255,255,255,1),s.drawArrowShape(e,t,l,h,c,d,r,i,a),t.globalCompositeOperation=g);var p=e.pstyle(n+"-arrow-color").value;s.colorFillStyle(t,p[0],p[1],p[2],o),s.colorStrokeStyle(t,p[0],p[1],p[2],o),s.drawArrowShape(e,t,u,h,c,d,r,i,a)}}},Cd.drawArrowShape=function(t,e,n,r,i,a,o,s,c){var l,u=this,h=this.usePaths()&&"triangle-cross"!==i,f=!1,d=e,A={x:o,y:s},g=t.pstyle("arrow-scale").value,p=this.getArrowWidth(r,g),m=u.arrowShapes[i];if(h){var b=u.arrowPathCache=u.arrowPathCache||[],v=ye(i),y=b[v];null!=y?(l=e=y,f=!0):(l=e=new Path2D,b[v]=l)}f||(e.beginPath&&e.beginPath(),h?m.draw(e,1,0,{x:0,y:0},1):m.draw(e,p,c,A,r),e.closePath&&e.closePath()),e=d,h&&(e.translate(o,s),e.rotate(c),e.scale(p,p)),"filled"!==n&&"both"!==n||(h?e.fill(l):e.fill()),"hollow"!==n&&"both"!==n||(e.lineWidth=a/(h?p:1),e.lineJoin="miter",h?e.stroke(l):e.stroke()),h&&(e.scale(1/p,1/p),e.rotate(-c),e.translate(-o,-s))};var Ed={safeDrawImage:function(t,e,n,r,i,a,o,s,c,l){if(!(i<=0||a<=0||c<=0||l<=0))try{t.drawImage(e,n,r,i,a,o,s,c,l)}catch(t){Oe(t)}},drawInscribedImage:function(t,e,n,r,i){var a=this,o=n.position(),s=o.x,c=o.y,l=n.cy().style(),u=l.getIndexedStyle.bind(l),h=u(n,"background-fit","value",r),f=u(n,"background-repeat","value",r),d=n.width(),A=n.height(),g=2*n.padding(),p=d+("inner"===u(n,"background-width-relative-to","value",r)?0:g),m=A+("inner"===u(n,"background-height-relative-to","value",r)?0:g),b=n._private.rscratch,v="node"===u(n,"background-clip","value",r),y=u(n,"background-image-opacity","value",r)*i,w=u(n,"background-image-smoothing","value",r),k=n.pstyle("corner-radius").value;"auto"!==k&&(k=n.pstyle("corner-radius").pfValue);var C=e.width||e.cachedW,x=e.height||e.cachedH;null!=C&&null!=x||(document.body.appendChild(e),C=e.cachedW=e.width||e.offsetWidth,x=e.cachedH=e.height||e.offsetHeight,document.body.removeChild(e));var E=C,T=x;if("auto"!==u(n,"background-width","value",r)&&(E="%"===u(n,"background-width","units",r)?u(n,"background-width","pfValue",r)*p:u(n,"background-width","pfValue",r)),"auto"!==u(n,"background-height","value",r)&&(T="%"===u(n,"background-height","units",r)?u(n,"background-height","pfValue",r)*m:u(n,"background-height","pfValue",r)),0!==E&&0!==T){if("contain"===h)E*=B=Math.min(p/E,m/T),T*=B;else if("cover"===h){var B;E*=B=Math.max(p/E,m/T),T*=B}var _=s-p/2,S=u(n,"background-position-x","units",r),L=u(n,"background-position-x","pfValue",r);_+="%"===S?(p-E)*L:L;var I=u(n,"background-offset-x","units",r),M=u(n,"background-offset-x","pfValue",r);_+="%"===I?(p-E)*M:M;var O=c-m/2,D=u(n,"background-position-y","units",r),F=u(n,"background-position-y","pfValue",r);O+="%"===D?(m-T)*F:F;var N=u(n,"background-offset-y","units",r),P=u(n,"background-offset-y","pfValue",r);O+="%"===N?(m-T)*P:P,b.pathCache&&(_-=s,O-=c,s=0,c=0);var R=t.globalAlpha;t.globalAlpha=y;var Q=a.getImgSmoothing(t),U=!1;if("no"===w&&Q?(a.setImgSmoothing(t,!1),U=!0):"yes"!==w||Q||(a.setImgSmoothing(t,!0),U=!0),"no-repeat"===f)v&&(t.save(),b.pathCache?t.clip(b.pathCache):(a.nodeShapes[a.getNodeShape(n)].draw(t,s,c,p,m,k,b),t.clip())),a.safeDrawImage(t,e,0,0,C,x,_,O,E,T),v&&t.restore();else{var $=t.createPattern(e,f);t.fillStyle=$,a.nodeShapes[a.getNodeShape(n)].draw(t,s,c,p,m,k,b),t.translate(_,O),t.fill(),t.translate(-_,-O)}t.globalAlpha=R,U&&a.setImgSmoothing(t,Q)}}},Td={};function Bd(t,e,n,r,i){var a=arguments.length>5&&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+r-a,n),t.quadraticCurveTo(e+r,n,e+r,n+a),t.lineTo(e+r,n+i-a),t.quadraticCurveTo(e+r,n+i,e+r-a,n+i),t.lineTo(e+a,n+i),t.quadraticCurveTo(e,n+i,e,n+i-a),t.lineTo(e,n+a),t.quadraticCurveTo(e,n,e+a,n),t.closePath(),o?t.stroke():t.fill()}Td.eleTextBiggerThanMin=function(t,e){if(!e){var n=t.cy().zoom(),r=this.getPixelRatio(),i=Math.ceil(Tn(n*r));e=Math.pow(2,i)}return!(t.pstyle("font-size").pfValue*e<t.pstyle("min-zoomed-font-size").pfValue)},Td.drawElementText=function(t,e,n,r,i){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],o=this;if(null==r){if(a&&!o.eleTextBiggerThanMin(e))return}else if(!1===r)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,A=!n;n&&(d=n,t.translate(-d.x1,-d.y1)),null==i?(o.drawText(t,e,null,A,a),e.isEdge()&&(o.drawText(t,e,"source",A,a),o.drawText(t,e,"target",A,a))):o.drawText(t,e,i,A,a),n&&t.translate(d.x1,d.y1)},Td.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var n=0;n<this.fontCaches.length;n++)if((e=this.fontCaches[n]).context===t)return e;return e={context:t},this.fontCaches.push(e),e},Td.setupTextStyle=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.pstyle("font-style").strValue,i=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=r+" "+o+" "+i+" "+a,t.lineJoin="round",this.colorFillStyle(t,l[0],l[1],l[2],s),this.colorStrokeStyle(t,u[0],u[1],u[2],c)},Td.getTextAngle=function(t,e){var n=t._private.rscratch,r=e?e+"-":"",i=t.pstyle(r+"text-rotation"),a=Ke(n,"labelAngle",e);return"autorotate"===i.strValue?t.isEdge()?a:0:"none"===i.strValue?0:i.pfValue},Td.drawText=function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=e._private.rscratch,o=i?e.effectiveOpacity():1;if(!i||0!==o&&0!==e.pstyle("text-opacity").value){"main"===n&&(n=null);var s,c,l=Ke(a,"labelX",n),u=Ke(a,"labelY",n),h=this.getLabelText(e,n);if(null!=h&&""!==h&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,i);var f,d=n?n+"-":"",A=Ke(a,"labelWidth",n),g=Ke(a,"labelHeight",n),p=e.pstyle(d+"text-margin-x").pfValue,m=e.pstyle(d+"text-margin-y").pfValue,b=e.isEdge(),v=e.pstyle("text-halign").value,y=e.pstyle("text-valign").value;switch(b&&(v="center",y="center"),l+=p,u+=m,0!==(f=r?this.getTextAngle(e,n):0)&&(s=l,c=u,t.translate(s,c),t.rotate(f),l=0,u=0),y){case"top":break;case"center":u+=g/2;break;case"bottom":u+=g}var w=e.pstyle("text-background-opacity").value,k=e.pstyle("text-border-opacity").value,C=e.pstyle("text-border-width").pfValue,x=e.pstyle("text-background-padding").pfValue,E=0===e.pstyle("text-background-shape").strValue.indexOf("round"),T=2;if(w>0||C>0&&k>0){var B=l-x;switch(v){case"left":B-=A;break;case"center":B-=A/2}var _=u-g-x,S=A+2*x,L=g+2*x;if(w>0){var I=t.fillStyle,M=e.pstyle("text-background-color").value;t.fillStyle="rgba("+M[0]+","+M[1]+","+M[2]+","+w*o+")",E?Bd(t,B,_,S,L,T):t.fillRect(B,_,S,L),t.fillStyle=I}if(C>0&&k>0){var O=t.strokeStyle,D=t.lineWidth,F=e.pstyle("text-border-color").value,N=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+F[0]+","+F[1]+","+F[2]+","+k*o+")",t.lineWidth=C,t.setLineDash)switch(N){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=C/4,t.setLineDash([]);break;case"solid":t.setLineDash([])}if(E?Bd(t,B,_,S,L,T,"stroke"):t.strokeRect(B,_,S,L),"double"===N){var P=C/2;E?Bd(t,B+P,_+P,S-2*P,L-2*P,T,"stroke"):t.strokeRect(B+P,_+P,S-2*P,L-2*P)}t.setLineDash&&t.setLineDash([]),t.lineWidth=D,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 Q=Ke(a,"labelWrapCachedLines",n),U=Ke(a,"labelLineHeight",n),$=A/2,H=this.getLabelJustification(e);switch("auto"===H||("left"===v?"left"===H?l+=-A:"center"===H&&(l+=-$):"center"===v?"left"===H?l+=-$:"right"===H&&(l+=$):"right"===v&&("center"===H?l+=$:"right"===H&&(l+=A))),y){case"top":case"center":case"bottom":u-=(Q.length-1)*U}for(var j=0;j<Q.length;j++)R>0&&t.strokeText(Q[j],l,u),t.fillText(Q[j],l,u),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 _d={drawNode:function(t,e,n){var r,i,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(E(h.x)&&E(h.y)&&(!s||e.visible())){var f,d,A=s?e.effectiveOpacity():1,g=c.usePaths(),p=!1,m=e.padding();r=e.width()+2*m,i=e.height()+2*m,n&&(d=n,t.translate(-d.x1,-d.y1));for(var b=e.pstyle("background-image").value,v=new Array(b.length),y=new Array(b.length),w=0,k=0;k<b.length;k++){var C=b[k];if(v[k]=null!=C&&"none"!==C){var x=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",k);w++,y[k]=c.getCachedImage(C,x,(function(){l.backgroundTimestamp=Date.now(),e.emitAndNotify("background")}))}}var T=e.pstyle("background-blacken").value,B=e.pstyle("border-width").pfValue,_=e.pstyle("background-opacity").value*A,S=e.pstyle("border-color").value,L=e.pstyle("border-style").value,I=e.pstyle("border-join").value,M=e.pstyle("border-cap").value,O=e.pstyle("border-position").value,D=e.pstyle("border-dash-pattern").pfValue,F=e.pstyle("border-dash-offset").pfValue,N=e.pstyle("border-opacity").value*A,P=e.pstyle("outline-width").pfValue,R=e.pstyle("outline-color").value,Q=e.pstyle("outline-style").value,U=e.pstyle("outline-opacity").value*A,$=e.pstyle("outline-offset").value,H=e.pstyle("corner-radius").value;"auto"!==H&&(H=e.pstyle("corner-radius").pfValue);var j=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_;c.eleFillStyle(t,e,n)},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;c.colorStrokeStyle(t,S[0],S[1],S[2],e)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U;c.colorStrokeStyle(t,R[0],R[1],R[2],e)},G=function(t,e,n,r){var i,a=c.nodePathCache=c.nodePathCache||[],o=we("polygon"===n?n+","+r.join(","):n,""+e,""+t,""+H),s=a[o],l=!1;return null!=s?(i=s,l=!0,u.pathCache=i):(i=new Path2D,a[o]=u.pathCache=i),{path:i,cacheHit:l}},X=e.pstyle("shape").strValue,V=e.pstyle("shape-polygon-points").pfValue;if(g){t.translate(h.x,h.y);var W=G(r,i,X,V);f=W.path,p=W.cacheHit}var q=function(){if(!p){var n=h;g&&(n={x:0,y:0}),c.nodeShapes[c.getNodeShape(e)].draw(f||t,n.x,n.y,r,i,H,u)}g?t.fill(f):t.fill()},Y=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=l.backgrounding,a=0,o=0;o<y.length;o++){var s=e.cy().style().getIndexedStyle(e,"background-image-containment","value",o);r&&"over"===s||!r&&"inside"===s?a++:v[o]&&y[o].complete&&!y[o].error&&(a++,c.drawInscribedImage(t,y[o],e,o,n))}l.backgrounding=!(a===w),i!==l.backgrounding&&e.updateStyle(!1)},J=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;c.hasPie(e)&&(c.drawPie(t,e,a),n&&(g||c.nodeShapes[c.getNodeShape(e)].draw(t,h.x,h.y,r,i,H,u)))},Z=function(){var e=(T>0?T:-T)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:A),n=T>0?0:255;0!==T&&(c.colorFillStyle(t,n,n,n,e),g?t.fill(f):t.fill())},tt=function(){if(B>0){if(t.lineWidth=B,t.lineCap=M,t.lineJoin=I,t.setLineDash)switch(L){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash(D),t.lineDashOffset=F;break;case"solid":case"double":t.setLineDash([])}if("center"!==O){if(t.save(),t.lineWidth*=2,"inside"===O)g?t.clip(f):t.clip();else{var e=new Path2D;e.rect(-r/2-B,-i/2-B,r+2*B,i+2*B),e.addPath(f),t.clip(e,"evenodd")}g?t.stroke(f):t.stroke(),t.restore()}else g?t.stroke(f):t.stroke();if("double"===L){t.lineWidth=B/3;var n=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",g?t.stroke(f):t.stroke(),t.globalCompositeOperation=n}t.setLineDash&&t.setLineDash([])}},et=function(){if(P>0){if(t.lineWidth=P,t.lineCap="butt",t.setLineDash)switch(Q){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([])}var n=h;g&&(n={x:0,y:0});var a=c.getNodeShape(e),o=B;"inside"===O&&(o=0),"outside"===O&&(o*=2);var s,l=(r+o+(P+$))/r,u=(i+o+(P+$))/i,f=r*l,d=i*u,A=c.nodeShapes[a].points;if(g&&(s=G(f,d,a,A).path),"ellipse"===a)c.drawEllipsePath(s||t,n.x,n.y,f,d);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(a)){var p=0,m=0,b=0;"round-diamond"===a?p=1.4*(o+$+P):"round-heptagon"===a?(p=1.075*(o+$+P),b=-(o/2+$+P)/35):"round-hexagon"===a?p=1.12*(o+$+P):"round-pentagon"===a?(p=1.13*(o+$+P),b=-(o/2+$+P)/15):"round-tag"===a?(p=1.12*(o+$+P),m=.07*(o/2+P+$)):"round-triangle"===a&&(p=(o+$+P)*(Math.PI/2),b=-(o+$/2+P)/Math.PI),0!==p&&(f=r*(l=(r+p)/r),["round-hexagon","round-tag"].includes(a)||(d=i*(u=(i+p)/i)));for(var v=f/2,y=d/2,w=(H="auto"===H?br(f,d):H)+(o+P+$)/2,k=new Array(A.length/2),C=new Array(A.length/2),x=0;x<A.length/2;x++)k[x]={x:n.x+m+v*A[2*x],y:n.y+b+y*A[2*x+1]};var E,T,_,S,L=k.length;for(T=k[L-1],E=0;E<L;E++)_=k[E%L],S=k[(E+1)%L],C[E]=Wh(T,_,S,w),T=_,_=S;c.drawRoundPolygonPath(s||t,n.x+m,n.y+b,r*l,i*u,A,C)}else["roundrectangle","round-rectangle"].includes(a)?(H="auto"===H?mr(f,d):H,c.drawRoundRectanglePath(s||t,n.x,n.y,f,d,H+(o+P+$)/2)):["cutrectangle","cut-rectangle"].includes(a)?(H="auto"===H?vr():H,c.drawCutRectanglePath(s||t,n.x,n.y,f,d,null,H+(o+P+$)/4)):["bottomroundrectangle","bottom-round-rectangle"].includes(a)?(H="auto"===H?mr(f,d):H,c.drawBottomRoundRectanglePath(s||t,n.x,n.y,f,d,H+(o+P+$)/2)):"barrel"===a?c.drawBarrelPath(s||t,n.x,n.y,f,d):a.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(a)?(A=ir(ar(A,(o+P+$)/r)),c.drawPolygonPath(s||t,n.x,n.y,r,i,A)):(A=ir(ar(A,-(o+P+$)/r)),c.drawPolygonPath(s||t,n.x,n.y,r,i,A));if(g?t.stroke(s):t.stroke(),"double"===Q){t.lineWidth=o/3;var I=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",g?t.stroke(s):t.stroke(),t.globalCompositeOperation=I}t.setLineDash&&t.setLineDash([])}},nt=function(){o&&c.drawNodeOverlay(t,e,h,r,i)},rt=function(){o&&c.drawNodeUnderlay(t,e,h,r,i)},it=function(){c.drawElementText(t,e,null,a)};if("yes"===e.pstyle("ghost").value){var at=e.pstyle("ghost-offset-x").pfValue,ot=e.pstyle("ghost-offset-y").pfValue,st=e.pstyle("ghost-opacity").value,ct=st*A;t.translate(at,ot),z(),et(),j(st*_),q(),Y(ct,!0),K(st*N),tt(),J(0!==T||0!==B),Y(ct,!1),Z(ct),t.translate(-at,-ot)}g&&t.translate(-h.x,-h.y),rt(),g&&t.translate(h.x,h.y),z(),et(),j(),q(),Y(A,!0),K(),tt(),J(0!==T||0!==B),Y(A,!1),Z(),g&&t.translate(-h.x,-h.y),it(),nt(),n&&t.translate(d.x1,d.y1)}}},Sd=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(e,n,r,i,a){var o=this;if(n.visible()){var s=n.pstyle("".concat(t,"-padding")).pfValue,c=n.pstyle("".concat(t,"-opacity")).value,l=n.pstyle("".concat(t,"-color")).value,u=n.pstyle("".concat(t,"-shape")).value,h=n.pstyle("".concat(t,"-corner-radius")).value;if(c>0){if(r=r||n.position(),null==i||null==a){var f=n.padding();i=n.width()+2*f,a=n.height()+2*f}o.colorFillStyle(e,l[0],l[1],l[2],c),o.nodeShapes[u].draw(e,r.x,r.y,i+2*s,a+2*s,h),e.fill()}}}};_d.drawNodeOverlay=Sd("overlay"),_d.drawNodeUnderlay=Sd("underlay"),_d.hasPie=function(t){return(t=t[0])._private.hasPie},_d.drawPie=function(t,e,n,r){e=e[0],r=r||e.position();var i=e.cy().style(),a=e.pstyle("pie-size"),o=r.x,s=r.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<=i.pieBackgroundN;f++){var d=e.pstyle("pie-"+f+"-background-size").value,A=e.pstyle("pie-"+f+"-background-color").value,g=e.pstyle("pie-"+f+"-background-opacity").value*n,p=d/100;p+h>1&&(p=1-h);var m=1.5*Math.PI+2*Math.PI*h,b=m+2*Math.PI*p;0===d||h>=1||h+p>1||(t.beginPath(),t.moveTo(o,s),t.arc(o,s,u,m,b),t.closePath(),this.colorFillStyle(t,A[0],A[1],A[2],g),t.fill(),h+=p)}};var Ld={},Id=100;Ld.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},Ld.paintCache=function(t){for(var e,n=this.paintCaches=this.paintCaches||[],r=!0,i=0;i<n.length;i++)if((e=n[i]).context===t){r=!1;break}return r&&(e={context:t},n.push(e)),e},Ld.createGradientStyleFor=function(t,e,n,r,i){var a,o=this.usePaths(),s=n.pstyle(e+"-gradient-stop-colors").value,c=n.pstyle(e+"-gradient-stop-positions").pfValue;if("radial-gradient"===r)if(n.isEdge()){var l=n.sourceEndpoint(),u=n.targetEndpoint(),h=n.midpoint(),f=_n(l,h),d=_n(u,h);a=t.createRadialGradient(h.x,h.y,0,h.x,h.y,Math.max(f,d))}else{var A=o?{x:0,y:0}:n.position(),g=n.paddedWidth(),p=n.paddedHeight();a=t.createRadialGradient(A.x,A.y,0,A.x,A.y,Math.max(g,p))}else if(n.isEdge()){var m=n.sourceEndpoint(),b=n.targetEndpoint();a=t.createLinearGradient(m.x,m.y,b.x,b.y)}else{var v=o?{x:0,y:0}:n.position(),y=n.paddedWidth()/2,w=n.paddedHeight()/2;switch(n.pstyle("background-gradient-direction").value){case"to-bottom":a=t.createLinearGradient(v.x,v.y-w,v.x,v.y+w);break;case"to-top":a=t.createLinearGradient(v.x,v.y+w,v.x,v.y-w);break;case"to-left":a=t.createLinearGradient(v.x+y,v.y,v.x-y,v.y);break;case"to-right":a=t.createLinearGradient(v.x-y,v.y,v.x+y,v.y);break;case"to-bottom-right":case"to-right-bottom":a=t.createLinearGradient(v.x-y,v.y-w,v.x+y,v.y+w);break;case"to-top-right":case"to-right-top":a=t.createLinearGradient(v.x-y,v.y+w,v.x+y,v.y-w);break;case"to-bottom-left":case"to-left-bottom":a=t.createLinearGradient(v.x+y,v.y-w,v.x-y,v.y+w);break;case"to-top-left":case"to-left-top":a=t.createLinearGradient(v.x+y,v.y+w,v.x-y,v.y-w)}}if(!a)return null;for(var k=c.length===s.length,C=s.length,x=0;x<C;x++)a.addColorStop(k?c[x]:x/(C-1),"rgba("+s[x][0]+","+s[x][1]+","+s[x][2]+","+i+")");return a},Ld.gradientFillStyle=function(t,e,n,r){var i=this.createGradientStyleFor(t,"background",e,n,r);if(!i)return null;t.fillStyle=i},Ld.colorFillStyle=function(t,e,n,r,i){t.fillStyle="rgba("+e+","+n+","+r+","+i+")"},Ld.eleFillStyle=function(t,e,n){var r=e.pstyle("background-fill").value;if("linear-gradient"===r||"radial-gradient"===r)this.gradientFillStyle(t,e,r,n);else{var i=e.pstyle("background-color").value;this.colorFillStyle(t,i[0],i[1],i[2],n)}},Ld.gradientStrokeStyle=function(t,e,n,r){var i=this.createGradientStyleFor(t,"line",e,n,r);if(!i)return null;t.strokeStyle=i},Ld.colorStrokeStyle=function(t,e,n,r,i){t.strokeStyle="rgba("+e+","+n+","+r+","+i+")"},Ld.eleStrokeStyle=function(t,e,n){var r=e.pstyle("line-fill").value;if("linear-gradient"===r||"radial-gradient"===r)this.gradientStrokeStyle(t,e,r,n);else{var i=e.pstyle("line-color").value;this.colorStrokeStyle(t,i[0],i[1],i[2],n)}},Ld.matchCanvasSize=function(t){var e=this,n=e.data,r=e.findContainerClientCoords(),i=r[2],a=r[3],o=e.getPixelRatio(),s=e.motionBlurPxRatio;t!==e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE]&&t!==e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG]||(o=s);var c,l=i*o,u=a*o;if(l!==e.canvasWidth||u!==e.canvasHeight){e.fontCaches=null;var h=n.canvasContainer;h.style.width=i+"px",h.style.height=a+"px";for(var f=0;f<e.CANVAS_LAYERS;f++)(c=n.canvases[f]).width=l,c.height=u,c.style.width=i+"px",c.style.height=a+"px";for(f=0;f<e.BUFFER_COUNT;f++)(c=n.bufferCanvases[f]).width=l,c.height=u,c.style.width=i+"px",c.style.height=a+"px";e.textureMult=1,o<=1&&(c=n.bufferCanvases[e.TEXTURE_BUFFER],e.textureMult=2,c.width=l*e.textureMult,c.height=u*e.textureMult),e.canvasWidth=l,e.canvasHeight=u}},Ld.renderTo=function(t,e,n,r){this.render({forcedContext:t,forcedZoom:e,forcedPan:n,drawAllLayers:!0,forcedPxRatio:r})},Ld.render=function(t){var e=(t=t||Qe()).forcedContext,n=t.drawAllLayers,r=t.drawOnlyNodeLayer,i=t.forcedZoom,a=t.forcedPan,o=this,s=void 0===t.forcedPxRatio?this.getPixelRatio():t.forcedPxRatio,c=o.cy,l=o.data,u=l.canvasNeedsRedraw,h=o.textureOnViewport&&!e&&(o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming),f=void 0!==t.motionBlur?t.motionBlur:o.motionBlur,d=o.motionBlurPxRatio,A=c.hasCompoundNodes(),g=o.hoverData.draggingEles,p=!(!o.hoverData.selecting&&!o.touchData.selecting),m=f=f&&!e&&o.motionBlurEnabled&&!p;e||(o.prevPxRatio!==s&&(o.invalidateContainerClientCoordsCache(),o.matchCanvasSize(o.container),o.redrawHint("eles",!0),o.redrawHint("drag",!0)),o.prevPxRatio=s),!e&&o.motionBlurTimeout&&clearTimeout(o.motionBlurTimeout),f&&(null==o.mbFrames&&(o.mbFrames=0),o.mbFrames++,o.mbFrames<3&&(m=!1),o.mbFrames>o.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!h&&(u[o.NODE]=!0,u[o.SELECT_BOX]=!0);var b=c.style(),v=c.zoom(),y=void 0!==i?i:v,w=c.pan(),k={x:w.x,y:w.y},C={zoom:v,pan:{x:w.x,y:w.y}},x=o.prevViewport;void 0===x||C.zoom!==x.zoom||C.pan.x!==x.pan.x||C.pan.y!==x.pan.y||g&&!A||(o.motionBlurPxRatio=1),a&&(k=a),y*=s,k.x*=s,k.y*=s;var E=o.getCachedZSortedEles();function T(t,e,n,r,i){var a=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",o.colorFillStyle(t,255,255,255,o.motionBlurTransparency),t.fillRect(e,n,r,i),t.globalCompositeOperation=a}function B(t,r){var s,c,u,h;o.clearingMotionBlur||t!==l.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]&&t!==l.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]?(s=k,c=y,u=o.canvasWidth,h=o.canvasHeight):(s={x:w.x*d,y:w.y*d},c=v*d,u=o.canvasWidth*d,h=o.canvasHeight*d),t.setTransform(1,0,0,1,0,0),"motionBlur"===r?T(t,0,0,u,h):e||void 0!==r&&!r||t.clearRect(0,0,u,h),n||(t.translate(s.x,s.y),t.scale(c,c)),a&&t.translate(a.x,a.y),i&&t.scale(i,i)}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 _=o.data.bufferContexts[o.TEXTURE_BUFFER];_.setTransform(1,0,0,1,0,0),_.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:_,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult}),(C=o.textureCache.viewport={zoom:c.zoom(),pan:c.pan(),width:o.canvasWidth,height:o.canvasHeight}).mpan={x:(0-C.pan.x)/C.zoom,y:(0-C.pan.y)/C.zoom}}u[o.DRAG]=!1,u[o.NODE]=!1;var S=l.contexts[o.NODE],L=o.textureCache.texture;C=o.textureCache.viewport,S.setTransform(1,0,0,1,0,0),f?T(S,0,0,C.width,C.height):S.clearRect(0,0,C.width,C.height);var I=b.core("outside-texture-bg-color").value,M=b.core("outside-texture-bg-opacity").value;o.colorFillStyle(S,I[0],I[1],I[2],M),S.fillRect(0,0,C.width,C.height),v=c.zoom(),B(S,!1),S.clearRect(C.mpan.x,C.mpan.y,C.width/C.zoom/s,C.height/C.zoom/s),S.drawImage(L,C.mpan.x,C.mpan.y,C.width/C.zoom/s,C.height/C.zoom/s)}else o.textureOnViewport&&!e&&(o.textureCache=null);var O=c.extent(),D=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),F=o.hideEdgesOnViewport&&D,N=[];if(N[o.NODE]=!u[o.NODE]&&f&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,N[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),N[o.DRAG]=!u[o.DRAG]&&f&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,N[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),u[o.NODE]||n||r||N[o.NODE]){var P=f&&!N[o.NODE]&&1!==d;B(S=e||(P?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:l.contexts[o.NODE]),f&&!P?"motionBlur":void 0),F?o.drawCachedNodes(S,E.nondrag,s,O):o.drawLayeredElements(S,E.nondrag,s,O),o.debug&&o.drawDebugPoints(S,E.nondrag),n||f||(u[o.NODE]=!1)}if(!r&&(u[o.DRAG]||n||N[o.DRAG])&&(P=f&&!N[o.DRAG]&&1!==d,B(S=e||(P?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:l.contexts[o.DRAG]),f&&!P?"motionBlur":void 0),F?o.drawCachedNodes(S,E.drag,s,O):o.drawCachedElements(S,E.drag,s,O),o.debug&&o.drawDebugPoints(S,E.drag),n||f||(u[o.DRAG]=!1)),o.showFps||!r&&u[o.SELECT_BOX]&&!n){if(B(S=e||l.contexts[o.SELECT_BOX]),1==o.selection[4]&&(o.hoverData.selecting||o.touchData.selecting)){v=o.cy.zoom();var R=b.core("selection-box-border-width").value/v;S.lineWidth=R,S.fillStyle="rgba("+b.core("selection-box-color").value[0]+","+b.core("selection-box-color").value[1]+","+b.core("selection-box-color").value[2]+","+b.core("selection-box-opacity").value+")",S.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),R>0&&(S.strokeStyle="rgba("+b.core("selection-box-border-color").value[0]+","+b.core("selection-box-border-color").value[1]+","+b.core("selection-box-border-color").value[2]+","+b.core("selection-box-opacity").value+")",S.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){v=o.cy.zoom();var Q=l.bgActivePosistion;S.fillStyle="rgba("+b.core("active-bg-color").value[0]+","+b.core("active-bg-color").value[1]+","+b.core("active-bg-color").value[2]+","+b.core("active-bg-opacity").value+")",S.beginPath(),S.arc(Q.x,Q.y,b.core("active-bg-size").pfValue/v,0,2*Math.PI),S.fill()}var U=o.lastRedrawTime;if(o.showFps&&U){U=Math.round(U);var $=Math.round(1e3/U);S.setTransform(1,0,0,1,0,0),S.fillStyle="rgba(255, 0, 0, 0.75)",S.strokeStyle="rgba(255, 0, 0, 0.75)",S.lineWidth=1,S.fillText("1 frame = "+U+" ms = "+$+" fps",0,20);var H=60;S.strokeRect(0,30,250,20),S.fillRect(0,30,250*Math.min($/H,1),20)}n||(u[o.SELECT_BOX]=!1)}if(f&&1!==d){var j=l.contexts[o.NODE],K=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],z=l.contexts[o.DRAG],G=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],X=function(t,e,n){t.setTransform(1,0,0,1,0,0),n||!m?t.clearRect(0,0,o.canvasWidth,o.canvasHeight):T(t,0,0,o.canvasWidth,o.canvasHeight);var r=d;t.drawImage(e,0,0,o.canvasWidth*r,o.canvasHeight*r,0,0,o.canvasWidth,o.canvasHeight)};(u[o.NODE]||N[o.NODE])&&(X(j,K,N[o.NODE]),u[o.NODE]=!1),(u[o.DRAG]||N[o.DRAG])&&(X(z,G,N[o.DRAG]),u[o.DRAG]=!1)}o.prevViewport=C,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()}),Id)),e||c.emit("render")};for(var Md={drawPolygonPath:function(t,e,n,r,i,a){var o=r/2,s=i/2;t.beginPath&&t.beginPath(),t.moveTo(e+o*a[0],n+s*a[1]);for(var c=1;c<a.length/2;c++)t.lineTo(e+o*a[2*c],n+s*a[2*c+1]);t.closePath()},drawRoundPolygonPath:function(t,e,n,r,i,a,o){o.forEach((function(e){return Vh(t,e)})),t.closePath()},drawRoundRectanglePath:function(t,e,n,r,i,a){var o=r/2,s=i/2,c="auto"===a?mr(r,i):Math.min(a,s,o);t.beginPath&&t.beginPath(),t.moveTo(e,n-s),t.arcTo(e+o,n-s,e+o,n,c),t.arcTo(e+o,n+s,e,n+s,c),t.arcTo(e-o,n+s,e-o,n,c),t.arcTo(e-o,n-s,e,n-s,c),t.lineTo(e,n-s),t.closePath()},drawBottomRoundRectanglePath:function(t,e,n,r,i,a){var o=r/2,s=i/2,c="auto"===a?mr(r,i):a;t.beginPath&&t.beginPath(),t.moveTo(e,n-s),t.lineTo(e+o,n-s),t.lineTo(e+o,n),t.arcTo(e+o,n+s,e,n+s,c),t.arcTo(e-o,n+s,e-o,n,c),t.lineTo(e-o,n-s),t.lineTo(e,n-s),t.closePath()},drawCutRectanglePath:function(t,e,n,r,i,a,o){var s=r/2,c=i/2,l="auto"===o?vr():o;t.beginPath&&t.beginPath(),t.moveTo(e-s+l,n-c),t.lineTo(e+s-l,n-c),t.lineTo(e+s,n-c+l),t.lineTo(e+s,n+c-l),t.lineTo(e+s-l,n+c),t.lineTo(e-s+l,n+c),t.lineTo(e-s,n+c-l),t.lineTo(e-s,n-c+l),t.closePath()},drawBarrelPath:function(t,e,n,r,i){var a=r/2,o=i/2,s=e-a,c=e+a,l=n-o,u=n+o,h=wr(r,i),f=h.widthOffset,d=h.heightOffset,A=h.ctrlPtOffsetPct*f;t.beginPath&&t.beginPath(),t.moveTo(s,l+d),t.lineTo(s,u-d),t.quadraticCurveTo(s+A,u,s+f,u),t.lineTo(c-f,u),t.quadraticCurveTo(c-A,u,c,u-d),t.lineTo(c,l+d),t.quadraticCurveTo(c-A,l,c-f,l),t.lineTo(s+f,l),t.quadraticCurveTo(s+A,l,s,l+d),t.closePath()}},Od=Math.sin(0),Dd=Math.cos(0),Fd={},Nd={},Pd=Math.PI/40,Rd=0*Math.PI;Rd<2*Math.PI;Rd+=Pd)Fd[Rd]=Math.sin(Rd),Nd[Rd]=Math.cos(Rd);Md.drawEllipsePath=function(t,e,n,r,i){if(t.beginPath&&t.beginPath(),t.ellipse)t.ellipse(e,n,r/2,i/2,0,0,2*Math.PI);else for(var a,o,s=r/2,c=i/2,l=0*Math.PI;l<2*Math.PI;l+=Pd)a=e-s*Fd[l]*Od+s*Nd[l]*Dd,o=n+c*Nd[l]*Od+c*Fd[l]*Dd,0===l?t.moveTo(a,o):t.lineTo(a,o);t.closePath()};var Qd={};function Ud(t,e){for(var n=atob(t),r=new ArrayBuffer(n.length),i=new Uint8Array(r),a=0;a<n.length;a++)i[a]=n.charCodeAt(a);return new Blob([r],{type:e})}function $d(t){var e=t.indexOf(",");return t.substr(e+1)}function Hd(t,e,n){var r=function(){return e.toDataURL(n,t.quality)};switch(t.output){case"blob-promise":return new Wi((function(r,i){try{e.toBlob((function(t){null!=t?r(t):i(new Error("`canvas.toBlob()` sent a null value in its callback"))}),n,t.quality)}catch(t){i(t)}}));case"blob":return Ud($d(r()),n);case"base64":return $d(r());default:return r()}}Qd.createBuffer=function(t,e){var n=document.createElement("canvas");return n.width=t,n.height=e,[n,n.getContext("2d")]},Qd.bufferCanvasImage=function(t){var e=this.cy,n=e.mutableElements().boundingBox(),r=this.findContainerClientCoords(),i=t.full?Math.ceil(n.w):r[2],a=t.full?Math.ceil(n.h):r[3],o=E(t.maxWidth)||E(t.maxHeight),s=this.getPixelRatio(),c=1;if(void 0!==t.scale)i*=t.scale,a*=t.scale,c=t.scale;else if(o){var l=1/0,u=1/0;E(t.maxWidth)&&(l=c*t.maxWidth/i),E(t.maxHeight)&&(u=c*t.maxHeight/a),i*=c=Math.min(l,u),a*=c}o||(i*=s,a*=s,c*=s);var h=document.createElement("canvas");h.width=i,h.height=a,h.style.width=i+"px",h.style.height=a+"px";var f=h.getContext("2d");if(i>0&&a>0){f.clearRect(0,0,i,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 A=e.pan(),g={x:A.x*c,y:A.y*c};c*=e.zoom(),f.translate(g.x,g.y),f.scale(c,c),this.drawElements(f,d),f.scale(1/c,1/c),f.translate(-g.x,-g.y)}t.bg&&(f.globalCompositeOperation="destination-over",f.fillStyle=t.bg,f.rect(0,0,i,a),f.fill())}return h},Qd.png=function(t){return Hd(t,this.bufferCanvasImage(t),"image/png")},Qd.jpg=function(t){return Hd(t,this.bufferCanvasImage(t),"image/jpeg")};var jd={nodeShapeImpl:function(t,e,n,r,i,a,o,s){switch(t){case"ellipse":return this.drawEllipsePath(e,n,r,i,a);case"polygon":return this.drawPolygonPath(e,n,r,i,a,o);case"round-polygon":return this.drawRoundPolygonPath(e,n,r,i,a,o,s);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,n,r,i,a,s);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,n,r,i,a,o,s);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,n,r,i,a,s);case"barrel":return this.drawBarrelPath(e,n,r,i,a)}}},Kd=Gd,zd=Gd.prototype;function Gd(t){var e=this;e.data={canvases:new Array(zd.CANVAS_LAYERS),contexts:new Array(zd.CANVAS_LAYERS),canvasNeedsRedraw:new Array(zd.CANVAS_LAYERS),bufferCanvases:new Array(zd.BUFFER_COUNT),bufferContexts:new Array(zd.CANVAS_LAYERS)};var n="-webkit-tap-highlight-color",r="rgba(0,0,0,0)";e.data.canvasContainer=document.createElement("div");var i=e.data.canvasContainer.style;e.data.canvasContainer.style[n]=r,i.position="relative",i.zIndex="0",i.overflow="hidden";var a=t.cy.container();a.appendChild(e.data.canvasContainer),a.style[n]=r;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"};R()&&(o["-ms-touch-action"]="none",o["touch-action"]="none");for(var s=0;s<zd.CANVAS_LAYERS;s++){var c=e.data.canvases[s]=document.createElement("canvas");e.data.contexts[s]=c.getContext("2d"),Object.keys(o).forEach((function(t){c.style[t]=o[t]})),c.style.position="absolute",c.setAttribute("data-id","layer"+s),c.style.zIndex=String(zd.CANVAS_LAYERS-s),e.data.canvasContainer.appendChild(c),e.data.canvasNeedsRedraw[s]=!1}for(e.data.topCanvas=e.data.canvases[0],e.data.canvases[zd.NODE].setAttribute("data-id","layer"+zd.NODE+"-node"),e.data.canvases[zd.SELECT_BOX].setAttribute("data-id","layer"+zd.SELECT_BOX+"-selectbox"),e.data.canvases[zd.DRAG].setAttribute("data-id","layer"+zd.DRAG+"-drag"),s=0;s<zd.BUFFER_COUNT;s++)e.data.bufferCanvases[s]=document.createElement("canvas"),e.data.bufferContexts[s]=e.data.bufferCanvases[s].getContext("2d"),e.data.bufferCanvases[s].style.position="absolute",e.data.bufferCanvases[s].setAttribute("data-id","buffer"+s),e.data.bufferCanvases[s].style.zIndex=String(-s-1),e.data.bufferCanvases[s].style.visibility="hidden";e.pathsEnabled=!0;var l=Fn(),u=function(t){return{x:(t.x1+t.x2)/2,y:(t.y1+t.y2)/2}},h=function(t){return{x:-t.w/2,y:-t.h/2}},f=function(t){var e=t[0]._private;return!(e.oldBackgroundTimestamp===e.backgroundTimestamp)},d=function(t){return t[0]._private.nodeKey},A=function(t){return t[0]._private.labelStyleKey},g=function(t){return t[0]._private.sourceLabelStyleKey},p=function(t){return t[0]._private.targetLabelStyleKey},m=function(t,n,r,i,a){return e.drawElement(t,n,r,!1,!1,a)},b=function(t,n,r,i,a){return e.drawElementText(t,n,r,i,"main",a)},v=function(t,n,r,i,a){return e.drawElementText(t,n,r,i,"source",a)},y=function(t,n,r,i,a){return e.drawElementText(t,n,r,i,"target",a)},w=function(t){return t.boundingBox(),t[0]._private.bodyBounds},k=function(t){return t.boundingBox(),t[0]._private.labelBounds.main||l},C=function(t){return t.boundingBox(),t[0]._private.labelBounds.source||l},x=function(t){return t.boundingBox(),t[0]._private.labelBounds.target||l},E=function(t,e){return e},T=function(t){return u(w(t))},B=function(t,e,n){var r=t?t+"-":"";return{x:e.x+n.pstyle(r+"text-margin-x").pfValue,y:e.y+n.pstyle(r+"text-margin-y").pfValue}},_=function(t,e,n){var r=t[0]._private.rscratch;return{x:r[e],y:r[n]}},S=function(t){return B("",_(t,"labelX","labelY"),t)},L=function(t){return B("source",_(t,"sourceLabelX","sourceLabelY"),t)},I=function(t){return B("target",_(t,"targetLabelX","targetLabelY"),t)},M=function(t){return h(w(t))},O=function(t){return h(C(t))},D=function(t){return h(x(t))},F=function(t){var e=k(t),n=h(k(t));if(t.isNode()){switch(t.pstyle("text-halign").value){case"left":n.x=-e.w;break;case"right":n.x=0}switch(t.pstyle("text-valign").value){case"top":n.y=-e.h;break;case"bottom":n.y=0}}return n},N=e.data.eleTxrCache=new jf(e,{getKey:d,doesEleInvalidateKey:f,drawElement:m,getBoundingBox:w,getRotationPoint:T,getRotationOffset:M,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),P=e.data.lblTxrCache=new jf(e,{getKey:A,drawElement:b,getBoundingBox:k,getRotationPoint:S,getRotationOffset:F,isVisible:E}),Q=e.data.slbTxrCache=new jf(e,{getKey:g,drawElement:v,getBoundingBox:C,getRotationPoint:L,getRotationOffset:O,isVisible:E}),U=e.data.tlbTxrCache=new jf(e,{getKey:p,drawElement:y,getBoundingBox:x,getRotationPoint:I,getRotationOffset:D,isVisible:E}),$=e.data.lyrTxrCache=new ad(e);e.onUpdateEleCalcs((function(t,e){N.invalidateElements(e),P.invalidateElements(e),Q.invalidateElements(e),U.invalidateElements(e),$.invalidateElements(e);for(var n=0;n<e.length;n++){var r=e[n]._private;r.oldBackgroundTimestamp=r.backgroundTimestamp}}));var H=function(t){for(var e=0;e<t.length;e++)$.enqueueElementRefinement(t[e].ele)};N.onDequeue(H),P.onDequeue(H),Q.onDequeue(H),U.onDequeue(H)}zd.CANVAS_LAYERS=3,zd.SELECT_BOX=0,zd.DRAG=1,zd.NODE=2,zd.BUFFER_COUNT=3,zd.TEXTURE_BUFFER=0,zd.MOTIONBLUR_BUFFER_NODE=1,zd.MOTIONBLUR_BUFFER_DRAG=2,zd.redrawHint=function(t,e){var n=this;switch(t){case"eles":n.data.canvasNeedsRedraw[zd.NODE]=e;break;case"drag":n.data.canvasNeedsRedraw[zd.DRAG]=e;break;case"select":n.data.canvasNeedsRedraw[zd.SELECT_BOX]=e}};var Xd="undefined"!=typeof Path2D;zd.path2dEnabled=function(t){if(void 0===t)return this.pathsEnabled;this.pathsEnabled=!!t},zd.usePaths=function(){return Xd&&this.pathsEnabled},zd.setImgSmoothing=function(t,e){null!=t.imageSmoothingEnabled?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e)},zd.getImgSmoothing=function(t){return null!=t.imageSmoothingEnabled?t.imageSmoothingEnabled:t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled},zd.makeOffscreenCanvas=function(e,n){var r;return"undefined"!==("undefined"==typeof OffscreenCanvas?"undefined":t(OffscreenCanvas))?r=new OffscreenCanvas(e,n):((r=document.createElement("canvas")).width=e,r.height=n),r},[ud,pd,Cd,Ed,Td,_d,Ld,Md,Qd,jd].forEach((function(t){Z(zd,t)}));var Vd=[{name:"null",impl:yh},{name:"base",impl:bf},{name:"canvas",impl:Kd}],Wd=[{type:"layout",extensions:vh},{type:"renderer",extensions:Vd}],qd={},Yd={};function Jd(t,e,n){var r=n,i=function(n){Oe("Can not register `"+e+"` for `"+t+"` since `"+n+"` already exists in the prototype and can not be overridden")};if("core"===t){if(Iu.prototype[e])return i(e);Iu.prototype[e]=n}else if("collection"===t){if(zl.prototype[e])return i(e);zl.prototype[e]=n}else if("layout"===t){for(var a=function(t){this.options=t,n.call(this,t),C(this._private)||(this._private={}),this._private.cy=t.cy,this._private.listeners=[],this.createEmitter()},o=a.prototype=Object.create(n.prototype),s=[],c=0;c<s.length;c++){var l=s[c];o[l]=o[l]||function(){return this}}o.start&&!o.run?o.run=function(){return this.start(),this}:!o.start&&o.run&&(o.start=function(){return this.run(),this});var u=n.prototype.stop;o.stop=function(){var t=this.options;if(t&&t.animate){var e=this.animations;if(e)for(var n=0;n<e.length;n++)e[n].stop()}return u?u.call(this):this.emit("layoutstop"),this},o.destroy||(o.destroy=function(){return this}),o.cy=function(){return this._private.cy};var h=function(t){return t._private.cy},f={addEventFields:function(t,e){e.layout=t,e.cy=h(t),e.target=t},bubble:function(){return!0},parent:function(t){return h(t)}};Z(o,{createEmitter:function(){return this._private.emitter=new cl(f,this),this},emitter:function(){return this._private.emitter},on:function(t,e){return this.emitter().on(t,e),this},one:function(t,e){return this.emitter().one(t,e),this},once:function(t,e){return this.emitter().one(t,e),this},removeListener:function(t,e){return this.emitter().removeListener(t,e),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(t,e){return this.emitter().emit(t,e),this}}),Ms.eventAliasesOn(o),r=a}else if("renderer"===t&&"null"!==e&&"base"!==e){var d=Zd("renderer","base"),A=d.prototype,g=n,p=n.prototype,m=function(){d.apply(this,arguments),g.apply(this,arguments)},b=m.prototype;for(var v in A){var y=A[v];if(null!=p[v])return i(v);b[v]=y}for(var w in p)b[w]=p[w];A.clientFunctions.forEach((function(t){b[t]=b[t]||function(){Ie("Renderer does not implement `renderer."+t+"()` on its prototype")}})),r=m}else if("__proto__"===t||"constructor"===t||"prototype"===t)return Ie(t+" is an illegal type to be registered, possibly lead to prototype pollutions");return ot({map:qd,keys:[t,e],value:r})}function Zd(t,e){return st({map:qd,keys:[t,e]})}function tA(t,e,n,r,i){return ot({map:Yd,keys:[t,e,n,r],value:i})}function eA(t,e,n,r){return st({map:Yd,keys:[t,e,n,r]})}var nA=function(){return 2===arguments.length?Zd.apply(null,arguments):3===arguments.length?Jd.apply(null,arguments):4===arguments.length?eA.apply(null,arguments):5===arguments.length?tA.apply(null,arguments):void Ie("Invalid extension access syntax")};Iu.prototype.extension=nA,Wd.forEach((function(t){t.extensions.forEach((function(e){Jd(t.type,e.name,e.impl)}))}));var rA=function t(){if(!(this instanceof t))return new t;this.length=0},iA=rA.prototype;iA.instanceString=function(){return"stylesheet"},iA.selector=function(t){return this[this.length++]={selector:t,properties:[]},this},iA.css=function(t,e){var n=this.length-1;if(y(t))this[n].properties.push({name:t,value:e});else if(C(t))for(var r=t,i=Object.keys(r),a=0;a<i.length;a++){var o=i[a],s=r[o];if(null!=s){var c=Eu.properties[o]||Eu.properties[$(o)];if(null!=c){var l=c.name,u=s;this[n].properties.push({name:l,value:u})}}}return this},iA.style=iA.css,iA.generateStyle=function(t){var e=new Eu(t);return this.appendToStyle(e)},iA.appendToStyle=function(t){for(var e=0;e<this.length;e++){var n=this[e],r=n.selector,i=n.properties;t.selector(r);for(var a=0;a<i.length;a++){var o=i[a];t.css(o.name,o.value)}}return t};var aA="3.29.2",oA=function(t){return void 0===t&&(t={}),C(t)?new Iu(t):y(t)?nA.apply(nA,arguments):void 0};return oA.use=function(t){var e=Array.prototype.slice.call(arguments,1);return e.unshift(oA),t.apply(null,e),this},oA.warnings=function(t){return Me(t)},oA.version=aA,oA.stylesheet=oA.Stylesheet=rA,oA}()})),Wat=r((function(t,e){var n;n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}([function(t,e,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,t.exports=r},function(t,e,n){var r=n(2),i=n(8),a=n(9);function o(t,e,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=t,this.target=e}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},o.prototype.getOtherEndInGraph=function(t,e){for(var n=this.getOtherEnd(t),r=e.getGraphManager().getRoot();;){if(n.getOwner()==e)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=o},function(t,e,n){t.exports=function(t){this.vGraphObject=t}},function(t,e,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),c=n(4);function l(t,e,n,o){null==n&&null==o&&(o=e),r.call(this,o),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=t,this.rect=null!=n&&null!=e?new a(e.x,e.y,n.width,n.height):new a}for(var u in l.prototype=Object.create(r.prototype),r)l[u]=r[u];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],n=this;return n.edges.forEach((function(r){if(r.target==t){if(r.source!=n)throw"Incorrect edge source!";e.push(r)}})),e},l.prototype.getEdgesBetween=function(t){var e=[],n=this;return n.edges.forEach((function(r){if(r.source!=n&&r.target!=n)throw"Incorrect edge source and/or target";r.target!=t&&r.source!=t||e.push(r)})),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach((function(n){if(n.source==e)t.add(n.target);else{if(n.target!=e)throw"Incorrect incidency!";t.add(n.source)}})),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),n=0;n<e.length;n++)e[n].withChildren().forEach((function(e){t.add(e)}));return t},l.prototype.getNoOfChildren=function(){var t=0;if(null==this.child)t=1;else for(var e=this.child.getNodes(),n=0;n<e.length;n++)t+=e[n].getNoOfChildren();return 0==t&&(t=1),t},l.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},l.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},l.prototype.scatter=function(){var t,e,n=-o.INITIAL_WORLD_BOUNDARY,r=o.INITIAL_WORLD_BOUNDARY;t=o.WORLD_CENTER_X+s.nextDouble()*(r-n)+n;var i=-o.INITIAL_WORLD_BOUNDARY,a=o.INITIAL_WORLD_BOUNDARY;e=o.WORLD_CENTER_Y+s.nextDouble()*(a-i)+i,this.rect.x=t,this.rect.y=e},l.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),o.NODE_DIMENSIONS_INCLUDE_LABELS){var e=t.getRight()-t.getLeft(),n=t.getBottom()-t.getTop();this.labelWidth>e&&(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==i.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 r=new c(e,n),i=t.inverseTransformPoint(r);this.setLocation(i.x,i.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 r(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=r},function(t,e,n){var r=n(2),i=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){r.call(this,n),this.estimatedSize=i.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(r.prototype),r)f[d]=r[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 r=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(r)>-1)throw"Node already in graph!";return r.owner=this,this.getNodes().push(r),r}var i=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:(i.source=e,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),e.edges.push(i),n!=e&&n.edges.push(i),i)},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(),r=n.length,i=0;i<r;i++)(a=n[i]).isInterGraph?this.graphManager.remove(a):a.source.owner.remove(a);if(-1==(o=this.nodes.indexOf(e)))throw"Node not in owner node list!";this.nodes.splice(o,1)}else if(t instanceof c){var a;if(null==(a=t))throw"Edge is null!";if(null==a.source||null==a.target)throw"Source and/or target is null!";if(null==a.source.owner||null==a.target.owner||a.source.owner!=this||a.target.owner!=this)throw"Source and/or target owner is invalid!";var o,l=a.source.edges.indexOf(a),u=a.target.edges.indexOf(a);if(!(l>-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,r=i.MAX_VALUE,a=i.MAX_VALUE,o=this.getNodes(),s=o.length,c=0;c<s;c++){var l=o[c];r>(t=l.getTop())&&(r=t),a>(e=l.getLeft())&&(a=e)}return r==i.MAX_VALUE?null:(n=null!=o[0].getParent().paddingLeft?o[0].getParent().paddingLeft:this.margin,this.left=a-n,this.top=r-n,new u(this.left,this.top))},f.prototype.updateBounds=function(t){for(var e,n,r,a,o,s=i.MAX_VALUE,c=-i.MAX_VALUE,u=i.MAX_VALUE,h=-i.MAX_VALUE,f=this.nodes,d=f.length,A=0;A<d;A++){var g=f[A];t&&null!=g.child&&g.updateBounds(),s>(e=g.getLeft())&&(s=e),c<(n=g.getRight())&&(c=n),u>(r=g.getTop())&&(u=r),h<(a=g.getBottom())&&(h=a)}var p=new l(s,u,c-s,h-u);s==i.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=p.x-o,this.right=p.x+p.width+o,this.top=p.y-o,this.bottom=p.y+p.height+o},f.calculateBounds=function(t){for(var e,n,r,a,o=i.MAX_VALUE,s=-i.MAX_VALUE,c=i.MAX_VALUE,u=-i.MAX_VALUE,h=t.length,f=0;f<h;f++){var d=t[f];o>(e=d.getLeft())&&(o=e),s<(n=d.getRight())&&(s=n),c>(r=d.getTop())&&(c=r),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==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},f.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,n=e.length,r=0;r<n;r++)t+=e[r].calcEstimatedSize();return this.estimatedSize=0==t?a.EMPTY_COMPOUND_NODE_SIZE:t/Math.sqrt(this.nodes.length),this.estimatedSize},f.prototype.updateConnected=function(){var t=this;if(0!=this.nodes.length){var e,n,r=new h,i=new Set,a=this.nodes[0];for(a.withChildren().forEach((function(t){r.push(t),i.add(t)}));0!==r.length;)for(var o=(e=(a=r.shift()).getEdges()).length,s=0;s<o;s++)null==(n=e[s].getOtherEndInGraph(a,this))||i.has(n)||n.withChildren().forEach((function(t){r.push(t),i.add(t)}));if(this.isConnected=!1,i.size>=this.nodes.length){var c=0;i.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 r,i=n(1);function a(t){r=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,r,i){if(null==n&&null==r&&null==i){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}i=n,n=t;var a=(r=e).getOwner(),o=i.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,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,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 r){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<o;s++)n=a[s],e.remove(n);var c,l=[];for(o=(l=l.concat(e.getNodes())).length,s=0;s<o;s++)c=l[s],e.remove(c);e==this.rootGraph&&this.setRootGraph(null);var u=this.graphs.indexOf(e);this.graphs.splice(u,1),e.parent=null}else if(t instanceof i){if(null==(n=t))throw"Edge is null!";if(!n.isInterGraph)throw"Not an inter-graph edge!";if(null==n.source||null==n.target)throw"Source and/or target is null!";if(-1==n.source.edges.indexOf(n)||-1==n.target.edges.indexOf(n))throw"Source and/or target doesn't know this edge!";if(u=n.source.edges.indexOf(n),n.source.edges.splice(u,1),u=n.target.edges.indexOf(n),n.target.edges.splice(u,1),null==n.source.owner||null==n.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==n.source.owner.getGraphManager().edges.indexOf(n))throw"Not in owner graph manager's edge list!";u=n.source.owner.getGraphManager().edges.indexOf(n),n.source.owner.getGraphManager().edges.splice(u,1)}},a.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},a.prototype.getGraphs=function(){return this.graphs},a.prototype.getAllNodes=function(){if(null==this.allNodes){for(var t=[],e=this.getGraphs(),n=e.length,r=0;r<n;r++)t=t.concat(e[r].getNodes());this.allNodes=t}return this.allNodes},a.prototype.resetAllNodes=function(){this.allNodes=null},a.prototype.resetAllEdges=function(){this.allEdges=null},a.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},a.prototype.getAllEdges=function(){if(null==this.allEdges){var t=[],e=this.getGraphs();e.length;for(var n=0;n<e.length;n++)t=t.concat(e[n].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},a.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},a.prototype.setAllNodesToApplyGravitation=function(t){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=t},a.prototype.getRoot=function(){return this.rootGraph},a.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,null==t.parent&&(t.parent=this.layout.newNode("Root node"))},a.prototype.getLayout=function(){return this.layout},a.prototype.isOneAncestorOfOther=function(t,e){if(null==t||null==e)throw"assert failed";if(t==e)return!0;for(var n,r=t.getOwner();null!=(n=r.getParent());){if(n==e)return!0;if(null==(r=n.getOwner()))break}for(r=e.getOwner();null!=(n=r.getParent());){if(n==t)return!0;if(null==(r=n.getOwner()))break}return!1},a.prototype.calcLowestCommonAncestors=function(){for(var t,e,n,r,i,a=this.getAllEdges(),o=a.length,s=0;s<o;s++)if(e=(t=a[s]).source,n=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=n,e!=n){for(r=e.getOwner();null==t.lca;){for(t.targetInLca=n,i=n.getOwner();null==t.lca;){if(i==r){t.lca=i;break}if(i==this.rootGraph)break;if(null!=t.lca)throw"assert failed";t.targetInLca=i.getParent(),i=t.targetInLca.getOwner()}if(r==this.rootGraph)break;null==t.lca&&(t.sourceInLca=r.getParent(),r=t.sourceInLca.getOwner())}if(null==t.lca)throw"assert failed"}else t.lca=e.getOwner()},a.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();for(var n=t.getOwner();null!=n;){for(var r=e.getOwner();null!=r;){if(r==n)return r;r=r.getParent().getOwner()}n=n.getParent().getOwner()}return n},a.prototype.calcInclusionTreeDepths=function(t,e){var n;null==t&&null==e&&(t=this.rootGraph,e=1);for(var r=t.getNodes(),i=r.length,a=0;a<i;a++)(n=r[a]).inclusionTreeDepth=e,null!=n.child&&this.calcInclusionTreeDepths(n.child,e+1)},a.prototype.includesInvalidEdge=function(){for(var t,e=this.edges.length,n=0;n<e;n++)if(t=this.edges[n],this.isOneAncestorOfOther(t.source,t.target))return!0;return!1},t.exports=a},function(t,e,n){var r=n(0);function i(){}for(var a in r)i[a]=r[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=3*i.MAX_NODE_DISPLACEMENT_INCREMENTAL,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=i},function(t,e,n){var r=n(12);function i(){}i.calcSeparationAmount=function(t,e,n,r){if(!t.intersects(e))throw"assert failed";var i=new Array(2);this.decideDirectionsForOverlappingNodes(t,e,i),n[0]=Math.min(t.getRight(),e.getRight())-Math.max(t.x,e.x),n[1]=Math.min(t.getBottom(),e.getBottom())-Math.max(t.y,e.y),t.getX()<=e.getX()&&t.getRight()>=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]<s?s=n[0]:o=n[1],n[0]=-1*i[0]*(s/2+r),n[1]=-1*i[1]*(o/2+r)},i.decideDirectionsForOverlappingNodes=function(t,e,n){t.getCenterX()<e.getCenterX()?n[0]=-1:n[0]=1,t.getCenterY()<e.getCenterY()?n[1]=-1:n[1]=1},i.getIntersection2=function(t,e,n){var r=t.getCenterX(),i=t.getCenterY(),a=e.getCenterX(),o=e.getCenterY();if(t.intersects(e))return n[0]=r,n[1]=i,n[2]=a,n[3]=o,!0;var s=t.getX(),c=t.getY(),l=t.getRight(),u=t.getX(),h=t.getBottom(),f=t.getRight(),d=t.getWidthHalf(),A=t.getHeightHalf(),g=e.getX(),p=e.getY(),m=e.getRight(),b=e.getX(),v=e.getBottom(),y=e.getRight(),w=e.getWidthHalf(),k=e.getHeightHalf(),C=!1,x=!1;if(r===a){if(i>o)return n[0]=r,n[1]=c,n[2]=a,n[3]=v,!1;if(i<o)return n[0]=r,n[1]=h,n[2]=a,n[3]=p,!1}else if(i===o){if(r>a)return n[0]=s,n[1]=i,n[2]=m,n[3]=o,!1;if(r<a)return n[0]=l,n[1]=i,n[2]=g,n[3]=o,!1}else{var E=t.height/t.width,T=e.height/e.width,B=(o-i)/(a-r),_=void 0,S=void 0,L=void 0,I=void 0,M=void 0,O=void 0;if(-E===B?r>a?(n[0]=u,n[1]=h,C=!0):(n[0]=l,n[1]=c,C=!0):E===B&&(r>a?(n[0]=s,n[1]=c,C=!0):(n[0]=f,n[1]=h,C=!0)),-T===B?a>r?(n[2]=b,n[3]=v,x=!0):(n[2]=m,n[3]=p,x=!0):T===B&&(a>r?(n[2]=g,n[3]=p,x=!0):(n[2]=y,n[3]=v,x=!0)),C&&x)return!1;if(r>a?i>o?(_=this.getCardinalDirection(E,B,4),S=this.getCardinalDirection(T,B,2)):(_=this.getCardinalDirection(-E,B,3),S=this.getCardinalDirection(-T,B,1)):i>o?(_=this.getCardinalDirection(-E,B,1),S=this.getCardinalDirection(-T,B,3)):(_=this.getCardinalDirection(E,B,2),S=this.getCardinalDirection(T,B,4)),!C)switch(_){case 1:I=c,L=r+-A/B,n[0]=L,n[1]=I;break;case 2:L=f,I=i+d*B,n[0]=L,n[1]=I;break;case 3:I=h,L=r+A/B,n[0]=L,n[1]=I;break;case 4:L=u,I=i+-d*B,n[0]=L,n[1]=I}if(!x)switch(S){case 1:O=p,M=a+-k/B,n[2]=M,n[3]=O;break;case 2:M=y,O=o+w*B,n[2]=M,n[3]=O;break;case 3:O=v,M=a+k/B,n[2]=M,n[3]=O;break;case 4:M=b,O=o+-w*B,n[2]=M,n[3]=O}}return!1},i.getCardinalDirection=function(t,e,n){return t>e?n:1+n%4},i.getIntersection=function(t,e,n,i){if(null==i)return this.getIntersection2(t,e,n);var a,o,s,c,l,u,h,f=t.x,d=t.y,A=e.x,g=e.y,p=n.x,m=n.y,b=i.x,v=i.y;return 0==(h=(a=g-d)*(c=p-b)-(o=v-m)*(s=f-A))?null:new r((s*(u=b*m-p*v)-c*(l=A*d-f*g))/h,(o*l-a*u)/h)},i.angleOfVector=function(t,e,n,r){var i=void 0;return t!==n?(i=Math.atan((r-e)/(n-t)),n<t?i+=Math.PI:r<e&&(i+=this.TWO_PI)):i=r<e?this.ONE_AND_HALF_PI:this.HALF_PI,i},i.doIntersect=function(t,e,n,r){var i=t.x,a=t.y,o=e.x,s=e.y,c=n.x,l=n.y,u=r.x,h=r.y,f=(o-i)*(h-l)-(u-c)*(s-a);if(0===f)return!1;var d=((h-l)*(u-i)+(c-u)*(h-a))/f,A=((a-s)*(u-i)+(o-i)*(h-a))/f;return 0<d&&d<1&&0<A&&A<1},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,t.exports=i},function(t,e,n){function r(){}r.sign=function(t){return t>0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=r},function(t,e,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,t.exports=r},function(t,e,n){var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(t){return{value:t,next:null,prev:null}},a=function(t,e,n,r){return null!==t?t.next=e:r.head=e,null!==n?n.prev=e:r.tail=e,e.prev=t,e.next=n,r.length++,e},o=function(t,e){var n=t.prev,r=t.next;return null!==n?n.next=r:e.head=r,null!==r?r.prev=n:e.tail=n,t.prev=t.next=null,e.length--,t},s=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.length=0,this.head=null,this.tail=null,null!=e&&e.forEach((function(t){return n.push(t)}))}return r(t,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,e){return a(e.prev,i(t),e,this)}},{key:"insertAfter",value:function(t,e){return a(e,i(t),e.next,this)}},{key:"insertNodeBefore",value:function(t,e){return a(e.prev,t,e,this)}},{key:"insertNodeAfter",value:function(t,e){return a(e,t,e.next,this)}},{key:"push",value:function(t){return a(this.tail,i(t),null,this)}},{key:"unshift",value:function(t){return a(null,i(t),this.head,this)}},{key:"remove",value:function(t){return o(t,this)}},{key:"pop",value:function(){return o(this.tail,this).value}},{key:"popNode",value:function(){return o(this.tail,this)}},{key:"shift",value:function(){return o(this.head,this).value}},{key:"shiftNode",value:function(){return o(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var e=1,n=this.head;e<t;)n=n.next,e++;return n.value}}},{key:"set_object_at",value:function(t,e){if(t<=this.length()){for(var n=1,r=this.head;n<t;)r=r.next,n++;r.value=e}}}]),t}();t.exports=s},function(t,e,n){function r(t,e,n){this.x=null,this.y=null,null==t&&null==e&&null==n?(this.x=0,this.y=0):"number"==typeof t&&"number"==typeof e&&null==n?(this.x=t,this.y=e):"Point"==t.constructor.name&&null==e&&null==n&&(n=t,this.x=n.x,this.y=n.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(t,e,n){"Point"==t.constructor.name&&null==e&&null==n?(n=t,this.setLocation(n.x,n.y)):"number"==typeof t&&"number"==typeof e&&null==n&&(parseInt(t)==t&&parseInt(e)==e?this.move(t,e):(this.x=Math.floor(t+.5),this.y=Math.floor(e+.5)))},r.prototype.move=function(t,e){this.x=t,this.y=e},r.prototype.translate=function(t,e){this.x+=t,this.y+=e},r.prototype.equals=function(t){if("Point"==t.constructor.name){var e=t;return this.x==e.x&&this.y==e.y}return this==t},r.prototype.toString=function(){return(new r).constructor.name+"[x="+this.x+",y="+this.y+"]"},t.exports=r},function(t,e,n){function r(t,e,n,r){this.x=0,this.y=0,this.width=0,this.height=0,null!=t&&null!=e&&null!=n&&null!=r&&(this.x=t,this.y=e,this.width=n,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(t){this.x=t},r.prototype.getY=function(){return this.y},r.prototype.setY=function(t){this.y=t},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(t){return!(this.getRight()<t.x||this.getBottom()<t.y||t.getRight()<this.x||t.getBottom()<this.y)},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},t.exports=r},function(t,e,n){var r="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};function i(){}i.lastID=0,i.createID=function(t){return i.isPrimitive(t)?t:(null!=t.uniqueID||(t.uniqueID=i.getString(),i.lastID++),t.uniqueID)},i.getString=function(t){return null==t&&(t=i.lastID),"Object#"+t},i.isPrimitive=function(t){var e=void 0===t?"undefined":r(t);return null==t||"object"!=e&&"function"!=e},t.exports=i},function(t,e,n){function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var i=n(0),a=n(6),o=n(3),s=n(1),c=n(5),l=n(4),u=n(17),h=n(27);function f(t){h.call(this),this.layoutQuality=i.QUALITY,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=i.DEFAULT_INCREMENTAL,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new a(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=t&&(this.isRemoteUse=t)}f.RANDOM_SEED=1,f.prototype=Object.create(h.prototype),f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},f.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},f.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},f.prototype.newGraphManager=function(){var t=new a(this);return this.graphManager=t,t},f.prototype.newGraph=function(t){return new c(null,this.graphManager,t)},f.prototype.newNode=function(t){return new o(this.graphManager,t)},f.prototype.newEdge=function(t){return new s(null,null,t)},f.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},f.prototype.runLayout=function(){var t;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),t=!this.checkLayoutSuccess()&&this.layout(),"during"!==i.ANIMATE&&(t&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,t)},f.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},f.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var t=this.graphManager.getAllEdges(),e=0;e<t.length;e++)t[e];var n=this.graphManager.getRoot().getNodes();for(e=0;e<n.length;e++)n[e];this.update(this.graphManager.getRoot())}},f.prototype.update=function(t){if(null==t)this.update2();else if(t instanceof o){var e=t;if(null!=e.getChild())for(var n=e.getChild().getNodes(),r=0;r<n.length;r++)update(n[r]);null!=e.vGraphObject&&e.vGraphObject.update(e)}else if(t instanceof s){var i=t;null!=i.vGraphObject&&i.vGraphObject.update(i)}else if(t instanceof c){var a=t;null!=a.vGraphObject&&a.vGraphObject.update(a)}},f.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=i.QUALITY,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=i.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},f.prototype.transform=function(t){if(null==t)this.transform(new l(0,0));else{var e=new u,n=this.graphManager.getRoot().updateLeftTop();if(null!=n){e.setWorldOrgX(t.x),e.setWorldOrgY(t.y),e.setDeviceOrgX(n.x),e.setDeviceOrgY(n.y);for(var r=this.getAllNodes(),i=0;i<r.length;i++)r[i].transform(e)}}},f.prototype.positionNodesRandomly=function(t){if(null==t)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var e,n,r=t.getNodes(),i=0;i<r.length;i++)null==(n=(e=r[i]).getChild())||0==n.getNodes().length?e.scatter():(this.positionNodesRandomly(n),e.updateBounds())},f.prototype.getFlatForest=function(){for(var t=[],e=!0,n=this.graphManager.getRoot().getNodes(),i=!0,a=0;a<n.length;a++)null!=n[a].getChild()&&(i=!1);if(!i)return t;var o=new Set,s=[],c=new Map,l=[];for(l=l.concat(n);l.length>0&&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<h.length;a++){var f=h[a].getOtherEnd(u);if(c.get(u)!=f){if(o.has(f)){e=!1;break}s.push(f),c.set(f,u)}}}if(e){var d=[].concat(r(o));for(t.push(d),a=0;a<d.length;a++){var A=d[a],g=l.indexOf(A);g>-1&&l.splice(g,1)}o=new Set,c=new Map}else t=[]}return t},f.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],n=t.source,r=this.graphManager.calcLowestCommonAncestor(t.source,t.target),i=0;i<t.bendpoints.length;i++){var a=this.newNode(null);a.setRect(new Point(0,0),new Dimension(1,1)),r.add(a);var o=this.newEdge(null);this.graphManager.add(o,n,a),e.add(a),n=a}return o=this.newEdge(null),this.graphManager.add(o,n,t.target),this.edgeToDummyNodes.set(t,e),t.isInterGraph()?this.graphManager.remove(t):r.remove(t),e},f.prototype.createBendpointsFromDummyNodes=function(){var t=[];t=t.concat(this.graphManager.getAllEdges()),t=[].concat(r(this.edgeToDummyNodes.keys())).concat(t);for(var e=0;e<t.length;e++){var n=t[e];if(n.bendpoints.length>0){for(var i=this.edgeToDummyNodes.get(n),a=0;a<i.length;a++){var o=i[a],s=new l(o.getCenterX(),o.getCenterY()),c=n.bendpoints.get(a);c.x=s.x,c.y=s.y,o.getOwner().remove(o)}this.graphManager.add(n,n.source,n.target)}}},f.transform=function(t,e,n,r){if(null!=n&&null!=r){var i=e;return t<=50?i-=(e-e/n)/50*(50-t):i+=(e*r-e)/50*(t-50),i}var a,o;return t<=50?(a=9*e/500,o=e/10):(a=9*e/50,o=-8*e),a*t+o},f.findCenterOfTree=function(t){var e=[];e=e.concat(t);var n=[],r=new Map,i=!1,a=null;1!=e.length&&2!=e.length||(i=!0,a=e[0]);for(var o=0;o<e.length;o++){var s=(u=e[o]).getNeighborsList().size;r.set(u,u.getNeighborsList().size),1==s&&n.push(u)}var c=[];for(c=c.concat(n);!i;){var l=[];for(l=l.concat(c),c=[],o=0;o<e.length;o++){var u=e[o],h=e.indexOf(u);h>=0&&e.splice(h,1),u.getNeighborsList().forEach((function(t){if(n.indexOf(t)<0){var e=r.get(t)-1;1==e&&c.push(t),r.set(t,e)}}))}n=n.concat(c),1!=e.length&&2!=e.length||(i=!0,a=e[0])}return a},f.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=f},function(t,e,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},t.exports=r},function(t,e,n){var r=n(4);function i(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}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(t){this.lworldExtX=t},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(t){this.lworldExtY=t},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},i.prototype.transformX=function(t){var e=0,n=this.lworldExtX;return 0!=n&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/n),e},i.prototype.transformY=function(t){var e=0,n=this.lworldExtY;return 0!=n&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/n),e},i.prototype.inverseTransformX=function(t){var e=0,n=this.ldeviceExtX;return 0!=n&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/n),e},i.prototype.inverseTransformY=function(t){var e=0,n=this.ldeviceExtY;return 0!=n&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/n),e},i.prototype.inverseTransformPoint=function(t){return new r(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=i},function(t,e,n){var r=n(15),i=n(7),a=n(0),o=n(8),s=n(9);function c(){r.call(this),this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=i.DEFAULT_EDGE_LENGTH,this.springConstant=i.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=i.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=i.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=i.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=i.MAX_ITERATIONS}for(var l in c.prototype=Object.create(r.prototype),r)c[l]=r[l];c.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},c.prototype.calcIdealEdgeLengths=function(){for(var t,e,n,r,o,s,c=this.getGraphManager().getAllEdges(),l=0;l<c.length;l++)(t=c[l]).idealLength=this.idealEdgeLength,t.isInterGraph&&(n=t.getSource(),r=t.getTarget(),o=t.getSourceInLca().getEstimatedSize(),s=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=o+s-2*a.SIMPLE_NODE_SIZE),e=t.getLca().getInclusionTreeDepth(),t.idealLength+=i.DEFAULT_EDGE_LENGTH*i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(n.getInclusionTreeDepth()+r.getInclusionTreeDepth()-2*e))},c.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>i.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.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;n<e.length;n++)t=e[n],this.calcSpringForce(t,t.idealLength)},c.prototype.calcRepulsionForces=function(){var t,e,n,r,a,o=!(arguments.length>0&&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%i.GRID_CALCULATION_CHECK_PERIOD==1&&o&&this.updateGrid(),a=new Set,t=0;t<c.length;t++)n=c[t],this.calculateRepulsionForceOfANode(n,a,o,s),a.add(n);else for(t=0;t<c.length;t++)for(n=c[t],e=t+1;e<c.length;e++)r=c[e],n.getOwner()==r.getOwner()&&this.calcRepulsionForce(n,r)},c.prototype.calcGravitationalForces=function(){for(var t,e=this.getAllNodesToApplyGravitation(),n=0;n<e.length;n++)t=e[n],this.calcGravitationalForce(t)},c.prototype.moveNodes=function(){for(var t=this.getAllNodes(),e=0;e<t.length;e++)t[e].move()},c.prototype.calcSpringForce=function(t,e){var n,r,i,a,o=t.getSource(),s=t.getTarget();if(this.uniformLeafNodeSizes&&null==o.getChild()&&null==s.getChild())t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;0!=(n=t.getLength())&&(i=(r=this.springConstant*(n-e))*(t.lengthX/n),a=r*(t.lengthY/n),o.springForceX+=i,o.springForceY+=a,s.springForceX-=i,s.springForceY-=a)},c.prototype.calcRepulsionForce=function(t,e){var n,r,a,c,l,u,h,f=t.getRect(),d=e.getRect(),A=new Array(2),g=new Array(4);if(f.intersects(d)){o.calcSeparationAmount(f,d,A,i.DEFAULT_EDGE_LENGTH/2),u=2*A[0],h=2*A[1];var p=t.noOfChildren*e.noOfChildren/(t.noOfChildren+e.noOfChildren);t.repulsionForceX-=p*u,t.repulsionForceY-=p*h,e.repulsionForceX+=p*u,e.repulsionForceY+=p*h}else this.uniformLeafNodeSizes&&null==t.getChild()&&null==e.getChild()?(n=d.getCenterX()-f.getCenterX(),r=d.getCenterY()-f.getCenterY()):(o.getIntersection(f,d,g),n=g[2]-g[0],r=g[3]-g[1]),Math.abs(n)<i.MIN_REPULSION_DIST&&(n=s.sign(n)*i.MIN_REPULSION_DIST),Math.abs(r)<i.MIN_REPULSION_DIST&&(r=s.sign(r)*i.MIN_REPULSION_DIST),a=n*n+r*r,c=Math.sqrt(a),u=(l=this.repulsionConstant*t.noOfChildren*e.noOfChildren/a)*n/c,h=l*r/c,t.repulsionForceX-=u,t.repulsionForceY-=h,e.repulsionForceX+=u,e.repulsionForceY+=h},c.prototype.calcGravitationalForce=function(t){var e,n,r,i,a,o,s,c;n=((e=t.getOwner()).getRight()+e.getLeft())/2,r=(e.getTop()+e.getBottom())/2,i=t.getCenterX()-n,a=t.getCenterY()-r,o=Math.abs(i)+t.getWidth()/2,s=Math.abs(a)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(o>(c=e.getEstimatedSize()*this.gravityRangeFactor)||s>c)&&(t.gravitationForceX=-this.gravityConstant*i,t.gravitationForceY=-this.gravityConstant*a):(o>(c=e.getEstimatedSize()*this.compoundGravityRangeFactor)||s>c)&&(t.gravitationForceX=-this.gravityConstant*i*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<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||e},c.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},c.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,e=this.graphManager.getAllNodes(),n=0;n<e.length;n++)(t=e[n]).noOfChildren=t.getNoOfChildren()},c.prototype.calcGrid=function(t){var e,n;e=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),n=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var r=new Array(e),i=0;i<e;i++)r[i]=new Array(n);for(i=0;i<e;i++)for(var a=0;a<n;a++)r[i][a]=new Array;return r},c.prototype.addNodeToGrid=function(t,e,n){var r,i,a,o;r=parseInt(Math.floor((t.getRect().x-e)/this.repulsionRange)),i=parseInt(Math.floor((t.getRect().width+t.getRect().x-e)/this.repulsionRange)),a=parseInt(Math.floor((t.getRect().y-n)/this.repulsionRange)),o=parseInt(Math.floor((t.getRect().height+t.getRect().y-n)/this.repulsionRange));for(var s=r;s<=i;s++)for(var c=a;c<=o;c++)this.grid[s][c].push(t),t.setGridCoordinates(r,i,a,o)},c.prototype.updateGrid=function(){var t,e,n=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<n.length;t++)e=n[t],this.addNodeToGrid(e,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},c.prototype.calculateRepulsionForceOfANode=function(t,e,n,r){if(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&n||r){var a,o=new Set;t.surrounding=new Array;for(var s=this.grid,c=t.startX-1;c<t.finishX+2;c++)for(var l=t.startY-1;l<t.finishY+2;l++)if(!(c<0||l<0||c>=s.length||l>=s[0].length))for(var u=0;u<s[c][l].length;u++)if(a=s[c][l][u],t.getOwner()==a.getOwner()&&t!=a&&!e.has(a)&&!o.has(a)){var h=Math.abs(t.getCenterX()-a.getCenterX())-(t.getWidth()/2+a.getWidth()/2),f=Math.abs(t.getCenterY()-a.getCenterY())-(t.getHeight()/2+a.getHeight()/2);h<=this.repulsionRange&&f<=this.repulsionRange&&o.add(a)}t.surrounding=[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(o))}for(c=0;c<t.surrounding.length;c++)this.calcRepulsionForce(t,t.surrounding[c])},c.prototype.calcRepulsionRange=function(){return 0},t.exports=c},function(t,e,n){var r=n(1),i=n(7);function a(t,e,n){r.call(this,t,e,n),this.idealLength=i.DEFAULT_EDGE_LENGTH}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];t.exports=a},function(t,e,n){var r=n(3);function i(t,e,n,i){r.call(this,t,e,n,i),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];i.prototype.setGridCoordinates=function(t,e,n,r){this.startX=t,this.finishX=e,this.startY=n,this.finishY=r},t.exports=i},function(t,e,n){function r(t,e){this.width=0,this.height=0,null!==t&&null!==e&&(this.height=e,this.width=t)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},t.exports=r},function(t,e,n){var r=n(14);function i(){this.map={},this.keys=[]}i.prototype.put=function(t,e){var n=r.createID(t);this.contains(n)||(this.map[n]=e,this.keys.push(t))},i.prototype.contains=function(t){return r.createID(t),null!=this.map[t]},i.prototype.get=function(t){var e=r.createID(t);return this.map[e]},i.prototype.keySet=function(){return this.keys},t.exports=i},function(t,e,n){var r=n(14);function i(){this.set={}}i.prototype.add=function(t){var e=r.createID(t);this.contains(e)||(this.set[e]=t)},i.prototype.remove=function(t){delete this.set[r.createID(t)]},i.prototype.clear=function(){this.set={}},i.prototype.contains=function(t){return this.set[r.createID(t)]==t},i.prototype.isEmpty=function(){return 0===this.size()},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAllTo=function(t){for(var e=Object.keys(this.set),n=e.length,r=0;r<n;r++)t.push(this.set[e[r]])},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAll=function(t){for(var e=t.length,n=0;n<e;n++){var r=t[n];this.add(r)}},t.exports=i},function(t,e,n){var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(11),a=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null===n&&void 0===n||(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=e instanceof i?e.size():e.length,this._quicksort(e,0,r-1)}return r(t,[{key:"_quicksort",value:function(t,e,n){if(e<n){var r=this._partition(t,e,n);this._quicksort(t,e,r),this._quicksort(t,r+1,n)}}},{key:"_partition",value:function(t,e,n){for(var r=this._get(t,e),i=e,a=n;;){for(;this.compareFunction(r,this._get(t,a));)a--;for(;this.compareFunction(this._get(t,i),r);)i++;if(!(i<a))return a;this._swap(t,i,a),i++,a--}}},{key:"_get",value:function(t,e){return t instanceof i?t.get_object_at(e):t[e]}},{key:"_set",value:function(t,e,n){t instanceof i?t.set_object_at(e,n):t[e]=n}},{key:"_swap",value:function(t,e,n){var r=this._get(t,e);this._set(t,e,this._get(t,n)),this._set(t,n,r)}},{key:"_defaultCompareFunction",value:function(t,e){return e>t}}]),t}();t.exports=a},function(t,e,n){var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=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=r,this.mismatch_penalty=i,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<this.iMax;o++){this.grid[o]=new Array(this.jMax);for(var s=0;s<this.jMax;s++)this.grid[o][s]=0}this.tracebackGrid=new Array(this.iMax);for(var c=0;c<this.iMax;c++){this.tracebackGrid[c]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[c][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(t,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var n=1;n<this.iMax;n++)for(var r=1;r<this.jMax;r++){var i=[this.sequence1[n-1]===this.sequence2[r-1]?this.grid[n-1][r-1]+this.match_score:this.grid[n-1][r-1]+this.mismatch_penalty,this.grid[n-1][r]+this.gap_penalty,this.grid[n][r-1]+this.gap_penalty],a=this.arrayAllMaxIndexes(i);this.grid[n][r]=i[a[0]],this.tracebackGrid[n][r]=[a.includes(0),a.includes(1),a.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],n=this.tracebackGrid[e.pos[0]][e.pos[1]];n[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),n[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),n[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),0===e.pos[0]&&0===e.pos[1]&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var n=[],r=-1;-1!==(r=t.indexOf(e,r+1));)n.push(r);return n}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]),t}();t.exports=i},function(t,e,n){var r=function(){};r.FDLayout=n(18),r.FDLayoutConstants=n(7),r.FDLayoutEdge=n(19),r.FDLayoutNode=n(20),r.DimensionD=n(21),r.HashMap=n(22),r.HashSet=n(23),r.IGeometry=n(8),r.IMath=n(9),r.Integer=n(10),r.Point=n(12),r.PointD=n(4),r.RandomSeed=n(16),r.RectangleD=n(13),r.Transform=n(17),r.UniqueIDGeneretor=n(14),r.Quicksort=n(24),r.LinkedList=n(11),r.LGraphObject=n(2),r.LGraph=n(5),r.LEdge=n(1),r.LGraphManager=n(6),r.LNode=n(3),r.Layout=n(15),r.LayoutConstants=n(0),r.NeedlemanWunsch=n(25),t.exports=r},function(t,e,n){function r(){this.listeners=[]}var i=r.prototype;i.addListener=function(t,e){this.listeners.push({event:t,callback:e})},i.removeListener=function(t,e){for(var n=this.listeners.length;n>=0;n--){var r=this.listeners[n];r.event===t&&r.callback===e&&this.listeners.splice(n,1)}},i.emit=function(t,e){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];t===r.event&&r.callback(e)}},t.exports=r}])},t.exports=n()}));n(Wat);var qat=r((function(t,e){var n;n=function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(e,n){e.exports=t},function(t,e,n){var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=i},function(t,e,n){var r=n(0).FDLayoutEdge;function i(t,e,n){r.call(this,t,e,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];t.exports=i},function(t,e,n){var r=n(0).LGraph;function i(t,e,n){r.call(this,t,e,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];t.exports=i},function(t,e,n){var r=n(0).LGraphManager;function i(t){r.call(this,t)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];t.exports=i},function(t,e,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function a(t,e,n,i){r.call(this,t,e,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*i.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,r=this.getChild().getNodes(),i=0;i<r.length;i++)null==(n=r[i]).getChild()?(n.moveBy(t,e),n.displacementX+=t,n.displacementY+=e):n.propogateDisplacementToChildren(t,e)},a.prototype.setPred1=function(t){this.pred1=t},a.prototype.getPred1=function(){return pred1},a.prototype.getPred2=function(){return pred2},a.prototype.setNext=function(t){this.next=t},a.prototype.getNext=function(){return next},a.prototype.setProcessed=function(t){this.processed=t},a.prototype.isProcessed=function(){return processed},t.exports=a},function(t,e,n){var r=n(0).FDLayout,i=n(4),a=n(3),o=n(5),s=n(2),c=n(1),l=n(0).FDLayoutConstants,u=n(0).LayoutConstants,h=n(0).Point,f=n(0).PointD,d=n(0).Layout,A=n(0).Integer,g=n(0).IGeometry,p=n(0).LGraph,m=n(0).Transform;function b(){r.call(this),this.toBeTiled={}}for(var v in b.prototype=Object.create(r.prototype),r)b[v]=r[v];b.prototype.newGraphManager=function(){var t=new i(this);return this.graphManager=t,t},b.prototype.newGraph=function(t){return new a(null,this.graphManager,t)},b.prototype.newNode=function(t){return new o(this.graphManager,t)},b.prototype.newEdge=function(t){return new s(null,null,t)},b.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(c.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=c.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=l.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=l.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=l.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},b.prototype.layout=function(){return u.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},b.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)c.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),e=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter((function(t){return e.has(t)})),this.graphManager.setAllNodesToApplyGravitation(n));else{var t=this.getFlatForest();if(t.length>0)this.positionNodesRadially(t);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter((function(t){return e.has(t)}));this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},b.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))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,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},b.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},n=0;n<t.length;n++){var r=t[n].rect,i=t[n].id;e[i]={id:i,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return e},b.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var t=!1;if("during"===l.ANIMATE)this.emit("layoutstarted");else{for(;!t;)t=this.tick();this.graphManager.updateBounds()}},b.prototype.calculateNodesToApplyGravitationTo=function(){var t,e,n=[],r=this.graphManager.getGraphs(),i=r.length;for(e=0;e<i;e++)(t=r[e]).updateConnected(),t.isConnected||(n=n.concat(t.getNodes()));return n},b.prototype.createBendpoints=function(){var t=[];t=t.concat(this.graphManager.getAllEdges());var e,n=new Set;for(e=0;e<t.length;e++){var r=t[e];if(!n.has(r)){var i=r.getSource(),a=r.getTarget();if(i==a)r.getBendpoints().push(new f),r.getBendpoints().push(new f),this.createDummyNodesForBendpoints(r),n.add(r);else{var o=[];if(o=(o=o.concat(i.getEdgeListToNode(a))).concat(a.getEdgeListToNode(i)),!n.has(o[0])){var s;if(o.length>1)for(s=0;s<o.length;s++){var c=o[s];c.getBendpoints().push(new f),this.createDummyNodesForBendpoints(c)}o.forEach((function(t){n.add(t)}))}}}if(n.size==t.length)break}},b.prototype.positionNodesRadially=function(t){for(var e=new h(0,0),n=Math.ceil(Math.sqrt(t.length)),r=0,i=0,a=0,o=new f(0,0),s=0;s<t.length;s++){s%n==0&&(a=0,i=r,0!=s&&(i+=c.DEFAULT_COMPONENT_SEPERATION),r=0);var l=t[s],A=d.findCenterOfTree(l);e.x=a,e.y=i,(o=b.radialLayout(l,A,e)).y>r&&(r=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))},b.radialLayout=function(t,e,n){var r=Math.max(this.maxDiagonalInTree(t),c.DEFAULT_RADIAL_SEPARATION);b.branchRadialLayout(e,null,0,359,0,r);var i=p.calculateBounds(t),a=new m;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o<t.length;o++)t[o].transform(a);var s=new f(i.getMaxX(),i.getMaxY());return a.inverseTransformPoint(s)},b.branchRadialLayout=function(t,e,n,r,i,a){var o=(r-n+1)/2;o<0&&(o+=180);var s=(o+n)%360*g.TWO_PI/360,c=i*Math.cos(s),l=i*Math.sin(s);t.setCenter(c,l);var u=[],h=(u=u.concat(t.getEdges())).length;null!=e&&h--;for(var f,d=0,A=u.length,p=t.getEdgesBetween(e);p.length>1;){var m=p[0];p.splice(0,1);var v=u.indexOf(m);v>=0&&u.splice(v,1),A--,h--}f=null!=e?(u.indexOf(p[0])+1)%A:0;for(var y=Math.abs(r-n)/h,w=f;d!=h;w=++w%A){var k=u[w].getOtherEnd(t);if(k!=e){var C=(n+d*y)%360,x=(C+y)%360;b.branchRadialLayout(k,t,C,x,i+a,a),d++}}},b.maxDiagonalInTree=function(t){for(var e=A.MIN_VALUE,n=0;n<t.length;n++){var r=t[n].getDiagonal();r>e&&(e=r)}return e},b.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},b.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i<r.length;i++){var a=(s=r[i]).getParent();0!==this.getNodeDegreeWithChildren(s)||null!=a.id&&this.getToBeTiled(a)||n.push(s)}for(i=0;i<n.length;i++){var s,c=(s=n[i]).getParent().id;void 0===e[c]&&(e[c]=[]),e[c]=e[c].concat(s)}Object.keys(e).forEach((function(n){if(e[n].length>1){var r="DummyCompound_"+n;t.memberGroups[r]=e[n];var i=e[n][0].getParent(),a=new o(t.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,t.idToDummyNode[r]=a;var s=t.getGraphManager().add(t.newGraph(),a),c=i.getChild();c.add(a);for(var l=0;l<e[n].length;l++){var u=e[n][l];c.remove(u),s.add(u)}}}))},b.prototype.clearCompounds=function(){var t={},e={};this.performDFSOnCompounds();for(var n=0;n<this.compoundOrder.length;n++)e[this.compoundOrder[n].id]=this.compoundOrder[n],t[this.compoundOrder[n].id]=[].concat(this.compoundOrder[n].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[n].getChild()),this.compoundOrder[n].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(t,e)},b.prototype.clearZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach((function(n){var r=t.idToDummyNode[n];e[n]=t.tileNodes(t.memberGroups[n],r.paddingLeft+r.paddingRight),r.rect.width=e[n].width,r.rect.height=e[n].height}))},b.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t],n=e.id,r=e.paddingLeft,i=e.paddingTop;this.adjustLocations(this.tiledMemberPack[n],e.rect.x,e.rect.y,r,i)}},b.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach((function(n){var r=t.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;t.adjustLocations(e[n],r.rect.x,r.rect.y,i,a)}))},b.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 r=n.getNodes(),i=0;i<r.length;i++){var a=r[i];if(this.getNodeDegree(a)>0)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},b.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),n=0,r=0;r<e.length;r++){var i=e[r];i.getSource().id!==i.getTarget().id&&(n+=1)}return n},b.prototype.getNodeDegreeWithChildren=function(t){var e=this.getNodeDegree(t);if(null==t.getChild())return e;for(var n=t.getChild().getNodes(),r=0;r<n.length;r++){var i=n[r];e+=this.getNodeDegreeWithChildren(i)}return e},b.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},b.prototype.fillCompexOrderByDFS=function(t){for(var e=0;e<t.length;e++){var n=t[e];null!=n.getChild()&&this.fillCompexOrderByDFS(n.getChild().getNodes()),this.getToBeTiled(n)&&this.compoundOrder.push(n)}},b.prototype.adjustLocations=function(t,e,n,r,i){n+=i;for(var a=e+=r,o=0;o<t.rows.length;o++){var s=t.rows[o];e=a;for(var c=0,l=0;l<s.length;l++){var u=s[l];u.rect.x=e,u.rect.y=n,e+=u.rect.width+t.horizontalPadding,u.rect.height>c&&(c=u.rect.height)}n+=c+t.verticalPadding}},b.prototype.tileCompoundMembers=function(t,e){var n=this;this.tiledMemberPack=[],Object.keys(t).forEach((function(r){var i=e[r];n.tiledMemberPack[r]=n.tileNodes(t[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height}))},b.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.height<e.rect.width*e.rect.height?1:0}));for(var r=0;r<t.length;r++){var i=t[r];0==n.rows.length?this.insertNodeToRow(n,i,0,e):this.canAddHorizontal(n,i.rect.width,i.rect.height)?this.insertNodeToRow(n,i,this.getShortestRowIndex(n),e):this.insertNodeToRow(n,i,n.rows.length,e),this.shiftToLastRow(n)}return n},b.prototype.insertNodeToRow=function(t,e,n,r){var i=r;n==t.rows.length&&(t.rows.push([]),t.rowWidth.push(i),t.rowHeight.push(0));var a=t.rowWidth[n]+e.rect.width;t.rows[n].length>0&&(a+=t.horizontalPadding),t.rowWidth[n]=a,t.width<a&&(t.width=a);var o=e.rect.height;n>0&&(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)},b.prototype.getShortestRowIndex=function(t){for(var e=-1,n=Number.MAX_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]<n&&(e=r,n=t.rowWidth[r]);return e},b.prototype.getLongestRowIndex=function(t){for(var e=-1,n=Number.MIN_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]>n&&(e=r,n=t.rowWidth[r]);return e},b.prototype.canAddHorizontal=function(t,e,n){var r=this.getShortestRowIndex(t);if(r<0)return!0;var i=t.rowWidth[r];if(i+t.horizontalPadding+e<=t.width)return!0;var a,o,s=0;return t.rowHeight[r]<n&&r>0&&(s=n+t.verticalPadding-t.rowHeight[r]),a=t.width-i>=e+t.horizontalPadding?(t.height+s)/(i+e+t.horizontalPadding):(t.height+s)/t.width,s=n+t.verticalPadding,(o=t.width<e?(t.height+s)/e:(t.height+s)/t.width)<1&&(o=1/o),a<1&&(a=1/a),a<o},b.prototype.shiftToLastRow=function(t){var e=this.getLongestRowIndex(t),n=t.rowWidth.length-1,r=t.rows[e],i=r[r.length-1],a=i.width+t.horizontalPadding;if(t.width-t.rowWidth[n]>a&&e!=n){r.splice(-1,1),t.rows[n].push(i),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;s<r.length;s++)r[s].height>o&&(o=r[s].height);e>0&&(o+=t.verticalPadding);var c=t.rowHeight[e]+t.rowHeight[n];t.rowHeight[e]=o,t.rowHeight[n]<i.height+t.verticalPadding&&(t.rowHeight[n]=i.height+t.verticalPadding);var l=t.rowHeight[e]+t.rowHeight[n];t.height+=l-c,this.shiftToLastRow(t)}},b.prototype.tilingPreLayout=function(){c.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},b.prototype.tilingPostLayout=function(){c.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},b.prototype.reduceTrees=function(){for(var t,e=[],n=!0;n;){var r=this.graphManager.getAllNodes(),i=[];n=!1;for(var a=0;a<r.length;a++)1!=(t=r[a]).getEdges().length||t.getEdges()[0].isInterGraph||null!=t.getChild()||(i.push([t,t.getEdges()[0],t.getOwner()]),n=!0);if(1==n){for(var o=[],s=0;s<i.length;s++)1==i[s][0].getEdges().length&&(o.push(i[s]),i[s][0].getOwner().remove(i[s][0]));e.push(o),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},b.prototype.growTree=function(t){for(var e,n=t[t.length-1],r=0;r<n.length;r++)e=n[r],this.findPlaceforPrunedNode(e),e[2].add(e[0]),e[2].add(e[1],e[1].source,e[1].target);t.splice(t.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},b.prototype.findPlaceforPrunedNode=function(t){var e,n,r=t[0],i=(n=r==t[1].source?t[1].target:t[1].source).startX,a=n.finishX,o=n.startY,s=n.finishY,c=[0,0,0,0];if(o>0)for(var u=i;u<=a;u++)c[0]+=this.grid[u][o-1].length+this.grid[u][o].length-1;if(a<this.grid.length-1)for(u=o;u<=s;u++)c[1]+=this.grid[a+1][u].length+this.grid[a][u].length-1;if(s<this.grid[0].length-1)for(u=i;u<=a;u++)c[2]+=this.grid[u][s+1].length+this.grid[u][s].length-1;if(i>0)for(u=o;u<=s;u++)c[3]+=this.grid[i-1][u].length+this.grid[i][u].length-1;for(var h,f,d=A.MAX_VALUE,g=0;g<c.length;g++)c[g]<d?(d=c[g],h=1,f=g):c[g]==d&&h++;if(3==h&&0==d)0==c[0]&&0==c[1]&&0==c[2]?e=1:0==c[0]&&0==c[1]&&0==c[3]?e=0:0==c[0]&&0==c[2]&&0==c[3]?e=3:0==c[1]&&0==c[2]&&0==c[3]&&(e=2);else if(2==h&&0==d){var p=Math.floor(2*Math.random());e=0==c[0]&&0==c[1]?0==p?0:1:0==c[0]&&0==c[2]?0==p?0:2:0==c[0]&&0==c[3]?0==p?0:3:0==c[1]&&0==c[2]?0==p?1:2:0==c[1]&&0==c[3]?0==p?1:3:0==p?2:3}else e=4==h&&0==d?p=Math.floor(4*Math.random()):f;0==e?r.setCenter(n.getCenterX(),n.getCenterY()-n.getHeight()/2-l.DEFAULT_EDGE_LENGTH-r.getHeight()/2):1==e?r.setCenter(n.getCenterX()+n.getWidth()/2+l.DEFAULT_EDGE_LENGTH+r.getWidth()/2,n.getCenterY()):2==e?r.setCenter(n.getCenterX(),n.getCenterY()+n.getHeight()/2+l.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(n.getCenterX()-n.getWidth()/2-l.DEFAULT_EDGE_LENGTH-r.getWidth()/2,n.getCenterY())},t.exports=b},function(t,e,n){var r={};r.layoutBase=n(0),r.CoSEConstants=n(1),r.CoSEEdge=n(2),r.CoSEGraph=n(3),r.CoSEGraphManager=n(4),r.CoSELayout=n(6),r.CoSENode=n(5),t.exports=r}])},t.exports=n(Wat)}));n(qat);var Yat=r((function(t,e){var n;n=function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(e,n){e.exports=t},function(t,e,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,a=n(0).CoSEConstants,o=n(0).CoSELayout,s=n(0).CoSENode,c=n(0).layoutBase.PointD,l=n(0).layoutBase.DimensionD,u={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function h(t){this.options=function(t,e){var n={};for(var r in t)n[r]=t[r];for(var r in e)n[r]=e[r];return n}(u,t),f(this.options)}var f=function(t){null!=t.nodeRepulsion&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion),null!=t.idealEdgeLength&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=t.idealEdgeLength),null!=t.edgeElasticity&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=t.edgeElasticity),null!=t.nestingFactor&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),"draft"==t.quality?r.QUALITY=0:"proof"==t.quality?r.QUALITY=2:r.QUALITY=1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!t.randomize,a.ANIMATE=i.ANIMATE=r.ANIMATE=t.animate,a.TILE=t.tile,a.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal};h.prototype.run=function(){var t,e,n=this.options;this.idToLNode={};var r=this.layout=new o,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var a=r.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),c=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var l=0;l<c.length;l++){var u=c[l],h=this.idToLNode[u.data("source")],f=this.idToLNode[u.data("target")];h!==f&&0==h.getEdgesBetween(f).length&&(a.add(r.newEdge(),h,f).id=u.id())}var d=function(t,e){"number"==typeof t&&(t=e);var n=t.data("id"),r=i.idToLNode[n];return{x:r.getRect().getCenterX(),y:r.getRect().getCenterY()}},A=function a(){for(var o,s=function(){n.fit&&n.cy.fit(n.eles,n.padding),t||(t=!0,i.cy.one("layoutready",n.ready),i.cy.trigger({type:"layoutready",layout:i}))},c=i.options.refresh,l=0;l<c&&!o;l++)o=i.stopped||i.layout.tick();if(o)return r.checkLayoutSuccess()&&!r.isSubLayout&&r.doPostLayout(),r.tilingPostLayout&&r.tilingPostLayout(),r.isLayoutFinished=!0,i.options.eles.nodes().positions(d),s(),i.cy.one("layoutstop",i.options.stop),i.cy.trigger({type:"layoutstop",layout:i}),e&&cancelAnimationFrame(e),void(t=!1);var u=i.layout.getPositionsData();n.eles.nodes().positions((function(t,e){if("number"==typeof t&&(t=e),!t.isParent()){for(var n=t.id(),r=u[n],i=t;null==r&&(r=u[i.data("parent")]||u["DummyCompound_"+i.data("parent")],u[n]=r,null!=(i=i.parent()[0])););return null!=r?{x:r.x,y:r.y}:{x:t.position("x"),y:t.position("y")}}})),s(),e=requestAnimationFrame(a)};return r.addListener("layoutstarted",(function(){"during"===i.options.animate&&(e=requestAnimationFrame(A))})),r.runLayout(),"during"!==this.options.animate&&(i.options.eles.nodes().not(":parent").layoutPositions(i,i.options,d),t=!1),this},h.prototype.getTopMostNodes=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].id()]=!0;var r=t.filter((function(t,n){"number"==typeof t&&(t=n);for(var r=t.parent()[0];null!=r;){if(e[r.id()])return!1;r=r.parent()[0]}return!0}));return r},h.prototype.processChildrenList=function(t,e,n){for(var r=e.length,i=0;i<r;i++){var a,o,u=e[i],h=u.children(),f=u.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((a=null!=u.outerWidth()&&null!=u.outerHeight()?t.add(new s(n.graphManager,new c(u.position("x")-f.w/2,u.position("y")-f.h/2),new l(parseFloat(f.w),parseFloat(f.h)))):t.add(new s(this.graphManager))).id=u.data("id"),a.paddingLeft=parseInt(u.css("padding")),a.paddingTop=parseInt(u.css("padding")),a.paddingRight=parseInt(u.css("padding")),a.paddingBottom=parseInt(u.css("padding")),this.options.nodeDimensionsIncludeLabels&&u.isParent()){var d=u.boundingBox({includeLabels:!0,includeNodes:!1}).w,A=u.boundingBox({includeLabels:!0,includeNodes:!1}).h,g=u.css("text-halign");a.labelWidth=d,a.labelHeight=A,a.labelPos=g}this.idToLNode[u.data("id")]=a,isNaN(a.rect.x)&&(a.rect.x=0),isNaN(a.rect.y)&&(a.rect.y=0),null!=h&&h.length>0&&(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)};"undefined"!=typeof cytoscape&&d(cytoscape),t.exports=d}])},t.exports=n(qat)})),Jat=n(Yat),Zat=function(){var t,e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],h=[1,24],f=[1,25],d=[6,7,11],A=[1,6,13,15,16,19,22],g=[1,33],p=[1,34],m=[1,6,7,11,13,15,16,19,22],b={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace("Icon: ",a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace("SPACELIST");break;case 19:r.getLogger().trace("Node: ",a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace("node found ..",a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace("node found ..",a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:h,10:23,11:f},e(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,23]),e(d,[2,24]),e(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:h,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(A,[2,14],{7:g,11:p}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(d,[2,15]),e(d,[2,16]),e(d,[2,17]),{20:[1,35]},{21:[1,36]},e(A,[2,13],{7:g,11:p}),e(m,[2,11]),e(m,[2,12]),{21:[1,37]},e(d,[2,25]),e(d,[2,27])],defaultActions:{2:[2,1],6:[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=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(f.yy[d]=this.yy[d]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var A=h.yylloc;a.push(A);var g=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,b,v,y,w,k,C,x,E={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==m&&(m=p()),v=o[b]&&o[b][m]),void 0===v||!v.length||!v[0]){var T="";for(w in x=[],o[b])this.terminals_[w]&&w>2&&x.push("'"+this.terminals_[w]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[m]||m,line:h.yylineno,loc:A,expected:x})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(v[0]){case 1:n.push(m),i.push(h.yytext),a.push(h.yylloc),n.push(v[1]),m=null,l=h.yyleng,s=h.yytext,c=h.yylineno,A=h.yylloc;break;case 2:if(k=this.productions_[v[1]][1],E.$=i[i.length-k],E._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},g&&(E._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(y=this.performAction.apply(E,[s,l,c,f.yy,v[1],i,a].concat(u))))return y;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[v[1]][0]),i.push(E.$),a.push(E._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},v=(t={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 r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[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,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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 i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&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(){var t=this.next();return t||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,r){switch(n){case 0:t.getLogger().trace("Found comment",e.yytext);break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23: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:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 22:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 24:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 25:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 26:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 27:case 30:case 31:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 28:case 29:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 32:case 33: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],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR:{rules:[22,23],inclusive:!1},NODE:{rules:[21,24,25,26,27,28,29,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},t);function y(){this.yy={}}return b.lexer=v,y.prototype=b,b.Parser=y,new y}();Zat.parser=Zat;const tot=Zat,eot=t=>X0(t,D4());let not=[],rot=0,iot={};const aot={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},oot=(t,e)=>{iot[t]=e},sot=t=>{switch(t){case aot.DEFAULT:return"no-border";case aot.RECT:return"rect";case aot.ROUNDED_RECT:return"rounded-rect";case aot.CIRCLE:return"circle";case aot.CLOUD:return"cloud";case aot.BANG:return"bang";case aot.HEXAGON:return"hexgon";default:return"no-border"}};let cot;const lot=t=>iot[t],uot=Object.freeze(Object.defineProperty({__proto__:null,addNode:(t,e,n,r)=>{H0.info("addNode",t,e,n,r);const i=D4(),a={id:rot++,nodeId:eot(e),level:t,descr:eot(n),type:r,children:[],width:D4().mindmap.maxNodeWidth};switch(a.type){case aot.ROUNDED_RECT:case aot.RECT:case aot.HEXAGON:a.padding=2*i.mindmap.padding;break;default:a.padding=i.mindmap.padding}const o=function(t){for(let e=not.length-1;e>=0;e--)if(not[e].level<t)return not[e];return null}(t);if(o)o.children.push(a),not.push(a);else{if(0!==not.length){let t=new Error('There can be only one root. No parent could be found for ("'+a.descr+'")');throw t.hash={text:"branch "+name,token:"branch "+name,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+name+'"']},t}not.push(a)}},clear:()=>{not=[],rot=0,iot={}},decorateNode:t=>{const e=not[not.length-1];t&&t.icon&&(e.icon=eot(t.icon)),t&&t.class&&(e.class=eot(t.class))},getElementById:lot,getLogger:()=>H0,getMindmap:()=>not.length>0?not[0]:null,getNodeById:t=>not[t],getType:(t,e)=>{switch(H0.debug("In get type",t,e),t){case"[":return aot.RECT;case"(":return")"===e?aot.ROUNDED_RECT:aot.CLOUD;case"((":return aot.CIRCLE;case")":return aot.CLOUD;case"))":return aot.BANG;case"{{":return aot.HEXAGON;default:return aot.DEFAULT}},nodeType:aot,get parseError(){return cot},sanitizeText:eot,setElementForId:oot,setErrorHandler:t=>{cot=t},type2Str:sot},Symbol.toStringTag,{value:"Module"}));function hot(t,e){t.each((function(){var t,n=JR(this),r=n.text().split(/(\s+|<br>)/).reverse(),i=[],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;o<r.length;o++)t=r[r.length-1-o],i.push(t),s.text(i.join(" ").trim()),(s.node().getComputedTextLength()>e||"<br>"===t)&&(i.pop(),s.text(i.join(" ").trim()),i="<br>"===t?[""]:[t],s=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))}))}const fot=function(t,e,n,r){const i=n%11,a=t.append("g");e.section=i;let o="section-"+i;i<0&&(o+=" section-root"),a.attr("class",(e.class?e.class+" ":"")+"mindmap-node "+o);const s=a.append("g"),c=a.append("g"),l=c.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(hot,e.width).node().getBBox(),u=r.fontSize.replace?r.fontSize.replace("px",""):r.fontSize;if(e.height=l.height+1.1*u*.5+e.padding,e.width=l.width+2*e.padding,e.icon)if(e.type===aot.CIRCLE){e.height+=50,e.width+=50;a.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-"+i+" "+e.icon),c.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);a.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-"+i+" "+e.icon),c.attr("transform","translate("+(25+e.width/2)+", "+(n/2+e.padding/2)+")")}else c.attr("transform","translate("+e.width/2+", "+e.padding/2+")");switch(e.type){case aot.DEFAULT:!function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+sot(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)}(s,e,i);break;case aot.ROUNDED_RECT:!function(t,e){t.append("rect").attr("id","node-"+e.id).attr("class","node-bkg node-"+sot(e.type)).attr("height",e.height).attr("rx",e.padding).attr("ry",e.padding).attr("width",e.width)}(s,e);break;case aot.RECT:!function(t,e){t.append("rect").attr("id","node-"+e.id).attr("class","node-bkg node-"+sot(e.type)).attr("height",e.height).attr("width",e.width)}(s,e);break;case aot.CIRCLE:s.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-"+sot(e.type)).attr("r",e.width/2)}(s,e);break;case aot.CLOUD:!function(t,e){const n=e.width,r=e.height,i=.15*n,a=.25*n,o=.35*n,s=.2*n;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+sot(e.type)).attr("d",`M0 0 a${i},${i} 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${i},${i} 1 0,1 ${.15*n},${1*r*.35}\n a${s},${s} 1 0,1 ${-1*n*.15},${1*r*.65}\n\n a${a},${i} 1 0,1 ${-1*n*.25},${.15*n}\n a${o},${o} 1 0,1 ${-1*n*.5},0\n a${i},${i} 1 0,1 ${-1*n*.25},${-1*n*.15}\n\n a${i},${i} 1 0,1 ${-1*n*.1},${-1*r*.35}\n a${s},${s} 1 0,1 ${.1*n},${-1*r*.65}\n\n H0 V0 Z`)}(s,e);break;case aot.BANG:!function(t,e){const n=e.width,r=e.height,i=.15*n;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+sot(e.type)).attr("d",`M0 0 a${i},${i} 1 0,0 ${.25*n},${-1*r*.1}\n a${i},${i} 1 0,0 ${.25*n},0\n a${i},${i} 1 0,0 ${.25*n},0\n a${i},${i} 1 0,0 ${.25*n},${1*r*.1}\n\n a${i},${i} 1 0,0 ${.15*n},${1*r*.33}\n a${.8*i},${.8*i} 1 0,0 0,${1*r*.34}\n a${i},${i} 1 0,0 ${-1*n*.15},${1*r*.33}\n\n a${i},${i} 1 0,0 ${-1*n*.25},${.15*r}\n a${i},${i} 1 0,0 ${-1*n*.25},0\n a${i},${i} 1 0,0 ${-1*n*.25},0\n a${i},${i} 1 0,0 ${-1*n*.25},${-1*r*.15}\n\n a${i},${i} 1 0,0 ${-1*n*.1},${-1*r*.33}\n a${.8*i},${.8*i} 1 0,0 0,${-1*r*.34}\n a${i},${i} 1 0,0 ${.1*n},${-1*r*.33}\n\n H0 V0 Z`)}(s,e);break;case aot.HEXAGON:!function(t,e){const n=e.height,r=n/4,i=e.width-e.padding+2*r;!function(t,e,n,r,i){t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+(i.width-e)/2+", "+n+")")}(t,i,n,[{x:r,y:0},{x:i-r,y:0},{x:i,y:-n/2},{x:i-r,y:-n},{x:r,y:-n},{x:0,y:-n/2}],e)}(s,e)}return oot(e.id,a),e.height},dot=function(t){const e=lot(t.id),n=t.x||0,r=t.y||0;e.attr("transform","translate("+n+","+r+")")};function Aot(t,e,n,r){fot(t,e,n,r),e.children&&e.children.forEach(((e,i)=>{Aot(t,e,n<0?i:n,r)}))}function got(t,e,n,r){e.add({group:"nodes",data:{id:t.id,labelText:t.descr,height:t.height,width:t.width,level:r,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach((i=>{got(i,e,n,r+1),e.add({group:"edges",data:{id:`${t.id}_${i.id}`,source:t.id,target:i.id,depth:r,section:i.section}})}))}function pot(t,e){return new Promise((n=>{const r=JR("body").append("div").attr("id","cy").attr("style","display:none"),i=Vat({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),got(t,i,e,0),i.nodes().forEach((function(t){t.layoutDimensions=()=>{const e=t.data();return{w:e.width,h:e.height}}})),i.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),i.ready((t=>{H0.info("Ready",t),n(i)}))}))}Vat.use(Jat);const mot={draw:async(t,e,n,r)=>{const i=D4();r.db.clear(),r.parser.parse(t),H0.debug("Renering info diagram\n"+t);const a=D4().securityLevel;let o;"sandbox"===a&&(o=JR("#i"+e));const s=JR("sandbox"===a?o.nodes()[0].contentDocument.body:"body").select("#"+e);s.append("g");const c=r.db.getMindmap(),l=s.append("g");l.attr("class","mindmap-edges");const u=s.append("g");u.attr("class","mindmap-nodes"),Aot(u,c,-1,i);const h=await pot(c,i);!function(t,e){e.edges().map(((e,n)=>{const r=e.data();if(e[0]._private.bodyBounds){const i=e[0]._private.rscratch;H0.trace("Edge: ",n,r),t.insert("path").attr("d",`M ${i.startX},${i.startY} L ${i.midX},${i.midY} L${i.endX},${i.endY} `).attr("class","edge section-edge-"+r.section+" edge-depth-"+r.depth)}}))}(l,h),function(t){t.nodes().map(((t,e)=>{const n=t.data();n.x=t.position().x,n.y=t.position().y,dot(n);const r=lot(n.nodeId);H0.info("Id:",e,"Position: (",t.position().x,", ",t.position().y,")",n),r.attr("transform",`translate(${t.position().x-n.width/2}, ${t.position().y-n.height/2})`),r.attr("attr",`apa-${e})`)}))}(h),H4(void 0,s,i.mindmap.padding,i.mindmap.useMaxWidth)}},bot=t=>`\n .edge {\n stroke-width: 3;\n }\n ${(t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],OG(t["lineColor"+e])?t["lineColor"+e]=FG(t["lineColor"+e],20):t["lineColor"+e]=NG(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const r=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${r};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return e})(t)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n`,vot={db:uot,renderer:mot,parser:tot,styles:bot};var yot=Object.freeze({__proto__:null,diagram:vot});t.MenuHookBase=l_,t.SyntaxHookBase=iA,t.default=jF,Object.defineProperty(t,"__esModule",{value:!0})}));